Manuscript Offprint

arXiv:2608.23626

A survey detection channel overrides the pixels in an astronomical foundation model, and biases tomographic mean redshifts

Ihor Kendiukhov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Foundation models for astronomy are trained on survey pixels together with the catalogue products derived from those pixels. Those catalogues are incomplete at a measurable rate, and we show that a model trained on both inherits that incompleteness as a physical systematic. AION-1 (Parker et al., 2025)—a 39-modality transformer trained on more than 2×1082 \times 10^8 objects from five surveys and released with open weights—is the instance we audit, using causal interventions on its inputs.

Our central finding is that AION-1 defers to catalogue-derived metadata in preference to the raw pixels, and does not discount that metadata when it contradicts them. Holding image pixels byte-identical and altering only the survey segmentation map changes every quantity the model reports—flux, size, ellipticity, redshift—by 110–4400 times a matched placebo. Displacing the mask by 25 px reduces the g-band flux estimate by 79% although every photon remains in the image. The mechanism is detection gating rather than masked aperture photometry: the response tracks whether the mask asserts a source at the field centre (r = 0.47) more strongly than the light the mask encloses (r = 0.30), and across 322 severely blended systems the model ignores entirely how the pipeline partitioned the light ( R=−0.006±0.001R = -0.006 \pm 0.001). The behaviour is not confined to the detection channel: corrupting the catalogue photometry moves the g-band readout by 0.61 mag, leaving the model nine times worse than supplying no metadata at all.

We quantify the consequence. The Legacy Survey pipeline (Dey et al., 2019) leaves 3.68% of targets with no segment covering their position, measured over 5000 cutouts. Representing such a miss by the segmentation fields the pipeline actually returns when it misses, and propagating that measured rate through AION-1's photometric redshifts, shifts the mean redshift of tomographic bins by a median 0.71 times the LSST DESC requirement (LSST Dark Energy Science Collaboration et al., 2018) over 40 miss assignments and exceeds it in 12 of them—one routine failure mode consuming most of the error budget, and occasionally all of it. Drawing the missed objects by their measured magnitude-dependent miss probability rather than uniformly leaves this unchanged within the realisation scatter. Adding positional errors of the observed magnitude takes the worst bin to 8.3 times the requirement, consistent with our finding that the model is far more sensitive to where the mask is than to its shape. Supplying spectra removes the effect almost entirely, so the systematic is specific to photometric-only inference—the regime in which such a model is most attractive. Withholding the detection channel eliminates it at no measurable cost, whereas substituting a generic mask is substantially worse than either.

Two further limitations live in the tokeniser rather than the transformer. Measured over 1.15×1061.15 \times 10^6 tokens, the image codec emits 8.3% of its 4375 codes, and on patches containing the source its effective vocabulary is 28 codes against 934 of 1024 for the spectrum codec; those 28 states form a one-dimensional brightness ladder. The redshift readout is quantisation-limited rather than information-limited. Codebook utilisation is unchanged at 2.7×2.7\times the parameter count, so both persist under scaling. Finally, sparse dictionaries are unreliable as causal handles on the gate: across 15 dictionaries spanning width, sparsity and seed, recovery spans 26–75 % and moves by up to 18 points on the seed alone, thirteen of fifteen lose to difference-in-means, and reconstruction quality does not predict which will steer.

1 Introduction

Foundation models have arrived in astronomy. Following cross-modal and self-supervised models for galaxies (Parker et al., 2024; Smith et al., 2024; Rizhko and Bloom, 2025; Leung and Bovy, 2024) and the assembly of large heterogeneous corpora (The Multimodal Universe Collaboration et al., 2024), and cross-domain scientific pretraining more broadly (McCabe et al., 2023, 2026), AION-1 (Parker et al., 2025) trains a single encoder-decoder transformer over discrete tokens spanning 39 observational modalities from the DESI Legacy Imaging Surveys (Dey et al., 2019), Hyper Suprime-Cam (Aihara et al., 2018, 2022), SDSS (York et al., 2000), DESI (DESI Collaboration et al., 2016, 2022, 2024, 2025) and Gaia (Gaia Collaboration et al., 2016, 2023). It is released openly at three scales, and it reaches or exceeds task-specific baselines across many downstream problems using a frozen encoder and a light probe head.

The case against deploying such a model inside a cosmological analysis is not accuracy but accountability. No survey collaboration places a learned representation in a likelihood without a correlated error budget, and “what is the R2R^{2}” is never the blocking question. The blocking question is what the model actually uses, and whether that introduces a spatially or systematically coherent bias. Photometric redshift requirements, in particular, constrain the mean redshift of a tomographic bin rather than per-object scatter (LSST Dark Energy Science Collaboration et al., 2018; Newman and Gruen, 2022), so a small coherent shift matters far more than a large random one.

Mechanistic interpretability offers tools for this: linear probes (Alain and Bengio, 2016; Belinkov, 2022), activation patching and causal tracing (Vig et al., 2020; Meng et al., 2022), concept erasure (Ravfogel et al., 2020; Belrose et al., 2023), and sparse dictionary learning (Cunningham et al., 2023; Gao et al., 2024; Bussmann et al., 2024; Rajamanoharan et al., 2024), together with its transcoder and crosscoder variants (Dunefsky et al., 2024; Lindsey et al., 2024). These were developed largely for language models, where the superposition hypothesis (Elhage et al., 2022) and the linear representation hypothesis (Park et al., 2024) frame the questions. Their transfer to scientific models is an active and, so far, mixed story: sparse autoencoders have been applied to galaxy morphology (Wu and Walmsley, 2025; Wu, 2025), protein language models (Simon and Zou, 2025), single-cell models (Pedrocchi et al., 2025) and vision encoders (Zaigrajew et al., 2025), while an interpretability study of a sibling continuum-dynamics foundation model found features that were only piecewise consistent and matched no standard physical basis (Rosenfeld and Sonnewald, 2026).

AION-1 is an unusually tractable target, for reasons specific to its design:

  1. Token identifiers decode to physical quantities. Most modalities are single-token scalars quantised to 1024 centroids by a parameter-free empirical-CDF codec, so attributions can be reported in magnitudes or dex rather than in logits.

  2. Token index is a physical coordinate. Images are a 24×2424 \times 24 grid of 4×44 \times 4-pixel patches at known sky positions; spectra are 273 tokens on a known wavelength grid.

  3. The decoder query carries no value information. For a single-token target the query is effectively a constant vector, so the readout measures what the encoder supplied.

  4. A controlled experiment sits in the checkpoint. HSC and Legacy imaging share one codec and one 4375-code vocabulary but have independent embedding tables.

  5. Uniquely among public astronomical foundation models, AION-1 ingests a detection map—the survey’s segmentation image—as an input modality. The pipeline’s own decisions are therefore directly editable, which is the basis of most of what follows.

The behaviour we find, however, is not specific to astronomy. It follows from a design choice that multimodal scientific foundation models make routinely: training on raw observations together with catalogue products that were themselves derived from those observations. Such a channel is close to a free answer during pretraining, and nothing in a masked-modelling objective penalises a model for preferring it. AION-1 lets us measure the consequence exactly, because one of its metadata channels—the detection map—is an image we can edit while holding the pixels byte-identical.

Our contributions are:

  1. A causal demonstration that AION-1 prefers a catalogue-derived channel to the raw pixels, and fails to discount it under contradiction, across every quantity it reports ( §3§3). We isolate the mechanism as detection gating rather than masked aperture photometry, and show on real blended systems that deblending decisions do not propagate while positional ones do.

  2. Evidence that the preference is a property of the design pattern rather than of one channel: contradicted catalogue photometry leaves the model nine times worse than supplying no metadata at all ( §3.5§3.5), and the vulnerability grows with model scale ( §4§4 onwards).

  3. A quantified downstream cost, propagated from the survey’s own measured failure rate rather than an assumed one, together with a full statement of the assumptions behind that estimate ( §4§4), and a mitigation that removes the vulnerability at no measurable cost.

  4. Two limits attributable to the tokeniser rather than the transformer, neither of which scaling addresses ( §5§5).

  5. A measurement of how unreliable sparse dictionaries are as causal handles, over 15 dictionaries: the seed-to-seed spread exceeds the gap to the linear baselines, and reconstruction quality does not predict causal utility, so a single-seed evaluation cannot settle the question either way ( §7§7).

We use causal interventions throughout rather than attention inspection, because twelve layers of bidirectional self-attention make attention maps unusable as attribution here. Every effect is reported against a matched placebo, and every point estimate carries a bootstrap interval.

References (70)