Skip to main content
QUICK REVIEW

[Paper Review] MuProp: Unbiased Backpropagation for Stochastic Neural Networks

Shixiang Gu, Sergey Levine|arXiv (Cornell University)|Nov 16, 2015
Gaussian Processes and Bayesian InferenceComputer Science21 references32 citations
TL;DR

MuProp is an unbiased gradient estimator for stochastic neural networks that combines backpropagation with a control variate based on the first-order Taylor expansion of a mean-field network, significantly reducing variance. It achieves superior and consistent performance over biased estimators like straight-through and likelihood-ratio methods on discrete latent variable models, with faster convergence and better generalization on MNIST tasks.

ABSTRACT

Deep neural networks are powerful parametric models that can be trained efficiently using the backpropagation algorithm. Stochastic neural networks combine the power of large parametric functions with that of graphical models, which makes it possible to learn very complex distributions. However, as backpropagation is not directly applicable to stochastic networks that include discrete sampling operations within their computational graph, training such networks remains difficult. We present MuProp, an unbiased gradient estimator for stochastic networks, designed to make this task easier. MuProp improves on the likelihood-ratio estimator by reducing its variance using a control variate based on the first-order Taylor expansion of a mean-field network. Crucially, unlike prior attempts at using backpropagation for training stochastic networks, the resulting estimator is unbiased and well behaved. Our experiments on structured output prediction and discrete latent variable modeling demonstrate that MuProp yields consistently good performance across a range of difficult tasks.

Motivation & Objective

  • To address the challenge of training stochastic neural networks with discrete latent variables, where standard backpropagation fails due to non-differentiable sampling operations.
  • To develop an unbiased gradient estimator that leverages backpropagation's efficiency while maintaining convergence guarantees, overcoming limitations of existing biased estimators like straight-through and likelihood-ratio methods.
  • To reduce the high variance of likelihood-ratio estimators in discrete stochastic networks without relying on heuristic approximations.
  • To enable effective training of deep stochastic models with both continuous and discrete latent variables using a single, principled framework.
  • To demonstrate consistent and superior performance across diverse structured prediction and generative modeling tasks, especially where biased methods fail or fluctuate.

Proposed method

  • Proposes MuProp as an unbiased gradient estimator that uses a control variate derived from the first-order Taylor expansion of a mean-field network to reduce variance in gradient estimation.
  • Integrates backpropagation through the mean-field approximation of the stochastic computation graph, enabling efficient gradient computation while preserving unbiasedness.
  • Applies the control variate technique to the likelihood-ratio estimator, subtracting a term that approximates the gradient using deterministic backpropagation through the mean-field network.
  • Derives a general formulation applicable to arbitrary directed acyclic graphs (DAGs) with mixed stochastic and deterministic nodes, supporting both continuous and discrete stochastic variables.
  • Uses a single mean-field pass to compute the control variate, ensuring computational efficiency while significantly reducing gradient variance compared to standard likelihood-ratio estimators.
  • Employs a differentiable, deterministic approximation of the stochastic computation graph to compute the control variate, ensuring that the overall estimator remains unbiased and differentiable.

Experimental results

Research questions

  • RQ1Can an unbiased gradient estimator be designed for stochastic neural networks with discrete latent variables that leverages backpropagation to reduce variance?
  • RQ2How does MuProp compare in performance and convergence speed to biased estimators like straight-through and likelihood-ratio methods with variance reduction on complex models?
  • RQ3Does MuProp maintain consistent performance across different model architectures and objective functions, especially in cases where biased estimators fluctuate or fail?
  • RQ4Can MuProp be applied effectively to both continuous and discrete stochastic variables while preserving unbiasedness and computational efficiency?
  • RQ5To what extent does using a mean-field approximation as a control variate improve the stability and sample efficiency of training deep stochastic networks?

Key findings

  • MuProp consistently outperforms the likelihood-ratio estimator with variance reduction (NVIL) in terms of final variational lower-bound on MNIST, achieving better test scores across all model architectures tested.
  • MuProp converges approximately 3–4 times faster than NVIL on the categorical model (200×10), indicating significantly lower gradient variance despite using only mean subtraction as the control variate.
  • The straight-through (ST) and 1/2 estimators exhibit inconsistent performance: ST outperforms 1/2 on SBN models, while 1/2 performs better on the categorical model, highlighting their instability and sensitivity to model structure.
  • On the SBN 200-784 model, MuProp achieves a test negative variational lower-bound of 113.1, compared to 113.5 for NVIL, demonstrating comparable or better performance with faster convergence.
  • For the fDARN 200-784 model, MuProp achieves 92.9, outperforming NVIL (92.1) and significantly surpassing ST (110.2) and 1/2 (94.2), confirming its robustness and reliability.
  • MuProp’s performance is stable and reliable across all tasks, in contrast to biased estimators that show high variance and unpredictable behavior, especially in deeper or more complex models.

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.