mlsanityData to 7 Oct 2026

Are Bayesian neural networks intrinsically good at out-of-distribution detection?

arXiv 2107.12248 ↗First posted 26 Jul 2021cs.LG stat.MLcited by 10

Not on the map. Why?

Abstract (arXiv)

The need to avoid confident predictions on unfamiliar data has sparked interest in out-of-distribution (OOD) detection. It is widely assumed that Bayesian neural networks (BNN) are well suited for this task, as the endowed epistemic uncertainty should lead to disagreement in predictions on outliers. In this paper, we question this assumption and provide empirical evidence that proper Bayesian inference with common neural network architectures does not necessarily lead to good OOD detection. To circumvent the use of approximate inference, we start by studying the infinite-width case, where Bayesian inference can be exact considering the corresponding Gaussian process. Strikingly, the kernels induced under common architectural choices lead to uncertainties that do not reflect the underlying data generating process and are therefore unsuited for OOD detection. Finally, we study finite-width networks using HMC, and observe OOD behavior that is consistent with the infinite-width case. Overall, our study discloses fundamental problems when naively using BNNs for OOD detection and opens interesting avenues for future research.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 11 of its 29 references that are in the map. First posted on arXiv 26 Jul 2021.

Builds on

11 of 29 references.

References · 11

  1. 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,315
  2. 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,274
  3. 2017Deep Neural Networks as Gaussian Processescited by 617
  4. 2019A Simple Baseline for Bayesian Uncertainty in Deep Learningcited by 555
  5. 2020Bayesian Deep Learning and a Probabilistic Perspective of Generalizationcited by 480
  6. 2018Do Deep Generative Models Know What They Don't Know?cited by 443
  7. 2016A Kernelized Stein Discrepancy for Goodness-of-fit Tests and Model Evaluationcited by 236
  8. 2017Multiplicative Normalizing Flows for Variational Bayesian Neural Networkscited by 157
  9. 2017Bayesian Hypernetworkscited by 64
  10. 2021Posterior Meta-Replay for Continual Learningcited by 45
  11. 2017Implicit Weight Uncertainty in Neural Networkscited by 30

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 3; 2023: 1; 2024: 3; 2025: 2.

10 papers.