[Paper Review] Understanding Gradient Descent on Edge of Stability in Deep Learning
This paper provides a mathematical analysis of gradient descent on the Edge of Stability (EoS) in deep learning, showing that non-smooth loss landscapes and adaptive learning rates induce a deterministic flow on the zero-loss manifold. It proves that both normalized gradient descent and gradient descent on √L provably enter the EoS phase, where sharpness stabilizes near 2/η and loss decreases overall despite non-monotonic oscillations, due to implicit regularization toward flatter minima.
Deep learning experiments by Cohen et al. [2021] using deterministic Gradient Descent (GD) revealed an Edge of Stability (EoS) phase when learning rate (LR) and sharpness (i.e., the largest eigenvalue of Hessian) no longer behave as in traditional optimization. Sharpness stabilizes around $2/$LR and loss goes up and down across iterations, yet still with an overall downward trend. The current paper mathematically analyzes a new mechanism of implicit regularization in the EoS phase, whereby GD updates due to non-smooth loss landscape turn out to evolve along some deterministic flow on the manifold of minimum loss. This is in contrast to many previous results about implicit bias either relying on infinitesimal updates or noise in gradient. Formally, for any smooth function $L$ with certain regularity condition, this effect is demonstrated for (1) Normalized GD, i.e., GD with a varying LR $η_t =\fracη{\| abla L(x(t)) \|}$ and loss $L$; (2) GD with constant LR and loss $\sqrt{L- \min_x L(x)}$. Both provably enter the Edge of Stability, with the associated flow on the manifold minimizing $λ_{1}( abla^2 L)$. The above theoretical results have been corroborated by an experimental study.
Motivation & Objective
- To explain the Edge of Stability (EoS) phenomenon observed in deep learning training with deterministic gradient descent.
- To formalize stableness as a condition ensuring loss decrease under finite learning rates, going beyond traditional smoothness assumptions.
- To identify and rigorously analyze two mechanisms—non-smooth loss functions and adaptive learning rates—that provably lead to EoS behavior.
- To demonstrate that gradient descent on √L and normalized GD both evolve along a deterministic flow minimizing λ₁(∇²L), promoting flatter minima.
Proposed method
- Introduces a formal definition of stableness S_L(x,η) = η·sup₀≤s≤η λ₁(∇²L(x−s∇L(x))) ≤ 2, which generalizes the standard Descent Lemma to non-smooth settings.
- Analyzes gradient descent on √L where L is a smooth loss with min L(x) = 0, showing that ∇²√L diverges near minimizers, inducing EoS behavior.
- Studies normalized gradient descent as GD with adaptive learning rate η_t = η / ||∇L(x(t))||, which becomes large near minima, provably entering EoS.
- Derives a limiting Riemannian flow on the zero-loss manifold Γ = {x | L(x) = 0}, showing that updates evolve to minimize the largest Hessian eigenvalue λ₁(∇²L).
- Uses power iteration to compute the top Hessian eigenvector v₁(x) and projects gradients onto the tangent space of the manifold to simulate the limiting flow.
- Empirically validates the theoretical results using simulations on synthetic and classification tasks, tracking loss, sharpness, and flow dynamics.
Experimental results
Research questions
- RQ1How can gradient descent with finite learning rates continue decreasing loss despite violating the classical condition η < 2/λ?
- RQ2What mathematical mechanism underlies the stabilization of sharpness near 2/η in the Edge of Stability phase?
- RQ3Can non-smoothness in the loss landscape or adaptive learning rates induce a deterministic flow that explains EoS behavior?
- RQ4Does gradient descent on √L or normalized GD provably enter the EoS phase and evolve toward flatter minima?
- RQ5Can the EoS dynamics be described by a limiting Riemannian flow on the zero-loss manifold?
Key findings
- Gradient descent on √L provably enters the Edge of Stability phase, with sharpness stabilizing around 2/η due to diverging Hessian curvature near minimizers.
- Normalized gradient descent, with learning rate adaptive to gradient norm, provably enters EoS and evolves along a deterministic flow minimizing λ₁(∇²L).
- The limiting flow of normalized GD is shown to be a Riemannian gradient flow on the zero-loss manifold, with updates projected onto the tangent space of the solution set.
- Experiments confirm that both √L and normalized GD trajectories oscillate around the zero-loss manifold while slowly moving toward flatter minima, with sharpness hovering near 2/η.
- Theoretical analysis shows that the EoS behavior arises from implicit regularization toward minima with small λ₁(∇²L), even under finite, non-infinitesimal steps.
- The stableness condition S_L(x,η) ≤ 2 is shown to be a better indicator of loss decrease than the classical ηλ₁(∇²L(x)) < 2, especially in non-smooth regimes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.