Abstract
Neural networks are fragile when confronted with data that significantly deviates from their training distribution. This is true in particular for simulation-based inference methods, such as neural amortized Bayesian inference (ABI), where models trained on simulated data are deployed on noisy real-world observations. Recent robust approaches employ unsupervised domain adaptation (UDA) to match the embedding spaces of simulated and observed data. However, the lack of comprehensive evaluations across different domain mismatches raises concerns about the reliability in high-stakes applications. We address this gap by systematically testing UDA approaches across a wide range of misspecification scenarios in silico and practice. We demonstrate that aligning summary spaces between domains effectively mitigates the impact of unmodeled phenomena or noise. However, the same alignment mechanism can lead to failures under prior misspecifications -- a critical finding with practical consequences. Our results underscore the need for careful consideration of misspecification types when using UDA to increase the robustness of ABI.
Introduction
In fields like physics, biology, and cognitive science, researchers use complex simulations to understand the world. Amortized Bayesian Inference (ABI) is a powerful tool that trains neural networks on these simulations to perform "zero-shot" inference—once trained, the network can estimate parameters for new data in milliseconds.
However, ABI suffers from model misspecification. Simulations are rarely perfect; when real-world data contains noise or patterns the simulator didn't account for (a "domain shift"), neural networks often produce biased or overconfident results. This paper investigates whether Unsupervised Domain Adaptation (UDA)—a technique used to make models work across different but related data distributions—can make ABI robust enough for high-stakes scientific applications.
Methods
The authors evaluate two primary flavors of UDA integrated into Neural Posterior Estimation (NPE):
- NPE-MMD: This approach uses "Maximum Mean Discrepancy" to directly minimize the statistical distance between the embeddings (summary statistics) of simulated data and observed data.
- NPE-DANN: Adapted from computer vision, this uses a Domain-Adversarial Neural Network. It sets up a "minimax" game where a summary network tries to extract features that a "domain classifier" cannot distinguish as being either simulated or real.
By shifting the inference target, UDA encourages the model to focus on "domain-invariant" features, effectively performing a form of implicit denoising.
Datasets and Benchmarks
The study employs a rigorous hierarchy of benchmarks to isolate different types of misspecification:
- Ricker Model: A chaotic population dynamics model for hyperparameter sensitivity.
- 2D Gaussian Means: A controllable benchmark for isolating location shifts, scale shifts, and data contamination.
- Bayesian Denoising (MNIST/USPS): A high-dimensional task recovering images from blurred observations, testing structural prior shifts.
- Project Implicit (IAT): A real-world dataset of millions of human response times, providing a "wild" environment to test robustness.
Key Insights: Likelihood vs. Prior Misspecification
The paper identifies a critical "aha moment": UDA's effectiveness depends entirely on the type of misspecification.
- Likelihood Shifts: UDA is highly effective for unexpected sensor noise or blur. It shifts the goal to a "denoised" posterior, ignoring parts of the real data that don't fit the model's worldview.
- Prior Shifts: UDA can be a "villain" when real-world parameters fall outside the range the model was trained on. In these cases, UDA's attempt to align the data can force the model to produce confident but completely wrong answers.
Key Results
In high-dimensional image denoising, NPE-DANN and NPE-MMD significantly outperformed standard NPE, reducing the Normalized Root Mean Squared Error (NRMSE) by nearly 50% in some scenarios. However, the authors noted that NPE-DANN is prone to the unstable training dynamics typical of adversarial setups.
As shown in the performance analysis, while UDA methods (NPE-DANN, NPE-MMD) successfully reduce domain distance (SSDD) compared to standard NPE, the resulting error (NRMSE) varies significantly depending on the specific alignment and regularization weight ($\lambda$).
Limitations and Future Work
The primary hurdle for practical application is hyperparameter tuning in the wild. Without ground-truth parameters in real scientific studies, calculating the optimal alignment strength ($\lambda$) remains an unsolved issue. Future research directions include using Deep Ensembles to detect over-regularization and applying UDA to Amortized Bayesian Model Comparison.
Summary updated