Bayesian Deep Learning via Subnetwork Inference

Erik Daxberger, Eric Nalisnick, James Urquhart Allingham, Javier Antorán, José Miguel Hernández-Lobato
10/28/2020
cs.LGstat.ML
bayesian

Official code: aleximmer/Laplace (553 stars, Python, MIT, last commit 2026-10-16).

Abstract

The Bayesian paradigm has the potential to solve core issues of deep neural networks such as poor calibration and data inefficiency. Alas, scaling Bayesian inference to large weight spaces often requires restrictive approximations.

Show full abstract

In this work, we show that it suffices to perform inference over a small subset of model weights in order to obtain accurate predictive posteriors. The other weights are kept as point estimates. This subnetwork inference framework enables us to use expressive, otherwise intractable, posterior approximations over such subsets. In particular, we implement subnetwork linearized Laplace as a simple, scalable Bayesian deep learning method: We first obtain a MAP estimate of all weights and then infer a full-covariance Gaussian posterior over a subnetwork using the linearized Laplace approximation. We propose a subnetwork selection strategy that aims to maximally preserve the model's predictive uncertainty. Empirically, our approach compares favorably to ensembles and less expressive posterior approximations over full networks. Our proposed subnetwork (linearized) Laplace method is implemented within the laplace PyTorch library at https://github.com/AlexImmer/Laplace.

View on arXivView PDF

Code Implementations(1)

aleximmer/LaplaceOfficial100%
MIT

Laplace approximations for Deep Learning.

55394Python, MakefileMar 12, 20211 months agoMIT
approximate-bayesian-inferencedeep-learninglaplace-approximationneural-network

Similar Papers

Cite this paper

@article{daxberger2020bayesian,
  title  = {Bayesian Deep Learning via Subnetwork Inference},
  author = {Erik Daxberger and Eric Nalisnick and James Urquhart Allingham and Javier Antorán and José Miguel Hernández-Lobato},
  year   = {2020},
  eprint = {2010.14689},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.14689}
}

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/2010.14689.svg)](https://codeofpaper.com/paper/2010.14689)

Discussion