Contrastive Neural Ratio Estimation
Benjamin Kurt Miller, Christoph Weniger, Patrick Forré
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. 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. Preprint. Under review.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 66096cb0-4f43-4f9e-995c-d3c0a70050e9Cited by top-tier papers8
- Flow Matching for Scalable Simulation-Based InferenceJonas Wildberger, Maximilian Dax, Simon Buchholz, Stephen R. Green et al.NeurIPS 2023 · 153 citations
- Sampling-Based Accuracy Testing of Posterior Estimators for General InferencePablo Lemos, Adam Coogan, Yashar Hezaveh, Laurence Perreault LevasseurICML 2023 · 66 citations
- Calibrating Neural Simulation-Based Inference with Differentiable Coverage ProbabilityMaciej Falkiewicz, Naoya Takeishi, Imahn Shekhzadeh, Antoine Wehenkel et al.NeurIPS 2023 · 15 citations
- Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation ModelsJulius Vetter, Manuel Glöckler, Daniel Gedon, Jakob H. MackeNeurIPS 2025 · 14 citations
- Distribution Transformers: Fast Approximate Bayesian Inference With On-The-Fly Prior AdaptationGeorge Whittle, Juliusz Ziomek, Jacob Rawling, Michael A OsborneICML 2026 · 13 citations
Builds on6
- Likelihood-free MCMC with Amortized Approximate Ratio EstimatorsJoeri Hermans, Volodimir Begy, Gilles LouppeICML 2020 · 246 citations
- On Contrastive Learning for Likelihood-free InferenceConor Durkan, Iain Murray, George PapamakariosICML 2020 · 149 citations
- Variational methods for simulation-based inferenceManuel Glöckler, Michael Deistler, Jakob H. MackeICLR 2022 · 59 citations
- Truncated Marginal Neural Ratio EstimationBenjamin Kurt Miller, Alex Cole, Patrick Forré, Gilles Louppe et al.NeurIPS 2021 · 53 citations
- GATSBI: Generative Adversarial Training for Simulation-Based InferencePoornima Ramesh, Jan-Matthis Lueckmann, Jan Boelts, Álvaro Tejero-Cantero et al.ICLR 2022 · 44 citations
Related papers
- Towards Reliable Simulation-Based Inference with Balanced Neural Ratio EstimationArnaud Delaunoy, Joeri Hermans, François Rozet, Antoine Wehenkel et al.NeurIPS 2022 · 49 citations
- Direct Amortized Likelihood Ratio EstimationAdam D. Cobb, Brian Matejek, Daniel Elenius, Anirban Roy et al.AAAI 2024 · 6 citations
- Discriminative Calibration: Check Bayesian Computation from Simulations and Flexible ClassifierYuling Yao, Justin DomkeNeurIPS 2023
- Multilevel neural simulation-based inferenceYuga Hikida, Ayush Bharti, Niall Jeffrey, François-Xavier BriolNeurIPS 2025 · 12 citations
- The Power of Log-Sum-Exp: Sequential Density Ratio Matrix Estimation for Speed-Accuracy OptimizationTaiki Miyagawa, Akinori F. EbiharaICML 2021 · 4 citations
