REBAR: Low-variance, unbiased gradient estimates for discrete latent variable models

George Tucker, Andriy Mnih, Chris J. Maddison, Dieterich Lawson, Jascha Sohl-Dickstein
3/21/2017
cs.LGstat.ML

Official code: tensorflow/models (77,659 stars, last commit 2026-04-29).

Abstract

Learning in models with discrete latent variables is challenging due to high variance gradient estimators. Generally, approaches have relied on control variates to reduce the variance of the REINFORCE estimator. Recent work (Jang et al. 2016, Maddison et al. 2016) has taken a different approach, introducing a continuous relaxation of discrete variables to produce low-variance, but biased, gradient estimates. In this work, we combine the two approaches through a novel control variate that produces low-variance, \emph{unbiased} gradient estimates. Then, we introduce a modification to the continuous relaxation and show that the tightness of the relaxation can be adapted online, removing it as a hyperparameter. We show state-of-the-art variance reduction on several benchmark generative modeling tasks, generally leading to faster convergence to a better final log-likelihood.

View on arXivView PDF

Code Implementations(1)

tensorflow/modelsOfficial100%

Models and examples built with TensorFlow

77,65944,853C++, CSSFeb 5, 20165 months agoNOASSERTION

Similar Papers

Cite this paper

@article{tucker2017rebar,
  title  = {REBAR: Low-variance, unbiased gradient estimates for discrete latent variable models},
  author = {George Tucker and Andriy Mnih and Chris J. Maddison and Dieterich Lawson and Jascha Sohl-Dickstein},
  year   = {2017},
  eprint = {1703.07370},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1703.07370}
}

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

Discussion