Learning Dynamics of Deep Linear Networks Beyond the Edge of Stability

Avrajit Ghosh, Soo Min Kwon, Rongrong Wang, Saiprasad Ravishankar, Qing Qu
2/27/2025
stat.MLcs.LG

No official code found. Best implementation: soominkwon/dln-at-eos (2 stars, last commit 2025-03-08).

Abstract

Deep neural networks trained using gradient descent with a fixed learning rate $η$ often operate in the regime of "edge of stability" (EOS), where the largest eigenvalue of the Hessian equilibrates about the stability threshold $2/η$. In this work, we present a fine-grained analysis of the learning dynamics of (deep) linear networks (DLNs) within the deep matrix factorization loss beyond EOS. For DLNs, loss oscillations beyond EOS follow a period-doubling route to chaos. We theoretically analyze the regime of the 2-period orbit and show that the loss oscillations occur within a small subspace, with the dimension of the subspace precisely characterized by the learning rate. The crux of our analysis lies in showing that the symmetry-induced conservation law for gradient flow, defined as the balancing gap among the singular values across layers, breaks at EOS and decays monotonically to zero. Overall, our results contribute to explaining two key phenomena in deep networks: (i) shallow models and simple tasks do not always exhibit EOS; and (ii) oscillations occur within top features. We present experiments to support our theory, along with examples demonstrating how these phenomena occur in nonlinear networks and how they differ from those which have benign landscape such as in DLNs.

View on arXivView PDF

Code Implementations(1)

Code to reproduce the results of "Learning Dynamics of Deep Linear Networks Beyond the Edge of Stability"

20PythonFeb 26, 20251 years ago

Similar Papers

Cite this paper

@article{ghosh2025learning,
  title  = {Learning Dynamics of Deep Linear Networks Beyond the Edge of Stability},
  author = {Avrajit Ghosh and Soo Min Kwon and Rongrong Wang and Saiprasad Ravishankar and Qing Qu},
  year   = {2025},
  eprint = {2502.20531},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.20531v1}
}

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

Discussion