MuProp: Unbiased Backpropagation For Stochastic Neural Networks Shixiang Gu

Sergey Levine, Ilya Sutskever, Andriy Mnih · OpenReview

TL;DR

MuProp is a novel gradient estimator that allows researchers to train "stochastic" neural networks—models that make discrete, random choices internally—using an unbiased version of backpropagation. By using a deterministic "mean-field" proxy to reduce the variance (noise) of the gradient, MuProp achieves the training stability of heuristic methods while maintaining the mathematical rigor of unbiased estimation.

The Challenge of Stochastic Networks

Deep learning's "superpower" is backpropagation, which relies on every part of a network being differentiable and smooth. However, many real-world problems require stochastic neural networks, where neurons make discrete, "all-or-nothing" choices (like a Bernoulli coin flip or a categorical selection). These operations are inherently non-differentiable; you cannot "nudge" a coin flip slightly to see how it affects the final error.

Historically, researchers had to choose between two flawed approaches:

  1. Likelihood-Ratio Estimators (e.g., REINFORCE): These are mathematically "unbiased" (correct on average) but suffer from extreme variance or "noise." As a result, training is often painfully slow or fails to converge entirely.
  2. Biased Heuristics (e.g., Straight-Through Estimator): These "cheat" by pretending the discrete units are smooth during the backward pass. While often fast, they are mathematically "biased," meaning they might converge to the wrong solution or fail unpredictably on complex tasks.

MuProp aims to provide the best of both worlds: an estimator that is unbiased (theoretically sound) and low-variance (practically efficient).

How MuProp Works

The authors introduce MuProp (Mean-field Unbiased Propagation). The core innovation is the use of a control variate—a mathematical "baseline" used to cancel out noise.

  1. The Mean-Field Proxy: For every stochastic network, the authors define a "mean-field" version where random samples are replaced by their average values (e.g., instead of a hard 0 or 1, use the probability 0.7). This version is fully differentiable.
  2. Taylor Expansion Baseline: MuProp uses a first-order Taylor expansion of this mean-field network as a baseline.
  3. The Hybrid Gradient: The final gradient estimate consists of two parts:
  4. A Likelihood-Ratio term that looks at the "residuals" (the difference between the actual random sample and the mean-field proxy).
  5. A Mean-Field term computed via standard backpropagation through the proxy network.

Because the baseline's expectation is accounted for analytically, the resulting estimator remains unbiased while significantly reducing the noise that typically plagues standard REINFORCE.

Key Insights and Results

The authors evaluated MuProp on challenging benchmarks for discrete latent variables, including MNIST (for structured output prediction and generative modeling) and the Toronto Face Dataset (TFD) (for predicting facial expressions).

  • Gradient Info is Wasted: Standard unbiased estimators fail because they ignore the "slope" (gradient) of the loss function. MuProp explicitly re-introduces this information via the mean-field backprop.
  • Unbiasedness Matters for Consistency: While biased heuristics like "Straight-Through" (ST) work well on simple binary tasks, they struggle with categorical variables. MuProp proved much more robust across different architectures.
  • Superior Performance: On MNIST imputation, MuProp converged significantly faster and reached lower error rates than standard variance-reduced Likelihood-Ratio methods. It is the first unbiased estimator to consistently match or outperform biased heuristics.
Test Negative Log-likelihood and MNIST samples comparing MuProp against baselines like ST and LR.

In models with complex categorical latent variables (e.g., 200 variables with 10 categories each), MuProp's mathematical grounding paid off. On the categorical MNIST task, MuProp achieved a negative log-likelihood of ~108, while the biased 1/2 estimator lagged at ~120.

Limitations and Future Work

While powerful, MuProp has limitations. In very deep networks, the "mean" value at the end of the network might diverge, becoming a poor representation of what an actual random sample looks like.

Illustration of the rollout procedure, re-centering the mean-field pass at each layer.

To fix this divergence, the authors suggest a "rollout" procedure where the mean-field pass is re-centered at each layer based on actual samples. While this improves accuracy, it does increase computational cost. Finally, the authors suggest MuProp could be extended to Reinforcement Learning by using "fitted Q-functions" as baselines, potentially stabilizing policy gradient methods in the future.

Summary updated

BibTeX
@inproceedings{levine2016muprop,
  author = {Sergey Levine and Ilya Sutskever and Andriy Mnih},
  title = {{MuProp: Unbiased Backpropagation For Stochastic Neural Networks Shixiang Gu}},
  booktitle = {International Conference on Learning Representations},
  year = {2016},
  url = {http://arxiv.org/abs/1511.05176},
}
Figure