Amortized Bayesian Model Comparison With Evidential Deep Learning

Stefan T. Radev, Marco D'Alessandro, Ulf K. Mertens, Andreas Voss, Ullrich Köthe, Paul-Christian BürknerIEEE TNNLS 2020 · DOI

Abstract

Comparing competing mathematical models of complex natural processes is a shared goal among many branches of science. The Bayesian probabilistic framework offers a principled way to perform model comparison and extract useful metrics for guiding decisions. However, many interesting models are intractable with standard Bayesian methods, as they lack a closed-form likelihood function or the likelihood is computationally too expensive to evaluate. We propose a novel method for performing Bayesian model comparison using specialized deep learning architectures. Our method is purely simulation-based and circumvents the step of explicitly fitting all alternative models under consideration to each observed dataset. Moreover, it requires no hand-crafted summary statistics of the data and is designed to amortize the cost of simulation over multiple models and observable datasets. We demonstrate the utility of our method on toy examples and simulated data from cognitive science and neuroscience, showing that it achieves excellent results in terms of accuracy, calibration, and efficiency.

Introduction

In many scientific fields—from neuroscience to epidemiology—researchers compare competing mathematical theories by seeing which one best explains observed data. The Bayesian framework is the "gold standard" for this, but it hits a wall when models are complex. Many modern models are likelihood-free (or "simulation-based"), meaning we can simulate data from them, but we can't write down a simple mathematical formula for the probability of the data. Standard approaches like Approximate Bayesian Computation (ABC) are notoriously slow, often requiring thousands of simulations for every single new dataset. Furthermore, these methods struggle to tell the difference between "all models are equally likely" and "none of these models make any sense for this data."

Methods: Amortized Evidential Learning

The proposed framework introduces a "train once, use forever" approach called amortization. The process is split into two distinct phases: training and inference.

Overview of the training and inference phases for amortized Bayesian model comparison.
  1. Model Selection as Classification: The authors treat model comparison as a supervised classification task. A neural network is trained on millions of simulated datasets where the "ground truth" model is known.
  2. Evidential Deep Learning: Instead of outputting simple probabilities via a softmax layer, the network predicts the parameters of a Dirichlet distribution. This "higher-order" distribution represents a distribution over probabilities, providing a richer representation of model evidence.
  3. Uncertainty Quantification: This Dirichlet representation allows for the calculation of epistemic uncertainty (or "vacuity"). If the network encounters data that looks nothing like its training simulations, the Dirichlet distribution remains flat, signaling that the model is "clueless" rather than just guessing.
  4. Specialized Architectures: To avoid hand-crafted "summary statistics," the framework uses deep learning architectures tailored to the data's structure, such as Permutation Invariant Networks for independent data points and Sequence Networks for time-series data.

Key Insights: Quantifying Absolute Evidence

A significant advantage of this evidential approach is its ability to provide a proxy for absolute evidence. While most Bayesian methods only identify which model is better relative to others, this method can signal if all candidate models are poor fits.

Conceptual illustration of latent data space, estimated Dirichlet densities, and model posteriors under different levels of epistemic uncertainty.

As illustrated above, when observed data $x^{(obs)}$ is out-of-distribution (high epistemic uncertainty, $u=1.0$), the Dirichlet density is uniform, indicating no model selection should occur. Conversely, when data is well-explained by a specific model (e.g., $\mathcal{M}_2$), the uncertainty is low ($u=0.25$), enabling a confident decision.

Key Results

The method was evaluated across several domains, including cognitive science and neurobiology.

  • Efficiency: In chemical kinetics experiments, the proposed method performed inference on 5,000 datasets in just 254 milliseconds. For comparison, a standard ABC-SMC algorithm would have taken over 4 days.
  • Accuracy and Calibration: In neurobiology experiments involving Hodgkin-Huxley models, the network achieved over 92% accuracy. The estimates were also highly calibrated, meaning the network's confidence levels accurately reflect its actual performance.
  • Implicit Occam’s Razor: The network naturally learns to prefer simpler models over complex ones when both explain the data equally well, without needing an explicit penalty term.

Conclusion

This amortized Bayesian framework offers a powerful alternative to traditional simulation-based inference. By leveraging evidential deep learning, it provides rapid, accurate model comparisons while uniquely quantifying epistemic uncertainty to detect when none of the candidate models fit the observed data.

Summary updated

BibTeX
@article{radev2020amortized,
  author = {Stefan T. Radev and Marco D'Alessandro and Ulf K. Mertens and Andreas Voss and Ullrich Köthe and Paul-Christian Bürkner},
  title = {{Amortized Bayesian Model Comparison With Evidential Deep Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2020},
  doi = {10.1109/tnnls.2021.3124052},
}
Figure