Standard optimization theory relies heavily on the assumption of global $L$-smoothness—meaning a function's gradient does not change too rapidly—to determine safe step sizes (typically $1/L$). However, neural network loss landscapes are notoriously non-smooth. In practice, practitioners often use learning rates much larger than classical theory suggests, operating at what is known as the Edge of Stability (EoS). In this regime, the "sharpness" (the largest eigenvalue of the Hessian) oscillates around $2/\eta$.
While large steps can accelerate training and locate flatter minima, deep learning has lacked a rigorous framework for selecting the largest possible converging step size using only first-order information. Furthermore, this paper challenges the prevailing dogma that "flatter is always better" for generalization, revealing a counter-intuitive trap where finding the flattest possible regions early in training can actually stall learning.
Redefining "Large" Step Sizes
The authors bypass the restrictive global smoothness assumption by introducing a definition of "large" step sizes based on local segment smoothness. This metric evaluates gradient changes strictly along the algorithm's specific trajectory rather than across the entire landscape.
To operationalize this, they propose the Equality Line Search. Unlike standard backtracking line searches that settle for any arbitrary decrease in loss, this method utilizes both backtracking and extrapolation. It pushes the step size until it nearly violates a non-monotone descent condition, effectively forcing the optimizer to operate at the Edge of Stability from the very first iteration.
To prevent the model from getting stuck in "unsuccessfully-flat" regions, they also introduce NLS-ub, a variant that imposes an upper bound on the step size.
The $2/K$ Floor and the Flatness Trap
A central theoretical contribution of the paper is the identification of the $2/K$ Floor. For Mean Squared Error (MSE) loss with $K$ classes, the authors prove that the global minimum of sharpness is exactly $2/K$. Because their large-step algorithms are highly efficient at finding flat regions, they frequently hit this theoretical floor.
However, this leads to a surprising discovery: the Flatness Trap. Reaching the $2/K$ sharpness minimum too early in training often results in "unsuccessfully-flat" runs. In these globally-flat regions—which the authors characterize as saddle points rather than true minima—the network's internal gradients collapse. The model essentially stops learning, yielding performance no better than random guessing.
Results and Self-Stabilization
The researchers evaluated their methods across standard vision benchmarks (CIFAR10/100, SVHN, EMNIST) using diverse architectures (MLPs, CNNs, ResNets, DenseNets, and Vision Transformers).
Their proposed methods (NLS and PoNLS) successfully and automatically operate at the Edge of Stability (where sharpness $\times$ step size $\approx 2$) throughout training, relying solely on first-order information. Remarkably, these methods consistently outperform specialized sharpness-reduction algorithms like SAM (Sharpness-Aware Minimization) and CDAT, often reaching the $2/K$ global minimum.
To solve the Flatness Trap, the authors employ a self-stabilization argument. By capping the step size (staying below $K$) via the NLS-ub variant, the model is guided into "successfully-flat" valleys. These regions are slightly sharper than the $2/K$ limit but allow the network to extract meaningful features, resulting in significantly better training loss and test accuracy than standard NLS or CDAT.
Limitations and Future Directions
The authors note a few boundaries to their current findings:
- Stochasticity: While the theory is robust for full-batch Gradient Descent, proving convergence for stochastic gradient descent (SGD) remains an open challenge, despite promising preliminary experiments.
- Neural Collapse: They hypothesize a link between the tendency to fall into globally-flat saddle points and "neural collapse" (where last-layer features of the same class converge to a single point), leaving formal investigation for future work.
- Architecture Sensitivity: The "flatness trap" exhibits some architecture sensitivity; while ResNets and CNNs hit the $2/K$ floor precisely, VGG models tend to stay slightly above it.
Summary updated