Generalizing Hamiltonian Monte Carlo with Neural Networks

Daniel Levy, Matthew D. Hoffman, Jascha Sohl-Dickstein
11/25/2017
139 citations
stat.MLcs.AIcs.LG

Official code: brain-research/l2hmc (185 stars, Jupyter Notebook, Apache-2.0, last commit 2018-08-14).

Abstract

We present a general-purpose method to train Markov chain Monte Carlo kernels, parameterized by deep neural networks, that converge and mix quickly to their target distribution. Our method generalizes Hamiltonian Monte Carlo and is trained to maximize expected squared jumped distance, a proxy for mixing speed.

Show full abstract

We demonstrate large empirical gains on a collection of simple but challenging distributions, for instance achieving a 106x improvement in effective sample size in one case, and mixing when standard HMC makes no measurable progress in a second. Finally, we show quantitative and qualitative gains on a real-world task: latent-variable generative modeling. We release an open source TensorFlow implementation of the algorithm.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

TensorFlow implementation for training MCMC samplers from the paper: Generalizing Hamiltonian Monte Carlo with Neural Network

18540Jupyter Notebook, PythonSep 15, 20178 years agoApache-2.0

Similar Papers

Cite this paper

@article{levy2017generalizing,
  title  = {Generalizing Hamiltonian Monte Carlo with Neural Networks},
  author = {Daniel Levy and Matthew D. Hoffman and Jascha Sohl-Dickstein},
  year   = {2017},
  eprint = {1711.09268},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1711.09268}
}

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

Discussion