Noise Contrastive Priors for Functional Uncertainty

Danijar Hafner, Dustin Tran, Timothy Lillicrap, Alex Irpan, James Davidson
7/24/2018
stat.MLcs.LG

Official code: gradientinstitute/aboleth (127 stars, Apache-2.0, TensorFlow, last commit 2021-07-27). 1 more implementation below.

Abstract

Obtaining reliable uncertainty estimates of neural network predictions is a long standing challenge. Bayesian neural networks have been proposed as a solution, but it remains open how to specify their prior. In particular, the common practice of an independent normal prior in weight space imposes relatively weak constraints on the function posterior, allowing it to generalize in unforeseen ways on inputs outside of the training distribution. We propose noise contrastive priors (NCPs) to obtain reliable uncertainty estimates. The key idea is to train the model to output high uncertainty for data points outside of the training distribution. NCPs do so using an input prior, which adds noise to the inputs of the current mini batch, and an output prior, which is a wide distribution given these inputs. NCPs are compatible with any model that can output uncertainty estimates, are easy to scale, and yield reliable uncertainty estimates throughout training. Empirically, we show that NCPs prevent overfitting outside of the training distribution and result in uncertainty estimates that are useful for active learning. We demonstrate the scalability of our method on the flight delays data set, where we significantly improve upon previously published results.

View on arXivView PDF

Code Implementations(2)

TensorFlowApache-2.0

A bare-bones TensorFlow framework for Bayesian deep learning and Gaussian process approximation

12710Python, MakefileFeb 8, 20175 years agoApache-2.0
bayesian-inferencebayesian-machine-learningdeep-learningdeep-neural-networksgaussian-processes+1 more
brain-research/ncpCommunity100%
Apache-2.0

Reliable Uncertainty Estimates in Deep Neural Networks using Noise Contrastive Priors

6213PythonJul 20, 20186 years agoApache-2.0

Similar Papers

Cite this paper

@article{hafner2018noise,
  title  = {Noise Contrastive Priors for Functional Uncertainty},
  author = {Danijar Hafner and Dustin Tran and Timothy Lillicrap and Alex Irpan and James Davidson},
  year   = {2018},
  eprint = {1807.09289},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1807.09289}
}

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

Discussion