Posterior Refinement Improves Sample Efficiency in Bayesian Neural Networks

Agustinus Kristiadi, Runa Eschenhagen, Philipp Hennig
5/20/2022
cs.LGstat.ML
bayesian

Official code: runame/laplace-refinement (11 stars, Python, MIT, last commit 2022-10-21).

Abstract

Monte Carlo (MC) integration is the de facto method for approximating the predictive distribution of Bayesian neural networks (BNNs). But, even with many MC samples, Gaussian-based BNNs could still yield bad predictive performance due to the posterior approximation's error.

Show full abstract

Meanwhile, alternatives to MC integration tend to be more expensive or biased. In this work, we experimentally show that the key to good MC-approximated predictive distributions is the quality of the approximate posterior itself. However, previous methods for obtaining accurate posterior approximations are expensive and non-trivial to implement. We, therefore, propose to refine Gaussian approximate posteriors with normalizing flows. When applied to last-layer BNNs, it yields a simple \emph{post hoc} method for improving pre-existing parametric approximations. We show that the resulting posterior approximation is competitive with even the gold-standard full-batch Hamiltonian Monte Carlo.

View on arXivView PDF

Code Implementations(1)

MIT

Posterior Refinement Improves Sample Efficiency in Bayesian Neural Networks

111Python, ShellSep 30, 20224 years agoMIT

Similar Papers

Cite this paper

@article{kristiadi2022posterior,
  title  = {Posterior Refinement Improves Sample Efficiency in Bayesian Neural Networks},
  author = {Agustinus Kristiadi and Runa Eschenhagen and Philipp Hennig},
  year   = {2022},
  eprint = {2205.10041},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.10041}
}

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

Discussion