Publication | Open Access
Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation
2K
Citations
10
References
2013
Year
EngineeringMachine LearningDeep Learning ModelsRecurrent Neural NetworkSocial SciencesSparse Neural NetworkRobot LearningNeurocomputersConditional ComputationComputational Learning TheoryStochastic NeuronsLoss FunctionLarge Scale OptimizationComputer ScienceDeep LearningModel OptimizationStochastic OptimizationComputational NeuroscienceNeuronal NetworkNeuroscienceBrain-like ComputingBrain Modeling
Stochastic neurons and hard non‑linearities are valuable in deep learning, yet estimating gradients through them remains a difficult problem. The study investigates how to back‑propagate through stochastic neurons and compares four families of gradient‑estimation methods. The authors evaluate four strategies—minimum‑variance unbiased REINFORCE, a decomposition into stochastic binary and smooth components, additive/multiplicative noise injection, and a straight‑through estimator—within a conditional‑computation setting where sparse gating units are required to output true zeros. They find that the sparsity induced by these gating units can substantially lower the computational burden of large deep networks.
Stochastic neurons and hard non-linearities can be useful for a number of reasons in deep learning models, but in many cases they pose a challenging problem: how to estimate the gradient of a loss function with respect to the input of such stochastic or non-smooth neurons? I.e., can we "back-propagate" through these stochastic neurons? We examine this question, existing approaches, and compare four families of solutions, applicable in different settings. One of them is the minimum variance unbiased gradient estimator for stochatic binary neurons (a special case of the REINFORCE algorithm). A second approach, introduced here, decomposes the operation of a binary stochastic neuron into a stochastic binary part and a smooth differentiable part, which approximates the expected effect of the pure stochatic binary neuron to first order. A third approach involves the injection of additive or multiplicative noise in a computational graph that is otherwise differentiable. A fourth approach heuristically copies the gradient with respect to the stochastic output directly as an estimator of the gradient with respect to the sigmoid argument (we call this the straight-through estimator). To explore a context where these estimators are useful, we consider a small-scale version of {\em conditional computation}, where sparse stochastic units form a distributed representation of gaters that can turn off in combinatorially many ways large chunks of the computation performed in the rest of the neural network. In this case, it is important that the gating units produce an actual 0 most of the time. The resulting sparsity can be potentially be exploited to greatly reduce the computational cost of large deep networks for which conditional computation would be useful.
| Year | Citations | |
|---|---|---|
Page 1
Page 1