arXiv:2608.26354astro-ph.COAug 2026

Manuscript Offprint

arXiv:2608.26354

Cross-simulator transfer with foundation model summaries: Towards robust SKA-era reionization inference

Yannic Pietschke, Caroline Heneka, Ayodele Ore, Romain Meriot

ABSTRACT

Simulation-based inference (SBI) for parameter estimation is vulnerable to model misspecification: neural summaries and density estimators trained on a specific forward model typically fail when applied to data drawn from another model, or from real observations, and no training simulator can capture the full observational pipeline of a real measurement exactly. We show that a self-supervised Vision Transformer (ViT), pretrained label-free on a fast approximate simulator, produces transferable data summaries that generalize across simulators. Without retraining, it can be reused as a frozen encoder to infer astrophysical parameters from a completely different simulator that resolves the radiative transfer explicitly, on which it has never seen either data or parameters. As a concrete use case in 21cm cosmology, SKATR (Ore et al. 2025), a ViT pretrained with a self-supervised Joint Embedding Predictive Architecture (JEPA), serves as a foundation model for reionization inference from upcoming Square Kilometre Array (SKA) measurements: SKATR is pretrained once on 67k low-cost, noiseless semi-numerical 21cmFAST lightcones, then frozen and applied to hydrodynamical Loreli II lightcones, where a lightweight conditional flow matching (CFM) head infers five astrophysical parameters; the encoder is never shown Loreli data, its parameters, or any noise. In our comparison, SKATR yields the most precise and best-calibrated posteriors across all five parameters, matching the accuracy of the fully-supervised in-domain baseline while requiring 2.6× fewer radiative-transfer simulations. Under realistic SKA AA* noise, only SKATR remains simultaneously accurate, informative, and calibrated, outperforming even a supervised baseline retrained from scratch on noisy data. Self-supervised pretraining on computationally efficient semi-numerical simulations is therefore a viable route to calibrated, simulator- and noise-agnostic reionization inference for the SKA-era.

Key words. intergalactic medium – dark ages, reionization, first stars – large-scale structure of Universe – Methods: numerical, statistical

1. Introduction

Simulation-based inference (SBI) (Cranmer et al. 2020) has emerged as a valuable tool for cosmological parameter estimation from data whose likelihood is intractable, circumventing explicit likelihood modeling by learning the map from observation to parameters directly from forward-simulated data (Alsing et al. 2019; Cole et al. 2022; Saxena et al. 2024; Schosser et al. 2025). SBI is a flexible framework for inference from either hand-crafted summary statistics, such as the power spectrum, network-learned summaries or field-level inference, as well as combinations thereof in terms of hybrid statistics (Zhao et al. 2022; Makinen et al. 2024; Prelogović & Mesinger 2024; Schosser et al. 2026). Its central bottleneck, however, is that neural summaries and density estimators trained on simulated data typically fail when applied to observations, or even to data from a different simulator: distinct codes adopt distinct parameterizations and physical approximations, and no single simulator can capture the full instrumental and observational pipeline of a real measurement exactly (Cannon et al. 2022; Sooknunan et al. 2024). This model-misspecification problem is the fundamental barrier between forthcoming survey data and calibrated cosmological constraints, and it is not unique to any one probe.

A route that has recently emerged to address such distribution shifts is self-supervised foundation model pretraining. The idea, established for language and vision, and increasingly explored in astronomy (e.g. Parker et al. 2024; Parker et al. 2025; Smith et al. 2024), is to pretrain a large encoder once on a low-cost and abundant dataset with a label-free objective, then reuse the frozen representation for many downstream tasks with light task-specific supervision. Because the pretraining objective is not tied to any single target label set, the learned representation can, in principle, transfer to targets whose parameters, noise model and systematics were never seen during pretraining. This is precisely the regime where model misspecification typically produces biased or miscalibrated results. An established alternative for settings with known target data is domain adaptation, which learns domain-invariant features by aligning a labeled source to a specific target domain (Roncoli et al. 2023; Ntampaka et al. 2025; Pierre et al. 2026). As this approach requires access to the target domain it is not available for genuinely unseen future observations. Target-agnostic, self-supervised representations bypass this constraint.

In this work we demonstrate foundation model pretraining in the context of inference for 21cm cosmology, which is one of the main science cases of the Square Kilometre Array (SKA) 1^{1}. SKA radio interferometric observations at low frequencies of 50 – 350 MHz will illuminate the Epoch of Reionization (EoR)

1^{1} https://www.skao.int/en

Article number,

page 1 and Cosmic Dawn – key milestones in the history of the Universe, spanning redshifts from roughly 5 to 20. Here, the first luminous sources form and subsequently reionize the surrounding intergalactic medium (IGM), representing the Universe's last phase transition from neutral to ionized. Mapping the redshifted 21cm hyperfine transition of neutral hydrogen (HI) offers a window into these epochs, enabling studies of the IGM and providing 3D tomographic lightcones of the early Universe. Precursor experiments, such as the Murchison Widefield Array (MWA), the Hydrogen Epoch of Reionization Array (HERA) and the LOw-Frequency ARray (LOFAR), have set progressively tighter upper limits on the 21cm power spectrum (Parsons et al. 2010; Tingay et al. 2013; DeBoer et al. 2017; van Haarlem, M. P. et al. 2013; Mertens et al. 2020; Trott et al. 2020; Yoshiura et al. 2021; Abdurashidova et al. 2022, 2023; Ceccotti et al. 2025), while the SKA will uniquely enable imaging of the reionization signal at the sensitivity required for calibrated parameter inference. These large-scale surveys of 21cm line fluctuations allow us to constrain the astrophysics of galaxies and the IGM (Park et al. 2019), as well as probe cosmology and fundamental physics (Liu et al. 2020).

Model misspecification for 21cm cosmology has two aspects. First, any SKA measurement will carry thermal noise, ionospheric effects, foreground residuals, beam and calibration artifacts that no training simulation can capture exactly, creating a domain shift between the source and target data. A second gap can be observed between different forward models. Distinct simulators use distinct parameterizations and physical approximations, and current 21cm EoR models can differ by at least 10% (Zahn et al. 2011; Greig & Mesinger 2018), which biases inference; for the SKA we do not know in advance which simulator will best match future observations. This fragility shows up not only in posterior accuracy and precision but, crucially, in calibration, that is correct posterior coverage. Both a precise-but-inaccurate posterior (concentrated on the wrong answer) and an accurate-but-overconfident one (recovering the right mean but underestimating its own uncertainty) would silently mislead the analysis.

Target-agnostic representations can circumvent the model misspecification problem by learning summary statistics tied to the physics of reionization itself rather than to the parameters of a single simulator or noise model. Self-supervised representation learning, in particular Joint Embedding Predictive Architectures (JEPA) (Assran et al. 2023; Bardes et al. 2024), is a promising candidate: the encoder is trained to predict masked regions of the input in embedding space, without any label. Ore et al. (2025) introduced the SKA Transformer (SKATR), a Vision Transformer (Dosovitskiy et al. 2021) pretrained with JEPA on 21cmFAST lightcones, and showed that the resulting summaries are robust to additions of optimistic SKA-Low (AA4) noise, to changes in spatial resolution, and to changes in the set of simulation parameters within a single simulator family. The observationally pressing question is whether such summaries transfer across simulator families, and thus parametrizations, and across noise regimes at once: if they do, the same frozen encoder can be used to perform calibrated inference on data whose physics and systematics were never seen during pretraining.

In this work we test exactly this: does SKATR enable transfer across simulator models? Our aim is to show that a label-free, symmetry-agnostic pretraining objective yields transferable summaries, without hand-designed augmentations built into the foundation model. SKATR is pretrained once on a large set of low-cost, noiseless semi-numerical lightcones, frozen, and applied to lightcones from a different and more expensive hydrodynamical simulator, first noiseless and then with realistic SKA-Low noise in the AA* array configuration. A lightweight conditional flow matching (CFM) inference head, which is an updated version of the EoRFlow pipeline of Pietschke et al. (2025), is trained on the resulting summaries to recover the target astrophysical parameters. The encoder sees none of the target hydrodynamical simulator data, none of its parameters, and none of the noise. This is the standard foundation model recipe, pretrain once on large data (here, approximate semi-numerical simulations), transfer with light task-specific supervision, applied for the first time successfully to 21cm inference under a joint simulator-and-noise domain shift.

This paper is structured as follows. We start with a description of our databases highlighting the differences in physical modeling of the EoR for our two different simulators in Sec. 2. Moving on, we summarize the SKATR network architecture and our experimental setup in Sec. 3. In Sec. 4, we present our results for cross-simulator transfer on noiseless simulations. Realistic instrument noise is added in Sec. 5, to provide a robust inference pipeline for SKA data. Finally, we discuss our findings and outline directions for future work in Sec. 6.