Structured Stochastic Gradient MCMC

Antonios Alexos, Alex Boyd, Stephan Mandt
7/19/2021
cs.LGstat.ML
bayesian

Official code: mandt-lab/Structured-SG-MCMC (2 stars, Jupyter Notebook, last commit 2023-09-10).

Abstract

Stochastic gradient Markov Chain Monte Carlo (SGMCMC) is considered the gold standard for Bayesian inference in large-scale models, such as Bayesian neural networks. Since practitioners face speed versus accuracy tradeoffs in these models, variational inference (VI) is often the preferable option.

Show full abstract

Unfortunately, VI makes strong assumptions on both the factorization and functional form of the posterior. In this work, we propose a new non-parametric variational approximation that makes no assumptions about the approximate posterior's functional form and allows practitioners to specify the exact dependencies the algorithm should respect or break. The approach relies on a new Langevin-type algorithm that operates on a modified energy function, where parts of the latent variables are averaged over samples from earlier iterations of the Markov chain. This way, statistical dependencies can be broken in a controlled way, allowing the chain to mix faster. This scheme can be further modified in a "dropout" manner, leading to even more scalability. We test our scheme for ResNet-20 on CIFAR-10, SVHN, and FMNIST. In all cases, we find improvements in convergence speed and/or final accuracy compared to SG-MCMC and VI.

View on arXivView PDF

Code Implementations(1)

Official code for ICML 2022 paper "Structured Stochastic Gradient MCMC"

22Jupyter Notebook, PythonMar 1, 20213 years ago

Similar Papers

Cite this paper

@article{alexos2021structured,
  title  = {Structured Stochastic Gradient MCMC},
  author = {Antonios Alexos and Alex Boyd and Stephan Mandt},
  year   = {2021},
  eprint = {2107.09028},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.09028}
}

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

Discussion