[Paper Review] Detecting Model Misspecification in Amortized Bayesian Inference with Neural Networks
This paper proposes an unsupervised, test-time misspecification detection method for amortized Bayesian inference using neural networks in simulation-based inference (SBI). By measuring distributional mismatch in the summary statistic space via Maximum Mean Discrepancy (MMD), the method reliably detects when the true data-generating process deviates from the simulator used during training, even without access to true data, and alerts users to untrustworthy posterior estimates.
Neural density estimators have proven remarkably powerful in performing efficient simulation-based Bayesian inference in various research domains. In particular, the BayesFlow framework uses a two-step approach to enable amortized parameter estimation in settings where the likelihood function is implicitly defined by a simulation program. But how faithful is such inference when simulations are poor representations of reality? In this paper, we conceptualize the types of model misspecification arising in simulation-based inference and systematically investigate the performance of the BayesFlow framework under these misspecifications. We propose an augmented optimization objective which imposes a probabilistic structure on the latent data space and utilize maximum mean discrepancy (MMD) to detect potentially catastrophic misspecifications during inference undermining the validity of the obtained results. We verify our detection criterion on a number of artificial and realistic misspecifications, ranging from toy conjugate models to complex models of decision making and disease outbreak dynamics applied to real data. Further, we show that posterior inference errors increase as a function of the distance between the true data-generating distribution and the typical set of simulations in the latent summary space. Thus, we demonstrate the dual utility of MMD as a method for detecting model misspecification and as a proxy for verifying the faithfulness of amortized Bayesian inference.
Motivation & Objective
- To address the critical challenge of model misspecification in amortized Bayesian inference, where the simulator used during training does not perfectly match the true data-generating process at test time.
- To develop a method that detects such misspecification at test time without requiring labeled data from the true distribution.
- To provide a reliable, unsupervised signal that posterior estimates from neural posterior approximators are untrustworthy due to simulator or prior mis-specification.
- To guide model designers in identifying and correcting flaws in simulation models by quantifying the severity of misspecification.
Proposed method
- The method uses a neural summary network to map observations to a low-dimensional summary statistic space, where the distribution of inlier data (from the training simulator) is expected to be known (e.g., unit Gaussian).
- At test time, the model computes the Maximum Mean Discrepancy (MMD) between the summary statistics of observed data and the known inlier distribution, serving as a misspecification score.
- The MMD score is computed without requiring true data or labels, enabling fully unsupervised detection of model misspecification.
- The approach is applied to both prior and simulator misspecification, including noise scale and structural deviations in the generative model.
- The method is evaluated on both analytical toy models and real-world scientific tasks, including cell biology, cognitive decision-making, and disease outbreak modeling.
- Bootstrapping is used to estimate sampling distributions of MMD under known model configurations, enabling statistical inference on misspecification severity.
Experimental results
Research questions
- RQ1How does model misspecification in the simulator or prior affect the reliability of neural posterior approximators in amortized SBI?
- RQ2Can a test-time, unsupervised anomaly detection method reliably detect model misspecification without access to true data or labels?
- RQ3To what extent can MMD in the summary statistic space detect different types of misspecification, such as prior misalignment, simulator structural errors, or noise scale mismatches?
- RQ4How does the proposed method compare in performance to classical inference (e.g., MCMC) when the model is misspecified?
- RQ5Can the misspecification score guide model designers in identifying and correcting flaws in simulation models?
Key findings
- The proposed MMD-based misspecification detector reliably identifies model misspecification in both toy models and real-world scientific applications, even with no access to true data.
- The method detects prior misspecification (e.g., incorrect prior hyperparameters) with high sensitivity, as shown by significant MMD increases in the summary space.
- Simulator misspecification, such as incorrect noise scale or structural flaws (e.g., necrosis in a cancer model), is also detectable via MMD anomalies in the summary space.
- In experiments with the DDM (diffusion decision model), contamination of reaction time data with fast or slow guesses led to increasing MMD scores with contamination level, indicating detectable degradation.
- The method successfully raised alarms when posterior estimates from BayesFlow and MCMC diverged under misspecification, demonstrating its utility in identifying untrustworthy inference.
- The MMD score remained at zero for the baseline (well-specified model), confirming the method's reliability in the absence of misspecification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.