Accelerated Linearized Laplace Approximation for Bayesian Deep Learning

Zhijie Deng, Feng Zhou, Jun Zhu
10/23/2022
cs.LG
bayesian

Official code: thudzj/ELLA (17 stars, Python, PyTorch, last commit 2022-10-12).

Abstract

Laplace approximation (LA) and its linearized variant (LLA) enable effortless adaptation of pretrained deep neural networks to Bayesian neural networks. The generalized Gauss-Newton (GGN) approximation is typically introduced to improve their tractability.

Show full abstract

However, LA and LLA are still confronted with non-trivial inefficiency issues and should rely on Kronecker-factored, diagonal, or even last-layer approximate GGN matrices in practical use. These approximations are likely to harm the fidelity of learning outcomes. To tackle this issue, inspired by the connections between LLA and neural tangent kernels (NTKs), we develop a Nystrom approximation to NTKs to accelerate LLA. Our method benefits from the capability of popular deep learning libraries for forward mode automatic differentiation, and enjoys reassuring theoretical guarantees. Extensive studies reflect the merits of the proposed method in aspects of both scalability and performance. Our method can even scale up to architectures like vision transformers. We also offer valuable ablation studies to diagnose our method. Code is available at \url{https://github.com/thudzj/ELLA}.

View on arXivView PDF

Code Implementations(1)

thudzj/ELLAOfficial100%
PyTorch

Code for Accelerated Linearized Laplace Approximation for Bayesian Deep Learning (ELLA, NeurIPS 22')

173PythonMar 30, 20224 years ago
bayesian-deep-learninglaplace-approximationpytorchuncertainty-quantification

Similar Papers

Cite this paper

@article{deng2022accelerated,
  title  = {Accelerated Linearized Laplace Approximation for Bayesian Deep Learning},
  author = {Zhijie Deng and Feng Zhou and Jun Zhu},
  year   = {2022},
  eprint = {2210.12642},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.12642}
}

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

Discussion