Skip to main content
QUICK REVIEW

[Paper Review] Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability

Jeremy M. Cohen, Simran Kaur|arXiv (Cornell University)|Feb 26, 2021
Stochastic Gradient Optimization TechniquesComputer Science49 references22 citations
TL;DR

This paper demonstrates that full-batch gradient descent on neural networks consistently operates at the 'Edge of Stability,' where the maximum Hessian eigenvalue (sharpness) hovers just above 2/η, leading to non-monotonic but ultimately decreasing training loss. This behavior contradicts standard optimization assumptions, challenging prevailing theories about convergence and smoothness in deep learning training.

ABSTRACT

We empirically demonstrate that full-batch gradient descent on neural network training objectives typically operates in a regime we call the Edge of Stability. In this regime, the maximum eigenvalue of the training loss Hessian hovers just above the numerical value $2 / ext{(step size)}$, and the training loss behaves non-monotonically over short timescales, yet consistently decreases over long timescales. Since this behavior is inconsistent with several widespread presumptions in the field of optimization, our findings raise questions as to whether these presumptions are relevant to neural network training. We hope that our findings will inspire future efforts aimed at rigorously understanding optimization at the Edge of Stability. Code is available at https://github.com/locuslab/edge-of-stability.

Motivation & Objective

  • To investigate the dynamics of full-batch gradient descent on neural network training objectives.
  • To challenge prevailing assumptions in optimization theory that assume monotonic descent and L-smoothness in neural network training.
  • To empirically characterize the behavior of the Hessian's maximum eigenvalue (sharpness) during training.
  • To identify a consistent regime—'the Edge of Stability'—where sharpness remains just above 2/η and training loss decreases over time despite non-monotonicity.
  • To inspire new theoretical frameworks that can explain optimization dynamics at the Edge of Stability.

Proposed method

  • Full-batch gradient descent is applied to various neural network architectures on standard datasets, including CIFAR-10.
  • The maximum eigenvalue of the training loss Hessian (sharpness) is computed and tracked throughout training for different step sizes η.
  • Theoretical stability analysis of gradient descent on quadratic functions is used as a baseline to define the critical threshold 2/η.
  • Empirical analysis compares sharpness evolution across different loss functions (cross-entropy and MSE) and step sizes.
  • The behavior is analyzed across multiple architectures and datasets to assess generalizability.
  • The paper contrasts full-batch GD with stochastic gradient descent (SGD), noting differences in sharpness dynamics and the absence of a flatlining sharpness in SGD.

Experimental results

Research questions

  • RQ1Does full-batch gradient descent on neural networks exhibit a consistent dynamical regime across architectures and tasks?
  • RQ2What is the relationship between the step size η and the maximum Hessian eigenvalue (sharpness) during training?
  • RQ3Why does training loss decrease non-monotonically yet still converge in the Edge of Stability regime?
  • RQ4How does the Edge of Stability regime contradict standard assumptions in optimization theory, such as L-smoothness and monotone descent?
  • RQ5To what extent do existing models of SGD, such as those in Jastrzębski et al. (2020), generalize to full-batch gradient descent?

Key findings

  • Full-batch gradient descent consistently operates at the Edge of Stability, where the maximum Hessian eigenvalue hovers just above 2/η across diverse architectures and tasks.
  • When sharpness is below 2/η, it undergoes progressive sharpening, increasing toward the threshold.
  • Once sharpness exceeds 2/η, gradient descent does not diverge but instead stabilizes near this value, entering the Edge of Stability regime.
  • Training loss decreases over long timescales despite non-monotonic behavior on short timescales, indicating effective optimization.
  • For standard architectures on CIFAR-10, reasonable step sizes always lead to the Edge of Stability regime, making it the norm rather than the exception.
  • The Edge of Stability regime contradicts key assumptions in optimization theory, including monotone descent, L-smoothness, and quadratic Taylor approximations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.