Improved Convergence Rate of Stochastic Gradient Langevin Dynamics with Variance Reduction and its Application to Optimization

Yuri Kinoshita, Taiji Suzuki · DOI

Abstract

Sampling from complex, high-dimensional probability distributions is a fundamental challenge in machine learning, particularly for Bayesian inference and deep learning optimization. While Stochastic Gradient Langevin Dynamics (SGLD) offers a computationally efficient alternative to full-batch Langevin Monte Carlo (LMC), the noise introduced by mini-batching often hinders convergence. This paper provides a new, tighter analysis for variance-reduced versions of SGLD, specifically SVRG-LD and SARAH-LD. By assuming only smoothness and the Log-Sobolev Inequality (LSI)—a much broader condition than traditional log-concavity—the authors establish a state-of-the-art gradient complexity of $\tilde{O}(n + \sqrt{n}/\epsilon)$. This result represents a significant improvement over previous bounds, effectively bridging the theoretical gap in non-convex sampling and optimization.

Introduction

In modern machine learning, we frequently encounter the need to sample from a target distribution $p(x) \propto \exp(-f(x))$. Langevin Monte Carlo (LMC) is a standard approach for this task, utilizing the gradient of the log-density to guide a random walk toward high-probability regions. However, for "big data" applications where the dataset size $n$ is massive, calculating the full gradient $\nabla f(x)$ at every iteration is computationally prohibitive.

Stochastic Gradient Langevin Dynamics (SGLD) addresses this by using stochastic mini-batches. While efficient per iteration, the variance of the stochastic gradient introduces a persistent error that necessitates a decaying step size, slowing down convergence. To mitigate this, researchers have integrated variance-reduction techniques—such as Stochastic Variance Reduced Gradient (SVRG) and StochAstic Recursive grAdient HeritAge (SARAH)—into the Langevin framework. Despite their empirical success, the theoretical understanding of these algorithms has remained limited, often relying on restrictive assumptions like global log-concavity that do not hold for complex, multi-modal neural network landscapes.

Bridging the Gap with the Log-Sobolev Inequality

The primary contribution of this work is the analysis of variance-reduced Langevin dynamics under the Log-Sobolev Inequality (LSI). Unlike previous analyses that required the distribution to be nearly "bowl-shaped" (log-concave), LSI allows for "bumpy" or non-convex landscapes, provided the distribution is sufficiently well-behaved in terms of its energy concentration.

The Analytical Framework: KL-Divergence

Rather than using the standard Wasserstein distance, which measures the cost of transforming one distribution into another, the authors conduct their analysis using KL-divergence. KL-divergence is a stricter metric that provides stronger control over the convergence process. By leveraging the exponential convergence properties of Langevin flows under LSI, the authors show that the algorithm can effectively "forget" the bias accumulated during the stochastic updates, leading to a much tighter mathematical bound.

Algorithmic Insights: The $\sqrt{n}$ Sweet Spot

The paper focuses on two primary variants:

  1. SVRG-LD: Periodically calculates a full gradient to anchor the mini-batch updates.
  2. SARAH-LD: Employs a recursive gradient update that provides more stable variance reduction.

A key finding of this research is the identification of the optimal configuration for these algorithms. The authors prove that by setting both the batch size and the inner-loop epoch length to $\sqrt{n}$, the gradient complexity is optimized.

Key Results

The headline result is the improvement in Gradient Complexity. To reach a precision of $\epsilon$ in KL-divergence, the required number of gradient evaluations is: $$\tilde{O}\left(\left(n + \frac{dn^{1/2}}{\epsilon}\right) \frac{\gamma^2 L^2}{\alpha^2}\right)$$

In practical terms, this means that for a dataset with $n$ points, the dependence on the dataset size improves from linear ($n$) to square-root ($\sqrt{n}$). For a dataset with $1,000,000$ samples, this represents a theoretical $1,000\times$ improvement in efficiency over standard SGLD analyses. Experimental validation on synthetic non-log-concave distributions confirmed these findings, showing that SVRG-LD and SARAH-LD reach higher precision faster than their non-variance-reduced counterparts.

Applications to Global Optimization

Beyond sampling, the paper extends these results to non-convex optimization. By viewing optimization as a limit of sampling at low temperatures, the authors show that if the objective function satisfies a "weak Morse" condition—meaning its stationary points are not excessively flat—they can eliminate the typical exponential dependence on temperature. This makes the variance-reduced Langevin approach a highly efficient candidate for finding global minima in complex landscapes.

Limitations and Future Directions

While this work provides a significant theoretical leap, several challenges remain:

  • Verifiability: While LSI is a weaker assumption than log-concavity, it remains difficult to verify if high-dimensional neural network loss surfaces satisfy it in practice.
  • Generalization: The current analysis focuses on convergence on the training set (empirical risk). Future work is needed to determine how these faster convergence rates translate to generalization performance on unseen data.
  • Lower Bounds: The authors suspect this $\sqrt{n}$ dependence may be optimal for this class of algorithms, but a formal proof of the lower bound remains an open question for the community.

Conclusion

This paper provides a rigorous theoretical foundation for variance-reduced SGLD under broad conditions. By demonstrating that SVRG-LD and SARAH-LD can achieve a square-root dependence on the number of data points, the authors have provided a roadmap for more efficient Bayesian inference and non-convex optimization in the era of massive datasets.

Summary updated

BibTeX
@inproceedings{kinoshita2022improved,
  author = {Yuri Kinoshita and Taiji Suzuki},
  title = {{Improved Convergence Rate of Stochastic Gradient Langevin Dynamics with Variance Reduction and its Application to Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Sj2z__i1wX-},
}
Figure