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 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="1505.05424")

Code

Syntology Ran 12 of 15 code samples harvested from 8 repositories linked to this paper; 3 have no recorded run. Of those that ran: 4 ran · honoured contract; 1 ran · violated contract; 7 ran · our draft was wrong.

By repository: community (archive-listed): 14 samples from 8 repositories, 12 ran; 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.

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

Anou9531/Bayesian-CNN mentioned on GitHubpytorchMIT report
IntelLabs/bayesian-torch mentioned on GitHubpytorch report
LMikeH/ocbnn-lmikh mentioned on GitHubpytorchMIT report
Medabid1/Bayes-by-backprob mentioned on GitHubtf report
MehdiChelh/Zoo mentioned on GitHub report
MiuGod0126/Bayes_backprop_paddle mentioned on GitHubpaddle report
SulemanKhurram/ThesisExperiments mentioned on GitHubpytorch report
SuperKam91/bnn mentioned on GitHubtf report
ThirstyScholar/bayes-by-backprop mentioned on GitHubpytorch report
Windxy/BayesianCNN-Based-on-Paddle mentioned on GitHubpaddle report
beauCoker/bayesian_neural_networks mentioned on GitHubpytorch report
chandu-97/BayesByBackprop mentioned on GitHubpytorch report
cognitivemodeling/finn mentioned on GitHubpytorch report
cpark321/bayesian-neural-networks mentioned on GitHubpytorch report
cpark321/uncertainty-deep-learning mentioned on GitHubpytorch report
czgdp1807/bayesiandl mentioned on GitHubtf report
danielkelshaw/RadialBNN mentioned on GitHubpytorch report
danielkelshaw/WeightUncertainty mentioned on GitHubpytorchMIT report
dennysemko/VectorizedBayesByBackprop mentioned on GitHubpytorch report
hbahadirsahin/bayes_by_backprop mentioned on GitHubtf report
hrdwsong/BayesianCNN-Paddle mentioned on GitHubpaddle report
kumar-shridhar/BayesianConvNet mentioned on GitHubpytorchMIT report
kumar-shridhar/PyTorch-BayesianCNN mentioned on GitHubpytorchMIT report
liqichen6688/baycnn mentioned on GitHubpytorch report
lucadellalib/bayestorch mentioned on GitHubpytorchApache-2.0 report
lucadellalib/bdl-rul-svgd mentioned on GitHubpytorchApache-2.0 report
luke-97/BayesByBackprop mentioned on GitHubpytorch report
nomercy77/Implementing-Bayesian-CNN mentioned on GitHubpytorch report
piEsposito/blitz-bayesian-deep-learning mentioned on GitHubpytorchGPL-3.0 report
sbieringer/classificationsurrogates mentioned on GitHubpytorch report
tensorflow/models mentioned on GitHubtf report
tensorflow/models mentioned on GitHubtf report
yliess86/Bayeformers mentioned on GitHubpytorch 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

15 samples harvested; 12 ran; 4 honoured the contract we drafted; 3 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.

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; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

dic2cuda yliess86/Bayeformers/examples/bert_glue.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 546da61322f2938c · report
gaussian saxena-mayur/Weight-Uncertainty-in-Neural-Networks/FCN_Image_Classification/BBB.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · e0552067b0269afd · report
get_activation beauCoker/bayesian_neural_networks/src/variational_bnns.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · fe8746a4dd93bc88 · report
get_uncertainty_per_batch liqichen6688/baycnn/uncertainty_estimation.py community (archive-listed) ran · our draft was wrong MIT (permissive) · dd46eb517cc22519 · report
get_uncertainty_per_image liqichen6688/baycnn/uncertainty_estimation.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 3698e0abeea9d5d0 · report
is_module_bayesian yliess86/Bayeformers/bayeformers/nn/model.py community (archive-listed) ran · violated contract MIT (permissive) · fb0cb1ed76593741 · report
log_gaussian saxena-mayur/Weight-Uncertainty-in-Neural-Networks/FCN_Image_Classification/BBB.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · d0dfc3df96e8289c · report
mixture_prior saxena-mayur/Weight-Uncertainty-in-Neural-Networks/FCN_Image_Classification/BBB.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · ce7244d7dca4ff4f · report
random_shuffle czgdp1807/bayesiandl/train/bnn_mnist.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · e401f74c2731c8dc · report
take_subset czgdp1807/bayesiandl/train/bnn_mnist.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 46fa14942323b489 · report
test danielkelshaw/RadialBNN/mnist_radial_bnn.py community (archive-listed) ran · honoured contract MIT (permissive) · bdea437fe2c544f2 · report
validate IntelLabs/bayesian-torch/bayesian_torch/examples/main_bayesian_cifar.py community (archive-listed) ran · honoured contract BSD-3-Clause (permissive) · dc1056d38a46ffbd · report
data_parallel SulemanKhurram/ThesisExperiments/utils/BayesianDataParallel/BBBDataParallel.py community (archive-listed) unverified MIT (permissive) · 36bcc73ea59ec42b · report
train danielkelshaw/RadialBNN/mnist_radial_bnn.py community (archive-listed) unverified MIT (permissive) · 5cc87715e60867cd · report
accuracy identical code first harvested elsewhere 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