[Paper Review] How Good is the Bayes Posterior in Deep Neural Networks Really?
The paper shows that the Bayes posterior predictive can underperform SGD in deep nets, and that cold posteriors (T<1) often yield significantly better predictive performance; it investigates explanations and provides diagnostics for SG-MCMC accuracy.
During the past five years the Bayesian deep learning community has developed increasingly accurate and efficient approximate inference procedures that allow for Bayesian inference in deep neural networks. However, despite this algorithmic progress and the promise of improved uncertainty quantification and sample efficiency there are---as of early 2020---no publicized deployments of Bayesian neural networks in industrial practice. In this work we cast doubt on the current understanding of Bayes posteriors in popular deep neural networks: we demonstrate through careful MCMC sampling that the posterior predictive induced by the Bayes posterior yields systematically worse predictions compared to simpler methods including point estimates obtained from SGD. Furthermore, we demonstrate that predictive performance is improved significantly through the use of a "cold posterior" that overcounts evidence. Such cold posteriors sharply deviate from the Bayesian paradigm but are commonly used as heuristic in Bayesian deep learning papers. We put forward several hypotheses that could explain cold posteriors and evaluate the hypotheses through experiments. Our work questions the goal of accurate posterior approximations in Bayesian deep learning: If the true Bayes posterior is poor, what is the use of more accurate approximations? Instead, we argue that it is timely to focus on understanding the origin of the improved performance of cold posteriors.
Motivation & Objective
- Assess whether the Bayes posterior predictive in deep neural networks matches or exceeds SGD-based predictions.
- Demonstrate that tempered (cold) posteriors with T<1 can improve predictive performance beyond the Bayes posterior.
- Systematically evaluate hypotheses explaining cold posteriors and develop diagnostics for SG-MCMC accuracy.
- Provide practical guidelines and diagnostics to understand when Bayesian posteriors are beneficial in deep learning.
Proposed method
- Formulate posterior sampling via Langevin dynamics and SG-MCMC to approximate p(θ|D).
- Compare Bayes posterior predictions to SGD-trained baselines on ResNet-20/CIFAR-10 and CNN-LSTM/IMDB tasks.
- Temper the posterior with temperature T<1 to create cold posteriors and identify optimal ranges (e.g., T<<1).
- Introduce and apply diagnostics for SG-MCMC accuracy, including kinetic and configurational temperatures.
- Use preconditioning and cyclical time stepping to improve SG-MCMC simulation fidelity; relate discretization step h to SGD parameters.
Experimental results
Research questions
- RQ1Does the Bayes posterior predictive at T=1 perform as well as or worse than SGD-based models on standard deep learning benchmarks?
- RQ2Do cold posteriors with T<1 yield superior predictive performance, and what is the optimal temperature range?
- RQ3Which hypotheses can explain the cold posterior phenomenon, and which diagnostics can differentiate inference issues from priors or likelihood effects?
- RQ4Are SG-MCMC methods accurately approximating the intended posterior, and how do factors like minibatch noise or discretization affect results?
- RQ5How do priors and data practices (e.g., data augmentation, dropout) influence the Bayes posterior in deep nets?
Key findings
- Bayes posterior predictive at T=1 underperforms SGD on ResNet-20/CIFAR-10 and CNN-LSTM/IMDB tasks.
- Temperatures T<1 yield significantly better predictive performance, with optimal ranges often well below 1 (e.g., as low as 0.01–0.2 for IMDB and down to 10^-4 for CIFAR-10 in some experiments).
- SG-MCMC with preconditioning and cyclic time stepping can accurately simulate the posterior, supporting that inference accuracy is not the sole explanation for cold posteriors.
- Bias from poor priors or likelihood violations alone do not fully explain the cold posterior effect across models and datasets.
- Prior predictive analyses indicate standard Normal priors (e.g., N(0,I)) can be overly informative for large networks, suggesting prior choice impacts posterior behavior.
- Alternative posterior concepts (e.g., Masegosa posteriors) may offer more robust targets under misspecification than the Bayes posterior.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.