Fast Predictive Uncertainty for Classification with Bayesian Deep Networks

Marius Hobbhahn, Agustinus Kristiadi, Philipp Hennig
3/2/2020
cs.LGstat.ML
bayesian

Official code: mariushobbhahn/LB_for_BNNs_official (13 stars, Jupyter Notebook, last commit 2022-05-25).

Abstract

In Bayesian Deep Learning, distributions over the output of classification neural networks are often approximated by first constructing a Gaussian distribution over the weights, then sampling from it to receive a distribution over the softmax outputs. This is costly.

Show full abstract

We reconsider old work (Laplace Bridge) to construct a Dirichlet approximation of this softmax output distribution, which yields an analytic map between Gaussian distributions in logit space and Dirichlet distributions (the conjugate prior to the Categorical distribution) in the output space. Importantly, the vanilla Laplace Bridge comes with certain limitations. We analyze those and suggest a simple solution that compares favorably to other commonly used estimates of the softmax-Gaussian integral. We demonstrate that the resulting Dirichlet distribution has multiple advantages, in particular, more efficient computation of the uncertainty estimate and scaling to large datasets and networks like ImageNet and DenseNet. We further demonstrate the usefulness of this Dirichlet approximation by using it to construct a lightweight uncertainty-aware output ranking for ImageNet.

View on arXivView PDF

Code Implementations(1)

Official repository for the paper "Fast Predictive Uncertainty for Classification with Bayesian Deep Networks". Accepted at UAI 2022. https://arxiv.org/abs/2003.01227

131Jupyter Notebook, PythonMay 11, 20214 years ago

Similar Papers

Cite this paper

@article{hobbhahn2020fast,
  title  = {Fast Predictive Uncertainty for Classification with Bayesian Deep Networks},
  author = {Marius Hobbhahn and Agustinus Kristiadi and Philipp Hennig},
  year   = {2020},
  eprint = {2003.01227},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.01227}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.01227.svg)](https://codeofpaper.com/paper/2003.01227)

Discussion