Estimating Gradients for Discrete Random Variables by Sampling without Replacement

Wouter Kool, Herke van Hoof, Max Welling
2/14/2020
cs.LGstat.ML

Official code: wouterkool/estimating-gradients-without-replacement (39 stars, Jupyter Notebook, last commit 2020-02-14).

Abstract

We derive an unbiased estimator for expectations over discrete random variables based on sampling without replacement, which reduces variance as it avoids duplicate samples. We show that our estimator can be derived as the Rao-Blackwellization of three different estimators.

Show full abstract

Combining our estimator with REINFORCE, we obtain a policy gradient estimator and we reduce its variance using a built-in control variate which is obtained without additional model evaluations. The resulting estimator is closely related to other gradient estimators. Experiments with a toy problem, a categorical Variational Auto-Encoder and a structured prediction problem show that our estimator is the only estimator that is consistently among the best estimators in both high and low entropy settings.

View on arXivView PDF

Code Implementations(1)

Estimating Gradients for Discrete Random Variables by Sampling without Replacement

396Jupyter Notebook, PythonSep 25, 20196 years ago

Similar Papers

Cite this paper

@article{kool2020estimating,
  title  = {Estimating Gradients for Discrete Random Variables by Sampling without Replacement},
  author = {Wouter Kool and Herke van Hoof and Max Welling},
  year   = {2020},
  eprint = {2002.06043},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.06043}
}

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

Discussion