The future of cosmological likelihood-based inference: accelerated high-dimensional parameter estimation and model comparison

Davide Piras, Alicja Polanska, Alessio Spurio Mancini, Matthew A. Price, Jason D. McEwen
5/21/2024
astro-ph.COastro-ph.IMcs.LG

No official code found. Best implementation: astro-informatics/harmonic (90 stars, GPL-3.0, last commit 2026-03-18). 2 more below.

Abstract

We advocate for a new paradigm of cosmological likelihood-based inference, leveraging recent developments in machine learning and its underlying technology, to accelerate Bayesian inference in high-dimensional settings. Specifically, we combine (i) emulation, where a machine learning model is trained to mimic cosmological observables, e.g. CosmoPower-JAX; (ii) differentiable and probabilistic programming, e.g. JAX and NumPyro, respectively; (iii) scalable Markov chain Monte Carlo (MCMC) sampling techniques that exploit gradients, e.g. Hamiltonian Monte Carlo; and (iv) decoupled and scalable Bayesian model selection techniques that compute the Bayesian evidence purely from posterior samples, e.g. the learned harmonic mean implemented in harmonic. This paradigm allows us to carry out a complete Bayesian analysis, including both parameter estimation and model selection, in a fraction of the time of traditional approaches. First, we demonstrate the application of this paradigm on a simulated cosmic shear analysis for a Stage IV survey in 37- and 39-dimensional parameter spaces, comparing $Λ$CDM and a dynamical dark energy model ($w_0w_a$CDM). We recover posterior contours and evidence estimates that are in excellent agreement with those computed by the traditional nested sampling approach while reducing the computational cost from 8 months on 48 CPU cores to 2 days on 12 GPUs. Second, we consider a joint analysis between three simulated next-generation surveys, each performing a 3x2pt analysis, resulting in 157- and 159-dimensional parameter spaces. Standard nested sampling techniques are simply unlikely to be feasible in this high-dimensional setting, requiring a projected 12 years of compute time on 48 CPU cores; on the other hand, the proposed approach only requires 8 days of compute time on 24 GPUs. All packages used in our analyses are publicly available.

View on arXivView PDF

Code Implementations(3)

GPL-3.0

Machine learning assisted marginal likelihood (Bayesian evidence) estimation for Bayesian model selection

9013Shell, CythonFeb 15, 20187 months agoGPL-3.0
bayesian-inferencecodemachine-learningstatistics-toolbox
TensorFlowGPL-3.0

Machine Learning - accelerated Bayesian inference

8335Python, Jupyter NotebookJun 7, 20211 years agoGPL-3.0
bayesian-inferencecosmologydeep-learningmachine-learningtensorflow
JAXGPL-3.0

Differentiable cosmological emulators: the JAX version of CosmoPower

505Python, Jupyter NotebookApr 22, 202310 months agoGPL-3.0
bayesian-inferencecosmologydeep-learningemulatorsjax+1 more

Similar Papers

Cite this paper

@article{piras2024future,
  title  = {The future of cosmological likelihood-based inference: accelerated high-dimensional parameter estimation and model comparison},
  author = {Davide Piras and Alicja Polanska and Alessio Spurio Mancini and Matthew A. Price and Jason D. McEwen},
  year   = {2024},
  eprint = {2405.12965},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.12965v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.12965.svg)](https://codeofpaper.com/paper/2405.12965)

Discussion