Bayesian Layers: A Module for Neural Network Uncertainty

By Dustin Tran, Michael W. Dusenberry, Mark van der Wilk, Danijar Hafner. 2018

150 citations recorded by the source corpus.

We describe Bayesian Layers, a module designed for fast experimentation with neural network uncertainty. It extends neural network libraries with drop-in replacements for common layers. This enables composition via a unified abstraction over deterministic and stochastic functions and allows for scalability via the underlying system. These layers capture uncertainty over weights (Bayesian neural nets), pre-activation units (dropout), activations ("stochastic output layers"), or the function itself (Gaussian processes). They can also be reversible to propagate uncertainty from input to output. We include code examples for common architectures such as Bayesian LSTMs, deep GPs, and flow-based models. As demonstration, we fit a 5-billion parameter "Bayesian Transformer" on 512 TPUv2 cores for uncertainty in machine translation and a Bayesian dynamics model for model-based planning. Finally, we show how Bayesian Layers can be used within the Edward2 probabilistic programming language for probabilistic programs with stochastic processes.

Subfields: Artificial Intelligence, Statistical and Nonlinear Physics

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Sergey Levine
  2. Pieter Abbeel
  3. Yoshua Bengio
  4. Danijar Hafner
  5. Timothy P. Lillicrap
  6. Jimmy Ba
  7. Chelsea Finn
  8. Ruslan Salakhutdinov

In Statistical and Nonlinear Physics

  1. Thomas Parr
  2. Pedro A. Ortega
  3. Nicolas Manfred Otto Heess
  4. Danijar Hafner
  5. Jimmy Ba
  6. Karl J. Friston
  7. Jasper Snoek
  8. Q. Liao

Citations in the corpus