Bayesian model comparison for simulation-based inference

A. Spurio Mancini, M. M. Docherty, M. A. Price, J. D. McEwen
7/8/2022
astro-ph.COastro-ph.IMphysics.comp-ph
bayesian

Official code: astro-informatics/harmonic (92 stars, Jupyter Notebook, GPL-3.0, last commit 2026-03-18).

Abstract

Comparison of appropriate models to describe observational data is a fundamental task of science. The Bayesian model evidence, or marginal likelihood, is a computationally challenging, yet crucial, quantity to estimate to perform Bayesian model comparison.

Show full abstract

We introduce a methodology to compute the Bayesian model evidence in simulation-based inference (SBI) scenarios (also often called likelihood-free inference). In particular, we leverage the recently proposed learnt harmonic mean estimator and exploit the fact that it is decoupled from the method used to generate posterior samples, i.e. it requires posterior samples only, which may be generated by any approach. This flexibility, which is lacking in many alternative methods for computing the model evidence, allows us to develop SBI model comparison techniques for the three main neural density estimation approaches, including neural posterior estimation (NPE), neural likelihood estimation (NLE), and neural ratio estimation (NRE). We demonstrate and validate our SBI evidence calculation techniques on a range of inference problems, including a gravitational wave example. Moreover, we further validate the accuracy of the learnt harmonic mean estimator, implemented in the HARMONIC software, in likelihood-based settings. These results highlight the potential of HARMONIC as a sampler-agnostic method to estimate the model evidence in both likelihood-based and simulation-based scenarios.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

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

9213Jupyter Notebook, PythonFeb 15, 20188 months agoGPL-3.0
bayesian-inferencecodemachine-learningstatistics-toolbox

Similar Papers

Cite this paper

@article{mancini2022bayesian,
  title  = {Bayesian model comparison for simulation-based inference},
  author = {A. Spurio Mancini and M. M. Docherty and M. A. Price and J. D. McEwen},
  year   = {2022},
  eprint = {2207.04037},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.04037}
}

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

Discussion