A Hitting Time Analysis of Stochastic Gradient Langevin Dynamics

Yuchen Zhang, Percy Liang, Moses Charikar

Abstract

Stochastic Gradient Langevin Dynamics (SGLD) is a cornerstone of non-convex optimization, yet its theoretical efficiency has long been obscured by pessimistic "mixing time" analyses. This paper provides a new perspective by analyzing the hitting time of SGLD. We demonstrate that SGLD can find approximate local minima of the population risk in polynomial time, even when the empirical risk is cluttered with spurious local minima. Our analysis shows that SGLD is remarkably robust to noise, enabling it to learn linear classifiers under extreme label corruption (Massart noise) where traditional methods fail.

Introduction: The Trap of Empirical Risk

In non-convex optimization, we typically minimize an empirical risk function derived from a finite dataset. However, this function often contains many "shallow" local minima—artifacts of sampling that do not exist in the underlying population risk. Standard Gradient Descent (GD) frequently becomes trapped in these spurious basins.

Figure 1: Comparison between empirical risk (black) and population risk (green dashed). The empirical risk contains numerous shallow local minima that can trap standard optimization algorithms.

SGLD addresses this by adding Gaussian noise to the gradient updates: $$x_{k} \leftarrow x_{k-1} - \eta (\nabla f(x_{k-1}) + w)$$ This noise allows the algorithm to "hop" out of shallow traps and converge toward the smoother landscape of the population risk.

Shifting the Metric: Hitting Time vs. Mixing Time

Previous theoretical work on Langevin Dynamics focused on mixing time—the time required to reach a stationary distribution. In non-convex landscapes, mixing time is often exponential, suggesting that SGLD is inefficient.

The authors argue that mixing time is an overly restrictive metric. For practical optimization, we do not need to reach a global distribution; we only need the algorithm to "hit" a target region $U$ (a good local minimum) once. By focusing on hitting time, the authors prove that SGLD can find high-quality solutions in polynomial time, bridging the gap between theory and the observed empirical success of noisy gradient methods.

Methodology and Stability

The core of the analysis relies on the Restricted Cheeger Constant, a geometric measure of "bottlenecks" in the loss landscape. If a trap has a high Cheeger constant relative to the noise level, SGLD will escape it quickly.

A key technical contribution is the stability property of hitting times. The authors show that hitting times are stable under $L_\infty$ perturbations. If the empirical risk is pointwise close to the population risk, the time required to reach a "good" region remains similar.

Figure 2: Illustration of the stability property. The hitting time to a target set $A$ is robust to small perturbations \epsilon, ensuring that SGLD behaves consistently even when the objective function is noisy.

To handle non-smooth objectives like zero-one loss, the authors employ a smoothed approximation $\tilde{f}_\sigma(x) = \mathbb{E}_z[f(x+z)]$, proving that SGLD on this smoothed surrogate still identifies optimal points for the original function.

Key Results

  • Polynomial Efficiency: SGLD finds approximate local minima of the population risk in polynomial time, provided the empirical risk is a sufficiently accurate uniform approximation.
  • Superior Learnability: In linear classification tasks with zero-one loss, SGLD can handle Massart noise up to 0.5. This significantly outperforms previous state-of-the-art results, which were limited to noise levels as low as $1.8 \times 10^{-6}$.
  • Denoising Properties: SGLD effectively treats empirical risk as a noisy version of the population risk, allowing it to bypass artifacts of finite sampling.

Conclusion and Limitations

While this work provides a rigorous foundation for SGLD, it notes that the algorithm is not a panacea. SGLD excels at escaping shallow empirical traps but can still be hindered by "deep" local minima that exist within the population risk itself. Furthermore, the assumption of uniform closeness between empirical and population risk may not hold in heavily over-parameterized regimes, such as deep learning, where models can perfectly fit training data while maintaining high population risk. Future work may focus on how specific initializations can help SGLD avoid these deeper population-level traps.

Summary updated

BibTeX
@inproceedings{zhang2017hitting,
  author = {Yuchen Zhang and Percy Liang and Moses Charikar},
  title = {{A Hitting Time Analysis of Stochastic Gradient Langevin Dynamics}},
  booktitle = {Conference on Learning Theory},
  year = {2017},
}
Figure