English

CONNECT: A neural network based framework for emulating cosmological observables and cosmological parameter inference

Instrumentation and Methods for Astrophysics 2023-06-16 v2 Cosmology and Nongalactic Astrophysics High Energy Physics - Theory

Abstract

Bayesian parameter inference is an essential tool in modern cosmology, and typically requires the calculation of 10510^5--10610^6 theoretical models for each inference of model parameters for a given dataset combination. Computing these models by solving the linearised Einstein-Boltzmann system usually takes tens of CPU core-seconds per model, making the entire process very computationally expensive. In this paper we present \textsc{connect}, a neural network framework emulating \textsc{class} computations as an easy-to-use plug-in for the popular sampler \textsc{MontePython}. \textsc{connect} uses an iteratively trained neural network which emulates the observables usually computed by \textsc{class}. The training data is generated using \textsc{class}, but using a novel algorithm for generating favourable points in parameter space for training data, the required number of \textsc{class}-evaluations can be reduced by two orders of magnitude compared to a traditional inference run. Once \textsc{connect} has been trained for a given model, no additional training is required for different dataset combinations, making \textsc{connect} many orders of magnitude faster than \textsc{class} (and making the inference process entirely dominated by the speed of the likelihood calculation). For the models investigated in this paper we find that cosmological parameter inference run with \textsc{connect} produces posteriors which differ from the posteriors derived using \textsc{class} by typically less than 0.010.01--0.10.1 standard deviations for all parameters. We also stress that the training data can be produced in parallel, making efficient use of all available compute resources. The \textsc{connect} code is publicly available for download at \url{https://github.com/AarhusCosmology}.

Keywords

Cite

@article{arxiv.2205.15726,
  title  = {CONNECT: A neural network based framework for emulating cosmological observables and cosmological parameter inference},
  author = {Andreas Nygaard and Emil Brinch Holm and Steen Hannestad and Thomas Tram},
  journal= {arXiv preprint arXiv:2205.15726},
  year   = {2023}
}

Comments

27 pages, 14 figures - Revision after submission to JCAP

R2 v1 2026-06-24T11:34:23.568Z