BNNpriors: A library for Bayesian neural network inference with different prior distributions

Vincent Fortuin, Adrià Garriga-Alonso, Mark van der Wilk, Laurence Aitchison
5/14/2021
stat.MLcs.LG
bayesian

Official code: ratschlab/bnn_priors (61 stars, Python, MIT, last commit 2021-07-01).

Abstract

Bayesian neural networks have shown great promise in many applications where calibrated uncertainty estimates are crucial and can often also lead to a higher predictive performance. However, it remains challenging to choose a good prior distribution over their weights.

Show full abstract

While isotropic Gaussian priors are often chosen in practice due to their simplicity, they do not reflect our true prior beliefs well and can lead to suboptimal performance. Our new library, BNNpriors, enables state-of-the-art Markov Chain Monte Carlo inference on Bayesian neural networks with a wide range of predefined priors, including heavy-tailed ones, hierarchical ones, and mixture priors. Moreover, it follows a modular approach that eases the design and implementation of new custom priors. It has facilitated foundational discoveries on the nature of the cold posterior effect in Bayesian neural networks and will hopefully catalyze future research as well as practical applications in this area.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the paper "Bayesian Neural Network Priors Revisited"

6117Python, Jupyter NotebookFeb 12, 20215 years agoMIT

Similar Papers

Cite this paper

@article{fortuin2021bnnpriors,
  title  = {BNNpriors: A library for Bayesian neural network inference with different prior distributions},
  author = {Vincent Fortuin and Adrià Garriga-Alonso and Mark van der Wilk and Laurence Aitchison},
  year   = {2021},
  eprint = {2105.06964},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.06964}
}

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

Discussion