In many deep learning settings, gradient descent has been shown to operate at the edge of stability -- a regime where the largest eigenvalue of the loss Hessian hovers around 2/η. We study this phenomenon in mirror descent, a generalization of gradient descent. As mirror descent is non-Euclidean, existing explanations of the edge of stability phase do not extend to this setting. We generalize the existing notion of sharpness to introduce mirror sharpness, which measures the curvature of the loss with respect to the mirror potential. Empirically, we observe that the mirror sharpness hovers slightly above the 2/η threshold. Furthermore, we derive a dual central flow ODE for mirror descent that models iterates in continuous time at the onset of edge of stability. Our ODE provides insights into the difficulties of extending existing arguments for why sharpness stabilizes at 2/η from gradient descent to mirror descent in full generality.
Figures & tables
Figure 1: CNN with a hypentropy potential. Columns show training loss, norm of the loss gradient with respect to G , mirror sharpness, and ℓ2 sharpness. The 2/η thresholds are indicated by the horizontal dashed lines. Top: γ=0.01 , bottom: γ=2 .
Figure 2: Vision transformer (ViT) with an ℓp potential. Columns show training loss, norm of the loss gradient with respect to G , mirror sharpness, and ℓ2 sharpness. The 2/η thresholds are indicated by the horizontal dashed lines. Top: p=1.5 , bottom: p=3 .
Figure 3: CNN with an ℓ1.5 potential, GeLU activations, MSE loss, and η=0.08 on a subset of CIFAR-10. Along with the mirror descent iterates (MD), we track the Riemannian gradient flow (RGF), gradient flow (GF), and our dual central flow (DCF). We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η . Left: Mirror sharpness. Right: Distance to mirror descent iterates.
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 4: MLP with an MSE loss on a subset of CIFAR-10; gradient descent; η=0.02 . We compare our dual central flow (DCF) against the central flow (CF) of [ 7 ] . We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η .
Figure 5: MLP with an MSE loss on a subset of CIFAR-10; ordinary gradient descent.
Figure 6: MLP with an MSE loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01 , bottom: γ=2 .
Figure 7: MLP with an MSE loss on a subset of CIFAR-10; ℓp potential. Top: ℓ1.5 , bottom: ℓ3 .
Figure 8: MLP with a cross-entropy loss on a subset of CIFAR-10; ordinary gradient descent.
Figure 9: MLP with a cross-entropy loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01 , bottom: γ=2 .
Figure 10: MLP with a cross-entropy loss on a subset of CIFAR-10; ℓp potential. Top: ℓ1.5 , bottom: ℓ3 .
Figure 11: CNN with an MSE loss on a subset of CIFAR-10; gradient descent.
Figure 12: CNN with an MSE loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01 , bottom: γ=2 . These are the same experiments as Figure 1 .
Figure 13: CNN with an MSE loss on a subset of CIFAR-10; ℓp potential. Top: ℓ1.5 , bottom: ℓ3 .
Figure 14: CNN with cross-entropy loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01 , bottom: γ=2 .
Figure 15: CNN with cross-entropy loss on a subset of CIFAR-10; ℓp potential. Top: ℓ1.5 , bottom: ℓ3 .
Figure 16: ViT with an MSE loss on a subset of CIFAR-10; ordinary gradient descent.
Figure 17: ViT with an MSE loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01 , bottom: γ=2 .
Figure 18: ViT with an MSE loss on a subset of CIFAR-10; ℓp potential. Top: ℓ1.5 , bottom: ℓ3 . These are the same experiments as Figure 2 .
Figure 19: ViT with cross-entropy loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01 , bottom: γ=2 .
Figure 20: ViT with cross-entropy loss on a subset of CIFAR-10; ℓp potential. Top: ℓ1.5 , bottom: ℓ3 .
Figure 21: CNN with an MSE loss on a subset of CIFAR-10; hypentropy potential with γ=0.01 ; η=0.8 . We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η .
Figure 22: CNN with an MSE loss on a subset of CIFAR-10; ℓ1.5 potential; η=0.08 . This is the same experiment as Figure 3 . We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η .
Figure 23: MLP with an MSE loss on a subset of CIFAR-10; hypentropy potential with γ=0.01 ; η=0.8 . We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η .
Figure 24: MLP with an MSE loss on a subset of CIFAR-10; ℓ1.5 potential; η=0.08 . We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η .
Figure 25: Transformer with a cross-entropy loss on Tiny Shakespeare; gradient descent.
Figure 26: Transformer with a cross-entropy loss on Tiny Shakespeare; hypentropy potential. Top: γ=0.01 , bottom: γ=2 .
Figure 27: Transformer with a cross-entropy loss on Tiny Shakespeare; ℓp potential. Top: ℓ1.5 , bottom: ℓ3 .
Figure 28: Three-dimensional visualization of the mirror descent iterates on the loss surface L before the iterates diverge. We plot the motion of the average (dual) iterate over the last 6 steps in green.
Figure 29: We plot associated quantities of the actual iterates and the time-averaged iterates before divergence.