A Simple Baseline for Bayesian Uncertainty in Deep Learning

By Wesley J. Maddox, Timur Garipov, Pavel Izmailov, Dmitry P. Vetrov, Andrew Gordon Wilson. 2019

1,004 citations recorded by the source corpus.

We propose SWA-Gaussian (SWAG), a simple, scalable, and general purpose approach for uncertainty representation and calibration in deep learning. Stochastic Weight Averaging (SWA), which computes the first moment of stochastic gradient descent (SGD) iterates with a modified learning rate schedule, has recently been shown to improve generalization in deep learning. With SWAG, we fit a Gaussian using the SWA solution as the first moment and a low rank plus diagonal covariance also derived from the SGD iterates, forming an approximate posterior distribution over neural network weights; we then sample from this Gaussian distribution to perform Bayesian model averaging. We empirically find that SWAG approximates the shape of the true posterior, in accordance with results describing the stationary distribution of SGD iterates. Moreover, we demonstrate that SWAG performs well on a wide variety of tasks, including out of sample detection, calibration, and transfer learning, in comparison to many popular alternatives including MC dropout, KFAC Laplace, SGLD, and temperature scaling.

Subfields: Artificial Intelligence, Safety, Robustness & Interpretability, Probabilistic & Bayesian Methods

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. Andrew Gordon Wilson
  3. Mohit Bansal
  4. Ali Farhadi
  5. Yoshua Bengio
  6. Quoc V. Le
  7. Pavel Izmailov
  8. Max Welling

In Safety, Robustness & Interpretability

  1. Andrew Gordon Wilson
  2. Pavel Izmailov
  3. Adrian Weller
  4. José Miguel Hernández-Lobato
  5. Umang Bhatt
  6. Erik A. Daxberger
  7. Q. Liao
  8. Stanislav Fort

In Probabilistic & Bayesian Methods

  1. Andrew Gordon Wilson
  2. Pavel Izmailov
  3. Richard E. Turner
  4. José Miguel Hernández-Lobato
  5. Dmitry P. Vetrov
  6. Mohammad Emtiyaz Khan
  7. Matthew D. Hoffman
  8. Dit-Yan Yeung

Citations in the corpus