Improving predictions of Bayesian neural nets via local linearization

Alexander Immer, Maciej Korzepa, Matthias Bauer
8/19/2020
stat.MLcs.LG
bayesian

Official code: aleximmer/BNN-predictions (16 stars, Jupyter Notebook, last commit 2022-12-30).

Abstract

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

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Improving predictions of Bayesian neural nets via local linearization, AISTATS 2021

168Jupyter Notebook, PythonFeb 22, 20213 years ago

Similar Papers

Cite this paper

@article{immer2020improving,
  title  = {Improving predictions of Bayesian neural nets via local linearization},
  author = {Alexander Immer and Maciej Korzepa and Matthias Bauer},
  year   = {2020},
  eprint = {2008.08400},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.08400}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2008.08400.svg)](https://codeofpaper.com/paper/2008.08400)

Discussion