English

Bayesian Deep Learning via Subnetwork Inference

Machine Learning 2022-03-15 v4 Machine Learning

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

Keywords

Cite

@article{arxiv.2010.14689,
  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},
  journal= {arXiv preprint arXiv:2010.14689},
  year   = {2022}
}

Comments

ICML 2021; 22 pages, extended version with supplementary material