Skip to main content
QUICK REVIEW

[Paper Review] On Using Control Variates with Stochastic Approximation for Variational Bayes and its Connection to Stochastic Linear Regression

Tim Salimans, David A. Knowles|arXiv (Cornell University)|Jan 6, 2014
Gaussian Processes and Bayesian InferenceComputer Science3 references19 citations
TL;DR

This paper proposes a novel control variate method for variance reduction in stochastic approximation variational inference (SAVI), showing that optimal control variates are closely related to stochastic linear regression. The method achieves significantly lower variance than existing approaches, with empirical results demonstrating up to a 10x reduction in gradient estimator variance compared to baseline methods.

ABSTRACT

Recently, we and several other authors have written about the possibilities of using stochastic approximation techniques for fitting variational approximations to intractable Bayesian posterior distributions. Naive implementations of stochastic approximation suffer from high variance in this setting. Several authors have therefore suggested using control variates to reduce this variance, while we have taken a different but analogous approach to reducing the variance which we call stochastic linear regression. In this note we take the former perspective and derive the ideal set of control variates for stochastic approximation variational Bayes under a certain set of assumptions. We then show that using these control variates is closely related to using the stochastic linear regression approximation technique we proposed earlier. A simple example shows that our method for constructing control variates leads to stochastic estimators with much lower variance compared to other approaches.

Motivation & Objective

  • To reduce the high variance inherent in stochastic gradient estimators for variational Bayes using control variates.
  • To derive the theoretically optimal set of control variates under specific assumptions for stochastic approximation variational inference.
  • To establish a formal connection between the proposed control variate method and the stochastic linear regression framework previously introduced by the authors.
  • To empirically demonstrate that the proposed control variates yield significantly lower-variance gradient estimators than existing methods.
  • To enable efficient, black-box inference for intractable posteriors by leveraging analytical covariance structures without requiring explicit knowledge of the log-posterior’s curvature.

Proposed method

  • Derives the ideal control variates for stochastic approximation variational Bayes by minimizing the variance of the gradient estimator under the assumption of a fixed, known covariance structure of the score function.
  • Reformulates the KL divergence gradient as a covariance between the score function and the log-likelihood ratio, enabling variance reduction via linear regression techniques.
  • Proposes a two-step estimator: first estimate the covariance matrix of the score function using Monte Carlo samples, then use this to compute a regression-based gradient estimator with reduced variance.
  • Uses the natural gradient as the search direction, which is shown to provide better convergence properties than the standard gradient.
  • Employs a sample-based approximation of the covariance matrix to maintain computational efficiency, especially when analytical forms are unavailable.
  • Applies the method to fully factorized exponential family approximations, where the covariance matrix is sparse and invertible in small blocks (e.g., 2×2), enabling scalable implementation.

Experimental results

Research questions

  • RQ1What is the theoretically optimal set of control variates for reducing variance in stochastic approximation variational inference?
  • RQ2How does the proposed control variate method relate to the authors’ previously proposed stochastic linear regression framework?
  • RQ3Can the proposed control variates achieve significantly lower variance than existing control variate strategies in practical settings?
  • RQ4Does the use of the natural gradient in conjunction with the proposed control variates lead to faster convergence in stochastic optimization?
  • RQ5To what extent does the method remain effective when the log-posterior structure is unknown or intractable?

Key findings

  • The proposed control variates reduce the variance of the stochastic gradient estimator by up to an order of magnitude compared to baseline methods such as those of Ranganath et al. (2013) and Kingma and Welling (2013).
  • The estimator using the ideal control variates achieves a mean squared error of 0.0136, significantly lower than the 3.0090 MSE of the Ranganath et al. control variate method.
  • The regression-based gradient estimator (ˆg_reg) with sample covariance achieves a variance of 0.0180, outperforming the 0.4968 variance of the delta method estimator from Paisley et al. (2012).
  • The squared bias contributes about 20% to the mean squared error of the ˆg_reg estimator, but this decreases quadratically with the number of samples, indicating strong asymptotic consistency.
  • The method is nearly unbiased despite being based on a biased covariance estimate, suggesting robustness in practice.
  • The approach remains effective even when the log-posterior structure is unknown, making it applicable in a black-box manner to a wide range of 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.