Reducing Reparameterization Gradient Variance

Andrew C. Miller, Nicholas J. Foti, Alexander D'Amour, Ryan P. Adams
5/22/2017
90 citations
stat.MLstat.COstat.ME
bayesian

Official code: andymiller/ReducedVarianceReparamGradients (33 stars, Python, MIT, last commit 2017-06-05).

Abstract

Optimization with noisy gradients has become ubiquitous in statistics and machine learning. Reparameterization gradients, or gradient estimates computed via the "reparameterization trick," represent a class of noisy gradients often used in Monte Carlo variational inference (MCVI).

Show full abstract

However, when these gradient estimators are too noisy, the optimization procedure can be slow or fail to converge. One way to reduce noise is to use more samples for the gradient estimate, but this can be computationally expensive. Instead, we view the noisy gradient as a random variable, and form an inexpensive approximation of the generating procedure for the gradient sample. This approximation has high correlation with the noisy gradient by construction, making it a useful control variate for variance reduction. We demonstrate our approach on non-conjugate multi-level hierarchical models and a Bayesian neural net where we observed gradient variance reductions of multiple orders of magnitude (20-2,000x).

View on arXivView PDF

Code Implementations(1)

MIT

Reducing Reparameterization Gradient Variance code.

333Python, RMay 20, 20179 years agoMIT

Similar Papers

Cite this paper

@article{miller2017reducing,
  title  = {Reducing Reparameterization Gradient Variance},
  author = {Andrew C. Miller and Nicholas J. Foti and Alexander D'Amour and Ryan P. Adams},
  year   = {2017},
  eprint = {1705.07880},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1705.07880}
}

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

Discussion