Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Improving predictions of Bayesian neural nets via local linearization

About

The generalized Gauss-Newton (GGN) approximation is often used to make practical Bayesian deep learning approaches scalable by replacing a second order derivative with a product of first order derivatives. In this paper we argue that the GGN approximation should be understood as a local linearization of the underlying Bayesian neural network (BNN), which turns the BNN into a generalized linear model (GLM). Because we use this linearized model for posterior inference, we should also predict using this modified model instead of the original one. We refer to this modified predictive as "GLM predictive" and show that it effectively resolves common underfitting problems of the Laplace approximation. It extends previous results in this vein to general likelihoods and has an equivalent Gaussian process formulation, which enables alternative inference schemes for BNNs in function space. We demonstrate the effectiveness of our approach on several standard classification datasets as well as on out-of-distribution detection. We provide an implementation at https://github.com/AlexImmer/BNN-predictions.

Alexander Immer, Maciej Korzepa, Matthias Bauer• 2020

Related benchmarks

TaskDatasetResultRank
Image ClassificationFashionMNIST (test)
Accuracy91
218
Out-of-Distribution DetectionCIFAR-10 vs SVHN (test)
AUROC0.72
101
Out-of-Distribution DetectionCIFAR-10 vs CIFAR-100 (test)
AUROC54
93
Out-of-Distribution DetectionFashionMNIST (ID) vs MNIST (OoD)
AUROC0.937
61
Out-of-Distribution DetectionMNIST vs FASHIONMNIST (test)
AUROC0.88
27
RegressionBoston UCI (test)--
26
RegressionUCI KIN8NM (test)--
25
Out-of-Distribution DetectionKMNIST (test)
AUROC0.93
22
Out-of-Distribution DetectionCELEBA vs Hold-out (avg) (test)
AUROC70
16
Out-of-Distribution DetectionCIFAR-10 Corruption avg (test)
AUROC57
16
Showing 10 of 62 rows

Other info

Follow for update