The Cold Posterior Effect in Deep Learning

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 261 papers98 conceptsfrozen 2026-10-04

In standard Bayesian inference, the posterior distribution is the "gold standard" for prediction. Theory tells us that if we have a prior $p(\theta)$ and a likelihood $p(D|\theta)$, the optimal way to make predictions is to integrate over the posterior $p(\theta|D) \propto p(D|\theta) p(\theta)$.

However, in the world of Deep Learning, this theory hits a wall. Practitioners found that Bayesian Neural Networks (BNNs) perform significantly better when they artificially "sharpen" the posterior by introducing a temperature parameter $T < 1$:

$$p_T(\theta|D) \propto (p(D|\theta) p(\theta))^{1/T}$$

When $T$ is small (a "cold" posterior), the distribution concentrates around the modes, often leading to better accuracy and calibration. This phenomenon, known as the Cold Posterior Effect (CPE), suggests a fundamental "identity crisis" in Bayesian deep learning: if the theory is correct, why do we need this heuristic hack to make it work?

The Information Overcounting Hypothesis

One of the most intuitive explanations for the CPE involves how we train modern networks. Gregor Bachmann, Lorenzo Noci, and Thomas Hofmann argue in How Tempering Fixes Data Augmentation in Bayesian Neural Networks that the culprit is data augmentation.

In a standard BNN, we treat every training example as an independent and identically distributed (i.i.d.) observation. But when we use data augmentation, we show the model multiple versions of the same image (rotated, cropped, or flipped). The Bayesian update treats these as entirely new pieces of evidence, effectively overcounting the information. Tempering acts as a correction factor, rescaling the likelihood to account for the "effective" sample size of the data.

Evidence for this is found in What Are Bayesian Neural Network Posteriors Really Like?, where researchers used massive compute to run high-fidelity Hamiltonian Monte Carlo (HMC) simulations. They found that when data augmentation is removed, the need for cold posteriors largely vanishes, and the model performs optimally at $T=1$.

The Curation Bias and Likelihood Mismatch

Even without data augmentation, the CPE persists in some settings. Laurence Aitchison proposes a different structural reason in A statistical theory of cold posteriors in deep neural networks.

Standard Bayesian likelihoods assume that data is sampled randomly from the world. However, benchmark datasets like CIFAR-10 or ImageNet are "curated." Humans have filtered out ambiguous, blurry, or "difficult" images, leaving only high-consensus examples. This curation process implicitly provides information that the standard likelihood doesn't account for. By sharpening the posterior (cooling it), we are essentially telling the model to be more certain than the raw likelihood would suggest, matching the "artificial" certainty of the curated dataset.

Prior Misspecification in High Dimensions

A third perspective focuses on the "Bayesian" part of the BNN: the prior. Most BNNs use simple Gaussian priors on the weights, but as Vincent Fortuin and colleagues note in Bayesian Neural Network Priors Revisited, these priors don't translate well to the functional behavior of the network.

In high-dimensional spaces, the volume of the prior is concentrated in areas that might not correspond to "good" functions. Dominik Schnaus and Daniel Cremers suggest in Learning Expressive Priors for Generalization and Uncertainty Estimation in Neural Networks that the CPE is a symptom of these uninformative priors. When we use more "expressive," data-driven priors, the optimal temperature shifts back toward $T=1$. Essentially, we use cold temperatures to "force" the model away from the bad functional regions encouraged by poor priors.

Is it Just Underfitting?

Finally, some researchers argue that the CPE isn't a deep theoretical mystery, but a practical optimization issue. Yi-Shan Wu and Andres R Masegosa demonstrate in If there is no underfitting, there is no Cold Posterior Effect that the effect is strongly correlated with model capacity. If a model is flexible enough and the training is long enough to avoid underfitting, the performance gap between $T=1$ and $T<1$ narrows significantly.

Similarly, Samuel Duffield and Kaelan Donatella suggest in their work on the posteriors library that the CPE is often an artifact of poor distribution approximations. Variational Inference (VI) and Laplace approximations often produce distributions that are too "blurry" or restrictive. Cooling the posterior is a simple way to counteract the over-dispersion inherent in these approximations.

Summary of Intuition

The Cold Posterior Effect is likely not caused by a single flaw, but by a combination of factors that all push in the same direction:

  1. Data Augmentation makes the model think it has more independent data than it actually does.
  2. Dataset Curation removes the natural noise the model expects to see.
  3. Weight-Space Priors are often a poor fit for the functions we actually want to learn.
  4. Approximation Methods (like VI) tend to overestimate uncertainty, which cooling corrects.

While the "cold posterior" remains a necessary tool for state-of-the-art performance, the field is moving toward resolving it by building more principled likelihoods and functional priors.

Papers in this version

Showing 60 of 61 papers.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 61 papers
  2. Version 1 · 2026-10-04 · 61 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_cold_posterior_effect_ccd78989,
  title = {cold posterior effect},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/cold-posterior-effect/rdr_ccd78989b9ec4cf69462e6e900066c74},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_the_cold_posterior_effect_in_deep_learni_ccd78989_v1,
  title = {The Cold Posterior Effect in Deep Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/the-cold-posterior-effect-in-deep-learning/rdr_ccd78989b9ec4cf69462e6e900066c74/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}