Diffusion Approximations and Control Variates for MCMC

Nicolas Brosse, Ali Durmuş, Sean Meyn, Éric Moulines, Sergey SamsonovComputational 2018

Abstract

Markov Chain Monte Carlo (MCMC) methods are indispensable for Bayesian inference, yet they often suffer from high variance in estimators, necessitating long computation times. This paper introduces a novel methodology for constructing control variates to reduce the variance of additive functionals in MCMC samplers. By minimizing the asymptotic variance of a Langevin diffusion approximation over a family of functions, the authors transform a complex variance reduction problem into a tractable quadratic risk minimization task. Theoretical results demonstrate that the asymptotic variances of popular algorithms, such as the Random Walk Metropolis (RWM) and the Metropolis-Adjusted Langevin Algorithm (MALA), closely track the Langevin diffusion's variance. Empirical evaluations on Bayesian regression problems show variance reduction factors (VRF) reaching up to $10^4$.

Introduction

In Bayesian statistics, we often seek to compute expectations of the form $\pi(f) = \int f(x) \pi(dx)$, where $\pi$ is a target posterior distribution. MCMC algorithms provide a way to estimate these values by generating a sequence of samples. However, the precision of the resulting estimator—the sample mean—is inversely proportional to its variance. High variance translates directly into computational inefficiency.

Control variates are a well-established technique for variance reduction. The core idea is to find a function $h$ such that $\pi(h) = 0$. The modified estimator $f - h$ then has the same expectation as $f$ but potentially much lower variance. The primary challenge lies in constructing $h$ such that it is highly correlated with $f$. While "Zero Variance" (ZV) methods have made strides in this area, they typically focus on minimizing marginal variance, often neglecting the temporal correlations (autocovariance) inherent in MCMC chains.

Methodology: The Diffusion Approximation

The authors propose a framework that bridges the gap between discrete-time MCMC chains and continuous-time Langevin diffusions. The Langevin diffusion is a stochastic process governed by the Stochastic Differential Equation (SDE):

$dX_t = \nabla \log \pi(X_t) dt + \sqrt{2} dW_t$

where $W_t$ is a standard Brownian motion. This process has $\pi$ as its stationary distribution.

The Generator Approach

For any sufficiently smooth function $g$ in the domain of the diffusion's generator $\mathcal{L}$, the expectation $\pi(\mathcal{L}g)$ is zero. This provides a natural source of control variates: $h = \mathcal{L}g$. The generator for the Langevin diffusion is defined as:

$\mathcal{L}g = \nabla \log \pi \cdot \nabla g + \Delta g$

Minimizing Asymptotic Variance

Unlike previous methods that minimize the variance of individual samples, this paper focuses on the asymptotic variance, defined as:

$\sigma^2(f, \pi) = \lim_{n \to \infty} n \text{Var}(\frac{1}{n} \sum_{i=1}^n f(X_i))$

The authors show that for small step sizes, the asymptotic variance of algorithms like MALA or RWM is approximately equal to the asymptotic variance of the Langevin diffusion. By choosing a family of functions $\mathcal{G} = \{g_\theta : \theta \in \mathbb{R}^d\}$, the problem becomes finding $\theta$ that minimizes the diffusion's asymptotic variance for $f - \mathcal{L}g_\theta$.

This minimization is shown to be equivalent to a quadratic risk minimization problem. For linear function families (e.g., polynomials), the optimal coefficients $\theta$ can be computed in closed form using the Moore-Penrose pseudoinverse, allowing for efficient implementation during the MCMC burn-in phase.

Experimental Results

The methodology was evaluated against several benchmarks, including a 1D Gaussian mixture toy example and Bayesian logistic and probit regression models.

Bayesian Regression Benchmarks

Using standard datasets from the literature, the authors compared their diffusion-based control variates against the state-of-the-art Zero Variance (ZV) estimators.

  • Massive Variance Reduction: In logistic and probit regression experiments, the Variance Reduction Factor (VRF) reached staggering levels. For some parameters, the variance was reduced by factors of $10^3$ to $10^4$ compared to standard MCMC.
  • Superiority over ZV: While ZV methods effectively reduce "instantaneous" noise, the proposed method was far superior at dampening the long-term correlations that dominate the asymptotic variance.
  • Algorithm Robustness: Although the theory is rooted in Langevin diffusion, the method proved highly effective even for the Random Walk Metropolis (RWM) algorithm, which does not explicitly use gradient information in its proposal step.

Discussion and Insights

The success of this approach stems from its connection to the Poisson equation. The optimal control variate for a function $f$ is the solution to $\mathcal{L}g = f - \pi(f)$. By minimizing the quadratic risk, the authors are essentially finding the best approximation to the solution of the Poisson equation within the chosen function family $\mathcal{G}$ without needing to solve the differential equation directly.

One limitation is the dependence on the choice of basis functions. While polynomials are effective for the regression models studied, more complex or high-dimensional target distributions may require more sophisticated bases, such as those provided by kernel methods or neural networks.

Conclusion

This paper provides a theoretically grounded and practically efficient method for MCMC variance reduction. By leveraging the continuous-time diffusion approximation, the authors offer a way to minimize the true measure of MCMC error—asymptotic variance. The resulting control variates provide orders of magnitude improvement in efficiency, making complex Bayesian inference tasks significantly more accessible.

Summary updated

BibTeX
@inproceedings{brosse2018diffusion,
  author = {Nicolas Brosse and Ali Durmuş and Sean Meyn and Éric Moulines and Sergey Samsonov},
  title = {{Diffusion Approximations and Control Variates for MCMC}},
  booktitle = {Computational},
  year = {2018},
}
Figure