balanced-nre
Code for the paper "Towards Reliable Simulation-Based Inference with Balanced Neural Ratio Estimation".
Science Score: 41.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.4%) to scientific vocabulary
Keywords
Repository
Code for the paper "Towards Reliable Simulation-Based Inference with Balanced Neural Ratio Estimation".
Basic Info
Statistics
- Stars: 14
- Watchers: 4
- Forks: 2
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Towards Reliable Simulation-Based Inference with Balanced Neural Ratio Estimation
Abstract
Modern approaches for simulation-based inference rely upon deep learning surrogates to enable approximate inference with computer simulators. In practice, the estimated posteriors’ computational faithfulness is, however, rarely guaranteed. For example, Hermans et al. [1] show that current simulation-based inference algorithms can produce posteriors that are overconfident, hence risking false inferences. In this work, we introduce Balanced Neural Ratio Estimation (BNRE), a variation of the NRE algorithm [2] designed to produce posterior approximations that tend to be more conservative, hence improving their reliability, while sharing the same Bayes optimal solution. We achieve this by enforcing a balancing condition that increases the quantified uncertainty in small simulation budget regimes while still converging to the exact posterior as the budget increases. We provide theoretical arguments showing that BNRE tends to produce posterior surrogates that are more conservative than NRE’s. We evaluate BNRE on a wide variety of tasks and show that it produces conservative posterior surrogates on all tested benchmarks and simulation budgets. Finally, we emphasize that BNRE is straightforward to implement over NRE and does not introduce any computational overhead.
[1] Joeri Hermans, Arnaud Delaunoy, François Rozet, Antoine Wehenkel, and Gilles Louppe. Averting A Crisis In Simulation-Based Inference. arXiv e-prints, art. arXiv:2110.06581, October 2021.
[2] Joeri Hermans, Volodimir Begy, and Gilles Louppe. Likelihood-free MCMC with amortized approximate ratio estimators. In Hal Daumé III and Aarti Singh, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 4239–4248. PMLR, 13–18 Jul 2020.
A PDF render of the manuscript is available on ArXiV.

Demo
See demo.ipynb for a demo of BNRE. It is based on the simulation-based inference package lampe, which can be installed with
pip install lampe==0.5.2
Reproducing the experiments
First, install all the dependencies from the requirements.txt file. The pipelines performing all the experiments can then be executed by running the following commands
bash scripts/run-bnre.sh
bash scripts/run-nre.sh
If executed on a slurm cluster, those pipelines will dispatch the experiments into different jobs. The results can then be visualized in the workflows/bnre/results.ipynb notebook.
Citation
See CITATION.cff
License
Described in the LICENSE file.
Owner
- Name: Montefiore Institute
- Login: montefiore-institute
- Kind: organization
- Location: Liège, Belgium
- Website: https://montefiore.uliege.be
- Repositories: 1
- Profile: https://github.com/montefiore-institute
Research at the Montefiore Institute of the University of Liège.
Citation (CITATION.bib)
@misc{https://doi.org/10.48550/arxiv.2208.13624,
doi = {10.48550/ARXIV.2208.13624},
url = {https://arxiv.org/abs/2208.13624},
author = {Delaunoy, Arnaud and Hermans, Joeri and Rozet, François and Wehenkel, Antoine and Louppe, Gilles},
keywords = {Machine Learning (stat.ML), Machine Learning (cs.LG), Methodology (stat.ME), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Towards Reliable Simulation-Based Inference with Balanced Neural Ratio Estimation},
publisher = {arXiv},
year = {2022},
copyright = {arXiv.org perpetual, non-exclusive license}
}
GitHub Events
Total
- Watch event: 2
Last Year
- Watch event: 2