Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability

Jeremy M. Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter, Ameet Talwalkar
2/26/2021
cs.LGstat.ML

Official code: locuslab/edge-of-stability (79 stars, Python, last commit 2024-12-07).

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 / \text{(step size)}$, and the training loss behaves non-monotonically over short timescales, yet consistently decreases over long timescales.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

7923PythonFeb 28, 20211 years ago

Similar Papers

Cite this paper

@article{cohen2021gradient,
  title  = {Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability},
  author = {Jeremy M. Cohen and Simran Kaur and Yuanzhi Li and J. Zico Kolter and Ameet Talwalkar},
  year   = {2021},
  eprint = {2103.00065},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.00065}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.00065.svg)](https://codeofpaper.com/paper/2103.00065)

Discussion