SGD at the Edge of Stability: Stochastic Stabilization with Large Learning Rates

Konstantinos Emmanouilidis, Lachlan MacDonald, Salma Tarmoun, Rene VidalarXiv 2026

TL;DR

This paper extends the "Edge of Stability" (EoS) framework from deterministic gradient descent to Stochastic Gradient Descent (SGD) under multiclass cross-entropy loss. By leveraging stochastic Lyapunov stability, the authors prove that SGD inherently self-stabilizes, ensuring convergence at an $\tilde{O}(1/t)$ rate even when using arbitrarily large learning rates that defy classical optimization limits.

What Problem Does This Paper Address?

Modern deep learning models are routinely trained using massive learning rates that lie far outside the regimes justified by classical optimization theory. This empirical phenomenon is known as operating at the Edge of Stability (EoS). While EoS is relatively well-understood for deterministic Gradient Descent (GD), its behavior under Stochastic Gradient Descent (SGD) has remained largely unexplored.

SGD introduces mini-batch noise, which breaks the classical definitions of stability. In a stochastic setting, the loss function does not decrease monotonically even in a "stable" phase, making it difficult to distinguish between harmless random fluctuations and severe, curvature-driven oscillations. This paper addresses this gap by providing a principled theoretical framework to define stability and prove convergence for SGD in the large-learning-rate regime.

Methods

The authors introduce a novel stability framework based on stochastic Lyapunov stability theory. Instead of requiring a strict pointwise decrease in loss at every step, they define stability using a conditional Lyapunov-drift criterion: the loss must decrease in conditional expectation over the next mini-batch.

Using this framework, they provide sharp convergence guarantees for SGD applied to the multiclass cross-entropy loss across two architectures:

  1. Linear classifiers
  2. Two-layer neural networks trained under mean-field scaling with leaky activation functions (e.g., leaky variants of GELU, Softplus, SiLU, and Tanh).

They characterize a unique cyclical dynamic: mini-batch noise can temporarily push the optimization path out of the stable regime, but the self-bounded geometry of the cross-entropy loss naturally pulls the iterates back into stability within a bounded number of iterations—a property they term stochastic stabilization.

Datasets

The theoretical findings are validated using three distinct setups:

  • Separable Synthetic Dataset: A 2D synthetic classification problem used to visualize trajectories and isolate the effects of curvature vs. noise.
  • MNIST: Used to evaluate a two-layer neural network with a leaky softplus activation function.
  • CIFAR-10: Used to test an 8-layer neural network with a GELU activation function, demonstrating that the insights scale to deeper architectures.

Key Insights and Ideas

  • Redefining Stochastic Stability: Pointwise tracking of the loss is insufficient for SGD. Stability is better understood as a local property defined by conditional expectation, capturing the precise balance between local curvature and mini-batch noise.
  • The Self-Stabilizing Cycle: Unlike deterministic GD, which enters a stable phase and stays there, SGD dynamics alternate between short stochastic excursions into unstable territory and periods of controlled descent.
  • The Virtue of Cross-Entropy Geometry: As training progresses and the loss approaches zero, both the local curvature and the mini-batch noise naturally decrease. This means the stable regime becomes increasingly robust over time, and the probability of the iterates escaping it drops to zero.
  • Large Learning Rates Don't Break Convergence: Operating beyond classical stability thresholds does not cause divergent behavior; instead, large stepsizes accelerate the optimization process.

Key Results

  • Universal Convergence Guarantees: The authors prove an $\tilde{O}(1/t)$ convergence rate in the best-iterate sense for any step size $\eta > 0$ for both linear models and two-layer networks (Theorems 2.2 and 5.3). This is the first such guarantee for the multiclass cross-entropy setting.
  • Bounded Return Times: The paper provides explicit high-probability bounds ($t_{re}$) on the number of steps required for SGD to return to the stable regime after an excursion caused by noise (Theorems 4.2 and 5.5).
  • Empirical Validation: Experiments demonstrate that larger learning rates lead to a faster decrease in training loss and achieve comparable or superior test accuracy.
Figure 2: Two-dimensional trajectories of SGD with small and large stepsizes. Left: the trajectory of small stepsize SGD is affected by stochastic noise but does not oscillate. Right: in large stepsize SGD the stochastic noise is accompanied by genuine oscillations caused by the local curvature.
Figure 1: Experiment on CIFAR-10. An 8-layer NN with GELU activation function trained with SGD and large step sizes. The training loss decreases faster for large step sizes.

Limitations and Future Work

  • Network Depth: While empirical results on CIFAR-10 utilize an 8-layer network, the formal theoretical proofs are restricted to linear models and two-layer neural networks. Extending these sharp guarantees to deep, multi-layer architectures remains an open challenge.
  • Generalization Mechanics: The paper focuses primarily on optimization speed and stabilization. A comprehensive theoretical analysis of why these large stepsizes often lead to better generalization and test accuracy is left for future research.
  • Data Sampling Strategies: The current analysis assumes standard mini-batch sampling with replacement. The authors note that exploring large-stepsize SGD under sampling without replacement (such as random reshuffling) is a promising next step.

Summary updated

BibTeX
@misc{emmanouilidis2026sgd,
  author = {Konstantinos Emmanouilidis and Lachlan MacDonald and Salma Tarmoun and Rene Vidal},
  title = {{SGD at the Edge of Stability: Stochastic Stabilization with Large Learning Rates}},
  year = {2026},
  eprint = {2606.30930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.30930},
}
Figure