Learning Dynamics of Deep Linear Networks Beyond the Edge of Stability
Avrajit Ghosh, Soo Min Kwon, Rongrong Wang, Saiprasad Ravishankar, Qing Qu
TL;DR
The paper provides a fine-grained analysis of gradient-descent learning dynamics for deep linear networks beyond the edge of stability (EOS). It establishes that, beyond EOS, the training dynamics enter a two-period oscillation within a low-dimensional subspace and that a symmetry-driven balancing gap across layers decays monotonically to zero at EOS, implying implicit regularization toward the flattest minima. Central tools include the singular vector stationary set (SVS) and a rigorous balancing argument showing that deeper networks raise the EOS threshold via depth-dependent sharpness. The work connects these dynamics to phenomena observed in nonlinear networks (e.g., mild sharpening, top-subspace oscillations) and clarifies when shallow models avoid EOS, highlighting the role of top features in driving oscillations. Experiments corroborate the theory on DLNs and illustrate differences from nonlinear landscapes, offering a principled lens on optimization in high-depth regimes.
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.
