Papers › On Uncertainty, Tempering, and Data Augmentation in Bayesian Classification

On Uncertainty, Tempering, and Data Augmentation in Bayesian Classification

30 Mar 2022arXiv:2203.16481archive 2025-07-28

Sanyam Kapoor, Wesley J. Maddox, Pavel Izmailov, Andrew Gordon Wilson

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.16481")

Code

Syntology Ran 3 of 16 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract.

By repository: official repository: 16 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

activatedgeek/bayesian-classification officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 3 ran; 2 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · violated contract
13unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from activatedgeek/bayesian-classification. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

float_parameter activatedgeek/bayesian-classification/src/data_aug/augmentations.py official repository ran · honoured contract Apache-2.0 (permissive) · be1cf2403304fa6d · report
int_parameter activatedgeek/bayesian-classification/src/data_aug/augmentations.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · beaa91443124b324 · report
sample_level activatedgeek/bayesian-classification/src/data_aug/augmentations.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 5cc8d4764ac07a35 · report
aug activatedgeek/bayesian-classification/src/data_aug/datasets.py official repository unverified Apache-2.0 (permissive) · f3e585fbf55734ee · report
collect_runs activatedgeek/bayesian-classification/src/bnn_priors/bnn_priors/notebook_utils.py official repository unverified Apache-2.0 (permissive) · 27e48eb779078e1a · report
device activatedgeek/bayesian-classification/src/bnn_priors/bnn_priors/exp_utils.py official repository unverified Apache-2.0 (permissive) · f35c35e0ab818b93 · report
ewma activatedgeek/bayesian-classification/src/bnn_priors/bnn_priors/plot.py official repository unverified Apache-2.0 (permissive) · 8f08beab287a74d2 · report
flatten activatedgeek/bayesian-classification/src/bnn_priors/bnn_priors/notebook_utils.py official repository unverified Apache-2.0 (permissive) · 0529d320cd63ce5a · report
get_cosine_schedule activatedgeek/bayesian-classification/src/bnn_priors/bnn_priors/utils.py official repository unverified Apache-2.0 (permissive) · 212c42ec4fea4835 · report
get_sizes activatedgeek/bayesian-classification/src/bnn_priors/bnn_priors/plot.py official repository unverified Apache-2.0 (permissive) · 8b17daa681f75fdc · report
prepare_transforms activatedgeek/bayesian-classification/src/data_aug/datasets.py official repository unverified Apache-2.0 (permissive) · 39e9624185b2cc27 · report
test activatedgeek/bayesian-classification/experiments/train_aug_lik.py official repository unverified Apache-2.0 (permissive) · b13c39f5f6f594b3 · report
test_bma activatedgeek/bayesian-classification/experiments/train_aug_lik.py official repository unverified Apache-2.0 (permissive) · 12cf4ec8f4c807be · report
train_test_split activatedgeek/bayesian-classification/src/data_aug/datasets.py official repository unverified Apache-2.0 (permissive) · 4dbfc79b7cf9df58 · report
unique_cols activatedgeek/bayesian-classification/src/bnn_priors/bnn_priors/notebook_utils.py official repository unverified Apache-2.0 (permissive) · 34decb89bfa1acc6 · report
weighted_var_se activatedgeek/bayesian-classification/src/bnn_priors/bnn_priors/plot.py official repository unverified Apache-2.0 (permissive) · 3fed205996d7794e · report

Tasks

ClassificationData Augmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections