Skip to main content
QUICK REVIEW

[Paper Review] Rao-Blackwellized Stochastic Gradients for Discrete Distributions

Runjing Liu, Jeffrey Regier|arXiv (Cornell University)|Oct 10, 2018
Domain Adaptation and Few-Shot LearningComputer Science25 references5 citations
TL;DR

This paper introduces a Rao-Blackwellization-based meta-procedure to reduce the variance of stochastic gradients for discrete distributions without introducing bias, particularly effective when the distribution is sparse (i.e., concentrated on few categories). The method analytically sums over high-probability categories, significantly improving convergence speed and final performance in tasks like semi-supervised classification and pixel attention, outperforming REINFORCE, NVIL, RELAX, and Gumbel-softmax in both speed and accuracy.

ABSTRACT

We wish to compute the gradient of an expectation over a finite or countably infinite sample space having $K \leq \infty$ categories. When $K$ is indeed infinite, or finite but very large, the relevant summation is intractable. Accordingly, various stochastic gradient estimators have been proposed. In this paper, we describe a technique that can be applied to reduce the variance of any such estimator, without changing its bias---in particular, unbiasedness is retained. We show that our technique is an instance of Rao-Blackwellization, and we demonstrate the improvement it yields on a semi-supervised classification problem and a pixel attention task.

Motivation & Objective

  • To reduce the variance of stochastic gradient estimators for expectations over discrete, high- or infinite-dimensional sample spaces without introducing bias.
  • To develop a general-purpose variance reduction technique applicable to any unbiased stochastic gradient estimator for discrete distributions, especially in settings with sparse probability mass functions.
  • To improve the practicality of gradient-based optimization in models with discrete latent variables, such as in extreme classification or attention mechanisms, where standard methods suffer from high variance.
  • To demonstrate that analytical summation over high-probability categories leads to substantial variance reduction, particularly when only a few categories have significant mass.

Proposed method

  • The method applies Rao-Blackwellization to decompose the expectation into two parts: the high-probability atoms (summed exactly) and the remaining low-probability atoms (estimated stochastically).
  • It uses a meta-procedure that can be combined with any existing unbiased stochastic gradient estimator, such as REINFORCE or REINFORCE with control variates, to reduce variance while preserving unbiasedness.
  • The algorithm identifies the top-K categories with the highest probabilities under the distribution $ q_{\eta}(z) $, computes their contribution exactly, and estimates the rest via Monte Carlo sampling.
  • The approach is anytime, meaning variance reduction increases with computational budget—more categories can be summed exactly as resources allow.
  • The method is grounded in statistical theory, specifically Rao-Blackwellization, which guarantees variance reduction under the law of total variance.
  • It is particularly effective in sparse settings, such as extreme classification or attention mechanisms, where only a few categories are plausible or active.

Experimental results

Research questions

  • RQ1Can variance in stochastic gradient estimation for discrete distributions be reduced without introducing bias?
  • RQ2How effective is Rao-Blackwellization when applied to univariate discrete random variables with many categories?
  • RQ3Does analytical summation over high-probability categories lead to significant variance reduction in practical deep learning tasks?
  • RQ4How does the proposed method compare to existing baselines like REINFORCE, NVIL, RELAX, and Gumbel-softmax in terms of convergence speed and final performance?
  • RQ5Can the method be efficiently applied in structured or multivariate discrete settings, such as latent Markov chains or attention mechanisms?

Key findings

  • On the semi-supervised classification task, the Rao-Blackwellized REINFORCE estimator converged faster and achieved a lower negative ELBO than REINFORCE, NVIL, and RELAX.
  • In the pixel attention task, the method reached a negative ELBO of 500 in approximately 44 seconds, compared to 110 seconds for RELAX, demonstrating faster convergence.
  • Gumbel-softmax failed to converge to a reasonable ELBO due to high bias from the straight-through estimator, while the proposed method remained stable and accurate.
  • NVIL converged quickly but to a worse ELBO than the proposed method, indicating that faster convergence does not imply better performance.
  • The method achieved the smallest negative ELBO among all baselines on the moving MNIST task, demonstrating superior optimization quality.
  • The computational cost per epoch was higher than other methods (15.4s vs. 8.7–11.1s), but the gains in convergence speed and final performance justified the overhead.

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.