NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sensitivity-Aware Amortized Bayesian Inference

Lasse Elsemüller, Hans Olischläger, Marvin Schmitt, Paul-Christian Bürkner, Ullrich Koethe, Stefan T. Radev

Abstract

Sensitivity analyses reveal the influence of various modeling choices on the outcomes of statistical analyses. While theoretically appealing, they are overwhelmingly inefficient for complex Bayesian models. In this work, we propose sensitivity-aware amortized Bayesian inference (SA-ABI), a multifaceted approach to efficiently integrate sensitivity analyses into simulation-based inference with neural networks. First, we utilize weight sharing to encode the structural similarities between alternative likelihood and prior specifications in the training process with minimal computational overhead. Second, we leverage the rapid inference of neural networks to assess sensitivity to data perturbations and preprocessing steps. In contrast to most other Bayesian approaches, both steps circumvent the costly bottleneck of refitting the model for each choice of likelihood, prior, or data set. Finally, we propose to use deep ensembles to detect sensitivity arising from unreliable approximation (e.g., due to model misspecification). We demonstrate the effectiveness of our method in applied modeling problems, ranging from disease outbreak dynamics and global warming thresholds to human decision-making. Our results support sensitivity-aware inference as a default choice for amortized Bayesian workflows, automatically providing modelers with insights into otherwise hidden dimensions.

The "Iceberg of Uncertainty" in Bayesian Modeling

In Bayesian statistics, every result is a product of several subjective choices: the likelihood (the mathematical model of the process), the prior (pre-existing beliefs), the data itself (and its preprocessing), and the approximator (the algorithm used for computation). Ideally, researchers should perform a "sensitivity analysis" to ensure conclusions are robust to slight variations in these choices.

However, for complex models, this is often computationally prohibitive. Traditional methods like Markov Chain Monte Carlo (MCMC) require refitting the model from scratch for every single variation. This leads to an "iceberg of uncertainty," where researchers stick to a single set of assumptions because they lack the time to explore others. As shown in the comparison below, existing methods often fail to handle intractable likelihoods while simultaneously providing amortized sensitivity across all dimensions.

Comparison of SA-ABI with other Bayesian inference methods across key capabilities.

Methodology: Amortizing Sensitivity

SA-ABI transforms sensitivity analysis into a near-instant task by building on Simulation-Based Inference (SBI). The framework operates in two distinct stages: training and inference.

Overview of the SA-ABI framework, illustrating the two-stage process of training with extended amortization and inference for sensitivity analysis.

1. Amortization via Context Variables

Instead of training a neural network for one specific model, SA-ABI includes "context variables" ($C_L$ for likelihood and $C_P$ for priors) as inputs. The network learns to map data to a posterior distribution conditioned on these choices. Because different versions of a model (e.g., a SIR model with varying prior scales) share structural similarities, a single network can learn the entire "family" of models simultaneously through weight sharing.

2. Deep Ensembles for Approximator Sensitivity ($C_A$)

To detect if the neural network itself is failing—perhaps due to a "simulation gap" where real-world data differs significantly from training simulations—SA-ABI employs an ensemble of $M$ independently trained networks. High disagreement among ensemble members on real data (while agreeing on simulated data) serves as a red flag for model misspecification.

3. Instant Inference and Data Sensitivity ($C_D$)

Once trained, the network can evaluate thousands of model configurations in minutes. This allows for "multiverse analysis," where researchers can rapidly assess sensitivity to data perturbations or different preprocessing steps by simply passing new data contexts through the pre-trained network.

Real-World Applications and Results

The authors validated SA-ABI across three diverse scenarios:

  • COVID-19 Outbreak Dynamics: Analyzing early-stage pandemic data in Germany using SIR models.
  • Climate Trajectory Forecasting: Predicting 1.5°C global warming thresholds using high-dimensional CMIP6 climate model data. Results showed that while predictions were sensitive to the specific climate model (likelihood), they were robust to emission scenarios in the short term.
  • Human Decision-Making: Comparing hierarchical Drift-Diffusion and Lévy Flight models.

In the decision-making experiment, SA-ABI investigated 162,000 configurations (variations in priors, data bootstraps, and ensemble members). While this would be impossible with MCMC, SA-ABI completed the inference phase in approximately 415 minutes after a one-time training cost. Furthermore, the deep ensemble revealed a "simulation gap" in human behavior models that would have remained hidden in standard workflows.

Conclusion

SA-ABI demonstrates that training a network on a wide range of priors does not significantly degrade accuracy; instead, the network generalizes effectively across the "prior space." While current limitations require defining the scope of variations before training, SA-ABI offers a path toward making comprehensive sensitivity analysis a default component of the Bayesian workflow, ensuring more transparent and robust scientific conclusions.

Summary updated

BibTeX
@article{elsemuller2024sensitivity,
  author = {Lasse Elsemüller and Hans Olischläger and Marvin Schmitt and Paul-Christian Bürkner and Ullrich Koethe and Stefan T. Radev},
  title = {{Sensitivity-Aware Amortized Bayesian Inference}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=Kxtpa9rvM0},
}
Figure