Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networks

Agustinus Kristiadi, Matthias Hein, Philipp Hennig
2/24/2020
stat.MLcs.LG
bayesian

Official code: wiseodd/last_layer_laplace (83 stars, Jupyter Notebook, BSD-3-Clause, last commit 2021-10-18).

Abstract

The point estimates of ReLU classification networks---arguably the most widely used neural network architecture---have been shown to yield arbitrarily high confidence far away from the training data. This architecture, in conjunction with a maximum a posteriori estimation scheme, is thus not calibrated nor robust.

Show full abstract

Approximate Bayesian inference has been empirically demonstrated to improve predictive uncertainty in neural networks, although the theoretical analysis of such Bayesian approximations is limited. We theoretically analyze approximate Gaussian distributions on the weights of ReLU networks and show that they fix the overconfidence problem. Furthermore, we show that even a simplistic, thus cheap, Bayesian approximation, also fixes these issues. This indicates that a sufficient condition for a calibrated uncertainty on a ReLU network is "to be a bit Bayesian". These theoretical results validate the usage of last-layer Bayesian approximation and motivate a range of a fidelity-cost trade-off. We further validate these findings empirically via various standard experiments using common deep ReLU networks and Laplace approximations.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Last-layer Laplace approximation code examples

8311Jupyter Notebook, PythonJun 10, 20205 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{kristiadi2020being,
  title  = {Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networks},
  author = {Agustinus Kristiadi and Matthias Hein and Philipp Hennig},
  year   = {2020},
  eprint = {2002.10118},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.10118}
}

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

Discussion