Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

What Are Bayesian Neural Network Posteriors Really Like?

About

The posterior over Bayesian neural network (BNN) parameters is extremely high-dimensional and non-convex. For computational reasons, researchers approximate this posterior using inexpensive mini-batch methods such as mean-field variational inference or stochastic-gradient Markov chain Monte Carlo (SGMCMC). To investigate foundational questions in Bayesian deep learning, we instead use full-batch Hamiltonian Monte Carlo (HMC) on modern architectures. We show that (1) BNNs can achieve significant performance gains over standard training and deep ensembles; (2) a single long HMC chain can provide a comparable representation of the posterior to multiple shorter chains; (3) in contrast to recent studies, we find posterior tempering is not needed for near-optimal performance, with little evidence for a "cold posterior" effect, which we show is largely an artifact of data augmentation; (4) BMA performance is robust to the choice of prior scale, and relatively similar for diagonal Gaussian, mixture of Gaussian, and logistic priors; (5) Bayesian neural networks show surprisingly poor generalization under domain shift; (6) while cheaper alternatives such as deep ensembles and SGMCMC methods can provide good generalization, they provide distinct predictive distributions from HMC. Notably, deep ensemble predictive distributions are similarly close to HMC as standard SGLD, and closer than standard variational inference.

Pavel Izmailov, Sharad Vikram, Matthew D. Hoffman, Andrew Gordon Wilson• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-10 (test)
Accuracy90.68
3381
Out-of-Distribution DetectionCIFAR100 (ID) vs SVHN (OOD) (test)
AUROC85.8
71
Out-of-Distribution DetectionCIFAR-100 in-distribution TinyImageNet out-of-distribution (test)
AUROC77
52
Out-of-Distribution DetectionCIFAR-100 (In-distribution) vs CIFAR-10 (OOD) (test)
AUROC72.5
44
Image ClassificationCIFAR-10
Accuracy92.3
33
Robustness under covariate shiftCIFAR-10-C
Accuracy83.5
24
Out-of-Distribution DetectionCIFAR-10 (In-distribution) vs SVHN (OOD) (test)
AUROC89.2
20
Text ClassificationIMDB (test)
Accuracy0.868
19
Image ClassificationCIFAR10C level 1-5--
18
Out-of-Distribution DetectionCIFAR-10 (in-dist) CIFAR-100 (out-dist)
AUROC0.853
14
Showing 10 of 20 rows

Other info

Follow for update