[Paper Review] Laplace Redux -- Effortless Bayesian Deep Learning
The paper surveys Laplace approximation variants for Bayesian deep learning, introduces the laplace PyTorch library, and demonstrates competitive, cost-efficient performance versus popular Bayesian methods, including post-hoc applicability to pre-trained models.
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.
Motivation & Objective
- Motivate Bayesian neural networks and uncertainty quantification in deep learning.
- Survey scalable Laplace approximation variants and their applicability to modern networks.
- Introduce a user-friendly PyTorch library (laplace) implementing major LA flavors.
- Demonstrate empirical competitiveness and computational efficiency of LA vs alternatives.
- Showcase practical use-cases including post-hoc application to pre-trained models and continual learning.
Proposed method
- Formulates the Laplace posterior p(θ|D) ≈ N(θMAP, Σ) via a second-order expansion around the MAP.
- Reviews four scalability-enabling components for LAs (weight selection, Hessian approximations, hyperparameter tuning, predictive distributions).
- Discusses Hessian factorization approaches (full, diagonal, Kronecker-factored, low-rank) and their links to Fisher/GGN.
- Describes online vs post-hoc marginal likelihood-based hyperparameter tuning for empirical Bayes.
- Outlines predictive inference strategies, including Monte Carlo, probit approximations, extended probit, and Laplace bridge.
- Presents laplace as a modular toolkit that delegates Hessian computation to BackPACK/ASDL backends and supports multiple LA variants.
Experimental results
Research questions
- RQ1How do different Laplace approximation variants compare in predictive performance and calibration on standard benchmarks?
- RQ2Can Laplace approximations scale to modern deep architectures with acceptable computational cost?
- RQ3Does the LA provide robust uncertainty quantification under distribution shift and out-of-distribution settings?
- RQ4Is post-hoc application to pre-trained networks a viable, cost-efficient alternative to full Bayesian training?
- RQ5What are practical guidelines for hyperparameter tuning (e.g., prior variance, exposure to marginal likelihood) in LA-based Bayesian DL?
Key findings
- Laplace approximations are competitive with strong Bayesian baselines while offering superior computational efficiency.
- Post-hoc last-layer LA with KFAC/GGN strikes a favorable balance between performance and cost for pre-trained networks.
- Empirical Fisher-based Hessians tend to help OOD detection, while GGN tends to help in-distribution metrics.
- ML-based hyperparameter tuning via marginal likelihood can be performed online or post-hoc, enabling empirical Bayes.
- LA-based methods significantly reduce training and prediction time compared to ensembles, HMC, or SWAG while maintaining good calibration.
- The approach extends to diverse architectures, including transformers, and supports continual learning as a strong baseline.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.