TL;DR
Deep learning training follows a universal, optimizer-independent path when the learning rate is correctly normalized by the optimizer's "DC gain." This journey consists of three distinct phases—softening, sharpening, and the "edge of stability"—revealing that while the model's geometry dictates the early path, the optimizer's specific structure only takes control at the very end.
What Problem Does This Paper Address?
In deep learning, we often observe a phenomenon called the Edge of Stability (EoS). This is a regime where the "sharpness" of the loss landscape (measured by the maximum eigenvalue of the Hessian) stabilizes at a value inversely proportional to the learning rate. While EoS is well-documented, two major questions remained:
- What happens before the edge? How does a model behave during the early and middle stages of training before it hits this stability limit?
- Who is responsible for what? Is the learning trajectory shaped by the model's architecture, the specific optimizer (like SGD vs. Momentum), or the learning rate?
The authors aim to disentangle these factors by tracking learning trajectories across a massive range of learning rates and diverse optimization algorithms.
Methods
The researchers conducted a comprehensive empirical study using:
- Dense Learning Rate Sweeps: They tested learning rates across seven orders of magnitude ($10^{-7}$ to $10^0$).
- Diverse Optimizers: They compared standard SGD, Heavy Ball (SGDM), Nesterov’s Momentum (SGDN), Quasi-Hyperbolic Momentum (QHM), and "Grokfast" (a two-pole cascade optimizer).
- Linear Filter Theory: They treated optimizers as causal linear filters. This allowed them to define a "DC gain" ($Q(1)$) for each optimizer—essentially a secret multiplier that scales the effective learning rate.
- Effective Learning Rate ($h$): By defining $h = \eta Q(1)$ (where $\eta$ is the raw learning rate), they were able to align the results from different optimizers.
- Measurements: They tracked loss ($L$), stabilized sharpness ($S$), consecutive gradient alignment ($c_t$), and a first-order "alias" ($\rho_t$) which measures how much the discrete steps deviate from a smooth continuous flow.
Datasets
The experiments were performed on the CIFAR-10 dataset using three distinct architectures to ensure the findings weren't architecture-specific:
- A two-layer MLP (Multi-Layer Perceptron) with tanh activations.
- A four-layer CNN (Convolutional Neural Network) with tanh activations.
- A small three-block ViT (Vision Transformer).
Key Insights and Ideas
- The Universal Curve: To the authors' surprise, when plotted against the effective learning rate $h$, the traces for loss and sharpness from different optimizers almost perfectly overlap. This suggests that for most of the training process, the choice of optimizer doesn't actually change the path—it just changes how fast you move along it.
- Three Distinct Regimes: The journey is partitioned into three phases:
- Low-LR Softening: Sharpness initially decreases. The trajectory follows a smooth, continuous-time gradient flow.
- Mid-LR Sharpening: Sharpness begins to grow. Crucially, this "progressive sharpening" is a material property of the model's loss landscape, not a quirk of the optimizer.
- High-LR Edge: The model hits the EoS. Here, the "universal" behavior breaks, and the specific "shape" of the optimizer (its root locus) determines exactly when and where the sharpness stabilizes.
- Separability: The model geometry determines the shape of the pre-edge curve, while the optimizer determines the exit point where the model detaches from that curve to enter the edge of stability.
Key Results
- Coincidence of Trajectories: Figures 1 and 2 demonstrate that loss and sharpness curves for vastly different optimizers coincide nearly perfectly in the Low and Mid-LR regimes.
- Predicting the Edge: The authors refined the EoS relationship to $S \approx \frac{2}{\eta Q(1) \Gamma(Q)}$, where $\Gamma(Q)$ is the "root locus escape gain." This formula predicted the stabilized sharpness with an $R^2$ of 0.9983 across all tested optimizers.
- Lagging Indicators: They proved that gradient alignment ($c_t$) is a "lagging indicator" of instability. It stays near 1 (perfect alignment) throughout the sharpening phase and only crashes once the model is right at the edge of stability.
Limitations and Future Work
- Large-Batch Focus: The study was conducted in the large-batch regime (batch size 4096) to minimize stochastic noise and focus on the underlying geometry. The dynamics might shift in small-batch, high-noise settings.
- Preconditioning: The authors explicitly excluded adaptive optimizers like Adam that use preconditioning (scaling gradients by their moving average variance), noting that this complicates the definition of sharpness.
- Future Directions: The authors suggest that exploring how these "material properties" of models change with different activations or data distributions could be a fruitful next step in understanding why deep learning generalizes so well.
Summary updated