Adaptive Gradient Methods at the Edge of Stability

By Jeremy M. Cohen, Behrooz Ghorbani, Shankar Krishnan, Naman Agarwal, Sourabh Medapati, Michal Badura, Daniel Suo, David E. Cardoze, Zachary Nado, George E. Dahl and 1 more. 2022

86 citations recorded by the source corpus.

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 $\eta$ and $\beta_1 = 0.9$, this stability threshold is $38/\eta$. 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.

Subfields: Artificial Intelligence, Computational Mechanics, Statistical and Nonlinear Physics, Optimization & Training, Scaling & Learning Theory

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Ali Farhadi
  3. Mohit Bansal
  4. Percy Liang
  5. Jianfeng Gao
  6. Hannaneh Hajishirzi
  7. Yejin Choi
  8. Noah A. Smith

In Computational Mechanics

  1. Luke S. Zettlemoyer
  2. Ali Farhadi
  3. Ludwig Schmidt
  4. Etai Littwin
  5. Shuangfei Zhai
  6. Jiatao Gu
  7. Tim Dettmers
  8. J. Susskind

In Statistical and Nonlinear Physics

  1. Ali Farhadi
  2. Tatiana Likhomanenko
  3. Ludwig Schmidt
  4. Jason Ramapuram
  5. Etai Littwin
  6. Luke S. Zettlemoyer
  7. Shuangfei Zhai
  8. Tim Dettmers

In Optimization & Training

  1. Luke S. Zettlemoyer
  2. Tim Dettmers
  3. Ali Farhadi
  4. Tatiana Likhomanenko
  5. Ludwig Schmidt
  6. Jason Ramapuram
  7. Etai Littwin
  8. Shuangfei Zhai

In Scaling & Learning Theory

  1. Ali Farhadi
  2. Etai Littwin
  3. Luke S. Zettlemoyer
  4. Tim Dettmers
  5. Ari S. Morcos
  6. Mitchell Wortsman

Citations in the corpus