Papers › Weight Uncertainty in Neural Networks

Weight Uncertainty in Neural Networks

20 May 2015arXiv:1505.05424archive 2025-07-28

Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, Daan Wierstra

We introduce a new, efficient, principled and backpropagation-compatible algorithm for learning a probability distribution on the weights of a neural network, called Bayes by Backprop. It regularises the weights by minimising a compression cost, known as the variational free energy or the expected lower bound on the marginal likelihood. We show that this principled kind of regularisation yields comparable performance to dropout on MNIST classification. We then demonstrate how the learnt uncertainty in the weights can be used to improve generalisation in non-linear regression problems, and how this weight uncertainty can be used to drive the exploration-exploitation trade-off in reinforcement learning.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 15 code samples: 14 from 8 repositories linked to this paper, 1 identical to code harvested from another paper's repository. Across all 15: 12 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 4 honoured, 1 violated, 0 with no contract checked; 7 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 7 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 14 samples from 8 repositories, 12 ran (5 with no instrument failure; 7 where Syntology's instrument failed); 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 8 of its repositories that Syntology harvested for other papers:

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

38 repositories listed; official and paper-mentioned ones first.

Anou9531/Bayesian-CNN mentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to A Comprehensive guide to Bayesian Convolutional Neural Network with Variational Inference (arXiv:1901.02731; that paper's own run record: 14 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 0 violated, 10 with no contract checked; 4 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
IntelLabs/bayesian-torch mentioned on GitHubpytorchSyntology: 1 sample, 1 ran (0 instrument-failed) · 0 unverified report
LMikeH/ocbnn-lmikh mentioned on GitHubpytorchMITSyntology: not harvested report
Medabid1/Bayes-by-backprob mentioned on GitHubtfSyntology: not harvested report
MehdiChelh/Zoo mentioned on GitHubSyntology: not harvested report
MiuGod0126/Bayes_backprop_paddle mentioned on GitHubpaddleSyntology: not harvested report
SulemanKhurram/ThesisExperiments mentioned on GitHubpytorchSyntology: 1 sample, 0 ran · 1 unverified report
SuperKam91/bnn mentioned on GitHubtfSyntology: not harvested report
ThirstyScholar/bayes-by-backprop mentioned on GitHubpytorchSyntology: not harvested report
Windxy/BayesianCNN-Based-on-Paddle mentioned on GitHubpaddleSyntology: not harvested report
beauCoker/bayesian_neural_networks mentioned on GitHubpytorchSyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
chandu-97/BayesByBackprop mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Auto-Encoding Variational Bayes (arXiv:1312.6114; that paper's own run record: 140 ran (of which 52 constructed an object rather than computing a result; 120 with no instrument failure: 4 honoured, 2 violated, 114 with no contract checked; 20 where Syntology's instrument failed) · 59 unverified); nothing checks that they implement this paper's method. report
cognitivemodeling/finn mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Augmenting Physical Models with Deep Networks for Complex Dynamics Forecasting (arXiv:2010.04456; that paper's own run record: 3 ran (of which 1 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 1 where Syntology's instrument failed) · 1 unverified) and Fourier Neural Operator for Parametric Partial Differential Equations (arXiv:2010.08895; that paper's own run record: 23 ran (of which 5 constructed an object rather than computing a result; 20 with no instrument failure: 4 honoured, 1 violated, 15 with no contract checked; 3 where Syntology's instrument failed) · 10 unverified); nothing checks that they implement this paper's method. report
cpark321/bayesian-neural-networks mentioned on GitHubpytorchSyntology: not harvested report
cpark321/uncertainty-deep-learning mentioned on GitHubpytorchSyntology: not harvested report
czgdp1807/bayesiandl mentioned on GitHubtfSyntology: 2 samples, 2 ran (1 instrument-failed) · 0 unverified report
danielkelshaw/RadialBNN mentioned on GitHubpytorchSyntology: 2 samples, 1 ran (0 instrument-failed) · 1 unverified report
danielkelshaw/WeightUncertainty mentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Radial Bayesian Neural Networks: Beyond Discrete Support In Large-Scale Bayesian Deep Learning (arXiv:1907.00865; that paper's own run record: 10 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 1 honoured, 0 violated, 9 with no contract checked; 0 where Syntology's instrument failed) · 2 unverified); nothing checks that they implement this paper's method. report
dennysemko/VectorizedBayesByBackprop mentioned on GitHubpytorchSyntology: not harvested report
felix-laumann/Bayesian_CNN_ContinualLearning mentioned on GitHubpytorchSyntology: not harvested report
hansungj/BayesianNeuralNetworkDiscretizedGibbsSampler mentioned on GitHubtfSyntology: not harvested report
hbahadirsahin/bayes_by_backprop mentioned on GitHubtfSyntology: not harvested report
hrdwsong/BayesianCNN-Paddle mentioned on GitHubpaddleSyntology: not harvested report
kumar-shridhar/BayesianConvNet mentioned on GitHubpytorchMITSyntology: not harvested report
kumar-shridhar/PyTorch-BayesianCNN mentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to A Comprehensive guide to Bayesian Convolutional Neural Network with Variational Inference (arXiv:1901.02731; that paper's own run record: 14 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 0 violated, 10 with no contract checked; 4 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
liqichen6688/baycnn mentioned on GitHubpytorchSyntology: 2 samples, 2 ran (2 instrument-failed) · 0 unverified report
lucadellalib/bayestorch mentioned on GitHubpytorchApache-2.0Syntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Stein Variational Gradient Descent: A General Purpose Bayesian Inference Algorithm (arXiv:1608.04471; that paper's own run record: 5 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 0 honoured, 0 violated, 5 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
lucadellalib/bdl-rul-svgd mentioned on GitHubpytorchApache-2.0Syntology: not harvested report
luke-97/BayesByBackprop mentioned on GitHubpytorchSyntology: not harvested report
nomercy77/Implementing-Bayesian-CNN mentioned on GitHubpytorchSyntology: not harvested report
piEsposito/blitz-bayesian-deep-learning mentioned on GitHubpytorchGPL-3.0Syntology: not harvested report
saxena-mayur/Weight-Uncertainty-in-Neural-Networks mentioned on GitHubpytorchSyntology: 3 samples, 3 ran (2 instrument-failed) · 0 unverified report
sbieringer/classificationsurrogates mentioned on GitHubpytorchSyntology: not harvested report
tensorflow/models mentioned on GitHubtfSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift (arXiv:1502.03167; that paper's own run record: 19 ran (of which 5 constructed an object rather than computing a result; 14 with no instrument failure: 0 honoured, 0 violated, 14 with no contract checked; 5 where Syntology's instrument failed) · 2 unverified), Deep Residual Learning for Image Recognition (arXiv:1512.03385; that paper's own run record: 254 ran (of which 108 constructed an object rather than computing a result; 163 with no instrument failure: 3 honoured, 1 violated, 159 with no contract checked; 91 where Syntology's instrument failed) · 123 unverified), Wide Residual Networks (arXiv:1605.07146; that paper's own run record: 66 ran (of which 31 constructed an object rather than computing a result; 47 with no instrument failure: 0 honoured, 0 violated, 47 with no contract checked; 19 where Syntology's instrument failed) · 30 unverified) and 1 more (every one in this page's JSON twin); nothing checks that they implement this paper's method. report
tensorflow/models mentioned on GitHubtfSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift (arXiv:1502.03167; that paper's own run record: 19 ran (of which 5 constructed an object rather than computing a result; 14 with no instrument failure: 0 honoured, 0 violated, 14 with no contract checked; 5 where Syntology's instrument failed) · 2 unverified), Deep Residual Learning for Image Recognition (arXiv:1512.03385; that paper's own run record: 254 ran (of which 108 constructed an object rather than computing a result; 163 with no instrument failure: 3 honoured, 1 violated, 159 with no contract checked; 91 where Syntology's instrument failed) · 123 unverified), Wide Residual Networks (arXiv:1605.07146; that paper's own run record: 66 ran (of which 31 constructed an object rather than computing a result; 47 with no instrument failure: 0 honoured, 0 violated, 47 with no contract checked; 19 where Syntology's instrument failed) · 30 unverified) and 1 more (every one in this page's JSON twin); nothing checks that they implement this paper's method. report
tushar-agarwal2909/Bayes_by_Backprop-TF mentioned on GitHubtfSyntology: not harvested report
yliess86/Bayeformers mentioned on GitHubpytorchSyntology: 2 samples, 2 ran (1 instrument-failed) · 0 unverified report
ENSTA-U2IS-AI/torch-uncertainty pytorchApache-2.0Syntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Simple and Scalable Predictive Uncertainty Estimation using Deep Ensembles (arXiv:1612.01474; that paper's own run record: 10 ran (of which 8 constructed an object rather than computing a result; 9 with no instrument failure: 0 honoured, 0 violated, 9 with no contract checked; 1 where Syntology's instrument failed) · 1 unverified), mixup: Beyond Empirical Risk Minimization (arXiv:1710.09412; that paper's own run record: 36 ran (of which 5 constructed an object rather than computing a result; 14 with no instrument failure: 0 honoured, 0 violated, 14 with no contract checked; 22 where Syntology's instrument failed) · 11 unverified), Laplace Redux -- Effortless Bayesian Deep Learning (arXiv:2106.14806; that paper's own run record: 1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 0 where Syntology's instrument failed) · 4 unverified) and 2 more (every one in this page's JSON twin); nothing checks that they implement this paper's method. 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

15 samples harvested: 12 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 4 honoured, 1 violated, 0 with no contract checked; 7 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

4ran · honoured contract
1ran · violated contract
7ran · our draft was wrong
3unverified

Licence: 7 of the 15 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 8 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. 1 sample is listed last, in a group without a repository. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

IntelLabs/bayesian-torch community (archive-listed) 1 sample, 1 ran (0 instrument-failed) · 0 unverified
validate in 313 papers bayesian_torch/examples/main_bayesian_cifar.py ran · honoured contract BSD-3-Clause (permissive) · dc1056d38a46ffbd · report fixture: signature args:Args/0/?, val_loader:DataLoader/0/?, model:callable/0/?, criterion:callable/0/?, epoch:int/0/int, tb_writer:NoneType/0/? · returned float · level recorded 2026-09-22
SulemanKhurram/ThesisExperiments community (archive-listed) 1 sample, 0 ran · 1 unverified
data_parallel in 13 papers utils/BayesianDataParallel/BBBDataParallel.py unverified MIT (permissive) · 36bcc73ea59ec42b · report
beauCoker/bayesian_neural_networks community (archive-listed) 1 sample, 1 ran (1 instrument-failed) · 0 unverified
get_activation in 218 papers src/variational_bnns.py ran · our draft was wrong no licence file found · pointer only · fe8746a4dd93bc88 · report fixture: signature activation_type:str/0/str · returned function · level recorded 2026-09-22
czgdp1807/bayesiandl community (archive-listed) 2 samples, 2 ran (1 instrument-failed) · 0 unverified
random_shuffle train/bnn_mnist.py ran · honoured contract fingerprinted no licence file found · pointer only · e401f74c2731c8dc · report fixture: signature x:ndarray/2/float, y:ndarray/1/int · returned tuple · level recorded 2026-09-22
take_subset train/bnn_mnist.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 46fa14942323b489 · report fixture: signature x:Tensor/2/float, y:Tensor/1/int, size:int/0/int, count:int/0/int · returned tuple · level recorded 2026-09-22
danielkelshaw/RadialBNN community (archive-listed) 2 samples, 1 ran (0 instrument-failed) · 1 unverified
test in 377 papers mnist_radial_bnn.py ran · honoured contract MIT (permissive) · bdea437fe2c544f2 · report fixture: signature model:callable/0/?, testloader:DataLoader/0/?, device:device/0/? · returned tuple · level recorded 2026-09-22
train in 522 papers mnist_radial_bnn.py unverified MIT (permissive) · 5cc87715e60867cd · report
liqichen6688/baycnn community (archive-listed) 2 samples, 2 ran (2 instrument-failed) · 0 unverified
get_uncertainty_per_batch uncertainty_estimation.py ran · our draft was wrong MIT (permissive) · dd46eb517cc22519 · report fixture: returned tuple · level recorded 2026-09-22
get_uncertainty_per_image uncertainty_estimation.py ran · our draft was wrong MIT (permissive) · 3698e0abeea9d5d0 · report fixture: signature model:callable/0/?, input_image:Tensor/3/float, T:int/0/int, normalized:bool/0/bool · returned tuple · level recorded 2026-09-22
saxena-mayur/Weight-Uncertainty-in-Neural-Networks community (archive-listed) 3 samples, 3 ran (2 instrument-failed) · 0 unverified
gaussian in 218 papers
census: 8 implementations from 9 papers, 8 distinct outputs across 4 buckets, one shared input per bucket this sample: bucket 1 of 4, arg 1: rank 2, kind float, dtype float32 · arg 2: rank 2, kind float, dtype float32 · arg 3: rank 2, kind float, dtype float32
FCN_Image_Classification/BBB.py ran · our draft was wrong fingerprinted no licence file found · pointer only · e0552067b0269afd · report fixture: signature x:Tensor/2/float, mu:Tensor/2/float, sigma:Tensor/2/float · returned Tensor · level recorded 2026-09-22
log_gaussian in 9 papers FCN_Image_Classification/BBB.py ran · honoured contract fingerprinted no licence file found · pointer only · d0dfc3df96e8289c · report fixture: signature x:float/0/float, mu:float/0/float, sigma:float/0/float · returned float · level recorded 2026-09-22
mixture_prior FCN_Image_Classification/BBB.py ran · our draft was wrong fingerprinted no licence file found · pointer only · ce7244d7dca4ff4f · report fixture: signature input:Tensor/2/float, pi:float/0/float, s1:float/0/float, s2:float/0/float · returned Tensor · level recorded 2026-09-22
yliess86/Bayeformers community (archive-listed) 2 samples, 2 ran (1 instrument-failed) · 0 unverified
dic2cuda examples/bert_glue.py ran · our draft was wrong MIT (permissive) · 546da61322f2938c · report fixture: signature dic:dict/0/?, device:str/0/str · returned dict · level recorded 2026-09-22
is_module_bayesian bayeformers/nn/model.py ran · violated contract MIT (permissive) · fb0cb1ed76593741 · report fixture: signature module:callable/0/? · returned bool · level recorded 2026-09-22
Repository not located 1 sample, 0 ran · 1 unverified
1 sample is identical to code Syntology harvested from another paper's repository; this paper's own copy was not located, so no repository is named and no licence is recorded.
accuracy in 872 papers
census: 8 implementations from 7 papers, 7 distinct outputs across 6 buckets, one shared input per bucket
repository not located unverified licence of this copy not recorded · f0c9a29156911331 · report

Tasks

Bayesian InferenceGeneral ClassificationReinforcement LearningReinforcement Learning (RL)regressionreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Dropout

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