On the accuracy of posterior recovery with neural network emulators
arXiv:2503.13263 · doi:10.1093/mnras/staf1590
Abstract
Neural network emulators are widely used in astrophysics and cosmology to approximate complex simulations inside Bayesian inference loops. Ad hoc rules of thumb are often used to justify the emulator accuracy required for reliable posterior recovery. We provide a theoretically motivated limit on the maximum amount of incorrect information inferred by using an emulator with a given accuracy. Under assumptions of linearity in the model, uncorrelated noise in the data and a Gaussian likelihood function, we demonstrate that the difference between the true underlying posterior and the recovered posterior can be quantified via a Kullback-Leibler divergence. We demonstrate how this limit can be used in the field of 21-cm cosmology by comparing the posteriors recovered when fitting mock data sets generated with the 1D radiative transfer code ARES directly with the simulation code and separately with an emulator. This paper is partly in response to and builds upon recent discussions in the literature which call into question the use of emulators in Bayesian inference pipelines. Upon repeating some aspects of these analyses, we find these concerns quantitatively unjustified, with accurate posterior recovery possible even when the mean RMSE error for the emulator is approximately 20% of the magnitude of the noise in the data. For the purposes of community reproducibility, we make our analysis code public at this link https://github.com/htjb/validating_posteriors.
arXiv commentUpdated to be in line with the journal
References in corpus (51)
- LOFAR: The LOw-Frequency ARray
- Cosmology at Low Frequencies: The 21 cm Transition and the High-Redshift Universe
- The Murchison Widefield Array: the Square Kilometre Array Precursor at low radio frequencies
- UV Luminosity Functions at redshifts z~4 to z~10: 10000 Galaxies from HST Legacy Fields
- An absorption profile centred at 78 megahertz in the sky-averaged spectrum
- 21cmFAST: A Fast, Semi-Numerical Simulation of the High-Redshift 21-cm Signal
- Hydrogen Epoch of Reionization Array (HERA)
- PolyChord: nested sampling for cosmology
- PolyChord: next-generation nested sampling
- Concerns about Modelling of the EDGES Data
- C^2-Ray: A new method for photon-conserving transport of ionizing radiation
- The observable signature of late heating of the Universe during cosmic reionization
- Improved Constraints on the 21 cm EoR Power Spectrum and the X-Ray Heating of the IGM with HERA Phase I Observations
- COSMOPOWER: emulating cosmological power spectra for accelerated Bayesian inference from next-generation surveys
- Design and characterization of the Large-Aperture Experiment to Detect the Dark Age (LEDA) radiometer systems
- The signature of the first stars in atomic hydrogen at redshift 20
- HERA Phase I Limits on the Cosmic 21-cm Signal: Constraints on Astrophysics and Cosmology During the Epoch of Reionization
- 21cmFAST v3: A Python-integrated C code forgenerating 3D realizations of the cosmic 21cm signal
- Testing for calibration systematics in the EDGES low-band data using Bayesian model selection
- A Ground Plane Artifact that Induces an Absorption Profile in Averaged Spectra from Global 21-cm Measurements - with Possible Application to EDGES
- The redshifted 21-cm signal in the EDGES low-band spectrum
- The Rise of the First Stars: Supersonic Streaming, Radiative Feedback, and 21-cm Cosmology
- SARAS 2 constraints on global 21-cm signals from the Epoch of Reionization
- Decoding the X-ray Properties of Pre-Reionization Era Sources
- Fast cosmological parameter estimation using neural networks
- A General Bayesian Framework for Foreground Modelling and Chromaticity Correction for Global 21cm Experiments
- Complete history of the observable 21-cm signal from the first stars during the pre-reionization era
- SPECULATOR: Emulating stellar population synthesis for fast and accurate galaxy spectra and photometry
- Emulating the Global 21-cm Signal from Cosmic Dawn and Reionization
- Results from EDGES High-Band: III. New Constraints on Parameters of the Early Universe
- maxsmooth: Rapid Maximally Smooth Function Fitting With Applications in Global 21-cm Cosmology
- Astrophysical Constraints from the SARAS3 non-detection of the Cosmic Dawn Sky-Averaged 21-cm Signal
- GLOBALEMU: A novel and robust approach for emulating the sky-averaged 21-cm signal from the cosmic dawn and epoch of reionisation
- PkANN - II. A non-linear matter power spectrum interpolator developed using artificial neural networks
- An Effective Model for the Cosmic-Dawn 21-cm Signal
- Mapper of the IGM spin temperature: instrument overview
- Optimized Multi-Frequency Spectra for Applications in Radiative Feedback and Cosmological Reionization
- Kernel-Based Emulator for the 3D Matter Power Spectrum from CLASS
- 21cmEMU: an emulator of 21cmFAST summary observables
- Capse.jl: efficient and auto-differentiable CMB power spectra emulation
- 21cmVAE: A Very Accurate Emulator of the 21-cm Global Signal
- PRATUSH experiment concept and design overview
- Euclid-era cosmology for everyone: Neural net assisted MCMC sampling for the joint 3x2 likelihood
- CosmicNet I: Physics-driven implementation of neural networks within Boltzmann-Einstein solvers
- Fast and robust Bayesian Inference using Gaussian Processes with GPry
- Signatures of Cosmic Ray Heating in 21-cm Observables
- Discovering the Sky at the Longest Wavelengths with Small Satellite Constellations
- LuSEE 'Night': The Lunar Surface Electromagnetics Experiment
- Uncertainty-aware and Data-efficient Cosmological Emulation using Gaussian Processes and PCA
- Bayesian evidence-driven likelihood selection for sky-averaged 21-cm signal extraction
- OLÉ -- Online Learning Emulation in Cosmology