Rod Flow: A Continuous-Time Model for Gradient Descent at the Edge of Stability
Eric Regis, Sinho Chewi
TL;DR
Rod Flow introduces a principled continuous-time model for gradient descent at the edge of stability by treating GD iterates as a moving rod with center $\bar{w}$ and extent $\Sigma$. Derived from exact difference equations and backward error analysis, the model yields explicit ODEs that correctly predict the $2/\eta$ sharpness threshold and explain self-stabilization in quartic potentials. It is shown to match, and in some cases outperform, prior Central Flow in capturing GD trajectories on toy problems and representative neural networks, while remaining cheaper to compute thanks to a low-rank representation and Hessian-vector products. Empirically, Rod Flow tracks gradient descent more closely than gradient flow and provides a simpler, more interpretable alternative to Central Flow with broad applicability to non-convex optimization dynamics.
Abstract
How can we understand gradient-based training over non-convex landscapes? The edge of stability phenomenon, introduced in Cohen et al. (2021), indicates that the answer is not so simple: namely, gradient descent (GD) with large step sizes often diverges away from the gradient flow. In this regime, the "Central Flow", recently proposed in Cohen et al. (2025), provides an accurate ODE approximation to the GD dynamics over many architectures. In this work, we propose Rod Flow, an alternative ODE approximation, which carries the following advantages: (1) it rests on a principled derivation stemming from a physical picture of GD iterates as an extended one-dimensional object -- a "rod"; (2) it better captures GD dynamics for simple toy examples and matches the accuracy of Central Flow for representative neural network architectures, and (3) is explicit and cheap to compute. Theoretically, we prove that Rod Flow correctly predicts the critical sharpness threshold and explains self-stabilization in quartic potentials. We validate our theory with a range of numerical experiments.
