NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Minimalist Example of Edge-of-Stability and Progressive Sharpening

Liming Liu, Zixuan Zhang, Simon Du, Tuo Zhao

TL;DR

This paper provides a rigorous, non-asymptotic analysis of Edge-of-Stability (EoS) and Progressive Sharpening (PS) using a tractable two-layer linear network with a two-dimensional input. By separating data into a large-scale irrelevant feature and a small-scale relevant feature, the authors mathematically demonstrate how neural networks alternate between sharpening and self-stabilization along the entire gradient descent trajectory.

What Problem Does This Paper Address?

Classical optimization theory dictates that gradient descent (GD) is stable and decreases loss monotonically when the learning rate $\eta$ is small—specifically, when $\eta \le 2/S(\theta)$, where $S(\theta)$ is the "sharpness" (the largest eigenvalue of the loss Hessian).

However, modern deep networks are intentionally trained with large learning rates that routinely violate this bound. Empirically, these networks experience two strange phenomena:

  1. Progressive Sharpening (PS): Sharpness steadily increases during early training until it hits the $2/\eta$ instability threshold.
  2. Edge of Stability (EoS): After hitting the threshold, the sharpness hovers right around $2/\eta$ while the loss continues to decrease non-monotonically, often accompanied by violent periodic spikes.

Existing attempts to explain this behavior mathematically fall into two camps: generalist frameworks that rely on heavily idealized, hard-to-verify assumptions, and minimalist examples (like scalar inputs) that are too oversimplified to capture how data dimensionality impacts training dynamics. This paper addresses this gap by introducing a multi-dimensional minimalist model that maps out the exact non-asymptotic trajectory of EoS and PS.

Methods

The authors analyze a two-layer, width-one linear network: $$f(x;\theta) = \alpha \beta_1 x_1 + \alpha \beta_2 x_2$$

The core innovation lies in the structure of the input data $x = (x_1, x_2)^\top$:

  • $x_1$ is an irrelevant feature with a very large scale (variance $\lambda_1 \ge 100$).
  • $x_2$ is the relevant feature with a small scale (variance $\lambda_2$), which perfectly determines the target response $y = x_2$.

To optimize the population square loss, they analyze GD with gradient clipping applied specifically to $\beta_1$ (the weight tracking the large, irrelevant feature) to prevent chaotic divergence. This setup allows them to track the exact parameter updates across three distinct training phases: monotonic sharpening before EoS, progressive sharpening during EoS, and self-stabilization.

Datasets

  • Synthetic Dataset: A two-dimensional Gaussian distribution $x \sim N(0, \text{diag}(\lambda_1, \lambda_2))$ used for the primary mathematical proofs.
  • CIFAR-10: Used to validate the practical implications of their theory by training a two-layer ReLU feed-forward network (MLP).

Key Insights and Ideas

  • The Interplay of Features: Progressive sharpening is driven by the network's attempt to fit the small-scale relevant feature ($x_2$). Conversely, the large-scale irrelevant feature ($x_1$) acts as a natural regularizer, providing the crucial "self-stabilization" effect that keeps the network from exploding when it gets too sharp.
  • Cyclic Dynamics: Optimization at the Edge of Stability is inherently cyclical. Sharpness grows past the $2/\eta$ threshold until the instability triggers a massive spike in the loss component associated with the irrelevant feature ($L_1$). This spike forces the network parameters back into a flatter region, dropping the sharpness below the threshold before the cycle repeats.
Figure 1: Set λ1 = 100 and λ2 = 0.01. We train our model with learning rate η = 1/20 for 10000 iterations.
  • The Large Learning Rate Trade-Off: While large learning rates are widely believed to accelerate training, the authors show there is an upper limit. Past an optimal point, the loss landscape along the relevant feature's direction becomes extremely flat, which actually slows down convergence.

Key Results

  • Global Convergence Proof: The authors rigorously prove that GD under a large learning rate converges to a global minimum where the final sharpness is strictly bounded by $\frac{2+\delta}{\eta}$.
  • Explicit Loss Decay Rate: They prove that the underlying convergence trend (the filtered loss ignoring the spikes) decays at a linear rate bounded by $(1 - \lambda_2/\lambda_1)^2$, showing that the ratio of feature scales directly dictates training speed at EoS.
  • Empirical Validation: When testing their learning rate trade-off theory on CIFAR-10, they found that increasing the learning rate from 0.1 to 0.3 slowed down training by roughly 50% (requiring 11,000 steps instead of 5,000 to reach the same loss), validating their theoretical predictions.

Limitations and Future Work

  • Dependency on Gradient Clipping: The mathematical proofs rely on gradient clipping for the irrelevant feature parameter ($\beta_1$) to tame chaotic dynamics. While the authors show empirically that EoS still occurs without clipping under certain initializations, proving it mathematically remains an open task.
  • Simplified Architecture: The insights are derived from a width-one linear network. Extending this non-asymptotic trajectory analysis to deep, non-linear, and highly overparameterized networks is the next major step for this line of research.

Summary updated

BibTeX
@inproceedings{liu2025minimalist,
  author = {Liming Liu and Zixuan Zhang and Simon Du and Tuo Zhao},
  title = {{A Minimalist Example of Edge-of-Stability and Progressive Sharpening}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=yst8MHfcgP},
}
Figure