Skip to main content
QUICK REVIEW

[Paper Review] Estimating Gradients for Discrete Random Variables by Sampling without Replacement

Wouter Kool, Herke van Hoof|arXiv (Cornell University)|Feb 14, 2020
Reinforcement Learning in RoboticsComputer Science49 references16 citations
TL;DR

This paper proposes an unbiased gradient estimator for discrete random variables using sampling without replacement, which reduces variance by eliminating duplicate samples. By deriving a built-in control variate through Rao-Blackwellization, the method achieves lower variance than REINFORCE and outperforms other estimators consistently across both high- and low-entropy settings in experiments on variational autoencoders and structured prediction tasks.

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. 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.

Motivation & Objective

  • To reduce variance in gradient estimation for discrete random variables used in reinforcement learning and latent variable models.
  • To develop an unbiased gradient estimator that avoids duplicate samples by sampling without replacement.
  • To derive a control variate that reduces variance without requiring additional model evaluations.
  • To evaluate performance across diverse settings, including high- and low-entropy distributions.
  • To demonstrate consistent superiority over existing estimators in both discrete VAEs and structured prediction tasks.

Proposed method

  • Derives an unbiased gradient estimator based on unordered sets of samples drawn without replacement from a discrete distribution.
  • Uses Rao-Blackwellization to derive the estimator from three different base estimators, ensuring variance reduction.
  • Introduces a built-in control variate derived from the same samples, maintaining unbiasedness without extra model evaluations.
  • Applies the estimator within the REINFORCE framework to produce a low-variance policy gradient estimator.
  • Employs a restricted distribution model to compute probabilities under sampling without replacement, adjusting for removed elements.
  • Validates the method using both synthetic and real-world benchmarks, including a categorical VAE and a TSP solver.

Experimental results

Research questions

  • RQ1Can sampling without replacement reduce variance in gradient estimation for discrete distributions compared to with-replacement sampling?
  • RQ2Can an unbiased gradient estimator be constructed using unordered sets of without-replacement samples?
  • RQ3Does the proposed estimator outperform existing methods like REINFORCE, Gumbel-Softmax, and ARSM in both high- and low-entropy regimes?
  • RQ4Can a built-in control variate be derived without additional model evaluations, preserving unbiasedness?
  • RQ5How does the estimator perform in practical applications such as discrete VAEs and structured prediction?

Key findings

  • The proposed estimator consistently ranks among the best performers in both high- and low-entropy settings across all evaluated tasks.
  • In the categorical VAE experiment, the estimator achieved the lowest validation -ELBO, outperforming REINFORCE with replacement and ARSM.
  • On the TSP benchmark, the estimator enabled faster convergence and lower expected tour length compared to REINFORCE with replacement.
  • The gradient log variance of the proposed estimator was significantly lower than REINFORCE with replacement, especially in high-entropy settings.
  • The built-in control variate reduced variance without requiring additional model evaluations, maintaining unbiasedness.
  • The method achieved stable training without divergence, even in challenging settings like large latent spaces, outperforming standard REINFORCE with replacement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.