Highlight

Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation

Compares four methods for propagating gradients through stochastic or hard-nonlinear neurons, including the straight-through estimator.

Based on

Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation

By Yoshua Bengio, Nicholas Léonard, Aaron C. CourvillearXiv.org
Read original article →

The paper studies how to train models containing stochastic neurons or hard, non-smooth non-linearities, where the central difficulty is estimating the gradient of a loss function with respect to such units' inputs—that is, whether one can back-propagate through them. It examines the problem and compares four families of solutions applicable in different settings: a minimum-variance unbiased gradient estimator for stochastic binary neurons (a special case of REINFORCE); a new decomposition of a binary stochastic neuron into a stochastic binary part and a smooth differentiable part that approximates its expected effect to first order; the injection of additive or multiplicative noise into an otherwise differentiable computational graph; and a straight-through estimator that heuristically copies the gradient at the stochastic output straight back to the sigmoid argument.

To ground these estimators, the authors consider a small-scale form of conditional computation, in which sparse stochastic units act as gaters that can switch off, in combinatorially many ways, large chunks of the rest of the network's computation. Because it is important that these gaters actually output zero most of the time, the resulting sparsity can in principle be exploited to greatly reduce the computational cost of large deep networks. The paper's comparison—especially the straight-through estimator—provided practical tools for training with discrete, stochastic components.

Abstract

Stochastic neurons and hard non-linearities are useful in deep learning but hard to back-propagate through. The paper compares four solution families: an unbiased REINFORCE-style estimator for binary stochastic neurons; a decomposition into a stochastic binary part plus a smooth differentiable approximation; injecting noise into a differentiable graph; and the straight-through estimator, which copies the output gradient to the sigmoid argument. The motivating setting is conditional computation, where sparse gaters switch off large parts of a network to cut compute.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

gradient estimationstochastic neuronsstraight-through estimatorconditional computationdeep learningREINFORCE
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.