Skip to main content
QUICK REVIEW

[Paper Review] GO Gradient for Expectation-Based Objectives

Yulai Cong, Miaoyun Zhao|arXiv (Cornell University)|Jan 1, 2019
Machine Learning in Materials ScienceMaterials Science7 citations
TL;DR

This paper introduces the General and One-sample (GO) gradient, a novel method for computing low-variance, unbiased gradients of expectation-based objectives with respect to parameters of arbitrary distributions—continuous or discrete—without requiring reparameterization. The approach enables efficient statistical back-propagation through common random variables using only a single Monte Carlo sample, achieving variance levels comparable to the reparameterization trick while maintaining broad applicability.

ABSTRACT

Within many machine learning algorithms, a fundamental problem concerns efficient calculation of an unbiased gradient wrt parameters $\gammav$ for expectation-based objectives $\Ebb_{q_{\gammav} (\yv)} [f(\yv)]$. Most existing methods either (i) suffer from high variance, seeking help from (often) complicated variance-reduction techniques; or (ii) they only apply to reparameterizable continuous random variables and employ a reparameterization trick. To address these limitations, we propose a General and One-sample (GO) gradient that (i) applies to many distributions associated with non-reparameterizable continuous or discrete random variables, and (ii) has the same low-variance as the reparameterization trick. We find that the GO gradient often works well in practice based on only one Monte Carlo sample (although one can of course use more samples if desired). Alongside the GO gradient, we develop a means of propagating the chain rule through distributions, yielding statistical back-propagation, coupling neural networks to common random variables.

Motivation & Objective

  • To address the limitations of existing gradient estimation methods that either suffer from high variance or are restricted to reparameterizable continuous variables.
  • To develop a general-purpose gradient estimator applicable to both continuous and discrete distributions without requiring complex variance-reduction techniques.
  • To enable efficient back-propagation through distributions in neural networks by extending the chain rule to stochastic computational graphs.
  • To achieve variance levels comparable to the reparameterization trick while working with only a single Monte Carlo sample.

Proposed method

  • Proposes the GO gradient as a unified estimator for expectation-based objectives, applicable to both non-reparameterizable continuous and discrete distributions.
  • Derives a closed-form expression for the gradient that leverages the score function and a specific reweighting mechanism to reduce variance.
  • Introduces a statistical back-propagation framework that propagates gradients through distributions by treating them as differentiable components in a computational graph.
  • Employs a one-sample Monte Carlo approximation that maintains low variance by exploiting structural properties of the distribution and objective function.
  • Develops a chain rule for distributions that allows end-to-end training of neural networks with stochastic layers.
  • Uses a reweighting scheme based on the log-derivative trick and distribution-specific derivatives to stabilize gradient estimates.

Experimental results

Research questions

  • RQ1Can a single-sample gradient estimator achieve low variance across both continuous and discrete non-reparameterizable distributions?
  • RQ2How can the chain rule be systematically extended to enable back-propagation through stochastic distributions in neural networks?
  • RQ3What is the theoretical and empirical performance of the GO gradient compared to existing methods in terms of variance and convergence?
  • RQ4Can the GO gradient be applied to complex models involving both discrete and continuous latent variables without variance-reduction overhead?
  • RQ5How does the one-sample nature of the GO gradient affect training stability and sample efficiency in practice?

Key findings

  • The GO gradient achieves variance levels comparable to the reparameterization trick, even when using only a single Monte Carlo sample.
  • The method is broadly applicable to both continuous and discrete distributions, including those that are non-reparameterizable.
  • Statistical back-propagation enables end-to-end training of neural networks with stochastic layers, even when the stochasticity arises from non-reparameterizable distributions.
  • Empirical results show that the GO gradient converges faster and with lower variance than score function estimators in various benchmark tasks.
  • The approach enables efficient training of models with mixed discrete and continuous latent variables without requiring complex variance-reduction techniques.
  • The one-sample nature of the GO gradient leads to significant computational savings while maintaining high sample efficiency.

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.