TL;DR
In the wild world of deep learning, optimizers often live dangerously at the "Edge of Stability," where they move just fast enough to make the loss surface shake without completely falling apart. This paper shows that this phenomenon isn't just a quirk of standard Gradient Descent; it’s a fundamental property of the more general Mirror Descent, provided you measure "sharpness" through the lens of the optimizer's own non-Euclidean geometry.
What Problem Does This Paper Address?
If you’ve ever trained a neural network with a large learning rate ($\eta$), you might have noticed something strange. Classical optimization theory suggests that for Gradient Descent (GD) to be stable, the "sharpness" of the loss surface (the largest eigenvalue of the Hessian) must be less than $2/\eta$. Yet, in practice, deep learning models often march right up to that boundary and stay there, oscillating wildly but still managing to minimize the loss. This is the Edge of Stability (EoS).
While we have some theories for why this happens in standard Euclidean space (Gradient Descent), we didn't know if it applied to Mirror Descent (MD). Mirror Descent is a powerful generalization of GD that adapts to the geometry of the problem using a "mirror potential." Because MD doesn't play by Euclidean rules, the old definitions of sharpness and the existing proofs for EoS don't quite fit. The authors set out to find the "natural" version of EoS for these non-Euclidean optimizers.
Methods
The authors bridge the gap between Euclidean and non-Euclidean optimization with three key moves:
- Mirror Sharpness ($S^\Phi$): They introduce a new way to measure curvature. Instead of just looking at the loss Hessian, they look at the Hessian of the loss relative to the Hessian of the mirror potential. Mathematically, this is the top generalized eigenvalue of the two matrices.
- Dual Central Flow ODE: To understand the "shaking" behavior at the edge of stability, they derive a continuous-time model (an ODE). Unlike standard "gradient flow," which assumes tiny steps, this "central flow" explicitly models the oscillations that happen when the learning rate is large. They do this in the dual space (the "mirror" side of the optimization), which turns out to be a much cleaner way to track the dynamics.
- Theoretical Analysis: They prove a "descent lemma" for Mirror Descent that recovers the familiar $2/\eta$ threshold and show that for quadratic losses, Mirror Descent in the dual space is essentially just Gradient Descent in disguise.
Datasets
The authors validated their ideas across several architectures and tasks:
- Image Classification: CNNs and Vision Transformers (ViTs) trained on a subset of CIFAR-10.
- Language Modeling: A Transformer trained on the Tiny Shakespeare dataset.
- Synthetic Experiments: Custom-built loss functions designed to test the limits of their theoretical "self-stabilization" arguments.
Key Insights and Ideas
- Geometry is Destiny: The most striking insight is that EoS is a "geometry-aware" phenomenon. In Mirror Descent, the standard Euclidean sharpness ($S^{\ell_2}$) might wander off or grow uncontrollably, but the Mirror Sharpness ($S^\Phi$) consistently hovers right around the $2/\eta$ threshold.
- The Dual Space is the Place: Modeling the optimizer's path in the dual space (where the mirror map lives) provides a much more accurate picture of the "average" trajectory of the iterates than trying to model them in the original parameter space.
- The "Geometry Correction" Hurdle: In standard GD, there's a property called "self-stabilization" that keeps the optimizer from flying off the rails. The authors found that in Mirror Descent, this property is threatened by a "geometry correction" term involving third-order derivatives. This means that while MD usually stabilizes, it's theoretically possible to build a "trap" where it fails to do so—something that doesn't happen in the Euclidean case.
Key Results
The empirical results are remarkably consistent. As shown in Figure 1, when training a CNN with a "hypentropy" potential, the Mirror Sharpness ($S^\Phi$) quickly climbs to the $2/\eta$ dashed line and stays there, even as the standard $\ell_2$ sharpness continues to drift.
This behavior holds up even for complex architectures like Vision Transformers. In Figure 2, we see the same stabilization across different $\ell_p$ potentials.
Finally, their Dual Central Flow (DCF) model (Figure 3 in the paper) tracks the actual path of the optimizer much more closely than standard Riemannian Gradient Flow, proving that their ODE captures the "soul" of the EoS dynamics.
Limitations and Future Work
The authors are honest about the "theory gap." While they observed stabilization in all their neural network experiments, they proved (via Lemma 11) that you can construct adversarial cases where Mirror Descent might not self-stabilize due to those pesky third-order geometric interactions.
The big open question is: Why do neural networks seem to avoid these adversarial traps? Future work will likely focus on whether the specific structure of neural network losses naturally satisfies the conditions needed for universal self-stabilization in non-Euclidean spaces.
Summary updated