TL;DR
This paper reveals that neural networks trained with gradient descent do not remain in the "safe," stable regimes predicted by classical optimization theory. Instead, they exhibit "progressive sharpening" until they hit the Edge of Stability, where the training loss oscillates and the optimizer operates right at the brink of divergence, yet somehow continues to minimize the loss over the long term.
Introduction: The Gap Between Theory and Practice
In classical optimization theory, we often assume a property called L-smoothness. Essentially, this means the "sharpness" of the loss landscape (the maximum eigenvalue of the Hessian) is bounded by a constant $L$. If you know this bound $L$, you can pick a step size $\eta < 2/L$ to guarantee that gradient descent (GD) will decrease the loss monotonically.
However, deep learning practitioners often use much larger learning rates than theory suggests are "safe." The authors set out to understand the actual dynamics of the Hessian during training. They found a massive gap between how we think optimization works (smooth, monotonic descent) and how it actually works in neural networks (unstable, oscillatory, yet effective).
Methods
The authors primarily study full-batch gradient descent with a fixed step size $\eta$. While most practitioners use Stochastic Gradient Descent (SGD), full-batch GD allows for a cleaner mathematical characterization of stability.
Key techniques included:
- Sharpness Tracking: Calculating the maximum eigenvalue ($\lambda_{max}$) of the training loss Hessian throughout the entire training process.
- Gradient Flow Comparison: Using high-order numerical integrators (Runge-Kutta) to simulate "Gradient Flow" (GD with an infinitesimal step size) to observe how the landscape evolves when step-size instability is not an issue.
- Architecture Sweep: Testing the phenomenon across fully-connected networks, VGG, ResNets, and Transformers.
- Learning Rate Perturbations: Dropping the learning rate mid-training to observe how the network's sharpness responds to new stability constraints.
The study utilized several standard and synthetic benchmarks, including CIFAR-10 (full dataset and a 5,000-example subset), WikiText-2 for Transformer models, and synthetic tasks like one-dimensional toy regression and deep linear networks.
Key Insights and Ideas
- Progressive Sharpening: Regardless of the starting point, neural networks have an "overwhelming tendency" to move into regions of the loss landscape where the sharpness increases.
- The $2/\eta$ Threshold: On a quadratic objective, GD diverges if sharpness exceeds $2/\eta$. In neural networks, sharpness rises until it hits this exact threshold.
- The Edge of Stability (EoS): Once the network hits the $2/\eta$ limit, it does not blow up. Instead, it enters a regime where sharpness hovers just above $2/\eta$. In this state, the training loss behaves non-monotonically (it spikes and oscillates over short timescales) but consistently decreases over long timescales.
- Self-Correction: If the sharpness crosses the threshold, the resulting instability actually pushes the iterates back toward "flatter" regions, effectively "restraining" the sharpness from growing further.
- Theory Failure: The authors show that at the EoS, the local quadratic Taylor approximation—a cornerstone of optimization intuition—is a poor model for what GD is actually doing.
Key Results
- Universality: The EoS phenomenon was observed across every architecture and task tested, including CNNs, Transformers, and even deep linear networks.
- Suboptimality of "Stable" Step Sizes: The authors found that step sizes small enough to avoid the EoS (staying within classical stability limits) are "completely unreasonable" and dramatically slower than training at the Edge of Stability.
- Batch Normalization: Contrary to some beliefs, Batch Norm does not necessarily make the landscape "smoother" (less sharp) throughout training. Instead, it allows the network to be trained at higher learning rates while still operating at the Edge of Stability.
- Momentum: The EoS effect generalizes to GD with momentum, though the stability threshold shifts according to a specific formula involving the momentum coefficient $\beta$.
Limitations and Future Work
- Full-Batch vs. SGD: The paper focuses on full-batch GD. While they provide evidence that similar "acclimation" happens in SGD, the noise from minibatches makes the $2/\eta$ rule less precise and harder to track.
- The "Why" of Sharpening: While the paper documents that progressive sharpening happens, it doesn't explain the underlying architectural or data-driven reason why neural networks prefer sharper regions.
- Generalization: The authors explicitly state they do not claim a connection between "sharpness" at the EoS and the model's ability to generalize to new data; their focus is strictly on optimization dynamics.
- Mechanism of Stability: It remains a mystery exactly how GD manages to consistently decrease loss while operating in a regime that is technically unstable. Exploring this "micro-catapulting" behavior is a primary suggestion for future research.
Summary updated