Adaptive Gradient Methods at the Edge of Stability

Jeremy M. Cohen, Behrooz Ghorbani, Shankar Krishnan, Naman Agarwal, Sourabh Medapati +6 more
7/29/2022
cs.LG

No official code found. Best implementation: lucyanthony7/Edge-of-Stability (0 stars, last commit 2025-11-10).

Abstract

Very little is known about the training dynamics of adaptive gradient methods like Adam in deep learning. In this paper, we shed light on the behavior of these algorithms in the full-batch and sufficiently large batch settings. Specifically, we empirically demonstrate that during full-batch training, the maximum eigenvalue of the preconditioned Hessian typically equilibrates at a certain numerical value -- the stability threshold of a gradient descent algorithm. For Adam with step size $η$ and $β_1 = 0.9$, this stability threshold is $38/η$. Similar effects occur during minibatch training, especially as the batch size grows. Yet, even though adaptive methods train at the ``Adaptive Edge of Stability'' (AEoS), their behavior in this regime differs in a significant way from that of non-adaptive methods at the EoS. Whereas non-adaptive algorithms at the EoS are blocked from entering high-curvature regions of the loss landscape, adaptive gradient methods at the AEoS can keep advancing into high-curvature regions, while adapting the preconditioner to compensate. Our findings can serve as a foundation for the community's future understanding of adaptive gradient methods in deep learning.

View on arXivView PDF

Code Implementations(1)

This project aims to recreate empirical results described in the paper Adaptive Gradient Methods at the Edge of Stability by Cohen et al. Edge of Stability (EoS) is a phenomenon observed particularly in Deep Learning where the stability (the largest eigenvalue of the Hessian) interacts with the training loss in surprising ways.

00PythonNov 3, 202511 months ago

Similar Papers

Cite this paper

@article{cohen2022adaptive,
  title  = {Adaptive Gradient Methods at the Edge of Stability},
  author = {Jeremy M. Cohen and Behrooz Ghorbani and Shankar Krishnan and Naman Agarwal and Sourabh Medapati and Michal Badura and Daniel Suo and David Cardoze and Zachary Nado and George E. Dahl and Justin Gilmer},
  year   = {2022},
  eprint = {2207.14484},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.14484v2}
}

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/2207.14484.svg)](https://codeofpaper.com/paper/2207.14484)

Discussion