Papers › Deterministic Variational Inference for Robust Bayesian Neural Networks

Deterministic Variational Inference for Robust Bayesian Neural Networks

9 Oct 2018ICLR 2019 5arXiv:1810.03958archive 2025-07-28

Anqi Wu, Sebastian Nowozin, Edward Meeds, Richard E. Turner, José Miguel Hernández-Lobato, Alexander L. Gaunt

Bayesian neural networks (BNNs) hold great promise as a flexible and principled solution to deal with uncertainty when learning from finite data. Among approaches to realize probabilistic inference in deep neural networks, variational Bayes (VB) is theoretically grounded, generally applicable, and computationally efficient. With wide recognition of potential advantages, why is it that variational Bayes has seen very limited practical use for BNNs in real applications? We argue that variational inference in neural networks is fragile: successful implementations require careful initialization and tuning of prior variances, as well as controlling the variance of Monte Carlo gradient estimates. We provide two innovations that aim to turn VB into a robust inference tool for Bayesian neural networks: first, we introduce a novel deterministic method to approximate moments in neural networks, eliminating gradient variance; second, we introduce a hierarchical prior for parameters and a novel Empirical Bayes procedure for automatically selecting prior variances. Combining these two innovations, the resulting method is highly efficient and robust. On the application of heteroscedastic regression we demonstrate good predictive performance over alternative approaches.

PaperPDFConference PDFCodeCode 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="1810.03958")

Code

Syntology Ran 0 of 23 code samples harvested from 3 repositories linked to this paper; 23 have no recorded run.

By repository: official repository: 7 samples from 1 repository, 0 ran; community (archive-listed): 16 samples from 2 repositories, 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.

Microsoft/deterministic-variational-inference officialmentioned in papermentioned on GitHubtfMIT report
markovalexander/DVI mentioned on GitHubpytorchMIT report
omwright/cov-prop-nn mentioned 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

23 samples harvested; 0 ran; 0 honoured the contract we drafted; 23 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.

23unverified

Licence: 0 of the 23 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 3 repositories linked to this paper, official or community; each sample names its own and says which. “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.

gaussian_cdf Microsoft/deterministic-variational-inference/bayes_util.py official repository unverified MIT (permissive) · 4f0d31ec0d21de1c · report
get_device_string Microsoft/deterministic-variational-inference/utils.py official repository unverified MIT (permissive) · 35c6488e12624aac · report
get_hypers Microsoft/deterministic-variational-inference/utils.py official repository unverified MIT (permissive) · 1c9fe43e56ed658f · report
glorot_init Microsoft/deterministic-variational-inference/gaussian_variables.py official repository unverified MIT (permissive) · a9439e641c4c1ff4 · report
restrict_dataset_size Microsoft/deterministic-variational-inference/utils.py official repository unverified MIT (permissive) · 8cc2f994e1088d1e · report
softrelu Microsoft/deterministic-variational-inference/bayes_util.py official repository unverified MIT (permissive) · 253775c48c31a4e3 · report
standard_gaussian Microsoft/deterministic-variational-inference/bayes_util.py official repository unverified MIT (permissive) · 4b42f948c28568f5 · report
autoload_csv omwright/cov-prop-nn/datasets.py community (archive-listed) unverified MIT (permissive) · e53a59f1614c0037 · report
gaussian_cdf markovalexander/DVI/core/bayesian_utils.py community (archive-listed) unverified MIT (permissive) · cdfb9235c506423b · report
gaussian_cdf omwright/cov-prop-nn/run_tightness_mnist.py community (archive-listed) unverified MIT (permissive) · e8e6d80b1447469d · report
generate_uci_data omwright/cov-prop-nn/datasets.py community (archive-listed) unverified MIT (permissive) · 9d250aca9cbb3e9d · report
get_mse omwright/cov-prop-nn/run_dvi.py community (archive-listed) unverified MIT (permissive) · b31269ddf9e7a14b · report
get_predictions markovalexander/DVI/core/utils.py community (archive-listed) unverified MIT (permissive) · 3628b68aed79c0e2 · report
matrix_diag_part markovalexander/DVI/core/bayesian_utils.py community (archive-listed) unverified MIT (permissive) · 5399bc831fe81e9b · report
one_hot_encoding markovalexander/DVI/core/utils.py community (archive-listed) unverified MIT (permissive) · 1aa2aea36b573636 · report
pred2acc markovalexander/DVI/core/utils.py community (archive-listed) unverified MIT (permissive) · 22db9db360759a69 · report
softrelu omwright/cov-prop-nn/run_tightness_mnist.py community (archive-listed) unverified MIT (permissive) · 3a80ea713ce9c133 · report
softrelu omwright/cov-prop-nn/dvi/bayes_utils.py community (archive-listed) unverified MIT (permissive) · 3d5e81c357b27586 · report
standard_gaussian markovalexander/DVI/core/bayesian_utils.py community (archive-listed) unverified MIT (permissive) · 2f1e2e89b495caf7 · report
standard_gaussian omwright/cov-prop-nn/run_tightness_mnist.py community (archive-listed) unverified MIT (permissive) · 229ae3d179dcefa5 · report
test omwright/cov-prop-nn/train_mnist.py community (archive-listed) unverified MIT (permissive) · 57b45b3540c780fe · report
train_epoch omwright/cov-prop-nn/run_dvi.py community (archive-listed) unverified MIT (permissive) · d1a76c1ba3b77dec · report
validate_model omwright/cov-prop-nn/run_dvi.py community (archive-listed) unverified MIT (permissive) · fafc757982dcd649 · report

Tasks

Variational Inference

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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