Compromise-free Bayesian neural networks

Kamran Javid, Will Handley, Mike Hobson, Anthony Lasenby
4/25/2020
stat.MLcs.LGstat.AP
bayesian

Official code: PolyChord/PolyChordLite (103 stars, Fortran, last commit 2026-02-26).

Abstract

We conduct a thorough analysis of the relationship between the out-of-sample performance and the Bayesian evidence (marginal likelihood) of Bayesian neural networks (BNNs), as well as looking at the performance of ensembles of BNNs, both using the Boston housing dataset. Using the state-of-the-art in nested sampling, we numerically sample the full (non-Gaussian and multimodal) network posterior and obtain numerical estimates of the Bayesian evidence, considering network models with up to 156 trainable parameters.

Show full abstract

The networks have between zero and four hidden layers, either $\tanh$ or $ReLU$ activation functions, and with and without hierarchical priors. The ensembles of BNNs are obtained by determining the posterior distribution over networks, from the posterior samples of individual BNNs re-weighted by the associated Bayesian evidence values. There is good correlation between out-of-sample performance and evidence, as well as a remarkable symmetry between the evidence versus model size and out-of-sample performance versus model size planes. Networks with $ReLU$ activation functions have consistently higher evidences than those with $\tanh$ functions, and this is reflected in their out-of-sample performance. Ensembling over architectures acts to further improve performance relative to the individual BNNs.

View on arXivView PDF

Code Implementations(1)

Public version of PolyChord: See polychord.co.uk for PolyChordPro

10335Fortran, PythonOct 10, 20189 months agoNOASSERTION
astronomybayesian-inferencecosmologygfortranlog-likelihood+8 more

Similar Papers

Cite this paper

@article{javid2020compromisefree,
  title  = {Compromise-free Bayesian neural networks},
  author = {Kamran Javid and Will Handley and Mike Hobson and Anthony Lasenby},
  year   = {2020},
  eprint = {2004.12211},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.12211}
}

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

Discussion