TL;DR
This paper disproves the long-standing conjecture that the time it takes for gradient descent to transition from an oscillatory "Edge of Stability" phase to a stable monotone decrease phase is independent of the stepsize. The authors establish a tight polylogarithmic bound, $\Theta((\log \eta)^{\min\{n-2, d-2\}})$, revealing that higher dimensions and larger sample sizes allow for more complex, prolonged oscillations.
What Problem Does This Paper Address?
In modern deep learning, practitioners often use large stepsizes that put training in the Edge of Stability (EoS) regime. In this regime, the training loss doesn't decrease smoothly; instead, it oscillates wildly over short time scales while generally trending downward over long ones. Eventually, the dynamics transition into a "stable phase" where the loss decreases monotonically.
For the tractable case of logistic regression on linearly separable data, researchers previously proved that in 2D, this transition time is bounded by a constant, regardless of how large the stepsize $\eta$ is. This led to a conjecture that the transition time is always independent of $\eta$ in any dimension. This paper tackles the fundamental question: Does the transition time to stability stay constant as we increase the stepsize in higher dimensions?
Methods
The authors employ a combination of theoretical analysis and constructive counterexamples:
- Recursive Rank Reduction (Upper Bound): To prove the maximum possible transition time, the authors developed a recursive projection technique. They show that by projecting the data onto specific subspaces, they can isolate subsets of samples that drive the dynamics. Each level of this recursion (reducing the rank of the data) adds at most one logarithmic factor to the time bound.
- Hard Instance Construction (Lower Bound): To prove their bound is tight, they constructed specific "hard" datasets. The core idea is a "relay" mechanism: one sample dominates the gradient updates for a while, pushing the model in a direction that eventually makes a different sample significant. This "switching of roles" can happen repeatedly, with each new interacting sample adding another $\log \eta$ factor to the total trajectory length.
- Numerical Simulation: The authors validated their theoretical findings with simulations on small-scale, high-precision datasets (e.g., $n=d=3$) to observe the predicted logarithmic growth.
Datasets
The paper does not use standard large-scale benchmarks like ImageNet. Instead, it focuses on:
- Synthetic Separable Datasets: Specifically constructed "hard instances" designed to maximize the oscillatory phase.
- Small-scale Simulations: Datasets with $n=d=3$ are used to illustrate the transition time growth and the "sample switching" phenomenon.
Key Insights and Ideas
- The Conjecture is False: The transition time is not dimension-free. While it's constant in 2D, it grows polylogarithmically with the stepsize once both the number of samples ($n$) and the dimension ($d$) are at least 3.
- Sample Switching: The primary driver of prolonged oscillations is that the "dominant" sample (the one contributing most to the gradient) changes over time. As shown in the figure below, samples can alternate roles in driving the updates even after all samples are correctly classified.
- Mild Growth is Good News: Although the transition time grows with $\eta$, it only grows polylogarithmically. This is a very slow growth rate, meaning we can still use exponentially larger stepsizes than previously thought safe without significantly delaying the onset of the stable phase.
Key Results
- Tight Bound: The worst-case transition time $\sigma_\eta(D)$ is exactly $\Theta((\log \eta)^{\min\{n-2, d-2\}})$ as $\eta \to \infty$.
- Faster Optimization: By leveraging this tight bound, the authors show that one can choose a much larger stepsize $\eta = \exp(aT^{1/k})$ for a fixed time horizon $T$. This leads to a final loss of $F(w_T) \le \frac{C}{T} \exp(-a T^{1/k})$, which is an exponential improvement over the standard $O(T^{-2})$ rates found in previous EoS literature.
- Dimension Specificity: The results clarify that the stepsize independence observed in prior 2D studies is a low-dimensional artifact, not a general property of gradient descent.
Limitations and Future Work
- Separable Data Only: The analysis is strictly for linearly separable data. While this is a standard starting point for understanding logistic regression, real-world data is often not perfectly separable.
- Logistic Loss Specificity: The proofs rely on the specific properties of the logistic loss function. It remains to be seen if similar hierarchical oscillatory mechanisms exist for other loss functions or more complex neural network architectures.
- Non-Convexity: The paper studies a convex problem. Extending these "transition to stability" insights to the non-convex landscapes of deep neural networks is a major open challenge.
Summary updated