Paper commentary
A Mechanistic Interpretability Study of an Astronomy Foundation Model
Mechanistic probing locates where an astronomy model gains from images
- Problem Adding images improves redshift predictions from the astronomy foundation model AION-1, but nobody knows which internal parts produce the gain. Probes and ablations each have blind spots, so the mechanism stays unclear.
- Method The authors probe, patch and ablate AION-1's frozen encoder. They swap image tokens and zero out single attention heads to see which parts carry the gain.
- Results Most of the image gain enters in block 1, and one attention head is necessary for most of the advantage, especially for dust-attenuated galaxies. The head's computation matches no astrophysical operation the authors tested.
Why the image gain is unexplained
Photometric redshift estimation asks a model to infer a galaxy's distance from its brightness in a few broadband filters. AION-1 can read nine photometric scalars alone, or add a four-band image cutout, and the two input configurations give different scores. Photometry alone uses the total fluxes in four optical Legacy Survey bands, four WISE bands, and the Galactic extinction E(B−V).
The image adds a 160×160 pixel cutout that the codec turns into 576 patch tokens, bringing the input to 585 encoder tokens. This matters because astronomers want models that reveal astrophysics, not only predictions.
On the test set, the photometry-only readout reaches R2 of 0.869, and the photometry-plus-image readout reaches 0.931. A score like this can't say which internal parts of the encoder produce the gain, so the question stays open. Probes and ablations are the usual tools, but each has a blind spot. A probe shows what is decodable, not what the model uses, and an ablation can miss a property that is stored redundantly.
The study therefore asks which galaxies gain from imaging, where in the encoder the gain enters, and which components carry it. Spatial extent and dust attenuation are the two properties tied to the gain, so the analysis follows them. The galaxies that gain under Ph+Im are systematically more spatially extended and dust-attenuated.
Which galaxies gain from imaging
Galaxies that only the Ph+Im readout predicts correctly number 757, while 12,441 galaxies are correct under both readouts. Relative to the Both correct group, the Ph+Im better galaxies have fainter fiber r-magnitudes and higher dust attenuation τISM. Magnitudes are logarithmic, so larger values mean fainter galaxies. Figure 2 shows the two distributions for each property in the held-out test set.
The fiber r-magnitude covers only the light inside the 1.5′′ DESI fiber, so it grows fainter as more of the galaxy's light lies outside the fiber. Higher τISM means more dust lies along the line of sight in the galaxy's interstellar medium, which attenuates and reddens its light. Dust attenuation is the second candidate driver, and the two-sample Kolmogorov–Smirnov p-values are 1.2e-25 for fiber r-magnitude and 2.7e-29 for dust attenuation.
Both tests reject the null of identical distributions, so the two groups differ on both properties.

Figure 2 : Kernel density estimates of two galaxy properties (left: fiber r-magnitude mfib,r; right: dust attenuation τISM) in the held-out test set:Ph+Im better(purple, N= 757 ): galaxies for which the Ph+Imreadout satisfies |∆z|/(1 +z spec)<0.05 while thePhreadout does not;Both correct(red, N= 12,441 ): galaxies for which both readouts satisfy this threshold. Dashed vertical lines mark per-population medians; two-sample Kolmogorov–Smirnovp-values are annotated in each panel.
Original paper · CC BY 4.0It treats these as two independent contributors to the performance gain, and the supporting analysis sits in Appendix B. The next step asks where in the encoder the image modality's contribution enters, using linear probes on intermediate stages. Those probes cover 14 stages, from the token embedding to the post-encoder representation.
Where the gain enters the encoder
Ridge-regression probes read AION-1's intermediate activations at 14 encoder stages, from the token embedding to the post-encoder output. The final stage is the post-encoder representation, taken after the encoder's final layer-norm. At each stage, the team mean-pools the token activations into one 768-dimensional vector per galaxy and reports test-set R2.
Both input configurations, photometry only and photometry plus image, pass through the same frozen encoder.
At the post-encoder stage, adding images raises the redshift probe R2 from 0.83 to 0.92. Stellar mass rises from 0.77 to 0.89, and the fiber r-magnitude rises from 0.70 to 0.95. The three dust parameters move only modestly upward and stay weakly decodable in both configurations. Broadband magnitudes and E(B−V) reach R2 of at least 0.95 in both configurations, since photometry tokens supply them directly.
Over the remaining eleven blocks, the gap grows by only 0.02 more, so most of the advantage enters in block 1. Stellar mass and fiber r-magnitude follow a similar pattern, while the dust gaps are smaller and build up across the encoder. To test this causally, the authors swap each galaxy's image tokens for those of another test galaxy and patch one block at a time.
Block 1 is sufficient on its own: its clean contribution restores the readout's R2 to 0.931 in the corrupted run. Together, the probes and the patching place the assembly of the image gain in block 1.
Spatial extent is used, but no single head holds it
Spatial extent is causally used, and the authors test this by replacing the cutout while keeping the photometry tokens fixed. The extended Gaussian blur uses σ = 6 px, and each counterfactual is rescaled per band so the codec sees the same flux inside the central 96×96 pixels. Redshift R2 falls from the clean Ph+Im value of 0.931 to 0.556 under the compact template and to 0.766 under the blur.
Stratifying by quintiles of ∆mr shows that each substitution hurts most where it contradicts the galaxy's true spatial extent. The compact template's R2 drops from 0.671 in the lowest quintile to 0.309 in the highest. The extended blur runs the other way, rising from 0.540 to 0.793 across the same quintiles. The Ph baseline varies by less than 0.07 across those quintiles, so the bins alone don't explain the trends.
Head 1 is the best of the 12 block 1 heads for linearly decoding spatial extent, with ∆mr R2 of 0.767 against 0.643 for the next best head. Head 1's attention from interior image queries favors bright image keys, which fits a head that tracks extent. Its first principal component explains a mean 84.1% of the variance among a galaxy's 576 image tokens, and that component tracks radius with a mean |corr| of 0.739.
The authors read this radial, dominant output direction as what a head encoding spatial extent would produce.
Zeroing Head 1 and rerunning the trained Ph+Im readout moves R2 by less than 0.002 in any ∆mr quintile. A probe refit on the eleven remaining heads still reaches R2 0.771, so spatial extent stays decodable after Head 1 is ablated. Each other block 1 head carries spatial extent alone, with R2 between 0.448 and 0.643, and the joint twelve-head probe reaches 0.891.
Erasing the linear direction instead, with the rank-1 eraser LEACE, drives the block 1 mean-pooled ∆mr R2 from 0.903 to 0. The property is decodable again from the residual stream just after block 2's attention, with R2 0.909 against a clean 0.912. Spatial extent is therefore used, but it isn't localized to one head or one direction.
Dust: one head carries most of the advantage
The authors had found that the best probe head in block 1 has a negligible causal effect, so they ranked the twelve heads by causal effect instead. Zeroing Head 3 gives a ∆R2 of −0.052 overall, compared to −0.003 for the next-largest head in the block. Head 3's rank survives multiplicity correction, and it holds when the readout is retrained with different early-stopping criteria and data splits.
The properties used for stratification were fixed by the population analysis before any head was examined. Ablating Head 3 lowers R2 in every τISM quintile, from the least to the most dust-attenuated one. The largest drop, ∆R2 of −0.108, appears in the most dust-attenuated quintile. The multimodal advantage, R2 for Ph+Im minus R2 for Ph, is about 0.10 in the two most dust-attenuated quintiles and about 0.04 in the two least.

Figure 5 :(a)Redshift R2 on the held-out test set, stratified by quintiles of τISM, forPh(gold, dotted), Ph+Im(blue, solid),Ph+Imwith the eleven other block-1 heads mean-ablated so Head 3 is the only active head (black, dash-dotted), andPh+Imwith Head 3’s output zeroed (purple, dashed). Mean ablation replaces a head’s output with its per-position mean over a random subsample of 5,000 training-split galaxies. Error bars are 95% paired bootstrap CIs.(b)MeanPh+Imattention from Head 3, averaged over 200 held-out test galaxies, grouped as in Fig. 4b.
Original paper · CC BY 4.0 · Rachel C. Zhang, Alberto Bietti, Wes Gurnee, Alessandro Favero, Miles Cranmer · A Mechanistic Interpretability Study of an Astronomy Foundation Model · Original paper figure · Extracted the figure area from page 8 of the original PDF.Mean ablation replaces each head's output with its per-position mean over 5,000 training-split galaxies. Head 3 is also sufficient within block 1, because the other eleven heads are mean-ablated and only Head 3 still depends on the input galaxy. With that setup, the readout reaches R2 of 0.928, compared to 0.931 for the full Ph+Im readout.
Keeping only Head 3 active retains at least 87% of the advantage in each quintile, and all of it in the most dust-attenuated one.
Attenuation bias is the slope of predicted against spectroscopic redshift, where a slope below 1 compresses predictions toward the mean. In the most dust-attenuated quintile, imaging raises the slope from 0.806 for photometry to 0.867. Ablating Head 3 lowers the slope further, to 0.710, so the Ph+Im readout ends up more attenuation-biased than photometry.
The scatter stays slightly below photometry's, at 0.039 against 0.042, so the bias reduction depends on Head 3.
What Head 3 computes stays open
Head 3 sends much of its image attention to the photometry tokens, so the authors asked which photometric quantities it might compute. Its favoured keys are the r, i and z flux tokens and the W1 and W2 infrared tokens, which points the search toward specific bands.
Head 3 ranks first among block 1 heads for τISM, but only weakly, with R2 of 0.264 for a linear probe and 0.397 for an MLP. Those values sit well below the 0.589 that the post-encoder representation reaches for τISM. A dust-graded causal effect isn't mirrored by decodability, so this family gets no support.
The second family tests dereddening, which corrects fluxes for Milky Way dust, and tracking of the 4000 Å break. Head 3's output at the g flux position doesn't vary with E(B−V), with a Pearson correlation of −0.03. The third family tests resolved spatial encoding, where mean within-galaxy |corr| stays at most 0.13.
The fourth family asks whether Head 3 corrects photometry-image discrepancies, which would make its effect grow with |D|. The R2 loss from ablating Head 3 falls from 0.066 in the lowest |D| quintile to 0.031 in the highest. Pooled and token-resolved probes on Head 3's output close only 5% and 10% of the gap between the two redshift probes.
None of these operations matches the head, so the authors can't tell whether it computes something unknown or whether their methods miss it.
Whether other heads take over the effect
They screened all 144 encoder heads with a gradient times activation attribution. Four of those five exceeded the screening threshold in that quintile, so the authors call them the confirmed heads.
Every other head still reads the clean residual stream in this test. Because path patching cuts one edge at a time, the authors also zero-ablated Head 3 with all four confirmed heads fixed to their clean-run outputs. In the most dust-attenuated quintile, freezing them removed only 3% of the ablation effect, a size similar to freezing four control heads.
No dominant relay therefore runs through these four heads.
The search covered attention heads only, so MLPs, many weak edges acting jointly, and direct residual-stream routes aren't ruled out. The mechanism therefore remains unidentified, which is the gap the discussion returns to.
Limitations
The circuit search covers attention heads only, so the screening never examined the MLPs. Contributions through the MLPs, many weak edges acting jointly, or the residual stream directly aren't ruled out.
The study uses one model, AION-1, with a redshift readout trained on its frozen encoder. Everything rests on one task, redshift, which the authors chose because it gives a measurable output to check. The sample is the bright BGS subset of the DESI Early Data Release, with 67,755 galaxies split into 54,204 for training and 13,551 for testing.
Behaviour under other scales or surveys wasn't tested, so the findings stay tied to this model and dataset. Contrastive models such as AstroCLIP and AstroM3 link their modalities through the objective alone, so a direct comparison with AION-1 isn't straightforward.
The nine-scalar photometry baseline is stronger than the four-flux version the AION-1 paper reports. Against this baseline, the readouts reach R2 = 0.869 for Ph and R2 = 0.931 for Ph+Im. The authors didn't test how a different photometry baseline would change the size of the gap.
What the contrast means for interpretability
Spatial extent gives the first failure pattern, where a strong probe and a causal test point in different directions. Head 1 decodes spatial extent best, yet zeroing its output leaves the redshift readout nearly unchanged. A strong probe can therefore name a component that the prediction doesn't rely on. Erasing the linear spatial extent direction in block 1 doesn't remove the property, because it reappears one layer later.
A null ablation doesn't prove that a property is unused, since the model can spread that information across heads.
Dust attenuation runs the other way, because its linear probes stay weak at every stage of the encoder. For dust, the computation is localized, so the open problem is naming the function that the head implements.
The authors argue that astronomy suits this work because the domain supplies a ground truth. Contrastive models such as AstroCLIP and AstroM3 aren't directly comparable, because they couple modalities only through the training objective.
Paper info
- Authors
- Rachel C. Zhang, Alberto Bietti, Wes Gurnee, Alessandro Favero, Miles Cranmer
- Venue
- arXiv · Preprint
- First published
- 2026-11-11
- Added
- 2026-11-13
- Updated
- 2026-11-11
- Version
- v1
- arXiv
- 2611.15653
- Category
- cs.LG · astro-ph.IM
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Foundation models are increasingly used across the sciences, but whether their internal computations correspond to known scientific operations or proceed through different mechanisms remains unclear. Understanding these mechanisms is essential for assessing reliability, identifying failure modes, and learning new science from the models. We present, to our knowledge, the first causal mechanistic interpretability study of an astronomy foundation model, AION-1, focusing on its multimodal advantage in redshift prediction, where combining imaging with photometry outperforms photometry alone. We find that this advantage is largest for spatially extended and dust-attenuated galaxies, and that most of it is localized to the first of the encoder's twelve blocks. Within that block, how well a property is linearly decodable does not predict whether it can be localized. Spatial extent is causally used, and one attention head dominates linear probing for it, yet ablating that head has negligible effect on redshift prediction: the information is distributed across heads and is decodable again one layer after we erase it. Dust attenuation shows the opposite pattern: it is only weakly decodable anywhere in the encoder, yet a single head is necessary for most of the multimodal advantage, particularly for the most dust-attenuated galaxies, and keeping that head as the only active head in its block preserves nearly all of the advantage. None of the astrophysically motivated operations we tested explains what this head computes. Whether this reflects a limitation of current interpretability methods or a computation that does not correspond to any known astrophysical operation remains open, and resolving it is a prerequisite for using interpretability as a tool for scientific discovery.
Quote from the paper
Rachel C. Zhang, Alberto Bietti, Wes Gurnee, Alessandro Favero, Miles Cranmer (2026). A Mechanistic Interpretability Study of an Astronomy Foundation Model. arXiv:2611.15653v1. https://arxiv.org/abs/2611.15653v1
BibTeX
@misc{zhang2026mechanistic,
title = {{A Mechanistic Interpretability Study of an Astronomy Foundation Model}},
author = {Rachel C. Zhang and Alberto Bietti and Wes Gurnee and Alessandro Favero and Miles Cranmer},
year = {2026},
eprint = {2611.15653},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.15653v1}
}