Streamlining Prediction in Bayesian Deep Learning

Rui Li, Marcus Klasson, Arno Solin, Martin Trapp
11/1/2024
8 citations
transformer-attentionbayesian

Official code: AaltoML/SUQ (12 stars, Python, MIT, last commit 2025-10-07).

Abstract

The rising interest in Bayesian deep learning (BDL) has led to a plethora of methods for estimating the posterior distribution. However, efficient computation of inferences, such as predictions, has been largely overlooked with Monte Carlo integration remaining the standard.

Show full abstract

In this work we examine streamlining prediction in BDL through a single forward pass without sampling. For this we use local linearisation on activation functions and local Gaussian approximations at linear layers. Thus allowing us to analytically compute an approximation to the posterior predictive distribution. We showcase our approach for both MLP and transformers, such as ViT and GPT-2, and assess its performance on regression and classification tasks. Open-source library: https://github.com/AaltoML/SUQ

View on arXivView PDF

Code Implementations(1)

AaltoML/SUQOfficial100%
MIT

SUQ: Streamlined Uncertainty Quantification

122PythonFeb 28, 20251 years agoMIT

Similar Papers

Cite this paper

@article{li2024streamlining,
  title  = {Streamlining Prediction in Bayesian Deep Learning},
  author = {Rui Li and Marcus Klasson and Arno Solin and Martin Trapp},
  year   = {2024},
  eprint = {2411.18425},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2411.18425},
  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/2411.18425.svg)](https://codeofpaper.com/paper/2411.18425)

Discussion