Continuous-time models unify oscillations in gradient descent training

Unifying Central Flow, Rod Flow, and the Edge Coupling

Machine Learning

Summary

Training neural networks with gradient descent sometimes causes the process to wobble instead of smoothly improving, which classical continuous models can't explain. The authors show that two different mathematical models, central flow and rod flow, are actually linked through a common object they call the edge coupling. This connection helps explain how these models capture different oscillation behaviors seen when training. They also extend these ideas to popular training methods and confirm their predictions in real neural network experiments.

What this means in practice

  • For machine learning engineers: Better approximate neural network training dynamics during oscillations by using unified continuous-time models derived from edge coupling.
  • For optimization software developers: Incorporate continuous-time insights into optimization libraries to improve the understanding and tuning of momentum-based training methods like heavy ball and Adam.

Authors

Eric Regis, Sinho Chewi

Abstract

At the edge of stability, the iterates of gradient descent oscillate along the sharp directions of the Hessian. This poses a significant challenge for continuous-time models as the usual continuous-time approximation -- the gradient flow -- admits no oscillations. Several continuous-time models have been proposed to capture the behavior at the edge of stability, among them central flow and rod flow. Although both models can be interpreted as performing a coarse-graining in time, the connection between them remains poorly understood. Here we show that both flows can be derived from a third object, the edge coupling: a functional on consecutive iterates whose critical points are the fixed points and period-two orbits of gradient descent. It is revealed that the two flows correspond to coarse-grainings at different time scales. Rod flow coarse-grains over only the fastest time scale, while central flow coarse-grains over both the fast and intermediate time scales. Furthermore, using the edge coupling, we derive rod flows and central flows for momentum methods such as heavy ball and Adam. We verify the derived flows experimentally on representative neural network architectures, where they track the discrete iterates throughout all phases of training -- including the transition from the stable regime to the edge of stability.