Laplace Redux -- Effortless Bayesian Deep Learning

Erik Daxberger, Agustinus Kristiadi, Alexander Immer, Runa Eschenhagen, Matthias Bauer +1 more
6/28/2021
cs.LGstat.ML

Official code: aleximmer/Laplace (550 stars, MIT, last commit 2026-10-16). 1 more implementation below.

Abstract

Bayesian formulations of deep learning have been shown to have compelling theoretical properties and offer practical functional benefits, such as improved predictive uncertainty quantification and model selection. The Laplace approximation (LA) is a classic, and arguably the simplest family of approximations for the intractable posteriors of deep neural networks. Yet, despite its simplicity, the LA is not as popular as alternatives like variational Bayes or deep ensembles. This may be due to assumptions that the LA is expensive due to the involved Hessian computation, that it is difficult to implement, or that it yields inferior results. In this work we show that these are misconceptions: we (i) review the range of variants of the LA including versions with minimal cost overhead; (ii) introduce "laplace", an easy-to-use software library for PyTorch offering user-friendly access to all major flavors of the LA; and (iii) demonstrate through extensive experiments that the LA is competitive with more popular alternatives in terms of performance, while excelling in terms of computational cost. We hope that this work will serve as a catalyst to a wider adoption of the LA in practical deep learning, including in domains where Bayesian approaches are not typically considered at the moment.

View on arXivView PDF

Code Implementations(2)

aleximmer/LaplaceOfficial100%
MIT

Laplace approximations for Deep Learning.

55091Python, MakefileMar 12, 20215 days agoMIT
approximate-bayesian-inferencedeep-learninglaplace-approximationneural-network
MIT

Laplace Redux -- Effortless Bayesian Deep Learning

479Shell, PythonJan 16, 20221 years agoMIT

Similar Papers

Cite this paper

@article{daxberger2021laplace,
  title  = {Laplace Redux -- Effortless Bayesian Deep Learning},
  author = {Erik Daxberger and Agustinus Kristiadi and Alexander Immer and Runa Eschenhagen and Matthias Bauer and Philipp Hennig},
  year   = {2021},
  eprint = {2106.14806},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.14806}
}

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

Discussion