# Fast likelihood-free cosmology with neural density estimators and active   learning

**Authors:** Justin Alsing, Tom Charnock, Stephen Feeney, Benjamin Wandelt

arXiv: 1903.00007 · 2019-07-24

## TL;DR

This paper introduces a fast, likelihood-free inference method for cosmology using neural density estimators and active learning, significantly reducing the number of simulations needed for high-fidelity posterior inference.

## Contribution

It presents a novel DELFI approach with neural density estimators and active learning, enabling efficient, simulation-based Bayesian inference in cosmology with fewer simulations.

## Key findings

- Achieves high-fidelity posterior inference with ~1000 simulations
- Provides a fast alternative to MCMC for simple likelihood problems
- Introduces pydelfi, an open-source implementation of the method

## Abstract

Likelihood-free inference provides a framework for performing rigorous Bayesian inference using only forward simulations, properly accounting for all physical and observational effects that can be successfully included in the simulations. The key challenge for likelihood-free applications in cosmology, where simulation is typically expensive, is developing methods that can achieve high-fidelity posterior inference with as few simulations as possible. Density-estimation likelihood-free inference (DELFI) methods turn inference into a density estimation task on a set of simulated data-parameter pairs, and give orders of magnitude improvements over traditional Approximate Bayesian Computation approaches to likelihood-free inference. In this paper we use neural density estimators (NDEs) to learn the likelihood function from a set of simulated datasets, with active learning to adaptively acquire simulations in the most relevant regions of parameter space on-the-fly. We demonstrate the approach on a number of cosmological case studies, showing that for typical problems high-fidelity posterior inference can be achieved with just $\mathcal{O}(10^3)$ simulations or fewer. In addition to enabling efficient simulation-based inference, for simple problems where the form of the likelihood is known, DELFI offers a fast alternative to MCMC sampling, giving orders of magnitude speed-up in some cases. Finally, we introduce \textsc{pydelfi} -- a flexible public implementation of DELFI with NDEs and active learning -- available at \url{https://github.com/justinalsing/pydelfi}.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1903.00007/full.md

## Figures

11 figures with captions in the complete paper: https://tomesphere.com/paper/1903.00007/full.md

## References

106 references — full list in the complete paper: https://tomesphere.com/paper/1903.00007/full.md

---
Source: https://tomesphere.com/paper/1903.00007