Modern deep learning optimization often defies classical intuition. While traditional theory suggests small learning rates to ensure monotonic loss decrease, practical training frequently exhibits "Progressive Sharpening" (PS) and the "Edge of Stability" (EoS). This paper introduces a minimalist 2D linear model to provide a rigorous mathematical foundation for these phenomena.
The Challenge of Modern Optimization
In classical optimization theory, the learning rate $\eta$ must be small enough so that the "sharpness" (the largest eigenvalue of the Hessian) remains below $2/\eta$. This ensures that the loss decreases monotonically. However, modern neural networks often demonstrate two puzzling behaviors:
- Progressive Sharpening (PS): Sharpness increases during training until it reaches the $2/\eta$ threshold.
- Edge of Stability (EoS): Once it hits that threshold, the sharpness hovers there, and the loss continues to decrease, albeit non-monotonically with frequent spikes.
Existing explanations often rely on complex, hard-to-verify assumptions or overly simplistic scalar models. The authors propose a "Goldilocks" model: a two-layer, width-one linear network with a 2D input that is simple enough for rigorous proof but complex enough to capture real-world data dynamics.
The 2D Linear Model
The model is defined as $f(x; \theta) = \alpha \beta_1 x_1 + \alpha \beta_2 x_2$. The key innovation lies in the input data distribution, which distinguishes between feature scales:
- $x_1$ (Irrelevant Feature): Has a large scale (e.g., $\lambda_1 \ge 100$) but is uncorrelated with the target. It acts as "structured noise."
- $x_2$ (Relevant Feature): Has a small scale (e.g., $\lambda_2 \le 1$) but fully determines the target response $y$.
This setup allows the authors to perform a non-asymptotic analysis of the entire training trajectory, decomposing the loss into an oscillatory term driven by the irrelevant feature and a convergence term driven by the signal.
Training Dynamics and the Edge of Stability
The training process follows a predictable cyclical dynamic. Initially, the model attempts to fit the small-scale signal, causing the sharpness to increase (Progressive Sharpening). Once sharpness hits the $2/\eta$ threshold, the system enters the Edge of Stability regime.
As shown in the figure, the loss exhibits periodic spikes corresponding to instances where sharpness exceeds the stability threshold. Crucially, the irrelevant feature ($x_1$) triggers a self-stabilization mechanism. This prevents the sharpness from growing indefinitely and allows the loss to continue its overall downward trend despite the local instability.
Key Theoretical Insights
The authors prove several critical properties of this minimalist system:
- Global Convergence: They rigorously prove that Gradient Descent (GD) eventually converges to a global minimum where the loss is minimized and the sharpness is bounded near $2/\eta$.
- Sharpness Bounds: During the EoS phase, sharpness remains strictly bounded (e.g., between $1.5/\eta$ and $4.71/\eta$), proving the model never escapes to an infinitely sharp region.
- The Learning Rate Trade-off: While larger learning rates are often thought to speed up training, the authors identify an optimal point. Beyond this threshold, EoS effects make the landscape "flatter" along the signal direction, which can actually slow down convergence.
Conclusion
By isolating the roles of relevant and irrelevant features, this work bridges the gap between toy models and general optimization theory. It demonstrates that the Edge of Stability is not just an empirical curiosity but a mathematically provable consequence of training on multi-scale data. These insights suggest that the "speed limit" of training is fundamentally dictated by the data's condition number and the interaction between feature scales.
Summary updated