Learning Dynamics of Deep Matrix Factorization Beyond the Edge of Stability

Avrajit Ghosh, Soo Min Kwon, Rongrong Wang, Saiprasad Ravishankar, Qing Qu

This paper provides a fine-grained theoretical analysis of how Deep Linear Networks (DLNs) behave when trained with learning rates that push them past the "Edge of Stability" (EOS). The authors discover that gradient descent breaks classical symmetry-induced conservation laws to drive the network toward flatter minima, with oscillations confined to a low-dimensional subspace of the most prominent features.

The Edge of Stability Phenomenon

In modern deep learning, training with large learning rates ($\eta$) often violates the classical "descent lemma" of optimization. This pushes the network into a regime known as the Edge of Stability (EOS), where the loss sharpness—defined as the largest eigenvalue of the Hessian—rises until it hovers around the $2/\eta$ threshold.

Sharpness rising to the 2/η threshold during progressive sharpening, followed by oscillations in the Edge of Stability regime.

While this phenomenon is widely observed and often leads to better generalization, several mysteries remain:

  1. Why do shallow models or simple tasks often fail to exhibit EOS?
  2. Why do the resulting loss oscillations seem to occur only within the "top" features of the network?
  3. How does the discrete nature of Gradient Descent (GD) fundamentally differ from the continuous Gradient Flow (GF) in these high-learning-rate regimes?

The authors tackle these questions using Deep Linear Networks (DLNs)—specifically deep matrix factorization—as a mathematically tractable proxy for more complex architectures.

Methodology: Deep Linear Networks as a Proxy

The researchers employ a mix of bifurcation theory and linear algebra to dissect the learning dynamics:

  • Singular Vector Stationary (SVS) Sets: They identify a set of weights where singular vectors remain fixed, allowing them to isolate and analyze the dynamics of the singular values alone.
  • Conservation Law Analysis: They compare the "balancing gap" (the difference in singular values across different layers). In continuous Gradient Flow, this gap is a conserved quantity. This paper analyzes how discrete GD "breaks" this law at the EOS.
  • Hessian Eigenvalue Characterization: They derive the full set of non-zero eigenvalues for the Hessian at a balanced minimum to show how sharpness scales with network depth.

To validate their theory, the authors use a combination of synthetic low-rank matrices (to precisely test subspace oscillation theory) and real-world datasets like MNIST and CIFAR-10 (to demonstrate "mild sharpening" and subspace oscillations in non-linear settings).

Key Insights and Results

The study yields several striking findings about the nature of gradient descent at the edge of stability.

Breaking the Law for the Better: One of the most significant discoveries is that GD at the EOS breaks the symmetry-induced conservation law of Gradient Flow. While GF keeps the imbalance between layers constant, GD beyond the EOS forces the layers to become "balanced." The authors proved that beyond the EOS, the balancing gap between layers decays monotonically to zero.

Implicit Walk to Flatness: The authors prove that these "balanced" minima are actually the flattest global minima. Therefore, the oscillations beyond EOS act as an implicit regularizer, pushing the network away from sharp regions and toward the flattest possible solutions. Furthermore, they rigorously showed that sharpness scales with network depth ($L$), explaining why deeper networks are more prone to entering the EOS regime.

The Subspace Filter and Route to Chaos: Oscillations are not global. They occur within an $r$-dimensional subspace where $r$ is precisely determined by the learning rate. This explains why only the most dominant features (top singular values) show "catapults" or oscillations. The authors mathematically characterized the 2-period orbit, showing that the top-$p$ singular values oscillate around the balanced minimum while the rest remain stationary.

Bifurcation diagram showing singular values entering a 2-period orbit, then a 4-period orbit, and eventually chaos as the learning rate increases.

As the learning rate increases further, the experiments successfully demonstrated a "period-doubling route to chaos" in DLNs, a classic signature of complex dynamical systems.

Complexity-Dependent Sharpening: The paper also explains "mild sharpening," a scenario where EOS isn't reached. If a task is "simple" (low-magnitude features), the network's sharpness may never grow enough to hit the $2/\eta$ threshold, even with a large learning rate.

Limitations and Future Work

While the paper provides a robust theoretical foundation, it has a few limitations:

  • Linearity Constraint: The core theoretical proofs are limited to Deep Linear Networks. While the authors provide experimental evidence that these patterns hold for non-linear MLPs and UNets, a formal non-linear proof remains an open challenge.
  • Stationary Singular Vectors: The analysis assumes singular vectors are stationary (the SVS set). In real-world training, singular vectors can rotate and shift, which might add another layer of complexity to the dynamics.
  • Beyond 2-Period Orbits: The paper focuses heavily on the 2-period orbit. Future work could explore the higher-order periodic and chaotic regimes to see if they offer further benefits for generalization or if they simply lead to training instability.

Summary updated

BibTeX
@inproceedings{ghosh2025learning,
  author = {Avrajit Ghosh and Soo Min Kwon and Rongrong Wang and Saiprasad Ravishankar and Qing Qu},
  title = {{Learning Dynamics of Deep Matrix Factorization Beyond the Edge of Stability}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=J4Dvxv7WnG},
}
Figure