Learning Robust Statistics for Simulation-based Inference under Model Misspecification

Daolang Huang, Ayush Bharti, Amauri H Souza, Luigi Acerbi, Samuel Kaski

Introduction

Simulation-based inference (SBI) has emerged as a powerful tool for scientific discovery, enabling researchers to perform Bayesian inference on complex models where the likelihood function is intractable. By using simulators as implicit generative models, SBI can estimate posterior distributions for parameters in fields ranging from epidemiology to astrophysics. However, a fundamental challenge persists: model misspecification. In real-world applications, simulators are often simplified representations of reality, failing to account for every nuance of the data-generating process. When the observed data falls outside the range of what a simulator can produce, standard SBI methods—particularly those relying on neural networks—often produce "wildly inaccurate" and overconfident results.

The Problem: Misspecification and Extrapolation

Standard neural SBI methods, such as Neural Posterior Estimation (NPE), typically learn to map data to a posterior distribution. These models assume that the "true" data-generating process is contained within the family of distributions the simulator can generate. When this assumption is violated—due to measurement errors, data contamination, or simplified physics—the summary statistics of the observed data may lie in regions of the feature space that the neural network never encountered during training. This forces the model to extrapolate into "uncharted territory," frequently resulting in posterior distributions that are confidently wrong, sometimes even placing the true parameter values entirely outside the predicted range.

Methodology: Learning Robust Statistics

This paper proposes that misspecification can be mitigated through the strategic choice of summary statistics. While a model might be misspecified for the raw, high-dimensional data, it may remain well-specified for a specific subset of robust features. To identify these features, the authors introduce a regularized loss framework for training summary networks:

$$L_{RS}(\omega, \psi) = L(\omega, \psi) + \lambda \cdot \text{Regularizer}$$

The Components

  1. Standard Loss ($L$): This is typically the NPE loss (to ensure statistics are informative about parameters) or an autoencoder loss.
  2. The Regularizer (MMD): The authors employ Maximum Mean Discrepancy (MMD) to measure the distance between the distribution of simulated statistics and the observed statistic.
  3. The Logic: The regularizer penalizes the summary network if it selects features that the simulator cannot replicate for the observed data. This forces the network to ignore "problematic" features that the model does not understand, focusing instead on robust features that the simulator can successfully match.

This approach is versatile and was implemented across two major SBI branches: NPE-RS (Neural Posterior Estimation with Robust Statistics) and ABC-RS (Approximate Bayesian Computation with Robust Statistics).

Experimental Evaluation

The researchers evaluated the framework on several synthetic benchmarks and a challenging real-world dataset:

  • Ricker Model: A discrete-time population ecology model.
  • Ornstein-Uhlenbeck Process (OUP): A stochastic differential equation used in finance and biology.
  • Turin Model (Real Data): A stochastic radio channel model. The authors used real-world measurements where the model is known to be misspecified because the actual data samples exhibit non-independence not captured by the simulator.
  • Gaussian Linear Model: Used for high-dimensional (10D) parameter space testing.

To simulate misspecification in synthetic models, the authors used an $\epsilon$-contamination model, replacing a percentage of the training data with outlier distributions.

Key Insights and Results

Informativeness vs. Robustness

The study highlights a fundamental trade-off: if the regularization weight ($\lambda$) is too high, the model ignores all data and returns the prior; if it is too low, the model overfits to misspecified features. The "sweet spot" yields statistics that are both informative and replicable. MMD proved to be a superior regularizer because it compares distributions rather than single points, making it robust to outliers in training simulations.

Quantitative Performance

In the Ricker model under 20% contamination, standard NPE produced posteriors completely outside the prior range. In contrast, NPE-RS successfully kept the posterior centered around the true parameter value. Across the Ricker and OUP models, the proposed robust methods achieved significantly lower Root Mean Squared Error (RMSE) and better predictive accuracy compared to standard NPE, ABC, and recent baselines like Robust NPE (RNPE).

Real-World Application

On the Turin radio propagation data, NPE-RS provided the most accurate fit to the observed power delay profile. It outperformed other methods in matching the starting point, decay slope, and noise floor of the signal, demonstrating that the framework can handle the complexities of real-world misspecification.

Limitations and Future Directions

While effective, the method introduces some trade-offs:

  • Computational Cost: Estimating MMD during training increases the computational overhead, scaling roughly $O(l^2)$ with the number of simulations.
  • Loss of Amortization: Because the loss function depends on the specific observed statistic, the summary network must be trained or fine-tuned for the data at hand, meaning it is no longer "fully amortized" for instant application to thousands of different observations.
  • Hyperparameter Tuning: Users must still select the weighting factor $\lambda$, which may require validation sets or qualitative checks of the predictive distribution.

Conclusion

By shifting the focus from the inference algorithm to the robustness of the learned statistics, this framework provides a principled way to handle model misspecification in SBI. It ensures that even when our models are "wrong," our inferences remain grounded in the features the model can actually explain.

Summary updated

BibTeX
@inproceedings{huang2023learning,
  author = {Daolang Huang and Ayush Bharti and Amauri H Souza and Luigi Acerbi and Samuel Kaski},
  title = {{Learning Robust Statistics for Simulation-based Inference under Model Misspecification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=STrXsSIEiq},
}
Figure