Are Bayesian neural networks intrinsically good at out-of-distribution detection?
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
- 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,315
- 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,274
- 2017Deep Neural Networks as Gaussian Processescited by 617
- 2019A Simple Baseline for Bayesian Uncertainty in Deep Learningcited by 555
- 2020Bayesian Deep Learning and a Probabilistic Perspective of Generalizationcited by 480
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
- 2016A Kernelized Stein Discrepancy for Goodness-of-fit Tests and Model Evaluationcited by 236
- 2017Multiplicative Normalizing Flows for Variational Bayesian Neural Networkscited by 157
- 2017Bayesian Hypernetworkscited by 64
- 2021Posterior Meta-Replay for Continual Learningcited by 45
- 2017Implicit Weight Uncertainty in Neural Networkscited by 30
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 1; 2024: 3; 2025: 2.
10 papers.
- 2022Towards out of distribution generalization for problems in mechanicscited by 11
- 2024Are We Ready for Out-of-Distribution Detection in Digital Pathology?cited by 8
- 2024Calibrating Bayesian Learning via Regularization, Confidence Minimization, and Selective Inferencecited by 6
- 2024PViT: Prior-augmented Vision Transformer for Out-of-distribution Detectioncited by 3
- 2021Uncertainty estimation under model misspecification in neural network regressioncited by 2
- 2023Bayesian deep learning for cosmic volumes with modified gravitycited by 2
- 2022Distributional Gaussian Processes Layers for Out-of-Distribution Detectioncited by 1
- 2022An out-of-distribution discriminator based on Bayesian neural network epistemic uncertaintycited by 0
- 2025Generalization is not a universal guarantee: Estimating similarity to training data with an ensemble out-of-distribution metriccited by 0
- 2025Out-of-Distribution Detection from Small Training Sets using Bayesian Neural Network Classifierscited by 0
- 2025Out-of-Distribution Detection from Small Training Sets using Bayesian Neural Network Classifiers7 Oct 2025
- 2025Generalization is not a universal guarantee: Estimating similarity to training data with an ensemble out-of-distribution metric22 Feb 2025
- 2024PViT: Prior-augmented Vision Transformer for Out-of-distribution Detection27 Oct 2024
- 2024Are We Ready for Out-of-Distribution Detection in Digital Pathology?18 Jul 2024
- 2024Calibrating Bayesian Learning via Regularization, Confidence Minimization, and Selective Inference17 Apr 2024
- 2023Bayesian deep learning for cosmic volumes with modified gravity1 Sep 2023
- 2022An out-of-distribution discriminator based on Bayesian neural network epistemic uncertainty18 Oct 2022
- 2022Towards out of distribution generalization for problems in mechanics29 Jun 2022
- 2022Distributional Gaussian Processes Layers for Out-of-Distribution Detection27 Jun 2022
- 2021Uncertainty estimation under model misspecification in neural network regression23 Nov 2021