Abstract
Simulation-based inference (SBI) enables parameter estimation for complex stochastic models with intractable likelihoods when model simulation is feasible. Neural posterior estimation (NPE) is a popular SBI approach that often achieves accurate inference with far fewer simulations than classical approaches. But in practice, neural approaches can be unreliable for two reasons: incompatible data summaries arising from model misspecification yield unreliable posteriors due to extrapolation, and prior-predictive draws can produce extreme summaries that lead to difficulties in obtaining an accurate posterior for the observed data of interest. Existing preconditioning schemes target well-specified settings, and their behaviour under misspecification remains unexplored. We study preconditioning under misspecification and propose preconditioned robust neural posterior estimation, which computes data-dependent weights that focus training near the observed summaries and fits a robust neural posterior approximation. We also introduce a forest-proximity preconditioning approach that uses tree-based proximity scores to down-weight outlying simulations and concentrate computation around the observed dataset. Across two synthetic examples and one real example with incompatible summaries and extreme prior-predictive behaviour, we demonstrate that preconditioning combined with robust NPE increases stability and improves accuracy, calibration, and posterior-predictive fit over standard baseline methods.
Introduction
In scientific disciplines ranging from astrophysics to epidemiology, researchers frequently employ complex stochastic simulators to model real-world phenomena. While these simulators can generate synthetic data, they often lack a tractable likelihood function, making traditional Bayesian inference impossible. Simulation-Based Inference (SBI) has emerged as a solution, with Neural Posterior Estimation (NPE) becoming a dominant paradigm. NPE utilizes deep neural networks to learn the mapping from data summaries to parameter posteriors.
Despite its success, NPE faces two significant hurdles. First, it often struggles with broad priors that generate "pathological" or extreme simulations, which distract the network from the relevant regions of the parameter space. Second, it is highly sensitive to model misspecification—situations where the simulator cannot perfectly replicate the observed data. In these cases, the neural network is forced to extrapolate into regions it never saw during training, often leading to overconfident and incorrect inferences. This paper introduces Preconditioned Robust Neural Posterior Estimation (PRNPE), a framework designed to stabilize and improve neural inference in these challenging regimes.
The Amortization Gap and Misspecification
Standard NPE is typically "amortized," meaning it is trained to perform inference for any possible observation the simulator might produce. However, this creates an "amortization gap": the network may be accurate on average across the entire data space but inaccurate at the specific point of the actual observed data.
This gap is exacerbated by two factors:
- Extreme Prior-Predictive Behavior: Broad priors can lead to simulations with extreme values (e.g., infinite outputs or massive outliers) that dominate the loss function during training, reducing the network's accuracy on more typical data.
- Model Misspecification: If the observed data lies outside the support of the simulator’s distribution, the neural network must extrapolate. Because deep learning models are notoriously unreliable when extrapolating, this leads to catastrophic failures in posterior accuracy.
Mathematically, the authors demonstrate (via Lemma 1) that the error at the observed data point is directly tied to the distance between the training data and the observation. PRNPE aims to minimize this distance by focusing the training process.
The PRNPE Framework
PRNPE addresses these issues through a two-stage pipeline: preconditioning and robust estimation.
1. Preconditioning (Local Focus)
Preconditioning involves identifying and weighting simulations that are most relevant to the observed data. The authors propose two primary methods:
- SMC-ABC Preconditioning: This uses a coarse, initial run of Sequential Monte Carlo Approximate Bayesian Computation to filter simulations, providing a preliminary "neighborhood" for training.
- Forest-Proximity Preconditioning: This novel approach uses a Random Forest trained to predict parameters from data. By analyzing which simulations land in the same terminal "leaves" as the observed data, the method derives a proximity score. This provides a "distance-free" weighting mechanism that avoids the need for manually defined distance metrics or tolerance thresholds.
2. Robust NPE (Denoising)
Once the training data is focused, the framework employs Robust NPE (RNPE). RNPE treats the discrepancy between the simulator and the observed data as a form of noise. It utilizes a "spike-and-slab" error model to effectively "denoise" the observed summaries before they are processed by the neural network, allowing the model to account for misspecification rather than being misled by it.
Experimental Evaluation
The authors evaluated PRNPE against standard NPE and RNPE across three benchmarks:
- Contaminated Weibull: In this 1D synthetic model, 5% of the data is contaminated with outliers. Standard NPE and RNPE failed significantly, showing coverage as low as 0%. PRNPE, however, achieved near-perfect calibration and honest uncertainty estimates.
- Sparse Vector Autoregression (SVAR): This 6D time-series model included "drift" misspecification. PRNPE reduced the Root Mean Squared Error (RMSE) for noise parameters to near zero, while non-preconditioned methods were off by orders of magnitude.
- BVCBM (Real-World Tumor Data): Using a Biphasic Voronoi Cell-Based Model to fit mouse pancreatic tumor growth, the forest-proximity version of PRNPE consistently achieved the best posterior-predictive distance, meaning its predicted parameters generated simulations that most closely matched the actual biological observations.
Discussion and Conclusion
The research highlights a "double whammy" effect: preconditioning and robustness are highly synergistic. Preconditioning stabilizes the training of the robust model, while the robust model handles the residual mismatch that preconditioning cannot filter out.
While the forest-proximity approach is powerful and tuning-free, it can occasionally lead to "spiky" weights (low effective sample size), which remains an area for future optimization. Additionally, while this work focuses on one-round amortized inference, the principles of PRNPE are likely to benefit sequential (multi-round) SBI methods as well. By combining the local focus of classical methods with the flexible power of deep learning, PRNPE provides a more reliable path for inference when simulators are imperfect.
Summary updated