On Uncertainty, Tempering, and Data Augmentation in Bayesian Classification

Sanyam Kapoor, Wesley J. Maddox, Pavel Izmailov, Andrew Gordon Wilson
3/30/2022
cs.LGstat.ML
bayesian

Official code: activatedgeek/understanding-bayesian-classification (20 stars, Apache-2.0, last commit 2022-04-01).

Abstract

Aleatoric uncertainty captures the inherent randomness of the data, such as measurement noise. In Bayesian regression, we often use a Gaussian observation model, where we control the level of aleatoric uncertainty with a noise variance parameter.

Show full abstract

By contrast, for Bayesian classification we use a categorical distribution with no mechanism to represent our beliefs about aleatoric uncertainty. Our work shows that explicitly accounting for aleatoric uncertainty significantly improves the performance of Bayesian neural networks. We note that many standard benchmarks, such as CIFAR, have essentially no aleatoric uncertainty. Moreover, we show data augmentation in approximate inference has the effect of softening the likelihood, leading to underconfidence and profoundly misrepresenting our honest beliefs about aleatoric uncertainty. Accordingly, we find that a cold posterior, tempered by a power greater than one, often more honestly reflects our beliefs about aleatoric uncertainty than no tempering -- providing an explicit link between data augmentation and cold posteriors. We show that we can match or exceed the performance of posterior tempering by using a Dirichlet observation model, where we explicitly control the level of aleatoric uncertainty, without any need for tempering.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

On Uncertainty, Tempering, and Data Augmentation in Bayesian Classification

202Mar 30, 20224 years agoApache-2.0
aleatoric-uncertaintybayesian-inferencebayesian-neural-networksclassificationdeep-learning+4 more

Similar Papers

Cite this paper

@article{kapoor2022uncertainty,
  title  = {On Uncertainty, Tempering, and Data Augmentation in Bayesian Classification},
  author = {Sanyam Kapoor and Wesley J. Maddox and Pavel Izmailov and Andrew Gordon Wilson},
  year   = {2022},
  eprint = {2203.16481},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.16481}
}

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/2203.16481.svg)](https://codeofpaper.com/paper/2203.16481)

Discussion