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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Distribution Transformers: Fast Approximate Bayesian Inference With On-The-Fly Prior Adaptation cites Flow Matching for Scalable Simulation-Based Inference
- Variational methods for simulation-based inference cites Truncated Marginal Neural Ratio Estimation
- Variational methods for simulation-based inference cites Likelihood-free MCMC with Amortized Approximate Ratio Estimators
- Variational methods for simulation-based inference cites On Contrastive Learning for Likelihood-free Inference
- Flow Matching for Scalable Simulation-Based Inference cites On Contrastive Learning for Likelihood-free Inference
- Truncated Marginal Neural Ratio Estimation cites Likelihood-free MCMC with Amortized Approximate Ratio Estimators
- Truncated Marginal Neural Ratio Estimation cites On Contrastive Learning for Likelihood-free Inference
- Likelihood-free MCMC with Amortized Approximate Ratio Estimators cites On Contrastive Learning for Likelihood-free Inference
- On Contrastive Learning for Likelihood-free Inference cites Likelihood-free MCMC with Amortized Approximate Ratio Estimators
- Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites Distribution Transformers: Fast Approximate Bayesian Inference With On-The-Fly Prior Adaptation
- Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites Variational methods for simulation-based inference
- Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites Flow Matching for Scalable Simulation-Based Inference
- Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites Likelihood-free MCMC with Amortized Approximate Ratio Estimators
- Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites On Contrastive Learning for Likelihood-free Inference
- Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites Sampling-Based Accuracy Testing of Posterior Estimators for General Inference
- GATSBI: Generative Adversarial Training for Simulation-Based Inference cites On Contrastive Learning for Likelihood-free Inference
- Calibrating Neural Simulation-Based Inference with Differentiable Coverage Probability cites Likelihood-free MCMC with Amortized Approximate Ratio Estimators
- Calibrating Neural Simulation-Based Inference with Differentiable Coverage Probability cites On Contrastive Learning for Likelihood-free Inference
- Calibrating Neural Simulation-Based Inference with Differentiable Coverage Probability cites Sampling-Based Accuracy Testing of Posterior Estimators for General Inference
- Sampling-Based Accuracy Testing of Posterior Estimators for General Inference cites Likelihood-free MCMC with Amortized Approximate Ratio Estimators
- Sampling-Based Accuracy Testing of Posterior Estimators for General Inference cites On Contrastive Learning for Likelihood-free Inference
- Sampling-Based Accuracy Testing of Posterior Estimators for General Inference cites GATSBI: Generative Adversarial Training for Simulation-Based Inference
Cited 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
- Robust Neural Posterior Estimation and Statistical Model CriticismDaniel Ward, Patrick Cannon, Mark Beaumont, Matteo Fasiolo et al.NeurIPS 2022 · 79 citations
