Manuscript Offprint
arXiv:2611.08358Unifying Central Flow, Rod Flow, and the Edge Coupling
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.
Contents
| 1 Introduction | 3 |
|---|---|
| 1.1 Contributions | 5 |
| 2 Related Work | 6 |
| 3 Background | 6 |
| 3.1 Setup | 6 |
| 3.2 Central Flow | 7 |
| 3.3 Rod Flow | 8 |
| 3.4 Edge Coupling | 8 |
| 4 Rod Flow and Edge Coupling | 9 |
| 4.1 Gradient Descent–Ascent | 9 |
| 4.2 The Zero Fixed Point | 10 |
| 4.3 Covariance Versus Second Moment | 11 |
| 4.4 Endpoint Rod Flow | 12 |
| 4.5 RMSProp | 14 |
5 Rod Flow for Momentum Methods 15
5.1 The Phase-Space Edge Coupling ..... 15
5.2 Heavy Ball Rod Flow ..... 16
5.3 Adam ..... 17
6 Central Flow and Edge Coupling 18
6.1 The Truncated Edge Coupling ..... 19
6.2 Covariance Matrix as Lagrange Multiplier ..... 19
6.3 Persistence ..... 20
6.4 RMSProp ..... 21
7 Central Flow for Momentum Methods 22
7.1 Eliminating the Momentum Oscillation ..... 22
7.2 The Truncated Reduced Edge Coupling ..... 22
7.3 Persistence ..... 23
7.4 Adam ..... 24
8 Rod Flow and Central Flow 25
8.1 Fast, Intermediate, and Slow Time Scales ..... 25
8.2 Central Flow as Time-Averaged Rod Flow ..... 27
8.3 Turning Rate of the Rod ..... 28
8.4 Turning Rate for Momentum Methods ..... 30
8.5 Summary ..... 31
9 Experiments 32
9.1 Setup ..... 32
9.2 Results ..... 32
10 Conclusion 36
A Notation 41
B Edge Couplings of Structured Gradient Methods 42
B.1 Structured Gradient Methods ..... 42
B.2 Heavy Ball ..... 45
B.3 Other Structured Gradient Methods ..... 47
C Nesterov Momentum 47
C.1 Setup ..... 48
C.2 Edge Coupling ..... 48
C.3 Rod Flow ..... 49
C.4 Central Flow ..... 49
D AdamW 51
D.1 Setup ..... 51
D.2 Edge of Stability ..... 51
D.3 Edge Coupling ..... 52
D.4 Rod Flow ..... 55
D.5 Central Flow ..... 56
E Rod Flow 57 E.1 Extent Matrix Formulation 57 E.2 The Noise Floor 58 E.3 Bias Correction 62
F Central Flow 63 F.1 Convex Quadratic Programs 63 F.2 Central Flows as Projected Dynamical Systems 65
G Experimental Details 67 G.1 Stable Flows 67 G.2 Runs 68 G.3 Measurements 70 G.4 Numerical Integration 71
H Additional Experiments 73 H.1 Flow Comparisons 73 H.2 Cross-Entropy Loss 80 H.3 Rod Turning 83 H.4 Position and Momentum Extents 90 H.5 Near Two-Periodicity 93 H.6 The Ring and the Onset 95
Continuous-time models are a standard tool for analyzing discrete-time dynamics. However, the edge of stability poses a significant challenge for such models. At the edge of stability, the iterates oscillate along the sharp directions of the Hessian. The usual continuous-time limit of gradient descent—the gradient flow—cannot capture these oscillations.
There are several continuous-time models of gradient descent that aim to capture the dynamics at the edge of stability [Cohen et al., 2025, Regis and Chewi, 2026b, Chodron de Courcel, 2026, Marion, 2026]. Cohen et al. [2025] introduced central flow: a continuous-time model that aims to capture not the individual iterates, but their time-averaged position. It acts as a projected gradient flow—gradient flow that is constrained to the feasible region where the sharpness is at most . The oscillations are represented by a covariance matrix that is found by solving a semidefinite complementarity problem (SDCP). In the same paper, they also developed central flows for scalar RMSProp and RMSProp.
Rod flow [Regis and Chewi, 2026b] is a continuous-time model that represents consecutive iterates as an extended one-dimensional object—a “rod”—whose midpoint and extent evolve smoothly. In contrast with the covariance matrix of central flow, the extent matrix of rod flow evolves according to an ODE. Regis and Chewi [2026a] then lifted the rod from weight space to phase space, yielding rod flows for momentum methods such as heavy ball and Adam.

Figure 1: The Edge Coupling Generates Both Rod Flow and Central Flow. Rod flow is gradient descent-ascent on the centered edge coupling, with the oscillations tracked by an explicit state variable. Central flow is constrained descent on the same objective, with the covariance matrix acting as a Lagrange multiplier. Central flow is rod flow averaged over the intermediate time scale of self-stabilization.
Central flow and rod flow both aim to model the dynamics of gradient descent when coarse-grained in time. As a result, one would expect that the two flows must capture the same underlying structure. Yet the two flows were derived under very different modeling assumptions. Central flow was derived by time-averaging the iterates and imposing the empirically-observed constraint that the sharpness remains at . Meanwhile, rod flow was derived by assuming that the midpoint of consecutive iterates and the outer product of their half-displacement vary smoothly. Whether a deeper link exists between them has remained unclear.
Recently, Litman [2026] introduced the edge coupling: a functional on consecutive iterates whose critical points encode the fixed points and period-two orbits of gradient descent. With it, he sheds light on why the dynamics drive the sharpness to . Regis [2026] then extended the edge coupling to heavy ball and Nesterov momentum.
Here we establish connections between all three objects: central flow, rod flow, and the edge coupling (Figure 1).
Rod flow and edge coupling. Analogous to the relationship between gradient flow and the loss function, one can derive a rod flow by taking the centered edge coupling as the generating function. However, the resulting dynamics are not gradient descent, but gradient descent-ascent: descent on the midpoint and ascent on the extent . This alternative formulation of rod flow fixes a subtle error in the original, which allows it to track the discrete iterates through the transition to the edge of stability. We then generalize the construction to the other optimizers of the Adam family—deriving rod flows for RMSProp, heavy ball momentum, and Adam.
Central flow and edge coupling. One can also re-derive the central flow for gradient descent from the centered edge coupling. To do so, we replace the loss in the edge coupling with its local quadratic approximation, which makes the edge coupling linear in the covariance matrix . Then, instead of being governed by an ODE, is determined as the solution of a maximization problem parametrized by the midpoint . By imposing a persistence condition on , we recover precisely the SDCP of central flow. Using a similar approach, we derive novel central flows for momentum

Figure 2: Rod Flow and Central Flow Track AdamW. AdamW on an MLP (, , , ). Left: With both rod flow and central flow, the preconditioned sharpness self-stabilizes at the correct value. Right: Both flows track the discrete iterates more accurately than the stable flow does.
methods such as heavy ball and Adam (Figure 2).
Because rod flow is also generated by the edge coupling, the two flows now share a common derivation. Mathematically, they differ only in whether the oscillation is treated as a state variable or as a Lagrange multiplier.
Rod flow and central flow. Berthier [2026] derived the central flow for gradient descent using the method of multiple scales, identifying three time scales. There's the fast time scale on which the components of the iterates along sharp directions alternate in sign. There's the intermediate time scale on which the oscillation amplitude self-stabilizes. And there's the slow time scale that governs the drift of the center. Building off of Berthier's observation, we show that rod flow and central flow correspond to coarse-grainings at different time scales. Rod flow coarse-grains over the fast time scale only. It models the intermediate time scale dynamics of the oscillation envelope, exhibiting fluctuations at the onset of self-stabilization. In contrast, central flow coarse-grains over both the fast and intermediate time scales.
We thus unify the three objects.
1.1 Contributions
-
A rod flow for gradient descent, from the centered edge coupling (Section 4).
-
An extension of rod flow to heavy ball and Adam, from the phase-space edge coupling (Section 5).
-
A derivation of the central flow for gradient descent from the centered edge coupling (Section 6).
-
A construction of novel central flows for heavy ball and Adam (Section 7).
-
A demonstration that rod flow and central flow coarse-grain at different time scales (Section 8).
-
An experimental verification of rod flow and central flow (Section 9).
2 Related Work
Edge of stability. Jastrzebski et al. [2020] documented a break-even point on the optimization trajectories of SGD. Cohen et al. [2021] observed that full-batch gradient descent operates at the edge of stability: the sharpness rises to and then hovers there. Cohen et al. [2022] extended the picture to momentum and adaptive methods, and Islamov et al. [2026] to non-Euclidean gradient descent. Theoretical accounts include self-stabilization [Damian et al., 2023], the two-step analysis of period-two orbits [Ahn et al., 2023, Chen and Bruna, 2023], and convergence in the unstable regime [Ahn et al., 2022, Arora et al., 2022, Zhu et al., 2023]. Others study progressive sharpening in quadratic regression [Agarwala et al., 2023], the catapult mechanism [Lewkowycz et al., 2020], and its amplification by momentum [Phunyaphibarn et al., 2024]. Further lines include loss-landscape and bifurcation analyses [Ma et al., 2022, Song and Yun, 2023], the edge of stochastic stability of minibatch SGD [Andreyev and Beneventano, 2024] and of its momentum variants [Andreyev et al., 2026], chaotic convergence to a statistical distribution [Kong and Tao, 2020], and a fixed-point analysis with a period-doubling route to chaos [Kalra et al., 2025]. Litman [2026] introduced the edge coupling, a functional on consecutive iterates whose critical points are the fixed points and period-two orbits of gradient descent. Regis [2026] extended the edge coupling to heavy ball and Nesterov momentum.
Continuous-time models. Gradient flow is the classical continuous limit of gradient descent but cannot capture the oscillations of the edge of stability. Rosca et al. [2023] study its instabilities. Modified equations from backward error analysis [Barrett and Dherin, 2021, Smith et al., 2021, Hairer et al., 2006] do not reach the oscillatory regime either. Central flow [Cohen et al., 2025] was the first continuous-time model of gradient descent, scalar RMSProp and RMSProp at the edge of stability. Berthier [2026] derived central flow for gradient descent by the method of multiple scales, identifying three time scales. Rod flow [Regis and Chewi, 2026b] models consecutive iterates as an extended one-dimensional object. Regis and Chewi [2026a] lifted the rod to phase space, deriving rod flows for momentum and preconditioned methods such as Adam. Other continuous-time models at the edge of stability include edge flow [Marion, 2026] and the mean-fluctuation model [Chodron de Courcel, 2026].
Discrete mechanics. The edge coupling can be identified with the two-period Störmer–Verlet action [Verlet, 1967, Hairer et al., 2003], connecting the edge of stability to discrete mechanics [Marsden and West, 2001]. The linear stability of periodic orbits through the Hessian of a discrete action goes back to MacKay and Meiss [1983]. Symplectic integrators and their shadow Hamiltonians are treated by Hairer et al. [2006] and Benettin and Giorgilli [1994]. A separate line connects momentum methods to variational and conformally symplectic dynamics [Wibisono et al., 2016, França et al., 2020, Muehlebach and Jordan, 2021].
3 Background
We briefly recap central flow, rod flow, and the edge coupling.
3.1 Setup
Consider gradient descent with step size on a loss function :
Let denote the Hessian of the loss, and let denote the sharpness—the largest eigenvalue of the Hessian. For quadratic objectives, the GD iterates diverge when the sharpness exceeds .
Gradient descent operates at the edge of stability (EoS) when the sharpness hovers at the threshold . At EoS, the iterates oscillate along the top eigenvectors of the Hessian, with the sharp components of the gradient alternating in sign from one iteration to the next. These oscillatory dynamics pose a significant challenge for continuous-time models that aim to describe gradient descent at the edge of stability.
3.2 Central Flow
Central flow [Cohen et al., 2025] is a continuous-time model of gradient descent at the edge of stability. Instead of tracking the individual oscillating iterates, it models their time-averaged position and a covariance matrix which represents the oscillations. The central flow is given by the ODE:
The first term is the familiar gradient flow. The second term acts as a sharpness-reduction force, pushing the flow toward flatter regions of the loss landscape. Indeed, when H has only one sharp eigenvalue and the oscillations are confined to the sharp direction, we have:
where is the squared magnitude of the oscillations.
Central flow requires that the following three static conditions must hold along the trajectory:
-
The covariance matrix must be positive semidefinite ( ).
-
The slack must also be positive semidefinite ( ).
-
The oscillations must be confined to the sharp directions .
However, these static conditions alone are not sufficient to determine the covariance matrix. To do so, one must invoke persistence: we require that the dynamics also preserve the constraints.
Let be a matrix whose columns form an orthonormal basis for the critical directions—directions whose sharpness equals . Let denote the number of critical directions. We can then express the covariance matrix as where is a positive semidefinite matrix. Differentiating in time yields the following dynamic constraints:
-
The slack cannot decrease along critical directions .
-
There can be no oscillation in directions whose slack is increasing .
Together with the condition that , these dynamic constraints define a semidefinite complementarity problem—which determines .
Central flow can also be interpreted as a projected gradient flow. Let denote the feasible region, the set of points whose sharpness is at most :
Central flow is gradient flow constrained to , with acting as the Lagrange multiplier that enforces the constraint.
3.3 Rod Flow
Rod flow [Regis and Chewi, 2026b] is a continuous-time model of gradient descent where consecutive iterates are modeled as an extended one-dimensional object—a “rod”. Define the midpoint and half-displacement of consecutive iterates:
The core modeling assumption of rod flow is that, although the individual iterates oscillate at the edge of stability, the midpoint and outer product vary smoothly—and therefore can be tracked by ODEs.
Let denote the extent matrix, the continuous-time analog of . And let denote the principal eigenvector of scaled by the square root of its principal eigenvalue. Although the extent matrix is not constrained to have rank 1, it has been found empirically that it can safely be approximated as rank 1.
Let denote the average of the gradients evaluated at the rod endpoints, and let denote the average of their outer products:
The rod flow ODEs for and are given as:
The midpoint moves with the mean gradient, while the extent is driven by the second moment of the endpoint gradients and damped by the term. Along directions flatter than the threshold, damping dominates and decays quickly. As a result, the extent matrix remains confined to the sharp directions. However, along critical directions, the source and damping terms nearly cancel. Along these directions, grows when the sharpness exceeds the threshold and shrinks when the sharpness falls below it. Thus, unlike with central flow, is not fixed by —instead, it is set dynamically by self-stabilization.
3.4 Edge Coupling
The edge coupling [Litman, 2026] is a functional that takes two points in weight space as arguments:
The critical points of the edge coupling encode the fixed points and period-two orbits of gradient descent.
The edge coupling can be thought of as a generalization of the loss function. The loss has the property that its critical points are precisely the fixed points of gradient descent:
The edge coupling characterizes not only the fixed points but also the period-two orbits. Taking the partial derivative of with respect to and setting it equal to zero recovers the gradient descent update equation from to
And because is symmetric under swapping , we also have that:
There are only two circumstances in which both criticality conditions hold: is a fixed point of gradient descent, or and form a period-two orbit.
For any smooth, invertible change of coordinates, critical points correspond bijectively between the old and new coordinates. We may therefore express the edge coupling in whatever coordinates are most convenient. Consider the coordinate system:
We can then define the centered edge coupling:
The factor of , while not strictly necessary, will prove convenient later.
The edge coupling encodes not only the fixed points and period-two orbits of gradient descent, but also their linear stability—through its Hessian. In the special case where the Hessians at the two arguments agree— —the cross block vanishes, so the Hessian of the centered edge coupling is block-diagonal. We then have that a period-two orbit is linearly stable if and only if:
In this case, linearly-stable period-two orbits correspond to min-max critical points of the centered edge coupling.
4 Rod Flow and Edge Coupling
We show that one can derive a rod flow for gradient descent as continuous-time gradient descent-ascent on the centered edge coupling. We also derive a rod flow for RMSProp.
4.1 Gradient Descent-Ascent
Let denote the half-difference of the gradients of the endpoints of the rod.
Taking derivatives of the centered edge coupling with respect to and , we obtain:
Examining the right-hand side of our equation for , we find a familiar quantity: the average gradient . Recall that the average gradient is precisely what drives the midpoint in rod flow. The expression for is also reminiscent of the right-hand side of the ODE in rod flow:
Even though is a vector while is a matrix, they nonetheless share a similar form. In rod flow, relaxes toward a function of the endpoint gradients, whereas our criticality condition for is a self-consistency condition: must equal the half-difference of the endpoint gradients multiplied by .
Can one derive a rod flow for gradient descent by letting and evolve under gradient flow on the centered edge coupling?
Yes—though there is one subtlety. For gradient flow on the loss, the stable fixed points correspond to critical points of the loss that are local minima. However, recall from (18) that for the centered edge coupling—when the endpoint Hessians agree—stable period-two orbits correspond to critical points that are minima in and maxima in .
So instead of gradient descent, we must perform gradient descent-ascent: descending in and ascending in . This yields the following rod flow:
Expressing the ODEs for and separately, we have:
4.2 The Zero Fixed Point
Before the edge of stability, is a strong attractor of rod flow. This can be seen by Taylor expanding the gradient half-difference to first order in :
Thus, in the stable regime—when all eigenvalues of lie below —each component of decays exponentially, at a rate proportional to the gap between the corresponding Hessian eigenvalue and .
This attraction to the zero fixed point has a practical consequence: even after the sharpness crosses the threshold, it takes time for to recover from the small value it decayed to during the stable phase in order to grow large enough to trigger self-stabilization.
This phenomenon is not specific to rod flow. Gradient descent exhibits the same phenomenon. Let be the half-displacement between consecutive iterates, and let be the Hessian averaged along the gradient step:
By the fundamental theorem of calculus:
We can then deduce:
Let denote an eigenvector of with eigenvalue . The -component of the half-displacement is multiplied by at every step, so it contracts exactly when .
We have that both gradient descent and rod flow are predicted to exhibit exponential decay in the stable regime for and , respectively. However, it's been empirically observed that the sharp component of gradient descent hovers at a small value instead of decaying further (Figure 14). So why does the sharp component of GD's half-step remain small but nonzero, whereas rod flow's plummets toward zero?
The difference turns out to have nothing to do with the dynamics. Rather, it's due to the imprecision of floating-point arithmetic on computers. Each time the weights are stored during gradient descent, rounding due to finite precision injects a small but nonzero noise into the sharp component of . In our setting, it's on the order of for float32. This small rounding noise is what causes gradient descent to self-stabilize earlier than rod flow.
To replicate the effect of finite floating-point precision, we impose a floor on . With this floor in place, rod flow tracks the discrete iterates accurately, including the timing of the onset of self-stabilization.
There is precedent for adding a noise floor. Edge flow [Marion, 2026], an alternative continuous-time model of gradient descent at the edge of stability, implements its own version of a noise floor. More details are provided in Appendix E.2.
4.3 Covariance Versus Second Moment
As observed by Marion [2026], the original formulation of rod flow [Regis and Chewi, 2026b] was unable to track the onset of self-stabilization even though it could track the GD iterates if it was initialized in the steady-state edge of stability regime. But the new formulation of rod flow is able to track the iterates through all phases of training (Figure 3). What's the key difference between the two formulations?
It helps to compare their respective fixed points for the extent. For the edge-coupling-derived formulation of rod flow, we have that the fixed point for is given by the half-difference of the gradient, scaled by . We can then take the outer product to get the fixed point for .
For the original formulation of rod flow, we have that the fixed point of is given by the second moment of the gradient.
We can express the second moment of the gradient in terms of the average gradient and the gradient half-difference.
This is the key difference between the two formulations: in the original rod flow, tracks the second moment of the gradient, whereas in the formulation derived from the edge coupling, it tracks the gradient's covariance.
gradient descent, MLP, MSE: second moment vs covariance

Figure 3: Second Moment Versus Covariance. Second-moment and covariance rod flows on an MLP (). Left: Second-moment rod flow fails to self-stabilize at the transition, whereas covariance rod flow succeeds. Middle and right: Alignment of each flow's extent with the mean gradient and with the gradient half-difference of the discrete iterates. The second-moment rod stays aligned with the mean gradient, while the covariance rod correctly aligns with the gradient half-difference at the onset.
Why might it be better for to track the covariance of the gradient rather than its second moment? Recall that rod flow was motivated by the observation that the outer product varies smoothly. But this is not strictly true. We can decompose the half-displacement into the average gradient and half-difference gradient , which alternates each iteration:
Taking the outer product, we have:
We have that varies smoothly when the alternating terms are small relative to the non-alternating terms. That's true when or . But when and are of similar magnitude, as is the case at the onset of self-stabilization (Figure 4), the alternating terms are comparable in magnitude to the non-alternating terms, violating the assumption that varies smoothly. The edge-coupling-derived rod flow does not have this issue, since its tracks only .
Removing the slow-drift component also means that the edge-coupling-derived rod flow only encodes the oscillations—which makes a certain amount of physical sense.
4.4 Endpoint Rod Flow
Recall the uncentered edge coupling:
(10) gradient descent, MLP, MSE: the alternating term

Figure 4: The Alternating Term at the Onset. Gradient descent on an MLP (). Top: Norms of the mean and the half-difference of consecutive gradients. Before the edge of stability, . In the steady-state edge-of-stability regime, . Bottom: Norm of the alternating term in , relative to that of the non-alternating terms . The alternating term is negligible before the crossing but peaks just after the onset, when and are similar in magnitude.
One can actually construct a rod flow using the uncentered edge coupling:
Expressing the ODEs for and separately:
Rather than tracking the midpoint and the extent , this formulation tracks the two endpoints of the rod directly. Therefore, an apt name for this formulation is endpoint rod flow. We can then call the formulation midpoint rod flow.
Each endpoint regresses toward a “target” created by the other endpoint. This target simultaneously ensures that the two endpoints are the correct distance apart and that both are rolling downhill in accordance with the average gradient.
Although endpoint rod flow appears superficially different from the midpoint formulation of rod flow, the two are equivalent—as follows from a straightforward application of the chain rule. Consequently, they perform identically in experiments (Section 9.2).
4.5 RMSProp
RMSProp [Tieleman and Hinton, 2012] can be considered Adam without momentum. It is an adaptive modification of gradient descent: instead of updating the parameters using the raw gradient, RMSProp maintains an exponential moving average of the componentwise squared gradients and scales each component of the update by the inverse square root of . The preconditioner P is defined as
where is a small numerical constant.
Let denote the componentwise square of a vector v. The update equations for RMSProp are
(38)
where and .
We can define an edge coupling for RMSProp by slightly modifying the edge coupling for gradient descent. The main difference is that the preconditioner now acts as a metric tensor, changing the norm used to measure the displacement between consecutive iterates. Because P depends on the second-moment estimate , the edge coupling must also take as an extra argument:
Similarly, we can also derive a centered edge coupling for RMSProp:
As with gradient descent, we can derive a rod flow for RMSProp from the centered edge coupling. However, with RMSProp, only the position variable has rod structure. Because squaring kills the sign flip, the second moment doesn't oscillate at the edge of stability. So evolves as a smooth auxiliary variable. Recall that
We can then derive the following rod flow for RMSProp:
Notice how simple the interpretation of as a metric tensor is. We have that the identity matrix in the rod flow ODEs for GD is replaced by . Indeed, it must be the inverse that appears here because it acts on the gradient—which is a covector.
For the individual ODEs, we have:
(43)
For the endpoint rod flow, we have:
(44)
Writing out the individual ODEs:
(45)
5 Rod Flow for Momentum Methods
We derive the phase-space edge coupling of heavy ball. We then use the edge coupling to obtain rod flows for heavy ball and Adam.
5.1 The Phase-Space Edge Coupling
Let w and m denote the position and momentum, respectively. The update equations for heavy ball momentum [Polyak, 1964] are given as:
where is the momentum coefficient.
Let denote a point in phase space. Heavy ball admits a phase-space edge coupling: a functional of two phase-space points whose critical points encode the fixed points and period-two orbits of heavy ball [Regis, 2026]. It's given as:
While this property can be verified by direct computation, we will show how one can derive the phase-space edge coupling. Furthermore, our approach applies to all “structured gradient methods”—a family of optimization methods that includes every optimizer in the Adam family.
Structured gradient methods. Consider a discrete-time optimizer whose update rule is of the form
where is the generating function and is the structure matrix. We require that the structure matrix be both constant and symmetric. We will call such an optimizer a structured gradient method. The edge coupling is given as:
Gradient descent corresponds to and . RMSProp, with the second moment frozen, corresponds to and .
Let denote the update map:
The partial gradients of the edge coupling are
By inspection, one can see that precisely when and . As desired, the critical points of encode the fixed points and period-two orbits of the optimizer.
Now consider heavy ball momentum. Heavy ball can be expressed as a structured gradient method with generating function and structure matrix:
By substituting this and into our formula for the edge coupling, we obtain the phase-space edge coupling for heavy ball.
Note that while heavy ball can be expressed as a damped Hamiltonian flow, the structure matrix in that formulation is not symmetric, so it doesn't yield a valid edge coupling. In fact, for the case of heavy ball, the generating function and symmetric structure matrix above are unique up to a trivial simultaneous rescaling. More details on edge couplings for structured gradient methods are given in Appendix B.
5.2 Heavy Ball Rod Flow
Define the centered coordinates:
and the centered phase-space edge coupling:
For gradient descent, we obtained the rod flow by performing gradient descent-ascent on the centered edge coupling. Using a similar approach, we can derive the heavy ball rod flow—though we must now incorporate the structure matrix . By applying to the gradient in the midpoint and to the gradient in the extent , we obtain the following rod flow:
Writing out the individual ODEs:
Note that at the heavy ball rod flow reduces to the gradient descent rod flow.
For the endpoint rod flow, we have:
Writing out the individual ODEs:
(60)
Each endpoint regresses toward the heavy-ball image of the other endpoint.
An analogous rod flow can be derived for Nesterov momentum using the Nesterov phase-space edge coupling. More details are provided in Appendix C.
5.3 Adam
Adam [Kingma and Ba, 2015] combines momentum with the adaptive preconditioner of RMSProp. Adam's update equations are:
(61)
where —the same as in RMSProp. For simplicity, we omitted the bias correction, though it can be incorporated into the formalism without much difficulty. Details are provided in Appendix E.3.
Treating as fixed, Adam is a structured gradient method on phase space. Its generating function and structure matrix are those of heavy ball except that the preconditioner P replaces the identity matrix as the acting metric tensor.
For the edge coupling, we have:
And for the centered edge coupling, we have:
As with RMSProp, we treat the second-moment as a smooth auxiliary variable. We then obtain the following rod flow for Adam:
Writing out the individual ODEs:
For the endpoint rod flow, we have:
Writing out the individual ODEs:
One can also derive an edge coupling and rod flow for AdamW, a modification of Adam whose update rule decays the weights towards zero. The details are provided in Appendix D.
6 Central Flow and Edge Coupling
We derive central flow from the centered edge coupling. Whereas the extent of rod flow is governed by an ODE, the covariance matrix of the central flow acts as a Lagrange multiplier, constraining the dynamics to the feasible region.
6.1 The Truncated Edge Coupling
Losses in machine learning have been found to be well described by their local quadratic approximation [Meterez et al., 2026]. Applying this approximation about the midpoint , we have that:
Substituting this approximation into the centered edge coupling, we obtain the truncated edge coupling:
Notice that the quadratic terms of the truncated edge coupling depend on only through :
We will now replace the positive semidefinite rank-one matrix with a general positive semidefinite matrix , which we call the covariance matrix. The truncated edge coupling can then be written as a function of :
Why may we consider general positive semidefinite matrices rather than only positive semidefinite rank-one matrices? Recall that every positive semidefinite matrix can be written as a convex combination of positive semidefinite rank-one matrices. Since is linear in , its supremum over all positive semidefinite matrices equals its supremum over positive semidefinite rank-one matrices, so the maximum value is unchanged.
There is also a physical reason to allow arbitrary positive semidefinite . As we will see in Section 8.2, arises as the time average over intermediate time scales—and a time average of rank-one positive semidefinite matrices can be arbitrary rank.
6.2 Covariance Matrix as Lagrange Multiplier
Recall that, when the endpoint Hessians agree, stable period-two orbits correspond to min-max critical points of the centered edge coupling in and . When we replace by , we retain the maximization criterion. However, unlike with rod flow, central flow does not determine the dynamics of by an ODE. Instead, is determined at each instant by a maximization problem parametrized by .
Notice that the truncated edge coupling is linear in . Let denote the slack. Since does not depend on , the maximization over is governed entirely by the linear term
The argmax is determined by the sharpness . When the sharpness is less than , is positive definite and the argmax is the zero matrix. When the sharpness is greater than , no argmax exists: the maximization problem is unbounded as any component of along the top eigenspace of can be increased without bound. When the sharpness is exactly , the solution is not unique: any supported on the kernel of is a valid maximizer, since it contributes nothing to . We then have that:
(73) where
is the critical face. is an orthonormal basis for the -dimensional eigenspace of at . represents the set of covariance matrices whose oscillations are confined to the critical subspace.
There are three conditions that Cohen et al. [2025] impose on the central flow:
The first condition requires the covariance matrix to be positive semidefinite. The second requires the slack to be positive semidefinite, which is equivalent to confining the flow to the feasible region . The third condition requires the covariance matrix to be orthogonal to the slack . This encodes the fact that oscillations are confined to the critical subspace of . We have that these three conditions are obtained by maximizing the truncated edge coupling over .
Whereas rod flow encodes the oscillations in the state variable , the covariance matrix of central flow acts as a Lagrange multiplier that constrains the dynamics to the feasible region. Thus, the dynamics of central flow correspond to a constrained minimization problem rather than a min-max problem.
6.3 Persistence
Central flow can be expressed as gradient flow on the truncated edge coupling:
where is a maximizer of . The resultant system defines a differential complementarity problem: an ordinary differential equation coupled to complementarity conditions.
When the sharpness is below , the maximizer is —central flow reduces to gradient flow. However, when the sharpness equals , the maximizer is no longer unique. How do we select ?
We select by invoking persistence: feasibility and complementarity must hold not only at a single instant but along the entire trajectory. It's these dynamic constraints that determine .
Define the rate of change of the slack:
For the trajectory to remain feasible, we require that the slack not decrease along the sharp directions (where the slack is zero). These directions are given by the columns of U—which yields the condition:
This condition allows a critical eigenvalue to move below , but prevents it from moving above .
Complementarity requires that oscillations occur only in directions where the slack is zero. Persistence of complementarity then dictates that if a direction develops a positive slack, it can no longer carry oscillations. Any direction that carries oscillations must therefore not only have zero slack, but also stay at zero slack to first order— . Rearranging, we obtain the following condition:
Altogether, we have that the following conditions define the central flow for gradient descent:
One can show that the SDCP is equivalent to a convex quadratic program for X. Further details are provided in Appendix F.1.
6.4 RMSProp
We can also derive a central flow for RMSProp. The truncated edge coupling is given as:
Define the slack:
Maximization over gives the static conditions:
Let be an orthonormal basis for the kernel of . Then for some .
The midpoint and second-moment evolve according to:
(86)
where we make the approximation
which follows from the local quadratic approximation of the loss about and by replacing with . For the time derivative of the slack, we have:
At fixed , both terms are affine in . Persistence of feasibility and complementarity gives:
These conditions define a semidefinite complementarity problem that determines the covariance . Altogether, we have that the following conditions define the central flow for RMSProp:
This is precisely the RMSProp central flow of Cohen et al. [2025].
7 Central Flow for Momentum Methods
Using the phase-space edge coupling, we derive novel central flows for heavy ball and Adam.
7.1 Eliminating the Momentum Oscillation
We would like to derive a heavy-ball central flow. To do so, it helps to first eliminate the momentum oscillations , so that the edge coupling is expressed only in terms of .
Recall the centered phase-space edge coupling of heavy ball. The momentum half-difference enters it through only two terms:
As period-two orbits are critical points of , they are stationary in . Since is strictly convex in , stationarity has the unique solution
which minimizes over . For period-two orbits, the momentum oscillation is not an independent degree of freedom: it is fixed by the position oscillation.
Define the reduced edge coupling:
Note that the critical points of the reduced edge coupling exactly correspond to those of the centered phase-space edge coupling.
7.2 The Truncated Reduced Edge Coupling
As with gradient descent, we approximate the loss about the midpoint by its local quadratic approximation:
Substituting into the reduced edge coupling and again replacing with a general positive semidefinite matrix , we obtain the truncated reduced edge coupling:
where
The truncated edge coupling of heavy ball is quite similar to that of gradient descent—though there are two differences. First, the slack differs between heavy ball and gradient descent, reflecting the differing sharpness thresholds of the two methods. Second, the heavy-ball reduced edge coupling has an extra term proportional to the squared midpoint momentum.
Maximizing over , we obtain the following conditions:
As was the case with gradient descent, the covariance matrix acts as a Lagrange multiplier—now constraining the dynamics to the feasible region of heavy ball.
Following a similar approach, one can also derive a central flow for Nesterov momentum. Details are provided in Appendix C.
7.3 Persistence
Taking derivatives of the truncated reduced edge coupling with respect to the midpoint variables gives:
As with the heavy ball rod flow, we apply the structure matrix K to the gradient of the truncated reduced edge coupling to obtain the central flow ODE for heavy ball.
Writing the ODEs for and individually:
(101)
Note that the central flow ODEs for the midpoint variables are quite similar to the ODEs of continuous-time heavy-ball flow—with the only difference being that every gradient is now accompanied by an additional sharpness-reducing force.
As with the central flow for gradient descent, to determine we invoke persistence: feasibility and complementarity must hold along the trajectory.
Let U be an orthonormal basis for the kernel of . Static complementarity requires:
Computing the rate of change of the slack:
Persistence of feasibility requires that the slack not decrease along sharp directions:
Persistence of complementarity requires that there be no oscillations in directions whose slack is increasing:
As with gradient descent, the persistence conditions define a semidefinite complementarity problem for X. Altogether, we have that the following conditions define the central flow for heavy ball:
Figure 5 illustrates the central flow for heavy ball. As with gradient descent, it can be interpreted as a projected flow: at the boundary of the feasible region, the sharpness-reduction force cancels the outward component of the motion. What is projected, however, is the heavy-ball step rather than the negative gradient.

Figure 5: Heavy-Ball Central Flow. The gray region is the feasible region for heavy ball. While the stable flow leaves the feasible region, the central flow turns a corner at the boundary and follows it to a constrained minimum. Inset: The heavy-ball update points out of the feasible region. The sharpness-reduction force cancels its outward component, and what remains is the velocity of the central flow.
7.4 Adam
We can also obtain a central flow for Adam. With the second moment held fixed, the centered phase-space edge coupling of Adam depends on as:
Stationarity in gives . Eliminating from the centered phase-space edge coupling yields the reduced edge coupling:
This closely parallels the reduced edge coupling for heavy ball, except that the preconditioner now acts as the metric tensor. Replacing with , the truncated edge coupling becomes:
where the Adam slack is given as:
Maximizing over gives the following static conditions:
Let be an orthonormal basis for ker . As before, we write:
We can then obtain the central flow for Adam:
(113)
As with RMSProp, the second-moment equation uses the approximation
which follows from the local quadratic approximation of the loss about and by replacing with .
We determine the covariance by imposing persistence of feasibility and complementarity. The time derivative of the slack is:
At fixed , both the and terms are affine in . Persistence then requires:
These persistence conditions define a semidefinite complementarity problem for . Altogether, we have that the following conditions define the central flow for Adam:
One can also derive a central flow for AdamW. Details are provided in Appendix D.
8 Rod Flow and Central Flow
We show that the key difference between rod flow and central flow is the time scale at which they coarse-grain. Rod flow coarse-grains over only the fast time scale, whereas central flow coarse-grains over both the fast and the intermediate time scales.
8.1 Fast, Intermediate, and Slow Time Scales
Berthier [2026] derived central flow by the method of multiple scales, identifying three time scales. There's the fast time scale, given by the iteration counter itself. On this time scale, the sharp components of the iterates alternate in sign. There's the intermediate time scale of self-stabilization. When the oscillation amplitude departs from its steady-state value, this time scale governs how long it takes for the amplitude to re-equilibrate. Finally, there's the slow time scale. It's the time scale that governs the drift of the center of the oscillating iterates.
Under this framework, rod flow is an effective theory for gradient descent that coarse-grains over the fast time scale only. Recall that the half-displacement of the iterates decomposes as
The alternating component flips sign at every step of the iteration counter. By tracking the unsigned envelope of the oscillation, rod flow coarse-grains over this sign flip.
What are the dynamics of the envelope? It helps to consider the rod flow ODEs when expanded to leading order in :
The ODE for says that oscillations grow along components sharper than the threshold and decay along components that are less sharp than the threshold. The ODE for is reminiscent of the one for central flow: it is a gradient flow on the loss, plus a sharpness-reduction force whose strength is proportional to the squared magnitude of the oscillations.
Together, the two equations form a feedback loop. Excess sharpness causes the amplitude to grow along sharp directions. The larger oscillations strengthen the sharpness-reduction force, which pushes the sharpness below the threshold. The oscillations then decay, weakening the sharpness-reduction force. The sharpness then grows until it is back above the threshold. The result is self-stabilization: the iterates hover at the sharpness threshold without diverging.
We can express the self-stabilization loop as a Lotka–Volterra-type system. Consider the case of a single sharp direction. Let where is the unit vector in the sharp direction. And let denote the excess sharpness. Then we can obtain the following ODEs for the amplitude s and the excess sharpness x:
where and . Here is the progressive sharpening constant: it measures how much descending the loss tends to increase the sharpness. We have that corresponds to progressive sharpening. Likewise, is the sharpness reduction coefficient: it measures the strength of the sharpness-reduction force per unit of squared amplitude.
Where does central flow fit in? The solutions to the Lotka–Volterra-type system above trace out closed orbits. Averaging the excess sharpness and the squared amplitude over one orbit gives:
Over one orbit, the average excess sharpness is zero. And the average squared amplitude is proportional to the progressive sharpening constant and inversely proportional to the sharpness reduction coefficient. We have that oscillations are larger when progressive sharpening is strong or when the third derivative of the loss is small.
Central flow corresponds to the approximation in which we replace the instantaneous value of the amplitude-squared with its average over one orbit. Instead of coarse-graining over just the fast time scale of alternation as with rod flow, central flow also coarse-grains over the intermediate time scale of self-stabilization.
One subtlety is that the orbits are closed only when r and c evolve on the slow time scale and can therefore be treated as constant. For r, this assumption holds only while the oscillation is small. Once the oscillation becomes large, the orbits are no longer closed: the period lengthens and the orbits decay. Importantly, however, the orbit averages remain valid even in this regime—which is what justifies central flow's approximation.

gradient descent, MLP, MSE: two critical directions

Figure 6: Central Flow as Time-Averaged Rod Flow. Top: The extent matrix of rod flow has rank one at any given instant. In the presence of multiple sharp eigenvalues, rod flow self-stabilizes by turning in the critical subspace. The covariance matrix of central flow can be interpreted as the time average of the extent matrix. It has rank , where is the number of critical eigenvalues. Bottom: Gradient descent on an MLP (). There are two sharp eigenvalues. The extent matrix of rod flow and the discrete iterates are averaged over windows of iterations. Left: As the width of the averaging window increases, their participation ratio rises from one to that of . Right: Their normalized Bures–Wasserstein distance to falls toward zero.
8.2 Central Flow as Time-Averaged Rod Flow
That the two flows coarse-grain over different time scales also helps explain another key difference between them—the rank of the object each uses to encode the oscillations.
Rod flow is rank one: it tracks a single vector . This modeling assumption is natural, as a single step of gradient descent displaces the iterate along a single vector. But it raises a question: how does rod flow continue to track the iterates when there are multiple sharp directions?
Central flow is rank k, where k is the number of critical eigenvalues. This makes sense too. Each oscillation direction self-stabilizes a different sharp direction, and all k directions are needed for the SDCP of central flow to have a solution. But it raises a question of its own: what observable of the discrete iterates does a rank-k covariance correspond to?
Let denote the extent matrix of rod flow, and let denote the covariance matrix of central flow. We claim that the extent matrix of rod flow, averaged over the intermediate time scale, equals the covariance matrix of central flow:
where the averaging window spans one full swing of the rod through the critical subspace. The window is long on the intermediate time scale but short on the slow one, so barely moves across it. Empirically, we find that corresponds to roughly two orbits of the self-stabilization loop.
Rod flow maintains self-stabilization by turning. Although the extent is rank one at any given instant, its axis swings back and forth within the critical subspace. Central flow, whose covariance matrix encodes the time-averaged oscillations, carries all of the sharp directions at once. That the covariance matrix has rank is necessary. As Berthier [2026] notes, when the self-stabilization loop is generalized to more than one sharp direction, it generically has no rank-one fixed point.
We tested this hypothesis experimentally in a setting with two sharp eigenvalues (Figure 6). We averaged the extent matrix of rod flow over windows of increasing length and compared each average with the covariance matrix of central flow. Rather than comparing the ranks of these matrices, we compared their participation ratios (PR) as the participation ratio is less sensitive to small eigenvalues.
where are the eigenvalues of .
As expected, the extent matrix of rod flow averaged over a window of one step has rank one. As the window grows, the participation ratio rises. It completes 90% of its rise at a window length of about 185 iterations and levels off by 250, reaching 1.67 compared with 1.70 for central flow. The participation ratio stays below two because the two critical directions are unequally excited.
While the participation ratio tells us that the oscillations are spread out across directions to a similar degree, it doesn't tell us whether those directions coincide. To probe this, we also computed the Bures–Wasserstein distance between the time-averaged extent matrix and the covariance matrix of central flow. We normalized the distance by , so that it does not depend on the overall size of the oscillations:
where denotes the time-averaged extent matrix over a window of length iterations.
Roughly, a normalized distance near one indicates very dissimilar matrices, whereas a distance near zero indicates nearly identical ones. When comparing and across averaging windows of increasing width, the normalized distance falls from 0.69 for a single step to 0.06 at . This shows that the two matrices agree not only on the magnitude of the oscillations but also in their direction.
8.3 Turning Rate of the Rod
What determines how fast the rod turns? Write with . The rod flow ODE for then splits into separate ODEs for the amplitude and the axis :
where is the component of the gradient half-difference orthogonal to the current axis of the rod. All of the turning comes from this transverse component. Taylor-expanding

Figure 7: Turning Rate of the Rod. Gradient descent on an MLP ( ). Left: Time series of the turning rate for rod flow and for the discrete oscillation, compared with the prediction of the linear turning law. Middle: Scatter plot of measured versus predicted turning rates for the discrete oscillation and for rod flow, showing strong agreement. Right: Participation ratio of the time-averaged extent matrix as a function of the swept angle.
the gradient half-difference and retaining only the Hessian term of , we obtain:
As the right-hand side is orthogonal to , the flow preserves . By the Pythagorean theorem, . And since is symmetric, . Hence
To help interpret this expression, write
where the are orthonormal eigenvectors of the Hessian with corresponding eigenvalues . Note that . We then have that:
where is the Rayleigh quotient of at . The rod therefore turns faster when has substantial components along several eigenvectors with different eigenvalues.
To make this concrete, consider the case where we have two sharp eigenvalues with respective eigenvectors and . Write . Then
where is the unit vector perpendicular to in the two-dimensional critical plane. Using and , a direct computation gives:
heavy ball, MLP, MSE: two critical eigenvalues

Figure 8: Position and Momentum Extents of Heavy Ball. Heavy ball on an MLP ( , ). There are two critical eigenvalues. Left: The amplitude ratio over time. For period-two orbits, the amplitude ratio is (dashed line). The ratio hovers around this value but shows non-trivial fluctuations. Middle: The alignment between the position and momentum extents. Right: The normalized Bures-Wasserstein distance between the time averages and . As the averaging window grows, the time-averaged position and momentum extent matrices increasingly agree with the relation they satisfy on a period-two cycle.
Matching the coefficients of yields:
The turning rate is thus proportional to the gap between the two critical eigenvalues. In particular, since , the rod turns toward —the direction of the sharper eigenvector .
We tested the turning-rate law by comparing the measured turning rate with its predicted value and found strong agreement between the two (Figure 7). Furthermore, in the case of two sharp eigenvalues, we found that the participation ratio of converged to that of after roughly radians of turning—in line with expectations.
8.4 Turning Rate for Momentum Methods
We will now consider the turning rate for heavy ball. Let . As before, the rate of change of the direction is given by the orthogonal component of the update for , divided by the amplitude s:
In contrast with gradient descent, there is now a term proportional to the momentum extent —which must be handled with care. For a period-two orbit, the position and momentum half-differences are in fixed proportion. However, this is not generically true of the position and momentum extents over the course of the dynamics (Figure 8).
To see why, consider heavy ball on the one-dimensional quadratic . The update is linear in phase space:
It helps to examine the eigenvalues and eigenvectors of . Since and , the characteristic equation is
The eigenvalues and corresponding eigenvectors are
One can see that the eigenvalues are complex when . This is satisfied when:
At , the window is —against a threshold value of 38. Because sharp eigenvalues hover around the sharpness threshold rather than staying exactly at it, for large momentum coefficients they spend a significant fraction of the time in the complex window. This causes the sharp components to rotate in the plane. As a result, their amplitude ratio fluctuates instead of staying at exactly .
We must therefore treat as a separate degree of freedom. Define , the momentum extent divided by the position amplitude. Linearizing as before, the ODE gives
The amplitude enters through the ratio , which we can express in terms of and using the ODE for :
Substituting this expression, we obtain a closed system of ODEs for the pair :
We tested this turning law for heavy ball and again found good agreement with the measured turning rate. More details are provided in Appendices H.3 and H.4.
8.5 Summary
There are four main modeling differences between central flow and rod flow.
-
Central flow treats the covariance matrix as a Lagrange multiplier, whereas in rod flow the extent evolves according to its own ODE.
-
Central flow replaces the loss with its local quadratic approximation so that is affine in , whereas rod flow evaluates the exact loss at the endpoints of the rod.
-
The covariance matrix of central flow is rank k, where k is the number of critical eigenvalues, whereas the extent matrix of rod flow is rank one.
-
For momentum methods, central flow represents only the position oscillations, whereas rod flow carries the position and momentum extents as distinct degrees of freedom.
This time-scale analysis reveals that these modeling choices are not independent: all four differences follow from the fact that central flow coarse-grains over the intermediate time scale.
Averaging over the self-stabilization loop removes the amplitude as a dynamical variable. What survives is its orbit average, which is the Lagrange multiplier that holds the sharpness at . Because the covariance matrix of central flow is a Lagrange multiplier rather than a state variable, it must be determined by solving an optimization problem. To make this optimization problem tractable, it helps to replace the loss with its local quadratic approximation—which makes the dynamics of affine in and yields an SDCP. Once is fixed by the SDCP, persistence dictates that its rank must equal the number of critical directions. And while the momentum and position oscillations may be independent at any given instant, their time averages converge to the amplitude ratio of a period-two orbit—rendering them interdependent over intermediate time scales.
9 Experiments
We evaluate the rod flows and central flows on three representative neural network architectures: an MLP [Rumelhart et al., 1986], a CNN [LeCun et al., 1998], and a ViT [Dosovitskiy et al., 2021]. We compare them with both the discrete iterates and the stable flow, the naïve continuous-time limit of the discrete optimizer.
9.1 Setup
All three models were trained full-batch on the same subset of 5 000 examples from CIFAR-10 [Krizhevsky, 2009]. The loss function was mean squared error (MSE) on one-hot targets. The MLP had two hidden layers of width 50 (156 710 parameters). The CNN had two convolutional layers with 32 channels (30 634 parameters). The ViT was a SimpleViT [Beyer et al., 2022] with width 64, depth 3, 8 attention heads of width 8, and MLP blocks of width 256 (153 322 parameters). The step sizes were chosen using probe runs, so that the edge of stability was reached after a few thousand iterations.
We ran experiments on the following optimizers: gradient descent, RMSProp, heavy-ball momentum, Nesterov momentum, Adam, and AdamW. In this section, we will focus on the results for gradient descent and Adam. The experimental results for all the optimizers can be found in Appendix H.
For each optimizer, we ran stable flow, midpoint and endpoint rod flow (mp-rod and ep-rod in the figures), and central flow. Both rod flows were run with noise floors. For gradient descent, we also ran two other continuous-time models: edge flow [Marion, 2026] and the mean-fluctuation model [Chodron de Courcel, 2026]. We implemented the mean-fluctuation model from the first version of Chodron de Courcel [2026], whose equations are unchanged in the second.
Each flow was initialized from the discrete iterates 1 000 iterations before the transition to the edge of stability and run until 3 000 iterations after it (500 before and 1 500 after for the ViT). The flows were integrated with four forward Euler substeps per iteration.
9.2 Results
Gradient descent. Figure 9 shows the results for gradient descent on the three architectures. Every flow except the stable flow self-stabilizes at the sharpness threshold. The sharpness of

Figure 9: Experimental Results for Gradient Descent. Left: MLP (). Center: CNN (). Right: ViT (). The flows are handed off from the discrete iterates 1 000 iterations before the crossing (500 for the ViT). All flows except the stable flow self-stabilize at the sharpness threshold, and they track the discrete iterates orders of magnitude more closely than the stable flow does.
central flow sits exactly at the threshold, while the sharpnesses of the other flows fluctuate about the threshold. Importantly, rod flow now successfully tracks the discrete iterates through the transition to the edge of stability—fixing a shortcoming of the previous formulation.
Every flow tracks the center of the iterates more than an order of magnitude more closely than the stable flow does. Rod flow tracks best on the MLP and the CNN, staying three to four times closer to the iterates than the next-best flow. On the ViT, the five flows are within a factor of two of one another, with central flow tracking slightly better than the other flows. For all three architectures, the midpoint and endpoint rod flows coincide.
Several critical eigenvalues. It is of interest to test the performance of rod flow and central flow in the presence of multiple sharp eigenvalues. To do so, we conducted an extended run on the MLP—until three eigenvalues had reached the threshold (Figure 10). Each new critical eigenvalue raises the tracking error: about tenfold when the second largest eigenvalue becomes critical, and about twofold when the third largest one does. Furthermore, once a second eigenvalue becomes critical, the distance between the flows and the discrete iterates starts to wobble. Still, even in the presence of multiple sharp eigenvalues, both rod flow and central flow successfully track the discrete iterates, staying more than an order of magnitude closer to them than the stable flow does.
gradient descent, MLP, MSE
Top 6 effective eigenvalues at the discrete midpoint

Centre distance to the discrete midpoint

Figure 10: Tracking Through Three Critical Eigenvalues. Gradient descent on an MLP (). Top: The top six eigenvalues of the Hessian at the discrete midpoint. , , and reach the threshold one after another. Bottom: The distance from each flow's center to the discrete midpoint. Rod flow and central flow stay close to the iterates through all three transitions, while the stable flow drifts away.
Adam. The previous formulation of the rod flow for Adam [Regis and Chewi, 2026a] had several shortcomings. Like the original rod flow for gradient descent, it could not track the transition to the edge of stability and had to be initialized in the steady-state edge of stability regime. But even there, it failed to track the iterates for large values of the momentum coefficient—the largest value demonstrated was for the MLP.
In our experimental runs, all three architectures use , , and bias correction—hyperparameter settings that are actually used in practice. And as was the case with gradient descent, the flows are initialized before the transition.
Figure 11 shows the results for Adam on the three architectures. Let denote the bias-corrected preconditioner:
Every flow except the stable flow self-stabilizes the preconditioned sharpness at the threshold—that of heavy ball at . The preconditioned sharpness of the central flow sits at the threshold, while those of the rod flow and the discrete iterates fluctuate within a few percent of it.
Every other flow also tracks the center of the iterates more closely than the stable flow does:

Figure 11: Experimental Results for Adam (with bias correction). Left: MLP (). Center: CNN (). Right: ViT (). All three with , . All flows except the stable flow self-stabilize the preconditioned sharpness at its threshold , and they track the discrete iterates more closely than the stable flow does.
twenty to thirty times more closely on the MLP and the ViT, and about six times more closely on the CNN. However, on the MLP and the CNN, this is a far smaller margin than was the case for gradient descent. Also, the rod flow and central flow for Adam perform much more alike than they did for gradient descent. Rod flow still tracks better, but central flow is only ten to forty percent farther from the discrete iterates than rod flow.
Why does the edge-coupling-derived formulation of the Adam rod flow perform well while the original formulation did not? We conjecture that the discrepancy comes from how the two formulations handle the slow drift. As grows, the drift makes up a larger and larger share of the momentum. Because the extent of the original formulation tracks the second moment of the momentum—drift included—it can no longer self-stabilize once the drift becomes comparable in size to the oscillations.
Regis and Chewi [2026a] had suggested that period-doubling bifurcations could be a possible cause for the failure of self-stabilization of rod flow at large values of . However, we found that the oscillations of Adam are in fact mostly period-two—though with some bursty behavior. More details on the validity of the near-period-two assumption can be found in Appendix H.5.
10 Conclusion
We have established connections between central flow, rod flow, and the edge coupling. Using the edge coupling, we derived an alternative formulation of rod flow—which now accurately tracks the iterates throughout all phases of training. In addition, we used the edge coupling to re-derive the central flows for gradient descent and RMSProp. This allowed us to generalize our derivation to obtain central flows for heavy ball and Adam. We have also shown that central flow and rod flow represent different coarse-grained descriptions of the dynamics—which explains how they can differ while both remaining accurate.
Limitations. Rod flow and central flow currently apply only to the full-batch setting. Both are also more expensive than the optimizers they model, so they are tools for understanding optimization dynamics rather than substitutes for the optimizers. Finally, while we have provided extensive experimental verification, we have not formally proven that rod flow or central flow precisely tracks the discrete iterates.
Future work. Natural next steps include extending rod flow and central flow to the minibatch setting. One would also like to prove formal tracking bounds between the flows and the discrete iterates. Finally, extending this framework to optimizers outside the Adam family remains future work.
Acknowledgements
We would like to thank Raphaël Berthier for discussions. We used various LLMs—Opus 5.5, Fable 5.1, and GPT-6 Astra—in the brainstorming, drafting, and editing of this paper. We thank the authors of the Central Flow paper for making their code publicly available. Our implementation builds on code from https://github.com/alex-damian/EOS and https://github.com/centralflows/centralflows.
References
A. Agarwala, F. Pedregosa, and J. Pennington. Second-order regression models exhibit progressive sharpening to the edge of stability. In Proceedings of the 40th International Conference on Machine Learning, ICML'23. JMLR, 2023.
K. Ahn, J. Zhang, and S. Sra. Understanding the unstable convergence of gradient descent. In International Conference on Machine Learning, pages 247–257. PMLR, 2022.
K. Ahn, S. Bubeck, S. Chewi, Y. T. Lee, F. Suarez, and Y. Zhang. Learning threshold neurons via edge of stability. Advances in Neural Information Processing Systems, 36:19540–19569, 2023.
A. Andreyev and P. Beneventano. Edge of stochastic stability: Revisiting the edge of stability for SGD. arXiv preprint arXiv:2412.20553, 2024.
A. Andreyev, A. Ananthkumar, M. Walden, T. Poggio, and P. Beneventano. Momentum further constrains sharpness at the edge of stochastic stability. arXiv preprint arXiv:2604.14108, 2026.
S. Arora, Z. Li, and A. Panigrahi. Understanding gradient descent on the edge of stability in deep learning. In International Conference on Machine Learning, pages 948–1024. PMLR, 2022.
K. J. Arrow, L. Hurwicz, and H. Uzawa. Studies in linear and non-linear programming. Stanford University Press, 1958.
D. Barrett and B. Dherin. Implicit gradient regularization. In International Conference on Learning Representations, 2021.
G. Benettin and A. Giorgilli. On the Hamiltonian interpolation of near-to-the-identity symplectic mappings with application to symplectic integration algorithms. Journal of Statistical Physics, 74 (5–6):1117–1143, 1994.
R. Berthier. The multiple timescales of gradient descent on the edge of stability: a perturbative derivation of the central flow. arXiv preprint arXiv:2609.01034, 2026.
L. Beyer, X. Zhai, and A. Kolesnikov. Better plain ViT baselines for ImageNet-1k. arXiv preprint arXiv:2205.01580, 2022.
R. Bhatia, T. Jain, and Y. Lim. On the Bures–Wasserstein distance between positive definite matrices. Expositiones Mathematicae, 37(2):165–191, 2019.
H. Brézis. Opérateurs maximaux monotones et semi-groupes de contractions dans les espaces de Hilbert, volume 5 of North-Holland Mathematics Studies. North-Holland, 1973.
L. Chen and J. Bruna. Beyond the edge of stability via two-step gradient updates. In International Conference on Machine Learning, pages 4330–4391. PMLR, 2023.
A. Chodron de Courcel. Mean-fluctuation dynamics at the edge of stability. arXiv preprint arXiv:2606.05326, 2026. Version 2; version 1 titled “Gradient descent at the edge of stability: free energy model and kinetic description of the two-layer network”.
J. Cohen, S. Kaur, Y. Li, J. Z. Kolter, and A. Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. In International Conference on Learning Representations, 2021.
J. Cohen, A. Damian, A. Talwalkar, J. Z. Kolter, and J. D. Lee. Understanding optimization in deep learning with central flows. In The Thirteenth International Conference on Learning Representations, 2025.
J. M. Cohen, B. Ghorbani, S. Krishnan, N. Agarwal, S. Medapati, M. Badura, D. Suo, D. Cardoze, Z. Nado, G. E. Dahl, and J. Gilmer. Adaptive gradient methods at the edge of stability. arXiv preprint arXiv:2207.14484, 2022.
B. Cornet. Existence of slow solutions for a class of differential inclusions. Journal of Mathematical Analysis and Applications, 96(1):130–147, 1983.
A. Damian, E. Nichani, and J. D. Lee. Self-stabilization: the implicit bias of gradient descent at the edge of stability. In The Eleventh International Conference on Learning Representations, 2023.
C. Daskalakis, A. Ilyas, V. Syrgkanis, and H. Zeng. Training GANs with optimism. In International Conference on Learning Representations, 2018.
A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby. An image is worth 16x16 words: transformers for image recognition at scale. In International Conference on Learning Representations, 2021.
P. Dupuis and A. Nagurney. Dynamical systems and variational inequalities. Annals of Operations Research, 44(1):7–42, 1993.
Y. Fong and H. Yang. Adam at the edge of stability: adaptive feedback, provable oscillation, and gradient reversal. arXiv preprint arXiv:2608.20638, 2026.
G. França, J. Sulam, D. P. Robinson, and R. Vidal. Conformal symplectic and relativistic optimization. In Advances in Neural Information Processing Systems, 2020.
E. Hairer, C. Lubich, and G. Wanner. Geometric numerical integration illustrated by the Störmer–Verlet method. Acta Numerica, 12:399–450, 2003.
E. Hairer, C. Lubich, and G. Wanner. Geometric numerical integration: structure-preserving algorithms for ordinary differential equations. Springer, 2006.
C. Henry. An existence theorem for a class of differential equations with multivalued right-hand side. Journal of Mathematical Analysis and Applications, 41(1):179–186, 1973.
R. Islamov, M. Crawshaw, J. Cohen, and R. Gower. Non-Euclidean gradient descent operates at the edge of stability. In International Conference on Machine Learning, 2026.
S. Jastrzebski, M. Szymczak, S. Fort, D. Arpit, J. Tabor, K. Cho, and K. Geras. The break-even point on optimization trajectories of deep neural networks. In International Conference on Learning Representations, 2020.
D. S. Kalra, T. He, and M. Barkeshli. Universal sharpness dynamics in neural network training: Fixed point analysis, edge of stability, and route to chaos. In The Thirteenth International Conference on Learning Representations, 2025.
D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
L. Kong and M. Tao. Stochasticity of deterministic gradient descent: Large learning rate for multiscale objective function. In Advances in Neural Information Processing Systems 33, 2020.
A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 4 2009.
Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
A. Lewkowycz, Y. Bahri, E. Dyer, J. Sohl-Dickstein, and G. Gur-Ari. The large learning rate phase of deep learning: the catapult mechanism. arXiv preprint arXiv:2003.02218, 2020.
E. Litman. The origin of edge of stability. arXiv preprint arXiv:2604.20446, 2026.
I. Loshchilov and F. Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
C. Ma, D. Kunin, L. Wu, and L. Ying. Beyond the quadratic approximation: the multiscale structure of neural network loss landscapes. Journal of Machine Learning, 1(3):247–267, 9 2022.
R. S. MacKay and J. D. Meiss. Linear stability of periodic orbits in Lagrangian systems. Physics Letters A, 98(3):92–94, 1983.
P. Marion. Edge flow: a tractable and predictive continuous-time model for gradient descent at the edge of stability. arXiv preprint arXiv:2606.18080, 2026.
J. E. Marsden and M. West. Discrete mechanics and variational integrators. Acta Numerica, 10: 357–514, 2001.
A. Meterez, P. A. Nair, D. Morwani, C. Pehlevan, S. Kakade, and A. Damian. A defense of the quadratic model. arXiv preprint arXiv:2607.21716, 2026.
M. Muehlebach and M. I. Jordan. Optimization with momentum: dynamical, control-theoretic, and symplectic perspectives. Journal of Machine Learning Research, 22(73):1–50, 2021.
A. Nagurney and D. Zhang. Projected Dynamical Systems and Variational Inequalities with Applications. International Series in Operations Research & Management Science. Kluwer Academic Publishers, 1996.
Y. E. Nesterov. A method for solving the convex programming problem with convergence rate . Proceedings of the USSR Academy of Sciences, 269:543–547, 1983.
A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Köpf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, volume 32, 2019.
P. Phunyaphibarn, J. Lee, B. Wang, H. Zhang, and C. Yun. Gradient descent with Polyak's momentum finds flatter minima via large catapults. arXiv preprint 2311.15051, 2024.
B. T. Polyak. Some methods of speeding up the convergence of iteration methods. USSR Computational Mathematics and Mathematical Physics, 4(5):1–17, 1964.
L. D. Popov. A modification of the Arrow-Hurwicz method for search of saddle points. Mathematical Notes of the Academy of Sciences of the USSR, 28(5):845–848, 1980.
E. Regis. Variational structure at the edge of stability. arXiv preprint arXiv:2608.21660, 2026.
E. Regis and S. Chewi. A rod flow model for Adam at the edge of stability. arXiv preprint arXiv:2605.06821, 2026a.
E. Regis and S. Chewi. Rod flow: a continuous-time model for gradient descent at the edge of stability. arXiv preprint arXiv:2602.01480, 2026b.
M. Rosca, Y. Wu, C. Qin, and B. Dherin. On a continuous time model of gradient descent dynamics and instability in deep learning. Transactions on Machine Learning Research, 2023.
D. E. Rumelhart, G. E. Hinton, and R. J. Williams. Learning representations by back-propagating errors. Nature, 323(6088):533–536, 1986.
B. Shi, S. S. Du, M. I. Jordan, and W. J. Su. Understanding the acceleration phenomenon via high-resolution differential equations. Mathematical Programming, 195(1–2):79–148, 2022.
S. L. Smith, B. Dherin, D. Barrett, and S. De. On the origin of implicit regularization in stochastic gradient descent. In International Conference on Learning Representations, 2021.
M. Song and C. Yun. Trajectory alignment: understanding the edge of stability phenomenon via bifurcation theory. In Advances in Neural Information Processing Systems, volume 36, 2023.
I. Sutskever, J. Martens, G. Dahl, and G. Hinton. On the importance of initialization and momentum in deep learning. In International Conference on Machine Learning, pages 1139–1147, 2013.
T. Tieleman and G. Hinton. Lecture 6.5—RMSProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012.
L. Verlet. Computer “experiments” on classical fluids. I. Thermodynamical properties of Lennard-Jones molecules. Physical Review, 159(1):98–103, 1967.
A. Wibisono, A. C. Wilson, and M. I. Jordan. A variational perspective on accelerated methods in optimization. Proceedings of the National Academy of Sciences, 113(47):E7351–E7358, 2016.
X. Zhu, Z. Wang, X. Wang, M. Zhou, and R. Ge. Understanding edge-of-stability training dynamics with a minimalist example. In International Conference on Learning Representations, 2023.
A Notation
Table 1: Notation used throughout the main body.
| Symbol | Meaning |
|---|---|
| Step size | |
| Momentum coefficient | |
| First-moment decay rate | |
| Second-moment decay rate | |
| Numerical stability constant | |
| Number of parameters | |
| Loss | |
| Hessian of the loss | |
| Sharpness: the largest eigenvalue of | |
| Eigenvalues and eigenvectors of | |
| Sharpness threshold | |
| Crossing time: first iteration with sharpness above | |
| Hessian averaged along a gradient step | |
| Position at iteration | |
| Momentum at iteration | |
| Second moment at iteration | |
| Phase-space point | |
| Update map of the optimizer | |
| Preconditioner diag() + | |
| Preconditioner at the bias-corrected second moment | |
| Elementwise square of a vector | |
| Midpoint of consecutive positions | |
| Midpoint of consecutive momenta | |
| Second moment of the flows | |
| Phase-space midpoint | |
| Half-displacement of consecutive iterates | |
| Oscillation envelope of the discrete iterates | |
| Position half-difference (extent of the rod) | |
| Momentum half-difference | |
| Phase-space half-difference | |
| Extent matrix (rod flow); covariance matrix (central flow) | |
| Average of the gradients at the rod's endpoints | |
| Half-difference of the gradients at the rod's endpoints | |
| Average outer product of the endpoint gradients | |
| Fixed points of the extent: covariance and second moment | |
| Structure matrix | |
| Generating function of a structured gradient method | |
| Edge coupling of a structured gradient method | |
| Edge coupling; centered edge coupling | |
| Edge couplings of RMSProp | |
| Phase-space edge coupling; centered phase-space edge coupling | |
| Phase-space edge couplings of Adam | |
| Truncated edge couplings | |
| Reduced edge coupling | |
| Truncated reduced edge coupling |
Table 1, continued.
| Symbol | Meaning |
|---|---|
| Slack | |
| Rate of change of the slack | |
| Slacks of RMSProp, heavy ball, and Adam | |
| Orthonormal basis of the critical directions | |
| Number of critical directions | |
| Covariance expressed in the basis | |
| Squared magnitude of the oscillation | |
| Critical face | |
| Feasible region | |
| Oscillation amplitude | |
| Excess sharpness | |
| Progressive-sharpening constant | |
| Sharpness-reduction coefficient | |
| Averaging window | |
| Axis of the rod | |
| Extent matrix of rod flow; covariance matrix of central flow | |
| PR | Participation ratio (tr ) / tr() |
B Edge Couplings of Structured Gradient Methods
This appendix provides further information about the edge coupling for arbitrary structured gradient methods.
B.1 Structured Gradient Methods
Consider a linear optimizer of the form
where is a constant matrix and is a generating function. We will call such an optimizer a linear gradient method, since its update is linear in the gradient of . Importantly, we are not assuming that is symmetric.
We will show that if an edge coupling generates the residuals as its derivatives, then the structure matrix must be symmetric. Let be a function that is symmetric under the exchange . Suppose that satisfies
for some constant invertible matrix . By the symmetry of , we also have that
By differentiating the first equation with respect to and the second equation with respect to , we can obtain the mixed second derivatives of :
Because mixed derivatives commute, we have that
We have that K is symmetric.
Next, we can subtract from the quadratic term of a structured edge coupling and take the derivative with respect to z:
(142)
The right-hand side doesn't depend on . That means there exists a function such that
By taking the anti-derivative of both sides with respect to z, it then follows:
for some function . By the symmetry of , equals up to an additive constant . Setting , it then follows that:
The above shows that if an edge coupling exists for a linear gradient method, then the associated structure matrix must be symmetric. A reasonable follow-up question is: For a given linear gradient method, can we find a mathematically equivalent structured gradient method? Specifically, for a matrix and generating function , do there exist a symmetric structure matrix and a generating function such that
Let , where . Consider generating functions of the form
where Q is a constant symmetric matrix. Many common optimizers are generated by functions of this form, including heavy-ball momentum—whose generating function is its Hamiltonian. We will show that every linear gradient method generated by such a function can be put in structured gradient form.
Recall that, assuming and exist, we have
Differentiating both sides with respect to z gives
Since mixed partial derivatives commute, is symmetric. It follows that
We can use this constraint to solve for K.
For the Hessian of , we have
As the structure matrix should not depend on the specific loss function, (150) must hold for every symmetric —including . It must therefore hold for the loss term and the quadratic term separately:
For the loss term, we have that:
The upper-right block of the matrix on the right-hand side is zero. For this matrix to be symmetric, the lower-left block must vanish as well. Since this must hold for every symmetric , we can deduce that
Now consider the upper-left block , which must be symmetric for every symmetric . The only matrices with this property are multiples of the identity, so
for some scalar . Combining these two results, the first block column of is
By associativity, this is equivalent to
Assuming and multiplying both sides on the left by , we obtain
This fixes the first block column of . And because is symmetric, this also fixes the first block row. Note that for to be symmetric we require that is symmetric. The only remaining unknown of is the block:
To solve for , we use the condition that must be symmetric. We assume that the sub-blocks of and are symmetric and commute with one another. Without this assumption, the symmetry of would impose more scalar equations than has entries, and in general there would be no solution. We likewise seek among matrices that commute with these blocks.
Under these assumptions, we can invert K as we would a matrix:
Every sub-block of is then built from commuting symmetric matrices, and is therefore itself symmetric. Hence is symmetric exactly when its two off-diagonal sub-blocks are equal. Setting them equal and cancelling the common factor , we obtain
Recall that the first block column of is times the first block column of , so and . Substituting these expressions and using , we obtain a linear equation for :
If is invertible, this equation has exactly one solution:
The structure matrix is therefore
As we have found , we can integrate to obtain . Substituting the gradient of , and using (158), we have that:
(165)
The first term is the gradient of . Since is symmetric, the second term is the gradient of . Taking the anti-derivative, we obtain the generating function:
Since the structure matrix is proportional to , the product is proportional to . It follows that is also proportional to , while is independent of . We therefore obtain a one-parameter family of valid structured forms—and as long as is invertible, there are no others. In the rest of the paper we take , so that the loss appears in with coefficient one.
B.2 Heavy Ball
Heavy ball can be expressed as a linear gradient method by using the Hamiltonian as the generating function [França et al., 2020]. Let denote a point in phase space. For the Hamiltonian, we have:
We have that the loss plays the role of the potential energy, and the momentum-squared plays the role of the kinetic energy. Note that we have that
The heavy ball update is given as , where
(169)
The first part of J is antisymmetric. Up to an overall factor, it is the symplectic matrix of Hamiltonian mechanics, which encodes how force drives changes in momentum and momentum drives changes in position. The second part is symmetric and negative definite—it supplies the damping. Since J is not symmetric, the damped formulation is not in structured gradient form.
As Q only involves , we can actually derive a simplified expression for K. The product JQ only has a second block column:
Substituting these blocks into (164), only the term survives in the lower-right block. We then have that:
(171)
Recall that the first block column of K coincides with that of J. We also have that
Thus, the second block column of K is that of J, right-multiplied by . Altogether,
Substituting, the generating function is
For the case of heavy ball, we have that
The structured form flips the sign of the second block column of J and divides it by :
And for the generating function, we have that the kinetic energy is multiplied by :
B.3 Other Structured Gradient Methods
We briefly cover some other structured gradient methods that admit edge couplings.
Gradient descent–ascent. Simultaneous gradient descent–ascent on [Arrow et al., 1958] descends in and ascends in :
For the generating function and structure matrix, we have:
For the edge coupling, we have:
Optimistic gradient descent. Optimistic gradient descent [Popov, 1980, Daskalakis et al., 2018] extrapolates from the previous gradient:
In the coordinates , optimistic gradient descent is not a structured gradient method, since the loss function is evaluated at two different points. We can fix this with a change of coordinates. Let denote the previous gradient, and let . Written in terms of differences, the update in these coordinates is
In this form, we have that optimistic gradient descent is a linear gradient method with the following generating function and structure matrix:
Since the generating function is a loss function plus a quadratic form, optimistic gradient descent can be written as a structured gradient method, with and given by
For the edge coupling, we have:
(185)
C Nesterov Momentum
This appendix derives the edge coupling, rod flow, and central flow for Nesterov momentum.
C.1 Setup
Nesterov momentum [Nesterov, 1983] is an alternative to heavy-ball momentum. The two differ only in where the gradient in the momentum update is evaluated—a difference that shows up in continuous time as a gradient-correction term [Shi et al., 2022]. Rather than evaluating the gradient at the current iterate, Nesterov momentum evaluates it at a look-ahead point: the location the iterate would reach if it were updated by the momentum term alone [Sutskever et al., 2013]. The update equations are:
(186)
Nesterov momentum is arguably more natural when expressed in look-ahead coordinates. Define the look-ahead point:
In the coordinates , the update equations no longer involve a look-ahead. The gradient is evaluated at the current iterate itself:
(188)
We will work in look-ahead coordinates throughout.
C.2 Edge Coupling
In look-ahead coordinates, Nesterov momentum is a structured gradient method. Written as differences, the update is
(189)
which is for the generating function and structure matrix
The inverse of the structure matrix is
Let and . We then obtain the phase-space edge coupling of Nesterov momentum [Regis, 2026]:
(192)
Its critical points are the fixed points and period-two orbits of Nesterov momentum.
Define the centered coordinates
In these coordinates, the centered phase-space edge coupling is
(194)
To lighten notation, we will drop the superscript and subscripts for the remainder of this appendix—writing and for the edge couplings of Nesterov momentum.
C.3 Rod Flow
For the Nesterov midpoint rod flow, we have:
Writing out the individual ODEs:
(196)
For the endpoint rod flow, we have:
Writing out the individual ODEs:
(198)
Each endpoint regresses toward the Nesterov image of the other endpoint.
C.4 Central Flow
We can also derive a central flow for Nesterov momentum. As with heavy ball, we first eliminate the momentum oscillation. Completing the square,
Stationarity in gives . Eliminating gives the reduced edge coupling
We can then approximate the loss about the midpoint by its local quadratic approximation. Averaging over the endpoints cancels the first-order terms, giving
Substituting into the reduced edge coupling and again replacing with a general positive semidefinite matrix , we obtain the truncated reduced edge coupling
where
We can then maximize the truncated reduced edge coupling over . This gives the following static conditions:
Taking derivatives of the truncated reduced edge coupling with respect to the midpoint variables gives:
As with the Nesterov rod flow, we apply the matrix K to the gradient of the truncated reduced edge coupling to obtain the central flow ODE for Nesterov momentum:
Writing the ODEs for and individually:
(208)
To determine we invoke persistence: feasibility and complementarity must hold along the trajectory.
Let U be an orthonormal basis for the kernel of , and k the number of critical directions. Static complementarity requires:
Computing the rate of change of the slack:
Persistence of feasibility requires that the slack not decrease along the sharp directions:
Persistence of complementarity requires that there be no oscillations in directions whose slack is increasing:
These dynamic conditions, together with , define a semidefinite complementarity problem that determines . Altogether, we have that the following conditions define the central flow for Nesterov momentum:
D AdamW
This appendix derives the edge coupling, rod flow, and central flow for AdamW.
D.1 Setup
AdamW [Loshchilov and Hutter, 2019] is a modification of Adam that decouples weight decay from the gradient-based update. Rather than adding an penalty to the loss function—which would pass the decay through the momentum and the preconditioner—AdamW shrinks the weights directly. Omitting bias correction, the update equations are:
(214)
where is the weight-decay coefficient and
is the factor by which the decay shrinks the weights at each step. Following the PyTorch implementation [Paszke et al., 2019], the decay is scaled by the step size, so it enters the update only through the product . At , we have —and AdamW reduces down to Adam.
D.2 Edge of Stability
We derive the edge-of-stability condition for AdamW.
We will treat the preconditioner as fixed. Consider a quadratic loss . The AdamW updates are then
Since the update equations are linear in , we can express them as a single matrix equation:
Let be an eigenvector of with eigenvalue , so that . For each eigenvector , applying to the vectors and gives
We have that maps the span of these two vectors to itself. In the basis , it acts as the matrix
whose characteristic polynomial is
The iterates are stable along when both roots of lie strictly inside the unit circle—with instability setting in when a root crosses the unit circle. Consider the crossing at , which corresponds to the iterates oscillating. The value is a root of when
Rearranging to isolate , we obtain the edge of stability condition for AdamW:
D.3 Edge Coupling
We would like to derive an edge coupling for AdamW. We will again treat the preconditioner P as fixed. Written as difference equations, the update equations of AdamW are
(225)
The update can be split into two terms: a term that is linear in z and a term that is linear in the gradient of the loss function.
The weight decay enters only through the block of R.
We will assume that the generating function has the form . We seek a symmetric structure matrix and a symmetric matrix such that . Taking the derivative of , we have that:
Setting this equal to the update yields:
Since the above equation must hold for arbitrary loss functions, the gradient terms and the linear terms must match separately. Matching the gradient terms, we have that
which fixes the first block column of —it must equal the coefficient of in the update. And because is symmetric, this also fixes the first block row as well. The only remaining unknown of is the block:
Matching the linear terms, we have that
Since is symmetric, its block is the transpose of its block, so there are four unknowns: , and . Writing out block by block, we obtain four equations—one for each block of :
We can solve these four equations for the four unknown sub-blocks. In order for the above system of equations to have a solution, it is crucial that every known matrix in the equations above commutes with . Otherwise, the number of independent scalar equations would exceed the effective number of scalar unknowns. It is also crucial that be symmetric: the solutions for the diagonal blocks , and are expressed in terms of , and these blocks must themselves be symmetric.
Solving the third equation for , we obtain:
We can then substitute into the first equation to obtain an equation in only and :
Similarly, using the second equation, we can solve for :
We can then substitute this into the fourth equation to obtain:
As we are assuming that the diagonal sub-blocks can be expressed in terms of , they must commute with . We then have that is symmetric—from which it follows that is symmetric as well. Rearranging, we have the following system of equations in and :
(240)
The left-hand sides are the same. Setting the right-hand sides equal gives us :
We then have for the structure matrix:
The inverse of the structure matrix is
As we have found , by substituting into the above equations, one can easily solve for Q:
Substituting this Q into our ansatz gives the generating function for AdamW:
where . Compared with Adam, the new terms in the AdamW generating function are all proportional to , so they vanish when —as expected.
As we have found and , we can obtain the edge coupling for AdamW:
where denotes the edge coupling for Adam.
For the centered edge coupling, we have:
(247)
As we did in Appendix C, we will drop the superscript and subscripts for the remainder of this appendix—writing and for the edge couplings of AdamW.
D.4 Rod Flow
As with Adam, we treat the second moment as a smooth auxiliary variable. Applying the structure matrix to the gradient of the centered edge coupling, we obtain the rod flow for AdamW:
(248)
Writing out the individual ODEs:
(249)
For the endpoint rod flow, we have:
(250)
Writing out the individual ODEs:
(251)
Each endpoint regresses toward the AdamW image of the other endpoint.
D.5 Central Flow
We can also derive a central flow for AdamW. As with Adam, we first eliminate the momentum oscillation. For fixed , the terms involving can be written as:
(252)
One can see that the minimum is attained at . Eliminating from the centered edge coupling gives the reduced edge coupling:
(253)
We again replace the loss with its local quadratic approximation about and replace with a generic positive semidefinite matrix . The truncated reduced edge coupling is
where is the generating function for AdamW and the AdamW slack is given as:
Compared with Adam, the weight decay lowers the threshold by the factor , in agreement with the edge of stability condition. Maximizing over gives the static conditions
Let be an orthonormal basis for . We can express the covariance matrix as with .
We then obtain the central flow ODEs for AdamW by taking the gradient of the truncated edge coupling with respect to the midpoint variables, treating the second moment as an auxiliary variable.
(257)
As with Adam, the second-moment equation uses the approximation
which follows from the local quadratic approximation of the loss about and by replacing with .
We determine the covariance matrix by imposing persistence of feasibility and complementarity. The time derivative of the slack is:
At fixed , both the and terms are affine in . For our persistence conditions, we have:
The above persistence conditions in combination with define a semidefinite complementarity problem for . Altogether, we have that the following conditions define the central flow for AdamW:
E Rod Flow
This appendix collects the details of rod flow that the main text defers.
E.1 Extent Matrix Formulation
The edge-coupling-derived rod flow of Section 4 evolves the vector , whereas the original rod flow [Regis and Chewi, 2026b] evolves the extent matrix . To more easily compare the two formulations, it helps to express the edge-coupling-derived rod flow in terms of .
Let . Note that
The vector can be identified with the principal eigenvector of scaled by the square root of its principal eigenvalue. Since the centered edge coupling is even in , we can write the centered edge coupling as a function of :
We now want to derive the dynamics of . As with , must perform gradient ascent. However, when taking the derivative with respect to , we need to be careful about which metric we use. While the Euclidean metric was appropriate for and , it is not the right choice for . Instead, the relevant metric is the one induced on by the map . This turns out to be the Bures–Wasserstein metric [Bhatia et al., 2019], the same metric that gives the optimal transport distance between centered Gaussian distributions.
Consider a function , and let denote the Euclidean derivative of . The Bures–Wasserstein gradient of is obtained from the Euclidean derivative via
Consider the Euclidean derivative . By using the chain rule, we can relate the Euclidean derivatives of with respect to and :
We can then deduce:
Setting , we then obtain the following rod flow ODE:
The right-hand side can be expressed in terms of alone. By the fundamental theorem of calculus, the difference between the endpoint gradients can be expressed as integral with respect to the Hessian:
Let denote the rod-averaged Hessian.
We then have that the gradient half-difference can be expressed as:
Substituting, we then have that the rod flow ODE for can be expressed as:
(271)
E.2 The Noise Floor
In the stable regime, the sharp component of the gradient should decay exponentially under gradient descent. In practice, however, rounding noise prevents this decay: the sharp component of the discrete iterates instead plateaus at a small but nonzero value.
To motivate why that would be the case, consider the following model of the rounding error. Every time the optimizer stores its state, each stored component is rounded to a nearby representable number. Let represent the unit round-off ( for float32). We can model the rounding error as uniform on the interval —and independent across coordinates and iterations. As the round-off noise is uniformly-distributed, it has a variance of .
Let denote an eigenvector of the Hessian. Projected onto , the rounding of the stored position and momentum injects per-step variances of
into that direction.
gradient descent, MLP, MSE

Figure 12: Round-Off Sets the Floor. Gradient descent on an MLP at (left) and (right), run in single and double precision from the same initialization. Shown is the sharp component of the oscillation amplitude. Before the crossing, the sharp component sits at the floor predicted by the rounding model, which is about eight orders of magnitude lower in double precision. As a result, the double-precision runs self-stabilize later than the single-precision runs, though eventually they settle on the same plateau.
Why must rounding noise be the culprit? Could the plateau of the sharp component not arise from the dynamics of gradient descent itself?
Two observations single out round-off. First, if the dynamics caused the plateau of the sharp component, we would expect the plateau to scale with the step size. Instead, the measured floor is the same for gradient descent across step sizes spanning several orders of magnitude. Second, repeating the gradient descent run in double precision from the same initialization lowers the floor by several orders of magnitude, to the level predicted for float64 (Figure 12).
The model above predicts the noise injected at each step. However, to predict the stationary covariance, we must also account for the dynamics of the optimizer.
Let denote the phase-space point of the optimizer, and let be the accumulated deviation from the trajectory that the optimizer would have followed if there were no rounding error.
Since the deviation is of the order of the rounding error, a linearization suffices: we can replace the loss by its local quadratic approximation. The update map then becomes an affine map of . Let denote the matrix of its linear part (Table 2).
Let be the covariance of the deviation, taken over the rounding errors. Each step multiplies the deviation by and adds a fresh rounding error that is independent of the deviation:
Rod flow's noise floor gives its extent the same stationary variance that round-off error induces in the discrete iterates.
Assume that the Hessian is fixed. Let denote the stationary covariance of the deviation. Along each eigencomponent of , it satisfies the following equation:
Let be the position sub-block of the stationary covariance:
(275) gradient descent, MLP, MSE: float32 vs float64 floor

Figure 13: A Floor for Each Precision. Midpoint rod flow with the single- and double-precision rounding floors, compared against gradient descent run in each precision from the same initialization (MLP, ). Top: The magnitude of the oscillation along the top eigenvector over time. Gradient descent and rod flow agree closely at each precision. Bottom: The sharpness at the onset of self-stabilization. Self-stabilization lags behind the crossing of the sharpness threshold, and the lag is longer in double precision for both gradient descent and rod flow.
gradient descent, MLP, MSE: floor vs no floor
Oscillation on the top mode (zoomed in)

Oscillation on the top mode (zoomed out)

Sharpness

discrete
ep-rod, floor
edge flow, no floor
mp-rod, floor
ep-rod, no floor (collapses to 0)
mean-fluctuation, floor
mp-rod, no floor
edge flow, floor
mean-fluctuation, no floor
Figure 14: Floor Versus No Floor. Comparison of midpoint rod flow, endpoint rod flow, edge flow, and the mean-fluctuation model against gradient descent on an MLP (learning rate ). Each model is shown with a noise floor (solid) and without it (dotted). The floor of the mean-fluctuation model is ours (Appendix G.4). Top and middle: Oscillation along the top eigenvector , shown at two zoom levels. Without a floor, every flow's oscillation decays by more than fifty orders of magnitude before the crossing, and endpoint rod flow's collapses to exactly zero. Bottom: Without a floor, the flows arrest late. With it, every flow arrests at the same time as the gradient descent iterates.
Table 2: Linearized Update Maps. The linear part of each optimizer's update under the quadratic approximation about the midpoint. The preconditioner is held fixed and bias correction is omitted.
| Optimizer | State | |
|---|---|---|
| Gradient descent | ||
| RMSProp | ||
| Heavy ball | ||
| Nesterov | ||
| Adam | ||
| AdamW |
is the stationary covariance along .
Let be the component of the extent along . For simplicity, assume that is in a fixed ratio to . Then decays at the rate
so one forward Euler substep multiplies by
After every substep, the noise floor increases the magnitude of each in quadrature while preserving its sign:
E.3 Bias Correction
Adam initializes its first and second moment estimates at zero, which biases them toward zero early in training. To correct for this, Adam introduces the bias-correction factors
These define the bias-corrected moments
For both rod flow and central flow for Adam, the bias-corrected flows are obtained by replacing and with and , respectively.
F Central Flow
This appendix collects the details of central flow that the main text defers.
F.1 Convex Quadratic Programs
In the main text, we determined the covariance by defining a semidefinite complementarity problem (SDCP). Here, we show that the SDCP is equivalent to a quadratic program. This equivalence explains why the SDCP determines the covariance.
First, it helps to keep the following taxonomy in mind. We can categorize the objects in this appendix into six types, which form three dual pairs:
-
Displacements are tangent vectors at . Examples include and the columns of .
-
Gradients are cotangent vectors at and are dual to displacements. Examples include and the momentum .
-
Covariances are symmetric matrices built from pairs of displacements. Examples include the covariance matrix and the inverse preconditioner .
-
Duals of covariances are symmetric matrices that act on pairs of displacements. Examples include the Hessian , the preconditioner , and the slack .
-
Critical covariances are symmetric matrices built from pairs of displacements along the critical directions. An example is the critical covariance matrix .
-
Duals of critical covariances are symmetric matrices that act on pairs of displacements along the critical directions. An example is the critical slack .
For simplicity, we will consider the central flow for gradient descent. The ODE is given as
It helps to introduce the notation to denote the sharpness gradient as a linear map:
is a linear operator from the space of covariance matrices to the cotangent space at . Let be a tangent vector at . Now consider the inner product of with the sharpness gradient :
This inner product measures how much the curvature of in the directions of increases when we displace along . We define the adjoint as the linear operator from the tangent space at to the space dual to covariance matrices that satisfies
for all tangent vectors and covariance matrices . The adjoint can be identified with the directional derivative of the Hessian:
Now consider the rate of change of the slack. Its critical block is affine in :
(286) where is the rate under the free flow , and is a linear operator on symmetric matrices such that gives the rate of change of the slack due to the oscillations:
Note that for any symmetric matrices X and , we have
(288)
The final expression is symmetric in X and , so B is self-adjoint. And setting gives
so B is positive semidefinite.
We let SDCP(A, B) denote the SDCP defined in terms of A and B:
The above SDCP can be shown to be equivalent to a convex quadratic program. Consider the objective
is the squared speed of the midpoint when the critical covariance matrix is X. Because the midpoint velocity is affine in X, f is convex in X. Taking the gradient of f with respect to X:
which is the rate of change of the slack in the critical block, divided by . We can also deduce that
Consider the problem of minimizing f over positive semidefinite matrices X:
When there are no constraints, a convex function is minimized where its gradient is zero. However, the unconstrained minimizer might not lie in the PSD cone, so the gradient need not vanish at the constrained minimizer. Instead, the constrained minimizer must satisfy . Otherwise, one could increase the component of along an eigenvector of the gradient with a negative eigenvalue, which would decrease the objective while keeping in the PSD cone. Furthermore,
Table 3: Inputs to the Quadratic Program. The rate of change of the critical block of the slack, , for each optimizer. is the rate of change under the free flow. is the rate of change due to the oscillations. For RMSProp, Adam, and AdamW, denotes that optimizer's slack.
| Optimizer | A | B[X] |
|---|---|---|
| Gradient descent | ||
| Heavy ball | ||
| Nesterov | ||
| RMSProp | ||
| Adam | ||
| AdamW |
along any eigenvector of the gradient with a positive eigenvalue, the component of must be zero. Otherwise, one could decrease that component to decrease the objective. This means that and must be orthogonal.
Since is convex, these conditions are also sufficient for optimality. We have that minimizing subject to is equivalent to
Substituting our expression for recovers SDCP(A, B). It's important to note that if the map is injective, then B is positive definite—from which it follows that is a strongly convex quadratic. Because minimizing a strongly convex function over a closed convex set always yields a unique solution, is uniquely determined.
Interestingly, because the objective is the squared speed of the midpoint , there is an alternative interpretation: among all covariance matrices whose oscillations are contained within the critical subspace, the central flow selects the one for which the midpoint moves as slowly as possible.
The same structure recurs for the other optimizers (Table 3). In each case, the rate of change of the critical block of the slack is affine in , and the persistence conditions give rise to SDCP(A, B), with A and B specific to the optimizer. Whenever B is self-adjoint and positive semidefinite, the SDCP gives the optimality conditions of a convex quadratic program—which has a unique minimizer when .
In terms of computational implementation, we found that we were able to use the same SDCP solver as Cohen et al. [2025] with minimal modification.
F.2 Central Flows as Projected Dynamical Systems
For gradient descent, central flow can be interpreted as a projected gradient flow. We extend this interpretation to the other optimizers, where it becomes a constrained flow.
Consider the central flow for gradient descent. Define the objective as the supremum over of the truncated edge coupling:
where is the feasible region and is its indicator function:
The indicator creates an infinite potential barrier that constrains the flow to the feasible region. The central flow is a gradient flow on , though only in the weak sense of a subdifferential inclusion [Brézis, 1973]:
where is the normal cone to at , whose elements act as normal forces constraining the flow to the feasible region. Among the velocities that the inclusion allows, central flow selects the one of least norm (Appendix F.1). It is the slow solution of the inclusion [Henry, 1973, Cornet, 1983].
We can interpret the other central flows similarly. For each optimizer, we define an objective by taking the supremum over of the truncated reduced edge coupling:
with and given in Table 4. The central flow then satisfies the differential inclusion
where K is the structure matrix of the optimizer.
For the preconditioned methods, the constraint depends on the joint state . There are then two ways to leave the feasible region: the sharpness can increase as moves, or can shrink. The covariance acts to counteract both effects. As a result, each normal force in is a 2d-dimensional vector, with components for both and .
Just as we defined the component of the normal force using the subdifferential of the truncated edge coupling with respect to , we define the component using the subdifferential with respect to . The component of the normal force, which we denote , is then
(301)
The central flow ODE for is
Recall that the columns of lie in the critical subspace. Since these columns have preconditioned sharpness equal to , we have . Because is diagonal, it follows that
Table 4: Central Flow Objectives. For each optimizer, we give the generating function and the feasible region of the objective. For the preconditioned methods, we give the metric through which the normal cone acts on the second moment.
| Optimizer | |||
|---|---|---|---|
| Gradient descent | — | ||
| Heavy ball | — | ||
| Nesterov | — | ||
| RMSProp | |||
| Adam | |||
| AdamW | ] |
Substituting into the ODE for and comparing with (301), we deduce that
where the matrix
is effectively an inverse metric tensor that converts the normal force into its effect on the second moment. The central flow of RMSProp is therefore a projected dynamical system [Dupuis and Nagurney, 1993, Nagurney and Zhang, 1996], though not a projected gradient flow, because the unconstrained dynamics of are not a gradient flow.
G Experimental Details
This appendix provides further details about our experimental setup. Code to reproduce our experiments is included as ancillary files with the arXiv version of this paper.
G.1 Stable Flows
The stable flow of an optimizer is its naïve continuous-time limit, obtained by replacing the discrete difference in the update equations with the time derivative . For a structured gradient method, the stable flow is .
Below the sharpness threshold, the stable flow closely tracks the discrete iterates. However, while the iterates self-stabilize such that their sharpness hovers at the threshold, the sharpness of the stable flow keeps rising past the threshold. We therefore use the stable flow as the baseline against which to compare rod flow and central flow. The stable flows of the six optimizers are as follows.
Gradient descent.
RMSProp.
Heavy ball.
Nesterov momentum.
Adam.
AdamW.
Note that the stable flows for Adam and AdamW are bias-corrected (Appendix E.3).
G.2 Runs
We ran each of the six optimizers on three architectures (MLP, CNN, and ViT). The step size, handoff iteration, and crossing iteration for each run are given in Table 5.
Data and models. We used the first 5 000 images of the CIFAR-10 training set, normalized per channel, with no data augmentation. All runs on a given architecture start from the same initialization: PyTorch's default, with a fixed seed.
The MLP flattens each input image into a vector of 3072 values. It has two hidden layers of width 50, each consisting of a fully connected layer followed by a SiLU activation, and a linear output layer that maps to the ten outputs. In total, the MLP has 156 710 parameters.
The CNN operates directly on the image, represented as three channels of pixels. It has two convolutional layers, each with 32 channels and kernels, and each padded by one pixel so that the convolution preserves the image size. Each convolution is followed by a tanh activation and average pooling, which halves the image size from to , then to . A
Table 5: Runs. The step size , handoff , and crossing of each run.
| Optimizer | MLP | CNN | ViT | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Gradient descent | 0.05 | 8 700 | 9 700 | 0.05 | 19 600 | 20 600 | 0.1 | 4 600 | 5 100 |
| RMSProp | 1 500 | 2 500 | 3 700 | 4 800 | 3 700 | 4 200 | |||
| Heavy ball | 0.3 | 3 800 | 4 800 | 0.7 | 1 600 | 2 800 | 0.2 | 5 700 | 6 200 |
| Nesterov | 0.2 | 3 100 | 4 100 | 0.4 | 1 200 | 2 200 | 0.2 | 3 700 | 4 300 |
| Adam | 3 900 | 4 900 | 1 000 | — | 4 000 | 4 500 | |||
| AdamW | 6 200 | 7 200 | 1 800 | 2 700 | 5 600 | 6 100 | |||
final linear layer maps the resulting features to the ten outputs. In total, the CNN has 30 634 parameters.
The ViT is a SimpleViT, as implemented in the vit-pytorch library. It splits each image into an grid of patches, giving 64 tokens. Each patch, a vector of 48 values, passes through a LayerNorm, a linear embedding of width 64, and a second LayerNorm. The ViT then adds fixed two-dimensional sinusoidal position embeddings. It does not use a class token. The tokens pass through three transformer blocks. Each block applies multi-head self-attention, with 8 heads of width 8 and bias-free projections, followed by an MLP of width 256 with GELU activations. Both sublayers are preceded by a LayerNorm and wrapped in a residual connection. After a final LayerNorm, the ViT mean-pools the tokens, and a linear head maps the result to the ten outputs. In total, the ViT has 153 322 parameters. To lower the sharpness at initialization, we halve the initial weights of the head.
We also replace each LayerNorm with a reimplementation in elementary PyTorch operations, so that the loss can be differentiated three times, as central flow requires.
Training. We train full-batch with the MSE loss. We chose MSE because it’s the loss function which induces sustained edge of stability dynamics. We also ran experiments with cross-entropy loss on gradient descent and RMSProp (Appendix H.2).
Hyperparameters. All four momentum methods use . Adam and AdamW use . These are the standard hyperparameter settings used in practice. Adam and AdamW also use and bias correction. RMSProp uses the PyTorch defaults: and , without bias correction. For AdamW, we chose a weight decay large enough to noticeably delay the crossing into the edge of stability relative to Adam.
Step sizes. We chose the step sizes using probe runs of the discrete optimizer, so that the crossing occurs neither too early nor too late. In practice, this meant choosing a step size such that the edge of stability was reached within a couple thousand iterations.
Crossing and handoff. The crossing is the first iteration at which the sharpness at the discrete midpoint exceeds the threshold. Since the sharpness is computed every 100 iterations, is a multiple of 100. We placed the handoff using the crossing in a probe run. As a result, the handoff comes roughly 1 000 iterations before the crossing (500 for the ViT). On the CNN, Adam’s sharpness plateaus just below the threshold and never crosses it. For this run, the handoff instead comes 1 000 iterations before the sharpness reaches its plateau.
Table 6: Effective Sharpness and Thresholds. The effective sharpness of each optimizer and its threshold .
| Optimizer | Effective sharpness | Threshold |
|---|---|---|
| Gradient descent | ||
| RMSProp | ||
| Heavy ball | ||
| Nesterov | ||
| Adam | ||
| AdamW |
Handoff state. At the handoff, each flow is initialized from the last two discrete iterates. Its center is set to their midpoint. For rod flow, the extent is initialized from the half-differences of the last two iterates' positions and momenta. These half-differences are dominated by the drift of the center rather than by the oscillation, so the initial amplitude of the extent corresponds to the entire discrete step, not just the oscillating portion. However, this transient quickly fades—well before the edge of stability is reached.
G.3 Measurements
Sharpness. Every 100 iterations, we compute the top six eigenvalues of the Hessian at the center of each trajectory. We use LOBPCG on Hessian-vector products, warm-started from the eigenvectors of the previous call. For RMSProp, Adam, and AdamW, we instead compute the eigenvalues of the pencil , which are those of (with in place of for Adam and AdamW). Each trajectory uses its own preconditioner: the iterates use the discrete optimizer's, and each flow uses the one given by its second moment . Table 6 gives the resulting effective sharpness of each optimizer, along with its threshold.
Oscillation envelope. The half-displacement of consecutive iterates contains not only the oscillation but also the drift of the midpoint. For gradient descent, writing and for the half-difference and the average of the gradients at and , we have
Before the crossing, the drift dominates the half-displacement, so the onset of the oscillation cannot be seen in it. We therefore remove the drift and undo the alternating sign. For every optimizer, we define the oscillation envelope of the iterates as
The figures compare the norm of with the norm of the extent of the rod flows.
Distance. We measure how closely a flow tracks the iterates by the Euclidean distance from its center to the discrete midpoint . For the momentum methods, this distance compares positions only. We likewise evaluate the loss at each center.
G.4 Numerical Integration
Time stepping. The flows run in lockstep with the discrete optimizer: after each optimizer iteration, every flow takes four forward Euler substeps of size , so one unit of flow time corresponds to one iteration.
Storing the extent. Midpoint rod flow does not store its extent as a vector. Without the noise floor, the extent decays by up to several hundred e-folds between the handoff and the crossing, approaching the range of double precision, which is about 700 e-folds. A stored vector could then underflow to zero and lose its direction.
We instead store a unit axis and a log-amplitude . Each substep applies forward Euler to the extent, , where is the velocity of the extent per unit amplitude. The axis is then renormalized, and the logarithm of its norm is added to the log-amplitude. By contrast, endpoint rod flow stores the endpoints themselves.
Noise floor. Both rod flows include the noise floor of Appendix E.2 along the three sharpest directions. The floor models the rounding error in the discrete optimizer's single-precision state.
Central flow. Central flow solves its semidefinite complementarity problem at every substep. To find the critical directions, it recomputes the top eigenvectors of the (preconditioned) Hessian at each substep, warm-started from the previous substep. The eigenvectors whose eigenvalues lie within 2.5% of the threshold are passed to the problem, so that it can catch an eigenvalue arriving at the threshold. With one such eigenvector, the problem is solved in closed form. With more, it is solved using the convex solver of Cohen et al. [2025], at a relative accuracy of about .
Edge flow. For gradient descent, we also ran edge flow [Marion, 2026], which tracks a center , a unit axis , and an amplitude . These evolve as
The center follows the negative average of the gradients at the endpoints , and the amplitude grows when the sharpness estimate exceeds . The axis takes one step of power iteration at each substep. At the handoff, we set to the top eigenvector of the Hessian and . Following Marion [2026], we kept the floor .
Mean-fluctuation model. We implemented the mean-fluctuation model from the first version of Chodron de Courcel [2026]. The second version keeps the same equations but computes the covariance differently. The model tracks a center and a covariance , which evolve as
(314) gradient descent, MLP, MSE: mp-rod, float32 vs float64 state

Figure 15: Double-Precision Flow State. Distance between the center of midpoint rod flow and the discrete midpoint, with the flow's state stored in single and double precision (gradient descent, MLP, ). With single precision, the distance grows as rounding error accumulates, reaching several times that of the double-precision flow.
The center moves as in central flow, but follows the linearized gradient descent map, with no threshold. As in the first version, we restricted to the span of the top three Hessian eigenvectors (two for the ViT), which we recomputed every 2.5 iterations rather than transported. At the handoff, we set to the projection of onto this span. Neither version of the model has a noise floor, so we added one: we held the standard deviation of along each of these eigenvectors at or above, about the size of the rounding noise along before the crossing (Figure 12).
Precision. The discrete optimizers run in single precision. Every flow keeps its state in double precision and casts it to single precision only to evaluate the loss and its derivatives. The flows thus compute their gradients with the same arithmetic as the iterates, but rounding error does not accumulate in their state. Endpoint rod flow needs double precision for a second reason: a single-precision pair of endpoints cannot resolve the kicks of the noise floor.
On the CNN, the discrete runs are not bitwise reproducible. We kept PyTorch's default cuDNN settings, which allow the convolutions to use TF32 arithmetic and nondeterministic algorithms. This does not affect the comparisons, since the flows run in lockstep with the iterates.
H Additional Experiments
In this appendix, we present the results of our experiments, including additional experiments not featured in the main text.
H.1 Flow Comparisons
Figures 16 to 21 compare the flows with the discrete iterates. Each experiment starts with a warmup phase in which the discrete iterates progressively sharpen. About 1 000 iterations before the edge of stability (500 for the ViT), the flows are initialized from the discrete iterates. The iterates and the flows then advance in lockstep for 4 000 iterations (2 000 for the ViT), which is long enough to capture the transition from the stable regime into the edge of stability and to let the fluctuations from the onset of self-stabilization dissipate. We compare the iterates and the flows using metrics such as the loss and the sharpness.

Figure 16: Flow Comparison for Gradient Descent. MLP: . CNN: . ViT: . The rows show, from top to bottom: the loss at each center; the sharpness at each center; the top six eigenvalues at the discrete optimizer's midpoint; the oscillation amplitude; the alignment of each flow's oscillation with the discrete-time oscillation; and the distance from each flow's center to the discrete optimizer's midpoint. Dashed vertical lines mark the handoff, and dotted vertical lines mark the crossing into the edge of stability.
RMSProp

Figure 17: Flow Comparison for RMSProp (no bias correction). MLP: . CNN: . ViT: . All with and . The rows show, from top to bottom: the loss at each center; the preconditioned sharpness at each center; the raw sharpness at each center; the top six preconditioned eigenvalues at the discrete optimizer's midpoint; the oscillation amplitude; the alignment of each flow's oscillation with the discrete-time oscillation; the distance from each flow's center to the discrete optimizer's midpoint; and the norm of the second-moment estimate. Dashed vertical lines mark the handoff, and dotted vertical lines mark the crossing into the edge of stability.
Heavy Ball

Figure 18: Flow Comparison for Heavy Ball Momentum. MLP: . CNN: . ViT: . All with . The rows show, from top to bottom: the loss at each center; the sharpness at each center; the top six eigenvalues at the discrete optimizer's midpoint; the oscillation amplitude; the alignment of each flow's oscillation with the discrete-time oscillation; and the distance from each flow's center to the discrete optimizer's midpoint. Dashed vertical lines mark the handoff, and dotted vertical lines mark the crossing into the edge of stability.
Nesterov

Figure 19: Flow Comparison for Nesterov Momentum. MLP: . CNN: . ViT: . All with . The rows show, from top to bottom: the loss at each center; the sharpness at each center; the top six eigenvalues at the discrete optimizer's midpoint; the oscillation amplitude; the alignment of each flow's oscillation with the discrete-time oscillation; and the distance from each flow's center to the discrete optimizer's midpoint. Dashed vertical lines mark the handoff, and dotted vertical lines mark the crossing into the edge of stability.
Adam

Figure 20: Flow Comparison for Adam (with bias correction). MLP: . CNN: . ViT: . All with , , and . The rows show, from top to bottom: the loss at each center; the preconditioned sharpness at each center; the raw sharpness at each center; the top six preconditioned eigenvalues at the discrete optimizer's midpoint; the oscillation amplitude; the alignment of each flow's oscillation with the discrete-time oscillation; the distance from each flow's center to the discrete optimizer's midpoint; and the norm of the second-moment estimate. Dashed vertical lines mark the handoff, and dotted vertical lines mark the crossing into the edge of stability (none on the CNN, which never crosses).

Figure 21: Flow Comparison for AdamW (with bias correction). MLP: , . CNN: , . ViT: , . All with , , and . The rows show, from top to bottom: the loss at each center; the preconditioned sharpness at each center; the raw sharpness at each center; the top six preconditioned eigenvalues at the discrete optimizer's midpoint; the oscillation amplitude; the alignment of each flow's oscillation with the discrete-time oscillation; the distance from each flow's center to the discrete optimizer's midpoint; and the norm of the second-moment estimate. Dashed vertical lines mark the handoff, and dotted vertical lines mark the crossing into the edge of stability.
H.2 Cross-Entropy Loss
Figures 22 and 23 repeat the flow comparisons on the MLP with cross-entropy loss. We ran only gradient descent and RMSProp. For gradient descent, the edge of stability ends about 1 000 iterations after the crossing, when the sharpness falls back below the threshold. By the end of the comparison window, rod flow is twenty times closer to the iterates than the stable flow is, and central flow about twice as close. For RMSProp, both are more than fifty times closer.

Figure 22: Flow Comparison for Gradient Descent Under Cross-Entropy Loss. MLP: . The rows show, from top to bottom: the loss at each center; the sharpness at each center; the top six eigenvalues at the discrete optimizer's midpoint; the oscillation amplitude; the alignment of each flow's oscillation with the discrete-time oscillation; and the distance from each flow's center to the discrete optimizer's midpoint. Dashed vertical lines mark the handoff, and dotted vertical lines mark the crossing into the edge of stability.

Figure 23: Flow Comparison for RMSProp Under Cross-Entropy Loss (no bias correction). MLP: , , . The rows show, from top to bottom: the loss at each center; the preconditioned sharpness at each center; the raw sharpness at each center; the top six preconditioned eigenvalues at the discrete optimizer's midpoint; the oscillation amplitude; the alignment of each flow's oscillation with the discrete-time oscillation; the distance from each flow's center to the discrete optimizer's midpoint; and the norm of the second-moment estimate. Dashed vertical lines mark the handoff, and dotted vertical lines mark the crossing into the edge of stability.
H.3 Rod Turning
Figures 24 to 29 repeat the rod-turning experiments of Figures 6 and 7 for each optimizer on the MLP. Each experiment again starts with a warmup phase, but the warmup now continues past the onset of the edge of stability, because the goal is to capture the window in which there are multiple critical eigenvalues.
At the end of the warmup, rod flow and central flow are initialized from the discrete iterates, and the iterates and the flows then advance in lockstep for a couple thousand iterations. The first 300–500 of these iterations let the flows settle. The rest form the averaging span, throughout which there are exactly two critical eigenvalues (three in the bottom half of each figure). We cut the span into consecutive windows of iterations, and over each window we average the extent matrix of rod flow and its discrete counterpart . We compare each average with at the middle of its window using the participation ratio and the normalized Bures–Wasserstein distance. We also compare the turning rates of rod flow and of the discrete oscillation with those predicted by the linear law (derived in Sections 8.3 and 8.4).
In every run, the participation ratio of the time-averaged extent matrix completes 90% of its rise within 250 iterations, and at the widest window it is within 4% of that of central flow, for both the discrete iterates and rod flow. As the window widens, the normalized distance to falls from 0.5–1.0 for a single step to 0.05–0.17.
In every run, the measured turning rate tracks the linear law, with a correlation of at least 0.95. On average, the two agree to within 3% for both rod flow and the discrete oscillation, except that RMSProp's discrete oscillation turns about 10% slower than predicted.


Figure 24: Rod Turning for Gradient Descent. MLP. Top: Two critical eigenvalues, . Bottom: Three critical eigenvalues, . In each half, the first row compares the time-averaged extent matrix with . The second row compares the turning rate with the linear law, as in Figure 7.
RMSProp


Figure 25: Rod Turning for RMSProp (no bias correction). MLP, , . Top: Two critical eigenvalues. Bottom: Three critical eigenvalues. In each half, the first row compares the time-averaged extent matrix with . The second row compares the turning rate with the linear law, as in Figure 7.
Heavy Ball



Figure 26: Rod Turning for Heavy Ball Momentum. MLP, , . Top: Two critical eigenvalues. Bottom: Three critical eigenvalues. In each half, the first row compares the time-averaged extent matrix with . The second row compares the turning rate with the linear law, as in Figure 7.
Nesterov


Figure 27: Rod Turning for Nesterov Momentum. MLP, , . Top: Two critical eigenvalues. Bottom: Three critical eigenvalues. In each half, the first row compares the time-averaged extent matrix with . The second row compares the turning rate with the linear law, as in Figure 7.
Adam


Figure 28: Rod Turning for Adam (with bias correction). MLP, , , . Top: Two critical eigenvalues. Bottom: Three critical eigenvalues. In each half, the first row compares the time-averaged extent matrix with . The second row compares the turning rate with the linear law, as in Figure 7.


Figure 29: Rod Turning for AdamW (with bias correction). MLP, , , , . Top: Two critical eigenvalues. Bottom: Three critical eigenvalues. In each half, the first row compares the time-averaged extent matrix with . The second row compares the turning rate with the linear law, as in Figure 7.
H.4 Position and Momentum Extents
Figures 30 and 31 repeat the experiments of Section 8.4 for each momentum optimizer. Each run has the same warmup and averaging span as the corresponding two-critical-eigenvalue run in Appendix H.3. We ran only rod flow alongside the iterates, since central flow represents only the position oscillations.
Over this span, we compare the momentum extent with the position extent for both the iterates and rod flow. We use three metrics: the amplitude ratio between the two extents, the alignment between them, and the normalized Bures–Wasserstein distance between the time averages of their outer products, rescaled as in Figure 8. We also compare the rate of change of the relative momentum with that predicted by the linear law.
In every run, the median amplitude ratio is within 5% of , its value on a period-two orbit. The median alignment is above 0.998 for both the iterates and rod flow, though both quantities fluctuate in bursts for Adam and AdamW. As the averaging window widens from one iteration to 250, the distance between the time-averaged extent matrices falls ten- to thirtyfold, except for Nesterov momentum, where it is below 0.01 even without time averaging. The rate of change of also tracks the linear law, for both the iterates and rod flow.

Figure 30: Position and Momentum Extents of the Momentum Optimizers. MLP, with two critical eigenvalues. Heavy ball: , . Nesterov: , . Adam (with bias correction): , , . AdamW: as Adam, with . The columns show, from left to right: the ratio of the momentum amplitude to the position amplitude, with its value on a period-two orbit (dashed); the alignment between the position and momentum extents; and the distance between their time averages, against the width of the averaging window. For Adam and AdamW, the momentum extent is preconditioned.

Figure 31: Rate of Change of the Relative Momentum. Runs as in Figure 30. The relative momentum is the momentum extent divided by the position amplitude. Left: The relative change of per iteration, for the discrete oscillation and for rod flow, with the linear law for rod flow (dashed). Right: Measured against the linear law.
H.5 Near Two-Periodicity
Regis and Chewi [2026a] suggested that period-doubling bifurcations might explain why their momentum rod flow failed to track the iterates at large . Their rationale was that since rod flow is intended to model nearly two-periodic behavior, there is reason to suspect that it might fail if the iterates oscillated in four-cycles.
However, at the hyperparameters used in our experiments, theory suggests nearly two-periodic behavior. Fong and Yang [2026] analyze Adam at the edge of stability under the condition . They show that when , Adam can have orbits of period four. Their experiments agree: across fully connected networks, ResNets, ViTs, LSTMs, and GPT-2, and across values of and , they found that much of the motion at the edge of stability is a fast, approximately period-two oscillation.
Since our setting satisfies by a wide margin, we also expect nearly two-periodic behavior. To test this, we measure how close the discrete oscillation is to a two-cycle on the MLP when there are two critical eigenvalues. At every iteration, we record the oscillation envelope in the basis of the top five eigenvectors of the (preconditioned) Hessian. Since undoes the sign alternation of a two-cycle, the oscillation itself is .
Let be the power spectrum of . To estimate , we use Welch's method on Hann windows of 256 iterations and sum over the coordinates. A two-cycle puts all of its power at cycles per iteration. Period doubling would add power at for a cycle of period four, at for period eight, and at for period sixteen.

Figure 32: Power Spectrum of the Discrete Oscillation. MLP with two critical eigenvalues. Runs as in the top halves of Figures 24 to 29. Each panel shows the power spectrum of the oscillation of the iterates, normalized to unit area, so that the area under the curve over any range of frequencies is the share of the power in that range. The gray band marks the frequencies within 0.03 of , and the number in each panel gives the share of the power in this band (dark area). Dashed lines mark where period doubling to periods four, eight, and sixteen would add power.
Our runs agree with Fong and Yang [2026] (Figure 32). For every optimizer, the power is concentrated near . What departs from a steady two-cycle is the regularity of the oscillation. Less than half of Adam's power lies within 0.03 of , compared with nearly all of it for gradient descent, RMSProp, heavy ball, and Nesterov momentum. The rest forms a broad hump extending down to . This hump peaks near , but it is many times wider than a spectral line, so the oscillation also varies on a time scale of ten to thirty iterations, though not periodically. AdamW behaves similarly, but slightly more regularly.
H.6 The Ring and the Onset
Figures 33 and 34 test the self-stabilization loop (119) for gradient descent and rod flow on an MLP with a single critical eigenvalue. Each experiment starts with a warmup phase in which the discrete iterates progressively sharpen. Rod flow and the stable flow are initialized from the discrete iterates 1 000 iterations before the edge of stability. The iterates and the flows then advance in lockstep for about 2 200 iterations, long enough to capture the onset of self-stabilization and to let the ring that follows it decay. We kick the oscillation 750–800 iterations after the crossing, and follow the ring that the kick sets off for the last 450 iterations. At each center, we measure , , , and at every iteration.
The orbit-average relation holds: over each orbit, is within 0.3% of for gradient descent and within 3% for rod flow. However, the orbits themselves are not closed. They spiral inward, decaying at a rate of 0.011–0.014 per iteration, and their period is 1.4–1.6 times the period of the loop. Rod flow traces the same spiral as the iterates, reaching the onset slightly ahead of them and overshooting slightly less.
Why are the loops not closed? Unlike in an idealized Lotka–Volterra system, is not constant at the edge of stability. The oscillation pushes the center with velocity , and the center's own descent relaxes this push along each eigenvector at the rate , which raises . In the steady-state edge-of-stability regime, the of the iterates is about ten times that of the stable flow.
With this response, in the linearized loop is replaced by a frequency-dependent coefficient , and the loop's complex frequencies solve
where . Directions much flatter than the ring leave their contribution to intact, as the loop assumes. Much stiffer directions relax the push before it acts, softening the restoring force and lengthening the period. Directions in between respond with a lag, which damps the ring. For the kicked ring, the roots of this equation match the measured period to within 5% and the decay rate to within 10% (Figure 34).
gradient descent, MLP, MSE: the self-stabilization loop

gradient descent, MLP, MSE: the self-stabilization loop

Figure 33: The Self-Stabilization Loop. Gradient descent and rod flow on an MLP. Top: . Bottom: . In each half, the left panel shows the phase portrait of the loop in the log-amplitude and the excess sharpness. The right panels show the log-amplitude and the progressive sharpening constant over time. The dashed curve is the progressive sharpening constant of the stable flow plus the response of the center to the oscillation, with no free parameters.
gradient descent, MLP, MSE: the kicked ring

gradient descent, MLP, MSE: the kicked ring

Figure 34: The Kicked Ring. Gradient descent and rod flow on an MLP, kicked by multiplying the amplitude of the oscillation by 1.2. Top: . Bottom: . In each half, the left panel shows the phase portrait, with dots marking the state at the kick and arrows marking the kick. The right panels show the log-amplitude and the progressive sharpening constant over time. The dashed curves are predictions. For the log-amplitude, only the frequency and the decay rate are predicted; the amplitude, phase, and trend are fitted.