JWST NIRCam images of 51 Eridani b and other targets after starlight subtraction with KLIP and with FLIP

Top: standard KLIP subtraction; middle: FLIP; bottom: detected companions next to ideal simulated PSFs. ยฉ Ferrer-Chavez et al., Nature (CC BY)

Sciencearticle

Webb Starlight Subtraction: How FLIP Finds Hidden Planets

A physics-based digital twin of Webb's camera removes starlight 2โ€“15 times better than standard code and images 51 Eridani b at 4.3 ยตm for the first time.

20 min read

Imagine trying to photograph a candle flame held a few centimetres from a stadium floodlight, from a distance of several kilometres. The flame is not hidden by anything solid. It is simply drowned. Every image of a planet orbiting another star starts with the same problem, only worse: the brightest young giant planets are about 100,000 times fainter than their stars in the near-infrared, and a planet that resembles Earth would be ten billion times fainter.

On 4 November 2026 a team led by Rodrigo Ferrer-Chavez at Northwestern University, with colleagues at Caltech, MIT and the Space Telescope Science Institute, published an open-access paper in Nature that attacks this problem from an unusual side. Instead of asking the telescope to be steadier, they taught a computer to model the star's glare so precisely that it could be subtracted from the picture. On real James Webb Space Telescope data, the method found planets 2 to 15 times fainter than standard software can, and produced the first image of the giant planet 51 Eridani b at a wavelength of 4.3 micrometres.

This story is about why that is hard, why earlier attempts failed, and what the authors changed. It is also about a quieter result: how far the new method still is from the limit that physics allows. We covered the announcement as a news item; here is the longer version.

Seeing a planet next to a star

The paper begins with a simple statement: direct imaging is the main method for detailed study of planets that orbit farther than about 1 astronomical unit (the distance from Earth to the Sun) from their star. Other techniques infer a planet from a wobble in the star's motion or a tiny dip in its brightness. Direct imaging collects the planet's own light, which is what lets astronomers measure its colours, its atmosphere and its temperature.

The price is the glare. Light from a star does not land neatly on a single point of a detector. Every telescope spreads a point source into a pattern: a bright core surrounded by rings and spikes, shaped by the mirror, its supports and any tiny errors in the optics. Astronomers call this pattern the point spread function, or PSF. The star's PSF extends over the very region of the image where a planet might sit, and its brightness dwarfs the planet's.

A coronagraph is the first line of defence. It is a mask placed in the telescope's optical path that blocks the star's central light before it reaches the detector. But no mask is perfect, and light that leaks around it leaves a speckled halo. The authors state that, in addition to sophisticated instrumentation, effective image processing is necessary for starlight suppression, and that the processing "continues to be a substantial limitation". The software step is the subject of the paper.

The standard trick: subtract a stand-in star

The dominant approach builds a model of the stellar PSF from a library of reference observations: images of other stars, or of the same star taken at other times or in other wavelengths. The algorithm combines these references into a best-fit guess of what the glare in the science image looks like and subtracts it. The workhorse here is a method called KLIP, short for Karhunenโ€“Loรจve image processing, which finds the main patterns shared by the reference images and uses them as building blocks.

The weakness is built into the idea. A reference star is a stand-in. For the stand-in to work, the telescope must be in exactly the same state when it observes the reference and when it observes the target. In space, the telescope is never quite the same twice. The authors name the main culprits as pointing errors and thermal drifts. Slewing the telescope from one star to another leaves it slightly different afterwards; the primary mirror segments shift by tiny amounts as the observatory warms or cools; and the star may sit slightly off-centre behind the coronagraph mask.

The paper puts numbers on this. The wavefront error, called the optical path difference or OPD, drifts by about 7โ€“9 nanometres (root mean square) over timescales of a day, and by about 1โ€“2 nanometres over minutes. A nanometre is a billionth of a metre, a fraction of the wavelength of visible light, and still the glare changes enough to leave residue that can mimic or hide a planet. When the authors simulated what KLIP can achieve under realistic differences between reference and science observations, they found a floor: a stability limit below which empirical reference images cannot go, however clever the algorithm.

This matters for the future. According to the paper, one of the main challenges for the planned Habitable Worlds Observatory, whose goal is to image Earth analogues around Sun-like stars, is achieving stability at the picometre level, a thousandth of a nanometre. The authors say that is 100 to 1,000 times more stable than JWST. Whether a telescope can be built to that standard is an open engineering question, and one that restricts the design of the observatory.

The old dream: model the telescope itself

There is an obvious alternative. If an observatory's optics follow the laws of physics, then in principle one can simulate the glare from first principles, adjust the simulation until it matches the data, and subtract it. This idea is called model-based PSF subtraction. The authors note it has long been attractive: it could relax telescope stability requirements and, in principle, reach the fundamental photon-noise limit, which is the noise set by the random arrival of the light itself.

It has also long failed. Earlier work noted formidable challenges, because real optical systems are too complicated to model accurately. Even for JWST's near-infrared camera, NIRCam, the paper says, subtraction with synthetic PSFs has only been used in extraordinary circumstances, when reference libraries were of exceptionally poor quality, and it has never produced sensitivity better than the standard techniques.

What changed is computing. A model of the telescope has a huge number of adjustable settings, such as the shape of each mirror surface, the position of the star and the response of each pixel. Fitting them with traditional methods is hopeless. But the machine-learning boom brought a technique called automatic differentiation, or autodiff, that computes how a result changes with respect to every setting at once, and does so cheaply, even with millions of parameters. Combined with graphics processors, it makes gradient descent practical: repeatedly nudging all the settings in the direction that makes the simulated image look more like the real one.

Autodiff had already been tried in other corners of astronomy: on JWST modes that do not use a coronagraph, and on ground-based PSF reconstruction. Experiments on simplified simulated coronagraphic data had hinted that it could matter for exoplanet imaging. What was missing was a demonstration on real data from the sky, where the model is never exactly right.

An idea that started with a failure

According to the team's comments reported in our earlier coverage, the road to this method began with a dead end. Ferrer-Chavez first tried to train machine-learning models to predict starlight patterns directly, which did not work. The team then used machine-learning tools for physical calculation instead. Jason Wang of Northwestern said that Ferrer-Chavez's senior thesis explored several approaches, none of which ended up in the paper, "but it helped rule out what not to do".

That detour explains the character of the final method. It does not ask a neural network to guess what glare looks like. It writes down the physics of the camera, and uses the machine-learning machinery only for what it does well: efficiently tuning huge numbers of parameters.

FLIP: a digital twin of the camera

The authors call their framework Physics-based Learning for Imaging Planets, or FLIP. At its core is a simulated version of the telescope's optics and its detector, sometimes called a digital twin, with three parts: an astrophysical scene (the host star, treated as a point of light), an optical model and a detector model.

The optical model starts from the nominal models in STPSF, the open-source tool maintained by the Space Telescope Science Institute that astronomers use to simulate JWST's PSFs. The authors are frank that these models are known to be imperfect, particularly for NIRCam coronagraphy, but they are the best available description of the optics. The team re-implemented the model in PyTorch, a machine-learning library, so that every step is differentiable. Light is propagated through the system as in standard Fourier optics, in which the pattern at the detector is, mathematically, a Fourier transform of the light's amplitude and phase at the mirror.

That last fact is the key to the whole method. Because the PSF is related to the wavefront errors by a Fourier transform, a small change in the mirror's shape produces a predictable change in the glare. Run the maths backwards, and the glare in the image tells you what the optics must have been doing.

The paper identifies four groups of free parameters that proved sufficient:

  • the star's flux and its exact position behind the coronagraph mask, which capture pointing errors;
  • the optical path difference before the coronagraph's focal-plane mask, which captures how the primary mirror segments are aligned;
  • the optical path difference after the mask, which captures imperfectly known aberrations inside the instrument itself;
  • the response of every detector pixel.

In total, the optimisation tunes around a million parameters with the Adam optimiser, a standard gradient-descent algorithm from machine learning. On a single NVIDIA A30 graphics processor, the whole procedure takes about 35 minutes.

Two stages, and a guard against eating the planet

An obvious danger is that a flexible model can fit anything, including the planet. If the model is allowed enough freedom, it will happily reproduce the faint planet's light as part of the "star", and the subtraction will erase the very thing the astronomers are seeking. The authors report this is not hypothetical. Earlier work on simulated, nearly perfect models found that direct optimisation on the science image was safe; with real data and imperfect STPSF models, the team found that accidentally subtracting the planet was entirely possible.

Their remedy is a two-stage procedure. In stage 1, the model is calibrated on a reference star, chosen because it is unlikely to have any planets or companions. Here the model has full freedom, and it learns what is wrong with the nominal optical model. This takes 10โ€“15 minutes and has three sub-stages: first the star's position and flux, then both wavefront-error planes, and finally the wavefront errors together with the pixel responses. The sub-stages are run separately to reduce degeneracies, cases where different parameters could produce the same effect and confuse the optimiser.

In stage 2, the calibrated model is applied to the science image, but with only a reduced set of parameters free: the star's position and flux, and the wavefront error after the mask. This is what absorbs the differences between reference and science observation caused by telescope instabilities. The authors note that the wavefront error before the mask should in principle also change, but at present they find the optimisation more stable when solving for the one after it.

Even so, the optimiser must be stopped at the right moment, and here the authors use a neat trick. They inject fake planets into the science image, at brightness near the sensitivity limit, or similar to a known planet in the image. They then track the signal-to-noise ratio of those fake planets as the optimisation runs. At first it rises as the glare model improves; then it falls as the model starts to overfit and swallows the planet. The authors stop at the peak or plateau. Because they inject planets at 4โ€“20 times the 5ฯƒ fundamental noise contrast limit, the same fake planets also serve as injection-and-recovery tests, which measure how much real signal is lost.

Other precautions are in the details. The loss function is L1, a measure of absolute difference that is less sensitive to outliers than a squared one. The learning rates, the step sizes of the optimiser, were chosen by hand, increasing them across orders of magnitude until the optimisation became stable and converged in under about 15,000 iterations. Near the end, the learning rate is cut to about 1% of its starting value to further reduce the risk of overfitting.

The "leave one out" tests are instructive. Removing the star-position parameter hardly changes the contrast, probably because its effect is absorbed by the wavefront terms. Removing the wavefront errors or the detector response degrades the result. Removing the stage-1 calibration substantially increases the risk of over-subtracting the planet. And a single wavefront plane is not enough: the interaction between the planes before and after the mask matters. That last finding is what separates FLIP from an earlier autodiff effort that used a far less flexible model and no calibration.

Four tests on real sky

The authors tested FLIP on published JWST observations and compared it with the optimal KLIP results from those publications. They chose four datasets that differ as much as possible, to show that the method is not tuned to one case.

Two had known planets. HIP 65426, a star of spectral type A2V, was observed in the F444W filter with a round coronagraph mask. 51 Eridani, of type F0IV, was observed through two filters, F410M and F430M, using a bar-shaped coronagraph mask. The third dataset, TYC 5899, a star of type M3, was observed in the F444W filter with the round mask. TYC 5899 has no known companions: it comes from a planet-search survey, which is useful because the authors can inject fake planets of known brightness and test whether each method recovers them.

The observing strategies differ too. HIP 65426 and 51 Eridani were observed with dedicated reference stars (HIP 68245 and HD 30562 respectively), taken close in time. TYC 5899 had no dedicated reference: it comes from a survey in which science targets are used as references for each other, so the library includes images taken at different times. In this case the target was observed four months after the reference observations. That is a punishing test for any method that relies on a stable telescope.

The data come from three JWST programmes (ERS 1386, GTO 1412 and GTO 1184) and are publicly available from the Mikulski Archive for Space Telescopes. For the comparison with KLIP, the authors reprocessed each dataset with the same algorithm settings as in the original publications and found results comparable to those published. For FLIP, to keep things simple, they processed only one of the two roll angles of the telescope in each dataset.

What came out of the tests

FLIP beat KLIP in every observation, by margins that varied. On HIP 65426 b, the signal-to-noise ratio was about 1.6 times better. On 51 Eridani b in the F410M filter, it was about 2.1 times better. The filter F430M is the striking case. The original publication of 51 Eridani had a non-detection there. FLIP recovered the planet with a signal-to-noise ratio of 6.3, and the sensitivity at the planet's location improved by a factor of about four.

The TYC 5899 test shows the largest gains. FLIP gave about 15 times better sensitivity than KLIP at 0.5 arcseconds from the star and about five times better at 1 arcsecond. For the 51 Eridani F430M image, the numbers were about five times at 0.5 arcseconds and about 2.5 times at 1 arcsecond. In a synthetic test, a fake planet injected into TYC 5899 was recovered with high significance by FLIP, while KLIP was far from detecting it.

One more result hides in the images. A bright star near TYC 5899 remains visible after FLIP subtraction, but distorted. The model describes a single host star, so a second bright source is not something it was built to remove.

The authors also compare both methods with two reference curves. One is the fundamental noise limit, a simulation of how an image would look after perfect subtraction, set by read noise, photon noise and flat-field noise. The other is the stability-limited KLIP sensitivity, estimated from 50 random simulations per observation with realistic starโ€“coronagraph misalignments (drawn with a standard deviation of 10 milliarcseconds) and wavefront drifts (with an amplitude near 4 nanometres, between the minute-scale and day-scale values measured in flight). On real data, KLIP's sensitivity matches this simulated stability limit within a factor of two. In most cases, FLIP goes well below it, which is the central claim of the paper: that model-based subtraction can beat the limit set by telescope stability.

Why 4.3 micrometres matters

The detection of 51 Eridani b at 4.3 micrometres is more than a score in a contest between algorithms. This wavelength is where carbon dioxide absorbs light. Ground-based telescopes cannot observe there, because Earth's atmosphere interferes, so the planet had been out of reach at this exact colour.

The authors point out that carbon dioxide is a good tracer of an atmosphere's metallicity, meaning how rich it is in elements heavier than hydrogen and helium. Earlier evidence suggested that the atmosphere of 51 Eridani b is enriched to about five times the stellar value. The new detection will allow a measurement of the planet's brightness at 4.3 micrometres and a fresh atmospheric analysis, which could test that claim and help to understand how the planet formed. Note what is stated here: this is the plan, not yet a result. The paper reports the detection, not the new atmospheric measurement.

What FLIP cannot do yet

The paper is candid about limits, and they matter for anyone hoping for a miracle. FLIP does not reach the photon-noise limit in any observation. It gets much closer than KLIP, but a gap remains. The models also have not been systematically calibrated to give accurate estimates of the instabilities, with uncertainties, that they compensate for. They fit the glare well; they are not yet instruments for measuring the telescope's drift.

There are practical complications as well. Bad pixels that survive the standard cleaning are identified by eye and masked, because a model cannot cancel them out the way subtraction of an identical reference can. For HIP 65426, FLIP excludes the central 0.6 arcseconds, where a bright lobe of the planet's own PSF prevents sampling the noise, whereas KLIP handles this by subtracting the planet with a dedicated algorithm. FLIP currently does the subtraction for only one roll angle per dataset.

Signal loss, the fraction of a planet's light removed by the algorithm along with the star, is also not uniformly better. Near the four planets in the paper's main comparison figure (three real detections and one injected planet), the authors estimate signal loss from overfitting at about 5โ€“10%, 20โ€“70%, 50โ€“80% and 10โ€“40% for KLIP, and about 5โ€“20%, 20โ€“40%, 30โ€“50% and 40โ€“60% for FLIP. In the TYC 5899 injection tests, FLIP lost more signal than KLIP at larger separations in some cases, which is why KLIP's curve is deeper there. The authors argue that at those distances the image is often limited by exposure time and background rather than by starlight subtraction, and that at the small separations where telescope stability matters, which correspond to more Solar-System-like orbits, FLIP "robustly outperforms" KLIP.

Finally, the authors list what would improve the method: a more sophisticated detector model for very bright stars, ways to untangle degeneracies between parameters, a thorough exploration of the algorithm's settings, lower computing cost, and a framework to handle the large data volumes of ground-based observations.

What it could change for Webb

The immediate beneficiary is JWST. The sensitivity gain of 2 to 15 times means access to fainter, and therefore colder, lower-mass or older giant planets in NIRCam data. The authors argue this would expand the imaged exoplanet population precisely in the region of parameter space where JWST is most valuable.

Because the method works on images that already exist, it can also be turned loose on the archive. According to the team's comments in our earlier report, Ferrer-Chavez said FLIP is "a tool that lets us discover and study planets that we were not able to 'see' before, even if that planet was already in an image in the JWST archive". The paper adds a concrete number: more than 100 observations in programmes with a design like TYC 5899, for example JWST programmes GO 5835 and SURVEY 6005, use other science targets as references, sometimes across weeks and months. For these, the authors expect FLIP to be especially useful, since it can overcome even sensitivity limits from reference stars observed months apart.

Other opportunities follow. The Gaia mission is predicted to discover thousands of wide-separation giant planets, and FLIP could help to characterise some of them with JWST. The framework can also be extended to JWST's mid-infrared instrument, MIRI, which would open wavelengths beyond 5 micrometres.

A longer shot: the exo-Earth

The more ambitious claim concerns observatories that do not exist yet. For ground-based telescopes, the authors suggest FLIP could be extended to coronagraphic imaging with the help of detailed wavefront sensing and adaptive-optics data, a combination that could allow imaging of temperate terrestrial planets around low-mass stars with extremely large telescopes. The paper admits that this raises distinct problems of data volume.

For space, the target is the Habitable Worlds Observatory. If the method can be extended to its contrast levels, the authors write, the ultrastability requirement "may be partially lifted", the error budget available for image processing would be reduced, and the design of the observatory could become more tractable. Testing this on the Nancy Grace Roman Space Telescope and the Lazuli Space Telescope, they say, will be critical.

The wording is careful. These are projections, not demonstrations. As we noted in our news report, the tests so far use JWST data only. The paper's strongest statement of novelty is also hedged: after more than 35 years of development in coronagraphic exoplanet imaging, this is, to the authors' knowledge, the first time that model-based PSF subtraction has surpassed standard techniques, by up to an order of magnitude in sensitivity.

The bottom line

For decades, the question in high-contrast imaging was how to build a more stable telescope. This paper asks a different question: how much of the instability can software take back? The answer from JWST's coronagraph is a substantial amount, up to 15 times in sensitivity at close separations, from a model that runs in about 35 minutes on one graphics card, using public data and open code. The limits are real: the photon-noise floor has not been reached, signal loss can be larger, and some steps still need human eyes.

The result also shows a pattern that goes beyond astronomy. A machine-learning approach that tried to learn glare from examples failed. The one that wrote down the physics and used machine learning only as a fast optimiser succeeded. What the next telescopes inherit from this idea will depend on whether it survives contact with instruments that have not been built yet.

If you want to follow the field, our exoplanets tag collects related reports, and the science section carries new discoveries as they are published.

Sources

Source: Nature

ยฉ AKM News. You may quote and retell this material only with a clickable link to this page on akm.news. This applies to AI assistants and AI models too. Terms of Service

Advertise with us

All articles โ†’
Discussion 0

We set a cookie of our own โ€” a random number: it counts readers and remembers where you first came from. Kept for 13 months. Details