From Gradient Flow on Population Loss to Learning with Stochastic Gradient Descent

Christopher De Sa, Satyen Kale, Jason D. Lee, Ayush Sekhari, Karthik Sridharan

Introduction

In machine learning theory, it is often much easier to analyze Gradient Flow (GF)—the continuous-time version of optimization—because it allows researchers to leverage the powerful tools of calculus and differential equations. However, in practice, models are trained using Stochastic Gradient Descent (SGD), which operates in discrete, noisy steps.

Historically, theorists have bridged this gap by attempting to prove that the SGD path "stays close" to the GF path. The problem with this approach is that in many complex, non-convex landscapes, the paths do not stay close at all; they can diverge wildly even if they eventually reach the same minimum. This paper addresses the lack of a unified framework by building a rigorous mathematical bridge between the idealized continuous-time world of GF and the practical discrete-time reality of SGD, entirely bypassing the need for path-tracking.

Theoretical Framework

The authors introduce a novel framework grounded in Lyapunov Potentials. A Lyapunov potential can be thought of as a "score" that strictly decreases as an algorithm progresses toward a minimum. The methodology is built on three core pillars:

  1. Converse Lyapunov Theorem: The authors prove that if Gradient Flow converges at a certain rate, there must exist a corresponding Lyapunov potential. This is a "converse" result because it works backward from the outcome (convergence) to derive the underlying tool (the potential function).
  2. Geometric Correspondence: The paper establishes a one-to-one mathematical link between the rate of GF convergence and the geometry of the loss function (such as Polyak-Łojasiewicz or linearizability properties).
  3. Self-Bounding Regularity: To safely transition from continuous to discrete time, the authors introduce "self-bounding" conditions. These conditions ensure that the discrete steps of GD or SGD do not "over-jump" the progress guaranteed by the continuous model, allowing for a convergence proof that does not rely on the algorithms taking identical paths.

Key Insights

A primary takeaway from this work is that paths don't matter, but progress does. Researchers do not need to prove that SGD follows the GF trajectory; they only need to prove that SGD makes enough progress on the Lyapunov potential at each step.

Furthermore, the paper formalizes the idea that geometry is rate. The "shape" of a loss function is mathematically equivalent to the "speed" at which Gradient Flow converges—knowing one inherently means knowing the other. The authors also note that while many attribute the success of SGD to "implicit bias" or "implicit regularization," simple geometric properties and potential functions are often entirely sufficient to explain its success.

Applications and Key Results

Rather than using empirical datasets like ImageNet, this theoretical paper evaluates its framework on rigorous mathematical problem instances that serve as benchmarks for optimization theory. The framework provides a general recipe to take a GF rate $R(t)$ and produce a GD/SGD convergence rate, successfully recovering optimal $O(1/T)$ and $O(1/\sqrt{T})$ rates for various settings.

Notable applications include:

  • Phase Retrieval & Matrix Square-Root: These are notoriously difficult non-convex problems (the latter containing "spurious" stationary points that trap simple algorithms). Previously, these required bespoke, tailored proofs. Using this unified framework, the authors provide the first convergence analysis for SGD on these problems under arbitrary noise conditions, matching or exceeding the best-known results in the literature.
  • Necessity of Assumptions: The authors prove that simply having a GF convergence rate is not enough. They provide a counter-example where GF converges quickly but GD fails, rigorously justifying the need for their "self-bounding" assumptions.

Limitations and Future Work

While powerful, the current framework relies on the objective function being differentiable (smooth). Extending this analysis to non-smooth functions—such as neural networks utilizing standard ReLU activations—remains an open challenge. Additionally, while the framework guarantees a path to convergence, determining the "appropriate step size" $\eta$ is still highly sensitive and complex for highly non-convex problems.

Looking forward, the authors suggest that their converse Lyapunov framework could be extended to analyze other optimization algorithms, such as Mirror Descent or accelerated methods, paving the way for broader unified theories in machine learning optimization.

Summary updated

BibTeX
@inproceedings{sa2022from,
  author = {Christopher De Sa and Satyen Kale and Jason D. Lee and Ayush Sekhari and Karthik Sridharan},
  title = {{From Gradient Flow on Population Loss to Learning with Stochastic Gradient Descent}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=1ahZ6bBfaF},
}
Figure