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.
High-Dimensional Bayesian Model Comparison in Cosmology with GPU-accelerated Nested Sampling and Neural Emulators
Institute of Astronomy, University of Cambridge(剑桥大学天文学研究所);Kavli Institute for Cosmology, University of Cambridge(剑桥大学卡弗里宇宙学研究所);Department of Physics, Royal Holloway, University of London(伦敦大学皇家霍洛威学院物理系)
Field-level multi-tracers simulation-based inference of cosmological parameters from 3D maps
SISSA(国际高等研究学院);INFN Sezione di Trieste(意大利国家核物理研究所的里雅斯特分部);ICSC – Centro Nazionale di Ricerca in High Performance Computing, Big Data e Quantum Computing(高性能计算、大数据与量子计算国家研究中心);Imperial College London(帝国理工学院);IFPU - Institute for Fundamental Physics of the Universe(宇宙基础物理研究所)