Variance Reduction for Stochastic Gradient Langevin Dynamics

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 117 papers19 conceptsfrozen 2026-10-04

Stochastic Gradient Langevin Dynamics (SGLD) is a cornerstone of modern Bayesian inference, allowing us to sample from complex posterior distributions by following a noisy gradient path. However, SGLD faces a fundamental tension: to handle massive datasets, we must use small minibatches, but these minibatches introduce significant stochastic noise. This noise forces the algorithm to use vanishingly small step sizes to maintain accuracy, which in turn slows down convergence.

A growing body of research addresses this by integrating variance reduction techniques—originally developed for optimization—into the sampling process. By using historical or periodic "anchor" gradients to correct the current minibatch estimate, these methods allow for larger step sizes and significantly faster convergence without sacrificing the ability to scale to large datasets.

The Noise Bottleneck in Langevin Dynamics

In standard Langevin Dynamics, we update our parameters by moving in the direction of the gradient of the log-posterior plus a bit of Gaussian noise. When the dataset is large, we approximate the full gradient $\nabla U$ with a minibatch estimate $\nabla \hat{U}$.

The problem is that $\nabla \hat{U}$ is a "noisy" version of the truth. In optimization, this noise eventually averages out or is suppressed by a decaying learning rate. In sampling, however, this noise acts as an additional, unintended diffusion term. If the variance of the minibatch gradient is too high, the sampler drifts away from the target distribution. To keep this drift under control, traditional SGLD must use very small step sizes, making it computationally expensive to explore the distribution thoroughly.

Correcting the Path with Anchor Gradients

The core intuition behind variance-reduced Langevin methods is to use a "control variate" to stabilize the stochastic gradient.

In SVRG-LD, introduced by Difan Zou, Pan Xu, and Quanquan Gu in Subsampled Stochastic Variance-Reduced Gradient Langevin Dynamics, the algorithm periodically computes a "full" gradient at a fixed anchor point. For subsequent minibatch updates, it uses the difference between the current minibatch gradient and the minibatch gradient at that anchor point to correct the trajectory.

Think of it like navigating a forest with a blurry GPS. Every few miles, you stop to take a high-resolution satellite photo (the full gradient). For the steps in between, you use your blurry GPS to see how your position has changed relative to that clear photo. This correction ensures that even if your local view is noisy, your overall direction remains aligned with the true landscape.

Faster Convergence and Phase Transitions

The theoretical benefits of this approach are substantial. While standard SGLD often has a gradient complexity that scales linearly with the number of data points $n$, variance-reduced versions can do much better. Yuri Kinoshita and Taiji Suzuki demonstrated in Improved Convergence Rate of Stochastic Gradient Langevin Dynamics with Variance Reduction and its Application to Optimization that by using SVRG or SARAH estimators, one can reduce the dependence on $n$ to $\sqrt{n}$, significantly speeding up the process for large-scale problems.

Interestingly, these algorithms exhibit a "phase transition" in their error behavior. Jianfeng Lu 0001, Xuda Ye, and Zhennan Zhou showed in Mean square error analysis of stochastic gradient and variance-reduced sampling algorithms that while standard samplers converge at a first-order rate, variance-reduced versions like SVRG and SAGA accelerate to second-order convergence once the step size drops below a specific threshold. This means they don't just get closer to the target; they get there much faster as they refine their precision.

Sampling the Wild West of Non-Log-Concave Distributions

Most early sampling theory assumed "log-concave" distributions—the equivalent of convex functions in optimization. However, real-world machine learning involves "non-log-concave" distributions, which may have multiple peaks and complex valleys.

Variance reduction proves particularly powerful here. Difan Zou and colleagues established in Sampling from Non-Log-Concave Distributions via Variance-Reduced Gradient Langevin Dynamics that SVRG-LD and SAGA-LD can achieve $\epsilon$-accuracy in the 2-Wasserstein distance with far fewer gradient evaluations than standard methods. This was further extended by Krishnakumar Balasubramanian 0002 and others in Towards a Theory of Non-Log-Concave Sampling: First-Order Stationarity Guarantees for Langevin Monte Carlo, who used the PAGE estimator to maintain efficiency even in these "wild west" scenarios.

Beyond Static Sampling: RL and Molecular Dynamics

The utility of variance-reduced Langevin dynamics extends beyond simple posterior sampling:

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_variance_reduction_for_stochastic_gradie_6b264dc3,
  title = {Variance Reduction for Stochastic Gradient Langevin Dynamics},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/variance-reduction-for-stochastic-gradient-langevin-dynamics/rdr_6b264dc35dc94ee49519d177c95d6677},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-05},
}

This exact version (version 1, frozen text):

@misc{lacuna_variance_reduction_for_stochastic_gradie_6b264dc3_v1,
  title = {Variance Reduction for Stochastic Gradient Langevin Dynamics},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/variance-reduction-for-stochastic-gradient-langevin-dynamics/rdr_6b264dc35dc94ee49519d177c95d6677/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-05},
}