Abstract
Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) is a popular momentum-based variant of Stochastic Gradient Langevin Dynamics (SGLD) used extensively in non-convex optimization. While empirically successful, its theoretical properties in non-convex settings remained largely unquantified. This paper establishes the first non-asymptotic convergence guarantees for SGHMC, demonstrating that its momentum-based approach provides a provable acceleration over standard SGLD, particularly in landscapes characterized by "flat" regions and multiple local minima.
Introduction
In modern machine learning, optimization often involves navigating complex, non-convex landscapes where global minima are obscured by local traps and saddle points. Stochastic Gradient Langevin Dynamics (SGLD) addresses this by incorporating Gaussian noise into gradient updates, allowing the algorithm to escape local optima. However, practitioners frequently favor Stochastic Gradient Hamiltonian Monte Carlo (SGHMC), which introduces a momentum term to the dynamics.
Analogous to a physical particle moving with inertia and friction, SGHMC tracks underdamped Langevin diffusion. Despite its widespread use, a rigorous theoretical understanding of its finite-time performance for non-convex functions was previously missing. This research bridges that gap by providing explicit convergence bounds and identifying the conditions under which momentum yields a significant computational advantage.
Momentum and Underdamped Dynamics
The core advantage of SGHMC lies in its underlying continuous-time process: underdamped Langevin diffusion. Unlike the overdamped dynamics of SGLD, which primarily rely on drift and diffusion, underdamped dynamics utilize inertia to explore the parameter space more efficiently.
The authors analyze two specific discretization variants of this process:
- SGHMC1: A standard first-order Euler discretization.
- SGHMC2: A more sophisticated discretization scheme designed to better preserve the properties of the continuous-time physical process.
To derive convergence rates, the study employs advanced mathematical frameworks, including the 2-Wasserstein distance to measure the proximity of the algorithm's distribution to the ideal Gibbs measure, and Lyapunov functions tailored for underdamped systems to track energy dissipation. The Girsanov Theorem is further utilized to bound the discretization error—the discrepancy between the smooth continuous physics and the discrete steps of the algorithm.
Key Theoretical Insights
The Square-Root Speedup
A primary finding of this work is that SGHMC can achieve a "square-root speedup" relative to SGLD. In non-convex landscapes like the double-well potential, the convergence speed is dictated by the "spectral gap." The authors prove that the spectral gap for SGHMC is roughly the square root of the gap for SGLD, implying that SGHMC can be exponentially faster in high-dimensional or low-temperature regimes.
Improved Gradient Complexity
The choice of discretization significantly impacts performance. The paper demonstrates that SGHMC2 achieves a superior dependency on the target accuracy ($\epsilon$). Specifically, the gradient complexity—the number of stochastic gradient evaluations required to reach a certain error threshold—scales with $\epsilon^{-2}$ for SGHMC2. This represents a meaningful improvement over previous SGLD bounds that exhibited more aggressive scaling with respect to the error requirement.
Performance in Flat Landscapes
The theoretical results suggest that momentum is most beneficial when the optimization landscape is relatively flat between modes. By maintaining velocity, SGHMC traverses these regions more rapidly than the purely diffusive motion of SGLD.
Empirical and Theoretical Validation
While primarily theoretical, the paper validates its assumptions through common machine learning tasks and mathematical models:
- Double-Well Potentials: Used to illustrate how momentum facilitates transitions between local minima.
- Binary Linear Classification: Demonstrating the applicability of the bounds to non-convex loss functions.
- Robust Ridge Regression: Showing that the dissipativity conditions required for the proof hold in practical regression scenarios.
Conclusion and Limitations
This work provides the first explicit constants for the convergence of SGHMC to a global minimum, covering both empirical and population risk. However, certain challenges remain. Like most global non-convex optimization results, the bounds still scale exponentially with the dimension ($d$) in the worst-case scenario. Additionally, the proofs rely on a "dissipativity" condition which, while standard, may not encompass all the complexities of modern deep learning architectures.
Future research may explore whether momentum-based methods offer similar accelerations for escaping saddle points and whether specific neural network structures can further leverage these underdamped dynamics to bypass the curse of dimensionality.
Summary updated