Skip to main content
QUICK REVIEW

[Paper Review] Monte Carlo Gradient Estimation in Machine Learning

Shakir Mohamed, Mihaela Rosca|arXiv (Cornell University)|Jun 25, 2019
Machine Learning and AlgorithmsComputer Science149 references85 citations
TL;DR

The paper surveys Monte Carlo gradient estimators for gradients of expectations with respect to distribution parameters, detailing score-function, pathwise, and measure-valued methods, their connections, and variance reduction techniques across diverse fields.

ABSTRACT

This paper is a broad and accessible survey of the methods we have at our disposal for Monte Carlo gradient estimation in machine learning and across the statistical sciences: the problem of computing the gradient of an expectation of a function with respect to parameters defining the distribution that is integrated; the problem of sensitivity analysis. In machine learning research, this gradient problem lies at the core of many learning problems, in supervised, unsupervised and reinforcement learning. We will generally seek to rewrite such gradients in a form that allows for Monte Carlo estimation, allowing them to be easily and efficiently used and analysed. We explore three strategies--the pathwise, score function, and measure-valued gradient estimators--exploring their historical development, derivation, and underlying assumptions. We describe their use in other fields, show how they are related and can be combined, and expand on their possible generalisations. Wherever Monte Carlo gradient estimators have been derived and deployed in the past, important advances have followed. A deeper and more widely-held understanding of this problem will lead to further advances, and it is these advances that we wish to support.

Motivation & Objective

  • Motivate and formalize the problem of computing the gradient of an expectation with respect to distributional parameters.
  • Survey three principal Monte Carlo gradient estimators and their derivations: score-function, pathwise, and measure-valued.
  • Explain variance reduction techniques and practical considerations for applying these estimators across learning, inference, and decision problems.
  • Show connections and generalizations of estimators and provide guidance for future research.

Proposed method

  • Derive the gradient of an expectation with respect to distribution parameters using the score function, leading to the score-function estimator.
  • Describe the pathwise (derivative of the cost) approach, including when differentiability permits its use.
  • Introduce the measure-valued gradient estimator as a derivative of the measure, including coupling and variance properties.
  • Compare estimators on simple Gaussian examples to illustrate variance and cost trade-offs.
  • Discuss variance reduction techniques such as control variates for the score-function estimator and coupling for measure-valued estimators.
  • Outline how the estimators can be related, combined, and generalized for broader applications.

Experimental results

Research questions

  • RQ1How can we compute the gradient of an expectation with respect to distributional parameters when closed forms are unavailable?
  • RQ2What are the fundamental estimators (score-function, pathwise, measure-valued) for Monte Carlo gradient estimation, and what are their assumptions and limitations?
  • RQ3How do these estimators compare in terms of variance, bias, and computational cost across representative problems?
  • RQ4What variance reduction strategies are effective for these estimators, and under what conditions do they apply?
  • RQ5How can these gradient estimators be applied and generalized across fields such as variational inference, reinforcement learning, sensitivity analysis, and experimental design?

Key findings

  • Three main gradient estimators are analyzed: score-function, pathwise, and measure-valued, each with distinct assumptions and trade-offs.
  • Estimators are consistent and unbiased under their respective conditions, but they exhibit different variance profiles and computational costs.
  • Variance can be substantially reduced using control variates for the score-function estimator and coupling for the measure-valued estimator.
  • The cost function's differentiability and the problem structure influence the suitability and performance of each estimator.
  • The paper connects these estimators and discusses how they can be combined or generalized for broader problems.
  • Applications across variational inference, reinforcement learning, sensitivity analysis, and discrete event systems are highlighted as settings where these estimators are central.

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.