Variational Bayesian Last Layers

James Harrison, John Willes, Jasper Snoek
4/17/2024
cs.LGcs.CVstat.ML

No official code found. Best implementation: VectorInstitute/vbll (83 stars, MIT, last commit 2025-10-07).

Abstract

We introduce a deterministic variational formulation for training Bayesian last layer neural networks. This yields a sampling-free, single-pass model and loss that effectively improves uncertainty estimation. Our variational Bayesian last layer (VBLL) can be trained and evaluated with only quadratic complexity in last layer width, and is thus (nearly) computationally free to add to standard architectures. We experimentally investigate VBLLs, and show that they improve predictive accuracy, calibration, and out of distribution detection over baselines across both regression and classification. Finally, we investigate combining VBLL layers with variational Bayesian feature learning, yielding a lower variance collapsed variational inference method for Bayesian neural networks.

View on arXivView PDF

Code Implementations(1)

MIT

Simple (and cheap!) neural network uncertainty estimation

8310PythonOct 11, 20231 years agoMIT

Similar Papers

Cite this paper

@article{harrison2024variational,
  title  = {Variational Bayesian Last Layers},
  author = {James Harrison and John Willes and Jasper Snoek},
  year   = {2024},
  eprint = {2404.11599},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.11599v1},
  journal = {ICLR 2024 2024}
}

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

Discussion