Papers › Streamlining Prediction in Bayesian Deep Learning

Streamlining Prediction in Bayesian Deep Learning

27 Nov 2024arXiv:2411.18425archive 2025-07-28

Rui Li, Marcus Klasson, Arno Solin, Martin Trapp

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. 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

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2411.18425")

Code

Syntology Ran 0 of 10 code samples harvested from 1 repository linked to this paper; 10 have no recorded run.

By repository: official repository: 10 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

aaltoml/suq officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 0 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from aaltoml/suq. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

forward_aW_diag aaltoml/suq/suq/diag_suq_mlp.py official repository unverified MIT (permissive) · b7495d2791bf5bbc · report
forward_aW_kron aaltoml/suq/suq/kron_suq_mlp.py official repository unverified MIT (permissive) · a0a7b4a473187555 · report
forward_activation_diag aaltoml/suq/suq/diag_suq_transformer.py official repository unverified MIT (permissive) · 086ba259d151663b · report
forward_activation_implicit_diag aaltoml/suq/suq/diag_suq_mlp.py official repository unverified MIT (permissive) · 8d0ae8eebf8d786b · report
forward_activation_implicit_full aaltoml/suq/suq/kron_suq_mlp.py official repository unverified MIT (permissive) · 621f1d22899ef0ce · report
forward_batch_norm_diag aaltoml/suq/suq/diag_suq_mlp.py official repository unverified MIT (permissive) · cf6ab4f51928d340 · report
forward_linear_diag_Bayesian_weight aaltoml/suq/suq/diag_suq_transformer.py official repository unverified MIT (permissive) · 1c271f27a5e3dc41 · report
forward_linear_diag_determinstic_weight aaltoml/suq/suq/diag_suq_transformer.py official repository unverified MIT (permissive) · 1e9f98732d611733 · report
streamline_mlp aaltoml/suq/suq/SUQ_MLP.py official repository unverified MIT (permissive) · 2b1aadd648250de3 · report
streamline_vit aaltoml/suq/suq/SUQ_ViT.py official repository unverified MIT (permissive) · 6f1a2485f8616e61 · report

Tasks

Deep LearningPrediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutGPT-2Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections