Misspecification-robust Sequential Neural Likelihood for Simulation-based Inference

Ryan P. Kelly, David J Nott, David Tyler Frazier, David J Warne, Christopher DrovandiTMLR 2024

Abstract

Simulation-based inference techniques are indispensable for parameter estimation of mechanistic and simulable models with intractable likelihoods. While traditional statistical approaches like approximate Bayesian computation and Bayesian synthetic likelihood have been studied under well-specified and misspecified settings, they often suffer from inefficiencies due to wasted model simulations. Neural approaches, such as sequential neural likelihood (SNL) avoid this wastage by utilising all model simulations to train a neural surrogate for the likelihood function. However, the performance of SNL under model misspecification is unreliable and can result in overconfident posteriors centred around an inaccurate parameter estimate. In this paper, we propose a novel SNL method, which through the incorporation of additional adjustment parameters, is robust to model misspecification and capable of identifying features of the data that the model is not able to recover. We demonstrate the efficacy of our approach through several illustrative examples, where our method gives more accurate point estimates and uncertainty quantification than SNL.

Introduction

In many scientific fields—from epidemiology to cosmology—researchers rely on complex simulators that lack a tractable likelihood function. Simulation-based inference (SBI) addresses this by running the simulator numerous times to "learn" the relationship between parameters and data. However, a significant challenge remains: model misspecification. When a simulator cannot perfectly replicate observed data (e.g., ignoring weekend reporting lags in a disease model), standard neural SBI methods like Sequential Neural Likelihood (SNL) tend to produce overconfident results—narrow probability distributions centered on incorrect parameter estimates.

This paper introduces Robust Sequential Neural Likelihood (RSNL), a method designed to bridge the gap between simulation and reality by incorporating "adjustment parameters" that detect and mitigate model misspecification.

Methodology

RSNL builds upon the SNL framework, which utilizes Normalizing Flows (specifically Neural Spline Flows) to create a flexible surrogate for the likelihood function. The core innovation is the introduction of adjustment parameters ($Γ$):

  1. The Adjustment Mechanism: Instead of forcing the model to explain the observed summary statistics $S(y)$ directly, RSNL allows the data to be "shifted" by $Γ$. The model evaluates the likelihood of the adjusted data: $q_\phi(S(y) - \Gamma | \theta)$.
  2. Data-Driven Laplace Prior: To prevent the model from over-adjusting, a Laplace prior is applied to $Γ$. This encourages "shrinkage," meaning the model only utilizes the adjustment if the misspecification is significant. The scale of this prior is data-driven, based on the standard deviation of the observed summaries.
  3. Joint Inference: The method employs MCMC (specifically the No-U-Turn Sampler, or NUTS) to sample the joint posterior of both the model parameters ($\theta$) and the adjustment parameters ($Γ$).

Experimental Evaluation

The authors evaluated RSNL on five benchmark problems, including time-series models (MA(1)), epidemiological models (SIR), and a real-world dataset tracking Fowler’s toads.

Performance and diagnostics of RSNL on a contaminated normal model. (a) shows the density discrepancy between the true data and the assumed model. (b) compares the resulting posteriors, showing SNL's failure vs. RSNL's accuracy. (c) and (d) show the posterior of adjustment parameters $\gamma_1$ and $\gamma_2$, identifying that the model fails to capture variance rather than the mean.

In the "Contaminated Normal" toy example (Figure 1), standard SNL produces a narrow, incorrect posterior. RSNL, however, provides accurate uncertainty quantification. Crucially, the adjustment parameters $\Gamma$ act as a diagnostic tool. By observing that the posterior for $\gamma_2$ (variance) deviates from its prior while $\gamma_1$ (mean) does not, researchers can pinpoint exactly which part of their simulator is failing.

Key Insights and Results

  • Efficiency Gains: On the Toad Movement model, RSNL matched the performance of the "gold standard" Robust Bayesian Synthetic Likelihood (RBSL) but required 2,500 times fewer simulations (10k vs. 25 million).
  • Better Calibration: RSNL consistently provided "conservative" coverage, ensuring that uncertainty estimates contained the true parameter values at expected rates, even under misspecification.
  • Robustness to Noise: When the model is well-specified, RSNL does not introduce significant bias, making it a safe replacement for standard SNL.

Limitations and Future Work

While RSNL is highly effective, it increases the dimensionality of the MCMC task by adding an adjustment parameter for every summary statistic. For models with hundreds of summaries, this could become computationally expensive. Future research may explore "conditional" standardization to improve accuracy in heteroscedastic models and further refine the selection of the adjustment hyperparameter $\tau$.

Conclusion

RSNL offers a robust, efficient, and diagnostic-rich approach to simulation-based inference. By explicitly modeling the discrepancy between simulators and reality, it provides more reliable parameter estimates and a built-in mechanism for model criticism, essential for high-stakes scientific modeling.

Summary updated

BibTeX
@article{kelly2024misspecification,
  author = {Ryan P. Kelly and David J Nott and David Tyler Frazier and David J Warne and Christopher Drovandi},
  title = {{Misspecification-robust Sequential Neural Likelihood for Simulation-based Inference}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=tbOYJwXhcY},
}
Figure