A Trust Crisis In Simulation-Based Inference? Your Posterior Approximations Can Be Unfaithful

Joeri Hermans, Arnaud Delaunoy, François Rozet, Antoine Wehenkel, Volodimir Begy, Gilles Louppe · DOI

TL;DR

This paper reveals a critical issue in simulation-based inference (SBI): many popular algorithms produce "unfaithful" posterior approximations that are overconfident, making them unreliable for scientific discovery. The authors propose a shift towards developing "conservative" inference methods and show that ensembling models can help mitigate this problem.

What Problem Does This Paper Address?

Scientific disciplines increasingly rely on complex computer simulations to understand phenomena. However, these simulations often define the likelihood function implicitly, making traditional statistical inference challenging. Simulation-based inference (SBI) methods offer a solution by learning from simulated data. While these methods have advanced rapidly, driven by machine learning, their reliability for scientific applications is questioned. Specifically, the paper addresses the problem of whether current SBI algorithms produce posterior approximations that are "faithful" to the true underlying distribution. In scientific contexts, it's often more detrimental to wrongly exclude plausible parameter values (overconfidence) than to fail to exclude implausible ones (conservatism). This paper investigates if current SBI methods are reliably conservative, or if they tend to be overconfident, thus posing a "trust crisis" for their use in scientific inquiry.

Methods

The core of the paper's methodology is an extensive empirical evaluation of various SBI algorithms. They focus on assessing the "conservatism" of posterior approximations, defined by the expected coverage probability of credible regions. A conservative estimator should produce credible regions that are at least as large as they should be, ensuring plausible parameters are not wrongly excluded.

The authors employ the following:

  • Expected Coverage Probability: This metric measures how often the true parameter value falls within the credible region generated by the approximate posterior, across many simulated datasets. A perfectly calibrated estimator would have an expected coverage probability equal to the desired credibility level (e.g., 95%).
  • Benchmarking: They evaluate a range of popular amortized (learning a general estimator) and non-amortized (learning a specific posterior) SBI algorithms, including Neural Ratio Estimation (NRE), Neural Posterior Estimation (NPE), Sequential Neural Posterior Estimation (SNPE), Sequential Neural Likelihood (SNL), Sequential Neural Ratio Estimation (SNRE), Rejection Approximate Bayesian Computation (REJ-ABC), and Sequential Monte Carlo ABC (SMC-ABC).
  • Ensembling: To investigate mitigation strategies, they explore the use of ensembles (averaging posteriors from multiple models), specifically deep ensembles and bagging.

Datasets

The paper uses a combination of synthetic toy problems and real-world scientific benchmarks. The synthetic benchmark is a simplified version of the SLCP task. The real-world benchmarks include:

  • The Weinberg problem: Simulating high-energy particle collisions to measure the Weinberg angle.
  • The Spatial SIR model: Modeling the spread of an infection on a grid.
  • M/G/1: Modeling a processing and arrival queue.
  • Lotka-Volterra population model: Describing predator-prey dynamics.
  • Stellar Streams: Modeling the disruption of star clusters by dark matter.
  • Gravitational Waves (GW): Inferring parameters from LIGO detector data.

No new benchmarks were introduced; existing ones were adapted or used as-is.

Key Insights and Ideas

  • Ubiquitous Overconfidence: The most striking finding is that all benchmarked SBI algorithms, across various settings, can produce overconfident posterior approximations. This is a fundamental flaw for scientific applications where excluding plausible parameters is worse than being overly inclusive.
  • Small Budgets Exacerbate the Problem: The overconfidence issue is particularly pronounced for non-amortized methods and when using small simulation budgets. This is problematic as these methods are often used when computational resources are limited.
  • Ensembling as a Mitigation Strategy: Deep ensembles consistently show improved conservatism (higher expected coverage) compared to individual models. This suggests that combining multiple models can capture more uncertainty and lead to more reliable posteriors.
  • Amortized vs. Non-Amortized Trade-offs: Amortized methods tend to be more conservative and significantly more simulation-efficient for diagnostics like coverage analysis, due to their ability to reuse trained models. Non-amortized methods, while potentially faster to train for a single posterior, incur prohibitive computational costs for thorough diagnostic evaluation.
  • Conservatism is Key for Science: The paper strongly advocates for prioritizing conservative approximations over exactness, as this aligns better with scientific inquiry principles like falsification.

Key Results

  • Non-Conservative Approximations: Figures 2 and 3 clearly demonstrate that most, if not all, tested SBI algorithms produce posterior approximations that are not conservative across various benchmarks and simulation budgets. This means their credible regions are often smaller than they should be.
  • Ensemble Benefits: Figure 3 shows that deep ensembles consistently achieve higher expected coverage probabilities than the average of individual models. This effect is positive and generally increases with ensemble size (Figure 5).
  • Computational Cost of Diagnostics: Evaluating coverage for non-amortized methods is computationally prohibitive, requiring orders of magnitude more resources than for amortized methods. This highlights a practical barrier to their reliable use.
  • Predictive Performance vs. Conservatism: While predictive performance (log posterior probability) generally improves with simulation budget (Figure 4), this does not guarantee conservative posteriors.

Limitations and Future Work

  • Computational Cost of Coverage: The paper highlights the significant computational burden of performing coverage analysis, especially for non-amortized methods. This limits the practical application of such diagnostics.
  • Ensemble Bagging Less Effective: While deep ensembles show promise, bagging ensembles did not always yield the same improvement in coverage, possibly due to reduced effective dataset size per member.
  • Future Research Directions:
    • Theoretical Development of Conservative Methods: The authors call for research into new objective functions or algorithms that inherently enforce conservatism, regardless of optimality conditions.
  • Model Averaging: Further investigation into model averaging techniques beyond simple ensembling is encouraged.
  • Post-Training Calibration: Exploring methods to calibrate credible regions after training to improve their reliability.
  • Addressing Simulation-Reality Gap: Acknowledging that this work focuses on the inference engine's faithfulness, future work should also consider the potential mismatch between simulations and real-world data.

The authors conclude that while current SBI methods have limitations, their work is a stepping stone towards more reliable and widely adopted simulation-based inference in scientific applications.

Summary updated

BibTeX
@misc{hermans2021trust,
  author = {Joeri Hermans and Arnaud Delaunoy and François Rozet and Antoine Wehenkel and Volodimir Begy and Gilles Louppe},
  title = {{A Trust Crisis In Simulation-Based Inference? Your Posterior Approximations Can Be Unfaithful}},
  year = {2021},
  eprint = {2110.06581},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.06581},
}
Figure