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.
Updated to be in line with the journal
References in corpus (26)
- Cosmology at Low Frequencies: The 21 cm Transition and the High-Redshift Universe
- UV Luminosity Functions at redshifts z~4 to z~10: 10000 Galaxies from HST Legacy Fields
- PolyChord: nested sampling for cosmology
- 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
- 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
- Decoding the X-ray Properties of Pre-Reionization Era Sources
- Fast cosmological parameter estimation using neural networks
- Results from EDGES High-Band: III. New Constraints on Parameters of the Early Universe
- 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
- An Effective Model for the Cosmic-Dawn 21-cm Signal
- Mapper of the IGM spin temperature: instrument overview
- 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
- Fast and robust Bayesian Inference using Gaussian Processes with GPry
- Signatures of Cosmic Ray Heating in 21-cm Observables
- 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