Investigating the Impact of Model Misspecification in Neural Simulation-based Inference

Patrick Cannon, Daniel Ward, Sebastian M. SchmonarXiv 2022

TL;DR

Neural Simulation-based Inference (SBI) is a powerful tool for performing Bayesian inference with complex simulators, but it has a major Achilles' heel: model misspecification. This paper demonstrates that when a simulator doesn't perfectly match real-world data, neural SBI methods fail catastrophically—producing highly overconfident and inaccurate results—and current mitigation strategies like ensembling are not enough to fix the problem.

What Problem Does This Paper Address?

In fields like epidemiology and economics, researchers use stochastic simulators to model complex systems. Traditional Bayesian inference is difficult here because these simulators lack an analytic "likelihood" function. Simulation-based inference (SBI) solves this by using neural networks to learn the relationship between parameters ($\theta$) and simulated data ($x$).

However, most SBI research assumes a "well-specified" world where the simulator is a perfect representation of reality. In practice, all models are wrong. This paper investigates the "generalization gap": how do neural SBI algorithms behave when the observed data ($y$) comes from a process that the simulator cannot perfectly replicate? The authors argue that this is the most common setting for these techniques, yet their reliability under these conditions is poorly understood.

Methods

The authors benchmark three core classes of neural SBI:

  1. Neural Posterior Estimation (NPE): Directly targeting the posterior distribution.
  2. Neural Likelihood Estimation (NLE): Learning a surrogate for the likelihood.
  3. Neural Ratio Estimation (NRE): Learning the likelihood-to-evidence ratio.

They compare these against a baseline of Rejection ABC (Approximate Bayesian Computation). To evaluate accuracy, they use Expected Coverage, a metric that checks if the model's predicted "high-confidence" regions actually contain the true parameters as often as they claim to.

The paper also tests two potential "robustness" fixes:

  • Ensemble Posteriors: Averaging the predictions of multiple networks trained with different random seeds to leverage the "wisdom of the crowd."
  • Sharpness-Aware Minimization (SAM): A training procedure designed to find "flatter" minima in the loss landscape, which is generally associated with better generalization to unseen data.

Datasets

The study utilizes three primary tasks, each subjected to five levels of increasing artificial misspecification ($\sigma$):

  • Toy Gaussian Model (TG): A simple 1D parameter task where misspecification is introduced via additive Gaussian noise.
  • Stochastic Volatility (SV): A time-series model used in finance. Misspecification emulates a "volatility shock" (a sudden spike in variance) not present in the training simulations.
  • SLCP (Simple Likelihood Complex Posterior): A standard 5D benchmark in the SBI literature, misspecified with stochastic transforms.

The authors also test versions of the Gaussian and SV tasks using Summary Statistics (SS), such as the mean and standard deviation, to see if data reduction helps or hurts robustness.

Key Insights and Ideas

  • Catastrophic Overconfidence: When faced with misspecified data, neural SBI methods don't just become less accurate; they often become "catastrophically" wrong. As shown in Figure 1, the predicted posteriors can become entirely disjoint from the ground truth while remaining very "tight" (highly confident).
Figure 1: Approximate posterior distributions derived using three SBI algorithms, in the well-specified regime and under two levels of data misspecification. The dashed line shows the ground-truth model posterior p(θ | yσ). Taking σ = 0 gives y0 = x, a sample from the model itself.
  • The OOD Generalization Trap: The core issue is that misspecified data looks like "out-of-distribution" (OOD) data to the neural network. Neural networks are notorious for producing high-confidence predictions on OOD data rather than admitting uncertainty.
  • ABC is Surprisingly Robust: While computationally expensive and often biased, traditional Rejection ABC proved remarkably robust. It tended to produce "conservative" (wider) posteriors under misspecification, whereas neural methods became dangerously overconfident.
  • Summary Statistics are a Double-Edged Sword: While summary statistics are meant to simplify inference, they can exacerbate failure if the statistics themselves are sensitive to the specific way the model is misspecified.

Key Results

  • Coverage Failure: In the Stochastic Volatility task, all neural methods degraded substantially. Even with SAM or ensembling, the models often failed to cover the true parameter mass at all.
  • Metric Visualisation: The authors use coverage plots to diagnose model health. A well-calibrated model follows the diagonal; points below the diagonal indicate overconfidence.
Figure 2: Visualising cover- age: three exemplar density functions (coloured) and their coverage of the base distribu- tion (dash-dotted).
  • Mitigation Limits: Ensembling helped reduce the variance of the errors but did not prevent the "unusable" results seen at high levels of misspecification. SAM provided some benefits for NPE in specific tasks but was detrimental to others, proving it is not a "panacea."

Limitations and Future Work

The authors acknowledge several limitations:

  • Single-Round Focus: The study only looks at single-round SBI. Sequential methods (which use active learning to refine simulations) would likely suffer even more, as errors in early rounds would be compounded in later ones.
  • Targeting the "Wrong" Posterior: The paper focuses on how well these methods recover the model posterior. However, in misspecified settings, it might be better to target a "robust" or "generalized" posterior that explicitly accounts for model discrepancy.
  • Call to Action: The authors conclude that current neural SBI techniques are not yet reliable for high-stakes scientific discovery where model error is likely. They call for new research into explicitly robust neural architectures and training objectives.

For more details, you can refer to the full paper: "Investigating the Impact of Model Misspecification in Neural Simulation-based Inference" (arXiv:2209.01845v1).

Summary updated

BibTeX
@misc{cannon2022investigating,
  author = {Patrick Cannon and Daniel Ward and Sebastian M. Schmon},
  title = {{Investigating the Impact of Model Misspecification in Neural Simulation-based Inference}},
  year = {2022},
  eprint = {2209.01845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.01845},
}
Figure