Fast and Credible Likelihood-Free Cosmology with Truncated Marginal Neural Ratio Estimation

Alex Cole, Benjamin Kurt Miller, Samuel J. Witte, Maxwell X. Cai, Meiert W. Grootes +2 more
11/15/2021
astro-ph.COastro-ph.IMcs.LG

Official code: undark-lab/swyft (172 stars, PyTorch, last commit 2024-03-30). 1 more implementation below.

Abstract

Sampling-based inference techniques are central to modern cosmological data analysis; these methods, however, scale poorly with dimensionality and typically require approximate or intractable likelihoods. In this paper we describe how Truncated Marginal Neural Ratio Estimation (TMNRE) (a new approach in so-called simulation-based inference) naturally evades these issues, improving the $(i)$ efficiency, $(ii)$ scalability, and $(iii)$ trustworthiness of the inferred posteriors. Using measurements of the Cosmic Microwave Background (CMB), we show that TMNRE can achieve converged posteriors using orders of magnitude fewer simulator calls than conventional Markov Chain Monte Carlo (MCMC) methods. Remarkably, the required number of samples is effectively independent of the number of nuisance parameters. In addition, a property called \emph{local amortization} allows the performance of rigorous statistical consistency checks that are not accessible to sampling-based methods. TMNRE promises to become a powerful tool for cosmological data analysis, particularly in the context of extended cosmologies, where the timescale required for conventional sampling-based inference methods to converge can greatly exceed that of simple cosmological models such as $Λ$CDM. To perform these computations, we use an implementation of TMNRE via the open-source code \texttt{swyft}.

View on arXivView PDF

Code Implementations(2)

undark-lab/swyftOfficial100%
PyTorch

A system for scientific simulation-based inference at scale.

17219Python, Jupyter NotebookMay 25, 20202 years agoNOASSERTION
likelihood-free-inferencemachine-learningmarginal-neural-ratio-estimationneural-ratio-estimationparameter-estimation+4 more
a-e-cole/swyft-CMBOfficial100%
MIT
30Jupyter NotebookMar 5, 20214 years agoMIT

Similar Papers

Cite this paper

@article{cole2021fast,
  title  = {Fast and Credible Likelihood-Free Cosmology with Truncated Marginal Neural Ratio Estimation},
  author = {Alex Cole and Benjamin Kurt Miller and Samuel J. Witte and Maxwell X. Cai and Meiert W. Grootes and Francesco Nattino and Christoph Weniger},
  year   = {2021},
  eprint = {2111.08030},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.08030}
}

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/2111.08030.svg)](https://codeofpaper.com/paper/2111.08030)

Discussion