Deterministic Variational Inference for Robust Bayesian Neural Networks

Anqi Wu, Sebastian Nowozin, Edward Meeds, Richard E. Turner, José Miguel Hernández-Lobato +1 more
10/9/2018
cs.LGstat.ML

Official code: microsoft/deterministic-variational-inference (105 stars, MIT, last commit 2018-10-10).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Sample code for running deterministic variational inference to train Bayesian neural networks

10519Python, Jupyter NotebookOct 2, 20188 years agoMIT

Cite this paper

@article{wu2018deterministic,
  title  = {Deterministic Variational Inference for Robust Bayesian Neural Networks},
  author = {Anqi Wu and Sebastian Nowozin and Edward Meeds and Richard E. Turner and José Miguel Hernández-Lobato and Alexander L. Gaunt},
  year   = {2018},
  eprint = {1810.03958},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.03958}
}

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/1810.03958.svg)](https://codeofpaper.com/paper/1810.03958)

Discussion