Convergence of mean-field Langevin dynamics: Time and space discretization, stochastic gradient, and variance reduction

Taiji Suzuki, Denny Wu, Atsushi NitandaarXiv 2023

Abstract

The mean-field Langevin dynamics (MFLD) is a nonlinear generalization of the Langevin dynamics that incorporates a distribution-dependent drift, and it naturally arises from the optimization of two-layer neural networks via (noisy) gradient descent. Recent works have shown that MFLD globally minimizes an entropy-regularized convex functional in the space of measures. However, all prior analyses assumed the infinite-particle or continuous-time limit, and cannot handle stochastic gradient updates. We provide an general framework to prove a uniform-in-time propagation of chaos for MFLD that takes into account the errors due to finite-particle approximation, time-discretization, and stochastic gradient approximation. To demonstrate the wide applicability of this framework, we establish quantitative convergence rate guarantees to the regularized global optimal solution under (i) a wide range of learning problems such as neural network in the mean-field regime and MMD minimization, and (ii) different gradient estimators including SGD and SVRG. Despite the generality of our results, we achieve an improved convergence rate in both the SGD and SVRG settings when specialized to the standard Langevin dynamics.

Introduction

Mean-Field Langevin Dynamics (MFLD) serves as a critical theoretical bridge for understanding the optimization of two-layer neural networks. In the "mean-field limit"—where the number of neurons $N$ approaches infinity—the optimization landscape becomes convex within the space of probability measures, facilitating global convergence guarantees.

However, a significant gap exists between this theoretical ideal and practical implementation. Most existing literature relies on three simplifying assumptions: infinite particle counts, continuous-time dynamics, and exact gradient information. In practice, networks utilize a finite number of neurons, algorithms operate in discrete time steps, and training relies on noisy mini-batch stochastic gradients (SGD). Previous attempts to reconcile these factors often yielded error bounds that grew exponentially over time, limiting their utility for long-term training analysis. This work addresses these gaps by providing a non-asymptotic convergence analysis that accounts for finite particles, discrete time, and stochastic gradients.

Methodology

The authors propose a unified framework to analyze three variants of MFLD:

  • F-MFLD (Full gradient): Employs the complete dataset at each iteration.
  • SGD-MFLD (Stochastic gradient): Utilizes mini-batch sampling.
  • SVRG-MFLD (Variance reduced): Incorporates control-variate techniques to mitigate gradient noise.

The theoretical foundation of this analysis is the Logarithmic Sobolev Inequality (LSI). By assuming the target distribution satisfies an LSI, the evolution of the KL divergence between the particle system and the global optimizer can be tracked. A key innovation is the uniform-in-time propagation of chaos analysis. Through a one-step interpolation argument, the authors demonstrate that discretization errors remain bounded indefinitely, provided appropriate scaling of step sizes and particle counts.

Key Insights

  • Uniform-in-Time Stability: The dynamics are shown to be "self-correcting" under LSI conditions, maintaining an approximation error of $O(1/N)$ for all $t > 0$, rather than accumulating error over time.
  • Efficiency of Stochasticity: SGD-MFLD can outperform full-batch MFLD in total computational complexity. Smaller batches allow for more frequent updates, reaching target error $\epsilon$ more rapidly despite the noise.
  • Variance Reduction in Measure Space: The paper proves that SVRG, typically used for finite-dimensional vectors, is highly effective in the infinite-dimensional space of measures, providing a $\sqrt{n}$ speedup over standard SGD.

Key Results

The study provides explicit complexity bounds required to reach a target error $\epsilon$. These results demonstrate that $N = O(1/\epsilon)$ particles are sufficient for finite-width networks to approximate the ideal mean-field model.

Comparison of convergence rates and complexities for various MFLD and Langevin dynamics methods.

As summarized in the table above, the proposed methods offer competitive or superior performance:

  • F-MFLD: Complexity of $O(n \cdot \epsilon^{-1} \log(\epsilon^{-1}))$.
  • SGD-MFLD: Achieves better total complexity by utilizing small batch sizes.
  • SVRG-MFLD: Provides the best performance in finite-sum settings, with a complexity of approximately $O((n + \sqrt{n}\epsilon^{-1}) \log(\epsilon^{-1}))$.

Notably, when specialized to standard Langevin Dynamics (removing mean-field interactions), this framework recovers and occasionally improves upon state-of-the-art convergence rates.

Limitations and Future Work

The primary limitation is the reliance on the LSI Assumption, which generally requires the loss function to be a smooth perturbation of a strongly convex functional. Verifying this for deep or complex architectures remains difficult. Additionally, the MFLD framework minimizes an entropy-regularized objective, which introduces a bias relative to the pure global minimum. Finally, while this work provides a rigorous foundation for two-layer (single hidden layer) networks, extending these uniform-in-time guarantees to deep multi-layer architectures is a significant open challenge.

Summary updated

BibTeX
@misc{suzuki2023convergence,
  author = {Taiji Suzuki and Denny Wu and Atsushi Nitanda},
  title = {{Convergence of mean-field Langevin dynamics: Time and space discretization, stochastic gradient, and variance reduction}},
  year = {2023},
  eprint = {2306.07221},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.07221},
}
Figure