Contrastive Neural Ratio Estimation for Simulation-based Inference

Benjamin Kurt Miller, Christoph Weniger, Patrick Forré
10/11/2022
stat.MLastro-ph.IMcs.LG

Official code: bkmi/cnre (2 stars, Jupyter Notebook, last commit 2024-07-05).

Abstract

Likelihood-to-evidence ratio estimation is usually cast as either a binary (NRE-A) or a multiclass (NRE-B) classification task. In contrast to the binary classification framework, the current formulation of the multiclass version has an intrinsic and unknown bias term, making otherwise informative diagnostics unreliable.

Show full abstract

We propose a multiclass framework free from the bias inherent to NRE-B at optimum, leaving us in the position to run diagnostics that practitioners depend on. It also recovers NRE-A in one corner case and NRE-B in the limiting case. For fair comparison, we benchmark the behavior of all algorithms in both familiar and novel training regimes: when jointly drawn data is unlimited, when data is fixed but prior draws are unlimited, and in the commonplace fixed data and parameters setting. Our investigations reveal that the highest performing models are distant from the competitors (NRE-A, NRE-B) in hyperparameter space. We make a recommendation for hyperparameters distinct from the previous models. We suggest two bounds on the mutual information as performance metrics for simulation-based inference methods, without the need for posterior samples, and provide experimental results. This version corrects a minor implementation error in $γ$, improving results.

View on arXivView PDF

Code Implementations(1)

bkmi/cnreOfficial100%

Extending amortized approximate likelihood-ratio estimation / neural ratio estimation to the contrastive case, while staying consistent with the original work.

20Jupyter Notebook, PythonMar 18, 20222 years ago

Similar Papers

Cite this paper

@article{miller2022contrastive,
  title  = {Contrastive Neural Ratio Estimation for Simulation-based Inference},
  author = {Benjamin Kurt Miller and Christoph Weniger and Patrick Forré},
  year   = {2022},
  eprint = {2210.06170},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.06170}
}

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

Discussion