The central flow of Cohen et al. (2025) is an empirically accurate continuous-time model of gradient descent at the edge of stability in deep learning. However, its derivation is heuristic. We propose a perturbative regime in which the central flow is the limit of gradient descent: we assume that the loss decomposes as f=g+εh; in the limit ε→0, the dynamics of gradient descent with learning rate η converge to the gradient flow of h constrained to the minimizers of g of sharpness at most 2/η. Our approach is formal rather than rigorous; it treats gradient descent as a singularly perturbed dynamical system in ε. Three timescales emerge: a fast timescale of oscillations along the sharpest direction, an intermediate timescale of the self-stabilization mechanism, and a slow timescale of the dynamics along the minimizers of g—the central flow. Using the method of multiple scales, a classical formal method from singular perturbation theory, we derive the expansion of the dynamics in ε: the central flow emerges as the leading-order term in the expansion, while the self-stabilization mechanism appears in the next-order term. We study this mechanism beyond previous analyses: with a single eigenvalue at the edge of stability, we compute the slow drift of the energy of the fluctuations; with several eigenvalues at the edge of stability, we derive the self-stabilization system and explain why fluctuations persist.
Contents
1
Introduction
2
2
Setting
4
3
Convergence to the central flow
5
4
Minimal example
8
4.1
Introduction and experiments
8
4.2
Method of multiple scales
9
4.3
Energy variations in self-stabilization
15
5
Valleys of codimension one
16
6
Valleys of arbitrary codimension
18
7 Related work 20
8 Conclusion 21
References 22
1 Introduction
Context. Gradient descent in deep learning still lacks theoretical understanding. Recent works have pointed out a surprising phenomenology. A large part of the training occurs at the so-called edge of stability [15, 16, 9]. In this regime, the sharpness of the loss—the maximal eigenvalue of the Hessian—fluctuates around the value 2/η, where η is the learning rate. Above this 2/η threshold, gradient descent on the local quadratic approximation of the loss develops diverging oscillations along the sharpest direction of the loss; it is thus remarkable that gradient descent on the loss itself does not diverge when fluctuations increase the sharpness above 2/η. This is due to a so-called self-stabilization phenomenon [10]: the oscillations along the sharpest direction of the loss induce an effect in the local cubic approximation of the loss that pushes back the dynamics in the direction of sharpness reduction.
Overall, the resulting iterates form a rough path, both due to the oscillations along the sharpest direction and the fluctuations of the self-stabilization mechanism. This indicates that the optimization path cannot be approximated by a smooth continuous-time flow such as the gradient flow of the loss. This is a critical problem as the gradient flow is largely used to model gradient descent in deep learning.
Instead, one can expect a continuous-time approximation for the averaged trajectory, where the averaging is performed over the oscillations along the sharpest direction, and potentially over the fluctuations of the self-stabilization mechanism. Averaging over both, Cohen et al. [8] proposed the central flow: the gradient flow of the loss constrained to the stable region where the sharpness is below 2/η. Through extensive numerical experiments, they have shown that the central flow is an excellent approximation of the averaged trajectory across a wide range of datasets and architectures.
Problem. However, the derivation of the central flow in [8] is heuristic. Several approximation steps are left informal, for instance using a local cubic approximation of the loss, or the meaning of the “local time-averaging” operator E. This raises the following question: is there a regime in which the central flow is the limit of gradient descent?
The regime η→0 of vanishing learning rate, used to derive the gradient flow, is not appropriate to answer this question. In this regime, the sharpness is always below 2/η, and thus edge of stability never occurs.
Contributions. In this work, we propose a perturbative regime—the sharp valley assumption—from which we derive the self-stabilization mechanism and the central flow. Mathematically, we assume that we run gradient descent with learning rate η on a loss function f(z)=g(z)+εh(z). The function g defines a valley: it has several minimizers and we denote V={z:g(z)=ming} the valley of its minimizers. Further, ε≪1 is a small parameter and h is a perturbation that induces the dynamics along the valley.
Equivalently, gradient descent with learning rate εη on the loss function ε−1g+h gives the same sequence of iterates. The parameter ε can thus be interpreted as the inverse sharpness of the valley.
The sharp valley picture has been present in several works [42, 15, 38, 22, 23, 34], as it is consistent with several empirical observations, such as the anti-alignment of successive iterates or the approximate low-rank structure of the Hessian (see Sec. 7 for a more complete discussion). A contribution of this work is to show that it is also consistent with the edge of stability, self-stabilization and the central flow.
Indeed, in the regime ε→0, the central flow is the formal limit of gradient descent. More precisely, in this regime, gradient descent is a singularly perturbed dynamical system in which three timescales emerge: a fast timescale t1=k, the iteration number k, which is the typical timescale of the oscillations along the sharpest direction; an intermediate timescale t2=ε1/2k, which is the typical timescale of the self-stabilization mechanism; and a slow timescale t3=εk, which is the typical timescale of the central flow—the evolution along the valley.
We then use the method of multiple scales [14] to derive an approximation of gradient descent that decouples the three timescales t1,t2, and t3. The leading term in the approximation is the central flow, which evolves on the slow timescale t3. It consists in the gradient flow of h in the valley, constrained to the stable region where the sharpness of g is below 2/η. The next-order term contains the oscillations along the sharpest direction as a function of t1 and the self-stabilization fluctuations as a function of t2. The method of multiple scales is a formal method in the sense of asymptotic analysis: it produces the expansion by matching orders, without proving convergence or bounding the remainder. Our results should thus be interpreted as formal derivations, i.e., conjectures with strong supporting evidence.
To summarize, this work provides some justification of the central flow approximation by proposing a regime in which the approximation is tight and by providing an analytical tool—the method of multiple scales—to derive the approximation.
Further consequences. Beyond the clarification of previous works, the framework of this paper enables some new discussions.
We study the self-stabilization mechanism in more depth: we derive the self-stabilization system with multiple eigenvalues on the edge of stability (left open in [10]), and discuss the evolution of the self-stabilization fluctuations on the slow timescale t3. With a single eigenvalue on the edge of stability, we compute the variations of the energy of the fluctuations; with multiple eigenvalues on the edge of stability, we explain the persistence of fluctuations.
Finally, we compare the central flow with competing continuous-time approximations of gradient descent [30, 27, 7]. We obtain that the central flow is a more coarse-grained approximation than the competing approximations, as it depends only on t3, while the other approximations depend on t2 and t3.
Outline. This paper is organized as follows. In Sec. 2, we introduce our mathematical setting, including the sharp valley assumption. The strongest result of this paper is provided in Sec. 6; however, for the sake of clarity and to enable additional discussions, previous sections provide simpler versions of the result. In Sec. 3, we present only the results on the convergence to the central flow. In Sec. 4, we include the discussion of the next-order term in the convergence, but in a minimal example. The simplicity in this example allows to study potential failures of the central flow approximation and the slow evolution of the self-stabilization loop. Further, in Sec. 5, we discuss the case of valleys of codimension one, which is more general than the minimal example but still simpler than the general case. In Sec. 6, we discuss the general case of valleys of arbitrary codimension. Finally, in Sec. 7, we discuss the connections to further related work, including the comparison with competing approxiamtions.
2 Setting
Let f(z),z∈Z, be a loss function, where Z is a finite-dimensional vector space. We study the dynamics of gradient descent on f with learning rate η>0:
z(k+1)=z(k)−η∇f(z(k)).
We assume that the loss function f can be decomposed as f(z)=g(z)+εh(z), where g defines a valley and ε≪1 is a small parameter. We denote V={z∈Z:g(z)=ming} the valley of minimizers of g.
To simplify the analyses, we assume that the valley defined by g is a linear space. More precisely, we assume there exists an orthogonal decomposition Z=X⊕⊥Y, in which we decompose z=(x,y), such that the valley defined by g is
V={(0,y),y∈Y}.
In a more complex setting where V would be a manifold, the decomposition z=(x,y) would represent a local set of coordinates to parametrize the manifold V of minimizers of g.
Further, for all z, we denote S(z)=∇x2g(z) the Hessian of g in the sharp directions—those orthogonal to the valley. We assume that for all (0,y)∈V, S(0,y)≻0: there is some curvature of g in the sharp directions along the valley. Finally, we denote
VS={z∈V:ηS(z)≼2IdX}
the stable valley of g, in which the sharpness is below 2/η.
Notations. When y∈Rd is a vector, we denote y[1],…,y[d] its components. Let A and B be Euclidean spaces. When L:A→B is a linear operator, we denote L∗:B→A its adjoint. We denote Sym A the set of symmetric linear operators on A, and Sym+A the set of symmetric positive semidefinite linear operators on A. We denote IdA the identity operator on A. When C is a linear subspace of A, we denote C⊥ its orthogonal complement, PC:A→C the orthogonal projection onto C, and ιC:C→A the canonical inclusion of C into A. Note that ιC=PC∗.
3 Convergence to the central flow
In this section, we state our convergence results to the central flow. More complete results, including next-order terms, are provided in the following sections.
As the gradient of f=g+εh in the valley is of order ε, the typical timescale of the dynamics of the iterates z(k)=(x(k),y(k)) along the valley is t3=εk. Abusing notations, let us denote
the time-rescaled iterates, that now depend on a continuous time parameter t3. Note that the resulting function z(t3) depends on ε both through the rescaling of time and through the loss function. We now state convergence results to the central flow, obtained by the method of multiple scales.
Valleys of codimension one. For the sake of clarity, we start with the case where the valley is of codimension 1, i.e., the dimension of X is 1. Note that, in this case, S(z) is a scalar.
Result 3.1. Assume that X is of dimension 1. Further, assume that as ε→0, the rescaled iterates z(t3)=(x(t3),y(t3)) converge to some function z0(t3)=(x0(t3),y0(t3)). Moreover, assume that z0 remains in the stable valley VS, i.e., x0=0 and ηS(0,y0)⩽2.
Then z0 follows the gradient flow of h constrained to the stable valley VS, i.e., there exists σ2=σ2(t3)⩾0 such that
∂t3y0=−η[∇yh(0,y0)+2σ2∇yS(0,y0)],
where for all t3, σ2(t3)=0 or ηS(0,y0(t3))=2.
Again, the method of multiple scales is formal, thus the above result should not be interpreted as a mathematical theorem but rather as a conjecture with strong supporting evidence. All the results of this paper share this status. An introduction to the method of multiple scales is provided in Sec. 4.2.
The function σ2 should be interpreted as the Lagrange multiplier associated with the constraint ηS(0,y0)⩽2: it satisfies dual feasibility (σ2⩾0) and complementarity slackness with the constraint (σ2=0 or ηS(0,y0)=2).
We illustrate the result in Fig. 1. We observe the edge of stability phenomenon, the self-stabilization fluctuations, and the convergence to the central flow (x0,y0) as ε→0. A more pedagogical example is provided in the next section.
We now discuss the assumptions of Result 3.1. The statement x0=0 is not strictly needed and could instead be obtained as a consequence of the method of multiple scales. However, treating x0 in the method derivations results in more complicated computations, thus we prefer making the reasonable assumption that the limiting dynamics are in the valley V. Moreover, note that we could initialize x at a non-zero value, which would result in a relaxation of x0 to 0 on the timescale t1. This early part of the dynamics is not interesting for our study of the edge of stability, thus we do not include it here.
Figure 1: Iterates of gradient descent with learning rate η=0.3 on f=g+εh, with ε=0.01,0.001,0.0001. In this example, we take Z=R3, X=R and Y=R2, thus the valley is of dimension 2 and codimension 1. Further, we take g(x,y)=21(∥y∥+3ex/2)x2 and h(x,y)=−x−y[1] (where y[1] denotes the first component of y). Note that, as required by Sec. 2, the valley of minimizers of g is V={(0,y),y∈R2}. Moreover, S(0,y)=∥y∥+3 and thus VS is a closed disk: VS={(0,y),∥y∥⩽2/η−3}.
On the contrary, we need the assumption ηS(0,y0)⩽2 to derive the result; we do not know how to obtain it as a by-product of the method. In fact, it is possible to build artificial examples where this condition breaks and the central flow prediction fails; this is discussed below in Remark 4.3.
Valleys of arbitrary codimension. We now turn to the more general case where the dimension of X is arbitrary. Recall that we denote S(z)=∇x2g(z)∈SymX. Further, we denote
DyS(x,y):Y→SymXδy↦DyS(x,y)[δy]
the differential of S in the y variable, and consequently, DyS(x,y)∗:SymX→Y the adjoint of DyS(x,y). Finally, we denote ⟨⋅,⋅⟩ the canonical inner product on SymX.
Result 3.2. We no longer assume that X is of dimension 1. Further, assume that as ε→0, the rescaled iterates z(t3)=(x(t3),y(t3)) converge to some function z0(t3)=(x0(t3),y0(t3)). Moreover, assume that z0 remains in the stable valley VS, i.e., x0=0 and ηS(0,y0)≼2IdX.
Then z0 follows the gradient flow of h constrained to the stable valley VS, i.e., there exists Σ=Σ(t3)∈Sym+X such that
∂t3y0=−η[∇yh(0,y0)+21DyS(0,y0)∗[Σ]],
where for all t3, ⟨Σ(t3),2IdX−ηS(0,y0(t3))⟩=0.
Note that Result 3.2 is a generalization of Result 3.1. The function Σ should be interpreted as the Lagrange multiplier associated with the constraint ηS(0,y0)≼2IdX: it satisfies dual feasibility ( Σ∈Sym+X) and complementarity slackness with the constraint ( ⟨Σ,2IdX−ηS(0,y0)⟩=0).
We illustrate the result in Fig. 2.
Figure 2: Iterates of gradient descent with learning rate η=0.3 on f=g+εh, with ε=0.01. In this example, we take Z=R5, X=R2 and Y=R3, thus the valley is of dimension 3 and codimension 2. Further, we take g(x,y)=21x⊤H[y]x+21(x[1]3+x[2]3) with H[y]=(y[1]2y[3]2y[3]y[2]) and h(x,y)=−x[1]−2y[1]−y[2]−y[3]. Note that the assumptions of Sec. 2 are satisfied in the region where H[y]+diag(x[1],x[2])≻0 (where the iterates remain). Moreover, S(0,y)=H[y] and VS={(0,y),ηH[y]≼2Id2}.
The method of multiple scales also provides information on the oscillations and the self-stabilization fluctuations through the next-order term z1=(x1,y1) in the expansion as ε→0. These complements are provided in Sec. 5 for valleys of codimension one and in Sec. 6 for the general case. These aspects require discussing in more detail how the method of multiple scales works. For pedagogical purposes, we start doing so on a minimal example in the next section.
4 Minimal example
4.1 Introduction and experiments
Consider the case Z=R2, X=Y=R, thus z=(x,y)∈R2. Further, we consider the following choices determining the loss function f=g+εh:
g(x,y)=21(y+ζx)x2,h(x,y)=−x−y.(4.1)
Here, ζ∈R is a parameter. This function g does not rigorously satisfy the valley structure required in Sec. 2. However, this is benign: below, we consider the function g only in the region where y+ζx>0. In this region, the minimum of g is 0 and its valley of minimizers is V={(0,y),y>0}. In the valley, h decreases as y increases, thus the gradient descent dynamics move along the valley in the direction of increasing y. However, the sharpness of g in the valley is S(0,y)=∂x2g(0,y)=y, thus there is progressive sharpening, until the dynamics hit the edge of stability at y=2/η. There are then self-stabilization fluctuations around the value y=2/η. These phenomena are illustrated in Fig. 3.
Figure 3: For ε=0.01, ζ=1 and g,h as provided in the minimal example of Eqs. (4.1), we plot the loss function f=g+εh (left) and the iterates of gradient descent on f with learning rate η=0.3 (right). The iterates stabilize on the edge of stability y=2/η after some self-stabilization fluctuations.
The reader might object that the above example is not the simplest possible one with the same properties. For instance, one could consider g(x,y)=21yx2 and h(x,y)=−y. However, it turns out that these choices would not lead to the exact same phenomenology, and the ones we make lead to a more faithful reproduction of the phenomenology of deep learning optimization. In short, the x3 term in g reproduces the damping of the self-stabilization loop, and the −x term in h breaks the metastability in x. These aspects are discussed in Sec. 4.3 and Remark 4.3 respectively.
In Figure 4, we plot the iterates of gradient descent as a function of t3, for various values of ε. We observe that the iterates converge to the central flow (x0,y0) as ε→0, that is, to the gradient flow of h constrained to the stable valley VS={(0,y),y⩽2/η}.
Figure 4: Iterates of gradient descent on the minimal example of Eqs. (4.1) with learning rate η=0.3, ζ=1 and ε=10−2,10−3,10−4,10−5.
At the edge of stability, the oscillations of x and the self-stabilization fluctuations appear in the next-order term of the approximation. As will be confirmed by the method of multiple scales below, this next order term is of order ε1/2. In Figure 5, we plot the rescaled iterates ε−1/2(x−x0,y−y0) as functions of the slow timescale t3=εk and the intermediate timescale t2=ε1/2k. In the limit ε→0, we observe that the self-stabilization loop and its slow damping decouple on the timescales t2 and t3. While the typical time of a self-stabilization fluctuation is t2, the typical time of the damping of the self-stabilization loop is t3.
4.2 Method of multiple scales
The goal of this section is to confirm and refine the empirical observations above using the method of multiple scales. It is a perturbation method: in our case, the perturbation parameter is ε≪1, and it seeks an expansion of the form
xy=x0+ε1/2x1+εx2+⋯,=y0+ε1/2y1+εy2+⋯.(4.2)
The goal is to obtain expressions or evolution equations for the leading terms of this expansion. Here, the challenge is that the terms depend simultaneously on various timescales t1=k, t2=ε1/2k, and t3=εk, that depend themselves on ε. This is a typical situation where the method of multiple scales is useful.
Figure 5: Rescaled iterates of gradient descent on the minimal example of Eqs. (4.1) with η=0.3, ζ=1 and ε=10−2,10−3,10−4,10−5. We denote kEoS the first iteration number for which y>2/η: it encodes the beginning of the edge of stability. We denote t2,EoS=ε1/2kEoS and t3,EoS=εkEoS the corresponding rescaled times, and we start the plots at these times. We do not plot the trajectory with ε=10−5 in the upper plots for readability.
Let us first give an overview of the method. The method postulates that the timescales t1, t2, and t3 can be decoupled by treating them as independent parameters. In our case, t1 is a discrete parameter while t2 and t3 are continuous parameters. It then treats all functions of k as functions of the three independent timescales: z=z(t1,t2,t3), x=x(t1,t2,t3), y=y(t1,t2,t3), x0=x0(t1,t2,t3), etc. The difference equation Δkz=z(k+1)−z(k)=−η∇f(z) in z=z(k) is transformed into a partial difference-differential equation in z=z(t1,t2,t3). By identifying the different terms in the expansion of this equation, we infer properties for the terms x0=x0(t1,t2,t3), y0=y0(t1,t2,t3), x1=x1(t1,t2,t3), etc. The final approximation is provided by using the expansion of Eq. (4.2) and substituting the actual timescales t1=k, t2=ε1/2k, and t3=εk.
We obtain the following result for our minimal example.
Result 4.1. Assume that (x0,y0) remains in the stable valley, i.e., x0=0 and ηy0⩽2. Then y0=y0(t3), i.e., y0 does not depend on t1 or t2; and y1=y1(t2,t3), i.e., y1 does not depend on t1. Further, we have the following:
(i) If ηy0<2 (relative interior of the stable valley), then ∂t3y0=−η∂yh(x0,y0)=η.
(ii) If ηy0=2 (edge of stability), then x1=(−1)t1a1 for some a1=a1(t2,t3). Further, we have the self-stabilization system
∂t2a1∂t2y1=ηa1y1,=η(1−2a12).(4.3)
This result confirms that (x0,y0) follows the central flow prediction. It moves in the stable valley VS={(0,y):ηy⩽2}, following the constrained gradient flow of h, until it hits the constraint ηy0⩽2. It then stays on the edge of stability threshold. This is consistent with the experiment of Fig. 4.
This result also gives information about the next-order term (x1,y1) at the edge of stability. While y1 does not depend on t1, x1 oscillates in t1, with amplitude a1(t2,t3). Again, this is consistent with the experiments of Figs. 4 and 5. Moreover the joint evolution of a1 and y1 in t2 is provided by the system of ordinary differential equations (ODEs) (4.3). This corresponds to the self-stabilization equations derived in [10].
As noted in [10], these self-stabilization dynamics preserve the energy
E=2y12+4a12−21loga12,
resulting in (a1,y1) being periodic in t2. As a consequence, E=E(t3), i.e., E evolves only on the slow timescale t3. This is consistent with the experiment of Fig. 5. The evolution of E in t3 is discussed in Sec. 4.3.
We now turn to the derivation of Result 4.1. The situation in which we apply the method of multiple scales is rather sophisticated, due to the presence of three timescales (two is more common) and the presence of a discrete timescale t1. For more pedagogical illustrations of the method, we recommend [14].
Derivation of Result 4.1. As written above, the method of multiple scales operates by identifying the several scales in the gradient descent iteration Δkz=−η∇f(z). We thus expand both sides as functions of ε. For the right-hand side, we have
The expansion of the left-hand side Δkz is more subtle because it requires to express the discrete difference operator Δk applied to a function z=z(t1,t2,t3). As t1,t2, and t3 depend on k, the expression of Δk depends on the discrete difference operator Δt1 and the partial derivatives ∂t2 and ∂t3.
Note that we do not write the evaluations of the partial derivatives at (t1,t2,t3) for readability. Using a similar expansion for (Δt1z)(t1,t2+ε1/2,t3+ε), we obtain
Combining the expansions of Eqs. (4.5) and (4.7), we are ready to identify terms in the expansion of
Δkx=−η∂xf(x,y),(4.8)Δky=−η∂yf(x,y).(4.9)
Order 1. Recall that, by assumption, x0=0. The x equation (4.8) does not give anything at order 1. The y equation (4.9) gives Δt1y0=0, thus y0=y0(t2,t3) does not depend on t1.
Order ε1/2. The x equation (4.8) gives
Δt1x1=−ηy0x1.
Here, y0 should be interpreted as the sharpness of g at (x0,y0); this difference equation describes the linearized dynamics of x around (x0,y0). Its behavior depends on whether the edge of stability is reached. Fix t2 and t3.
• If ηy0(t2,t3)<2, then x1=x1(t1,t2,t3)t1→∞0.
• If ηy0(t2,t3)=2, then x1=(−1)t1a1(t2,t3) for some a1 that does not depend on t1. At the edge of stability, x1 oscillates with an amplitude which is a function of t2 and t3 only.
We now turn to the y equation (4.9). It gives
Δt1y1+∂t2y0=0.
Recall that y0 does not depend on t1. As a consequence, y1 is an affine function of t1, with slope −∂t2y0. However, having y1 unbounded is not acceptable as it would imply that ε1/2y1 eventually become of order 1, thus interfering with the leading order term y0 in the expansion (4.2). In the method of multiple scales, such a term is called secular, and the method prescribes to build an approximation that forbids secular terms, to keep the reasoning consistent [14]. This prescription is the core mechanism of the method of multiple scales; we will use it repeatedly. Here, we can thus conclude that Δt1y1=−∂t2y0=0. As a consequence, y1=y1(t2,t3) and y0=y0(t3).
Here, we focus on understanding what happens at the edge of stability, i.e., when ηy0=2. We then know that x1=(−1)t1a1(t2,t3), and thus Δt1x1=−2(−1)t1a1(t2,t3). We obtain
Consider the above equation as a difference equation for x2 in t1, with fixed t2 and t3. The right-hand side depends on t1 only through the (−1)t1 terms, as the terms a1 and y1 were shown to be independent of t1. This suggests considering the following lemma.
Lemma 4.2. Let α,β∈R. The solutions φ=φ(t1) of the difference equation
Δt1φ+2φ=α+β(−1)t1
are
φ=2α+a(−1)t1−βt1(−1)t1,a∈R.
In particular, there exists a bounded solution if and only if β=0.
Proof. This lemma is a particular case of Lemma C.1 below.
Applying this lemma to Eq. (4.10), we obtain that we must have ∂t2a1=ηy1a1 to avoid a secular term. The lemma also gives an expression for x2, but it turns out that we do not need it in this section. This is typical of the method of multiple scales: we solve higher-order terms not always to include them in our approximation, but to obtain information about lower-order terms—here, the variations of a1 in t2.
We now turn to the y equation (4.9). It gives
Δt1y2+∂t2y1+∂t3y0=−η[2x12−1].
As before, we consider this as a difference equation for y2 in t1:
Δt1y2=−∂t2y1−∂t3y0−η[2x12−1].
We distinguish whether we are at the edge of stability.
• If ηy0<2, then x1→0 as t1→∞, and all other quantities of the right-hand side are independent of t1. To prevent a secular term, we must have
−∂t2y1−∂t3y0+η=0.
We consider this as an ODE for y1 in t2. As y0 is independent of t2, we have a secular term unless
∂t3y0=η.
This finishes our derivation of item (i) of the result: in the relative interior of the stable region, the dynamics follow the gradient flow of h constrained to the valley.
• If ηy0=2, then we have x1=(−1)t1a1(t2,t3) and ∂t3y0=0. We obtain
Δt1y2=−∂t2y1−η[2a12−1].
The right-hand side is independent of t1. To avoid a secular term, we must have
∂t2y1=η(1−2a12).
This completes the derivation of item (ii) of the result.
Remark 4.3. Without making the assumption ηy0⩽2, we would have considered a third case ηy0>2 in the derivations of order ε1/2. In this case, x1 develops a secular term (exponentially growing), unless x1=0. Thus, to avoid a secular term, we must have the dichotomy: ηy0⩽2 or x1=0. It is not excluded that we leave the stable valley, however this can be done only in a way where the perturbation x1 of x0=0 is exactly 0. This situation seems non-generic; in our case the term −x of h maintains a small drift from x=0 that prevents this situation. In Fig. 6, we observe that removing the term −x from h results in the iterates leaving the stable valley for a significant slow time t3, thus breaking the central flow prediction. More generally, we conjecture that a perturbation in x (transversal gradient of h, noise, numerical errors, etc.) is necessary for the central flow prediction to hold.
4.3 Energy variations in self-stabilization
We have seen above that the self-stabilization dynamics preserve the energy
E=E(t3)=2y12+4a12−21loga12,
as a function of t2. However, the energy still varies as a function t3, as observed in Figs. 4 and 5. The method of multiple scales allows us to study these variations.
Result 4.4. Under the assumptions of Result 4.1, at the edge of stability, we have
∂t3E=η2(2−9ζ2)⟨y12⟩t2,
where ⟨y12⟩t2=⟨y12(t2,t3)⟩t2 denotes the average of y12 over one period in t2.
Note that ⟨y12⟩t2 is a function of E only, thus the above result is an autonomous ODE for E in t3. If ζ2>92, the energy decreases while if ζ2<92, the energy increases, see Fig. 7. However, in the latter case, the energy does not diverge but saturates at a large value. In fact, E becomes so large that the scales of ε1/2a1,ε1/2y1 are no longer of order ε1/2, breaking the asymptotic expansion ansatz used to derive Result 4.4. Our derivations are then no longer predictive of the actual dynamics and more refined computations would be required to study the saturation of the energy.
Figure 6: Iterates of gradient descent where g is chosen as in Eqs. (4.1) and h(x,y)=−x−y or h(x,y)=−y. Here, η=0.3, ζ=1 and ε=0.03. In the absence of the term −x in h, x becomes exponentially small in the first part of the dynamics, and thus it is possible to leave the stable valley, with the self-stabilization mechanism kicking in only after a significant slow time t3. The self-stabilization mechanism is then so strong that the trajectory diverges.
To summarize, the self-stabilization system (4.3) and Result 4.4 should be understood as an analysis at energy levels of order 1. This analysis is most relevant for practice since neural networks seem to systematically dissipate energy when only one eigenvalue is on the edge of stability, see Fig. 8 of this paper or Figs. 5, 6, 10, 14, 15 in [8]. We leave it as an open problem to understand the structure of the loss of neural networks that causes this mechanism.
Analytically, studying the dependence of E in t3 requires pushing the method of multiple scales to the order ε3/2. Indeed, as the reader might have noticed, the order 1 gives the dependence of z0 in t1; the order ε1/2 gives the dependencies of z1 in t1 and of z0 in t2; the order ε gives the dependencies of z2 in t1, of z1 in t2, and of z0 in t3. Continuing this pattern, the dependence of z1 (and thus of E) in t3 is obtained at order ε3/2. This leads to rather tedious computations provided in Appendix A. We have done these derivations only in the minimal example of this section and leave the more general case of Sec. 5 for future work.
5 Valleys of codimension one
We now return to the general setup of Sec. 2. Here, we are interested in the fact that Y can be multidimensional, thus y0 can move at the edge of stability. However, in this section, we still assume that X=R, so that ∇2g(0,y) has exactly one non-zero eigenvalue S(0,y)=∂x2g(0,y). In Figure 1, we provide an example of such gradient descent dynamics where the valley is of dimension 2.
(a) ζ=0.5
(b) ζ=0
Figure 7: Comparison between the empirical variation of the energy and the theoretical prediction of Result 4.4. This experiment is initialized at the edge of stability. Here, η=0.3 and ε=10−5. More precisely, we define y1emp=ε−1/2(y−y0) and a1emp=ε−1/2(−1)t1(x−x0). This defines an empirical energy Eemp=(y1emp)2/2+(a1emp)2/4−log((a1emp)2)/2, that we compare against Epred(t3)=Eemp(0)+η2(2−9ζ2)∫0t3(y1emp)2ds3. We denote Emin=21(1−log2) the minimal possible energy.
We now state a general result for such valleys of codimension 1. This result is an extension of Result 3.1 and a generalization of Result 4.1.
Result 5.1. Assume that X is of dimension 1. Further, assume that (x0,y0) remains in the stable valley, i.e., x0=0 and ηS(0,y0)⩽2. Then y0=y0(t3), and y1=y1(t2,t3). Further, we have the following:
(i) There exists σ2=σ2(t3)⩾0 such that
∂t3y0=−η[∇yh(0,y0)+2σ2∇yS(0,y0)],
where for all t3, σ2(t3)=0 or ηS(0,y0(t3))=2.
(ii) If ηS(0,y0)=2 (edge of stability), then x1=(−1)t1a1 for some a1=a1(t2,t3). Further, denote u1=⟨y1,∇yS(0,y0)⟩. Then we have the self-stabilization system
Moreover, in that case, we have σ2=⟨a12⟩t2, i.e. σ2(t3) is the average of a12(t2,t3) over a period in t2.
Figure 8: Evolution of the top eigenvalues of the Hessian along the training path of a neural network. The amplitude of the self-stabilization fluctuations decreases when only one eigenvalue is on the edge of stability. When a second eigenvalue reaches the edge of stability, the amplitude of the fluctuations stabilizes at a larger value, as expected from the analysis of Sec. 6. Here, we train a multilayer perceptron with two hidden layers of width 256 and GELU activation on a subset of CIFAR-10 with mean-squared error loss. The learning rate is η=0.03.
The derivation of this result is provided in Appendix B. Note that in the self-stabilization system (5.1), ⟨∇yh(0,y0),∇yS(0,y0)⟩ and ∥∇yS(0,y0)∥2 are independent of t2. Moreover, in a situation where the dynamics stay at the edge of stability, we must have ⟨∇yh(0,y0),∇yS(0,y0)⟩<0: the gradient flow on h pushes towards the stability boundary. The self-stabilization system (5.1) is thus the same as the one of (4.3), up to a rescaling. A self-stabilization loop appears, preserving an energy E=E(t3). For fixed t3, (a1,u1) is periodic in t2, thus the average ⟨a12⟩t2 over t2 is well-defined.
The derivation of the central flow in [8] already interpreted σ2=Ex2, where E denotes “local time-averages”. Here, thanks to the timescale decoupling, we can be more precise: E corresponds to averaging over t2, for fixed t3.
6 Valleys of arbitrary codimension
This section tackles the case where the dimension of X is arbitrary.
Result 6.1. Assume that (x0,y0) remains in the stable valley, i.e., x0=0 and ηS(0,y0)⪯2IdX. Then y0=y0(t3), and y1=y1(t2,t3). Further, we have the following:
(i) There exists Σ=Σ(t3)∈Sym+X such that
∂t3y0=−η[∇yh(0,y0)+21DyS(0,y0)∗[Σ]],
where for all t3, ⟨Σ(t3),2IdX−ηS(0,y0)⟩=0.
(ii) Let C=C(t3)=ker(2IdX−ηS(0,y0))⊂X denote the critical subspace. Recall that ιC:C→X denotes the canonical inclusion, and PC:X→C the orthogonal projection onto C. We have PCx1=(−1)t1a1 for some a1=a1(t2,t3)∈C and PC⊥x1t1→∞0. Further, denote
Ψ=Ψ(t3):Yδy→SymC↦Ψ[δy]=PCDyS(0,y0)[δy]ιC,
and U1=Ψ[y1]∈SymC. Then we have the self-stabilization system
Moreover, provided that the average ⟨a1a1⊤⟩t2=limT2→∞T21∫0T2a1(t2,t3)a1(t2,t3)⊤dt2 is well-defined, we have Σ=ιC⟨a1a1⊤⟩t2PC.
The derivation of this result is provided in Appendix C. The derivation of the central flow in [8] already interpreted Σ=Eaa⊤, where E denotes “local time-averages”. Here, thanks to the timescale decoupling, we can be more precise: E corresponds to averaging over t2, for fixed t3.
Result 6.1 is a generalization of Result 5.1. When only one eigenvalue of S(0,y0) has reached the edge of stability, we recover the self-stabilization system (5.1). Indeed, then C is of dimension 1, thus a1∈C and U1∈SymC are scalars. Moreover, ΨΨ∗:SymC→SymC is a linear operator on a one-dimensional space, thus it is a scalar multiplication. Thus in that case, the self-stabilization system (6.1) reduces to the self-stabilization system (5.1). We have a periodic behavior in t2.
When more eigenvalues enter the edge of stability, the behavior of the self-stabilization system (6.1) is much richer, see Fig. 2.
The self-stabilization system (5.1) admits the fixed point u1=0,a12=−∥∇yS∥22⟨∇yh,∇yS⟩. Meanwhile, finding a fixed point for the self-stabilization system (6.1) would require solving the equation ΨΨ∗[a1a1⊤]=−2Ψ[∇yh(0,y0)]. As the right hand side is in imΨ=imΨΨ∗, there exists Σ∈SymC such that ΨΨ∗[Σ]=−2Ψ[∇yh(0,y0)]. However, it is non-generic that a rank-one solution Σ exists. Thus, generically, there is no fixed point, and to avoid a secular term, a1a1⊤ must evolve persistently so that its average value is Σ.
This explains the observed behavior in Fig. 2. When only one eigenvalue is on the edge of stability, the self-stabilization system is observed to lose energy (on the t3 timescale), converging to its fixed point. However, when a second eigenvalue enters the edge of stability, there is a significant increase in the edge of stability fluctuations, and these fluctuations are persistent. This phenomenology, here illustrated on a toy example, has been observed systematically in deep learning experiments, see Fig. 8 of this paper or Figs. 5, 6, 10, 14, 15 in [8].
To finish, we now discuss the implications of Result 6.1 for the loss f(x,y), as it is the most commonly observed quantity in practice.
Corollary 6.2. Under the assumptions of Result 6.1, we have
f(x,y)=ming+εf2+o(ε)
where
f2t1→∞h(0,y0)+η∥a1∥2.
The derivation of this corollary is provided in Appendix D. The dominant non-constant term of the loss is of order ε. In the relative interior of the stable valley, this term depends only on t3 (up to a potential initial transient term in t1), through the component h of the loss. At the edge of stability, an additional increase ∥a1∥2/η appears, depending on both t2 and t3. In t2, the self-stabilization fluctuations induce spikes in the loss. Averaging over these, and assuming that the average ⟨a1a1⊤⟩t2 is well-defined, we obtain
⟨f2⟩t2t1→∞h(0,y0)+ηTrΣ,
consistently with the result of [8, Sec. 3.2.3]. These results are illustrated in Fig. 9.
Figure 9: Rescaled loss ε−1(f(x(k),y(k))−min(x,y)∈VSf(x,y)) along the iterates of gradient descent and its central flow prediction h(0,y0)−min(x,y)∈VSh(x,y)min+σ2/η, in the same experiment as in Fig. 1. The loss progress made on h in the valley and the loss increase due to oscillations are both of the same order ε.
7 Related work
Sharp valley structure of the loss. Arguments for the sharp valley structure of the loss landscape are widespread in the literature. To give a few examples, this picture is consistent with plots of the loss along the sharpest direction of the Hessian around an iterate [15], plots of the loss along the segment between two consecutive iterates [42], and the anti-alignment of the gradients of consecutive iterates [42]. Along the training path, the loss Hessian exhibits an approximate low-rank structure [31, 32, 11, 28, 29, 4]. The gradients are mostly aligned with the sharpest directions of the Hessian [13, 19], however the component of the gradients in these dominant directions does not contribute to any loss decrease [15, 34], but to a sharpness reduction effect [33]. In a toy problem, the valley structure has been mathematically analyzed and the sharpest directions are associated with uncertain features of the problem [38]. Finally, given this accumulation of empirical evidence, the sharp valley structure has already been used as a working hypothesis in some works [22, 23].
Analyses of the edge of stability phenomenon. After the initial empirical observations of the edge of stability phenomenon [15, 16, 9], a large body of work has been devoted to explaining it [2, 3, 37, 10, 44, 24, 1, 6, 18, 35, 40, 39, 5, 36, 17, 12, 43, 21, 41, 20]. In contrast, our results assume that the leading-term of dynamics remains in the stable region, and study the consequences of this assumption. To the best of our knowledge, no previous work had provided additional justification for the central flow approximation [8].
From a modeling perspective, our work bears similarities with [25, 26] that study the dynamics of gradient descent around a valley of minimizers. They show that gradient descent implicitly performs a Riemannian gradient descent on the sharpness in the valley of minimizers, and describe the bifurcating dynamical system in the orthogonal direction. In their “subcritical regime”, their analysis corresponds to the case h=0 in our work. However, in the absence of ∇h pushing towards the stability boundary, the edge of stability phenomenon is transient.
Comparison with other approximations. Several works [30, 27, 7] subsequent to the central flow [8] have proposed other averaged approximations of gradient descent, see Fig. 10 for a comparison. In addition to the slow dynamics in t3, these approximations attempt at capturing the self-stabilization dynamics in t2. In fact, it is even explicit in the derivations of [30, 27] that they average only two subsequent iterates, thus over the timescale t1 only. All of these approximations report similar or slightly better accuracy than the central flow in approximating gradient descent. While qualitatively, these approximations correctly generate self-stabilization loops, these loops are often off in magnitude or in phase, leading to only minor quantitative improvement.
Overall, in the presence of the several timescales t1,t2,t3, effective models can average at different levels, leading to different tradeoffs between accuracy and conceptual simplicity. The central flow, with its constrained gradient flow formulation, is the simplest and coarsest version, averaging over t1 and t2. The other approximations [30, 27, 7], averaging over t1 only, contain more information on the self-stabilization dynamics but have a more complex formulation. This paper advocates for seeking expansions of the dynamics, where each individual term is simple and interpretable, while their combination can have high accuracy.
8 Conclusion
The contributions of this paper are both conceptual and analytical. Conceptually, we clarify that the central flow and the self-stabilization mechanism are related to a sharp valley structure of the loss landscape. However, understanding why such a loss landscape
Figure 10: Comparison of the central flow [8], the rod flow [30], the edge gradient descent [27] and the flow of [7] (labeled “free energy flow” here) in the setting of Fig. 3. The fact that the rod flow may fail to detect the start of the edge of stability phase had already been pointed out in [27, Fig. 6].
structure appears when training deep learning models is still largely an open problem (see [38] for a first approach).
Analytically, we provide a framework for studying the dynamics of gradient descent on the edge of stability, based on the method of multiple scales. This framework could be improved by formalizing the derivations through more rigorous techniques of singular perturbation theory. Computing the effect of a curved valley V is also an interesting direction for future work. The works of [25, 26] provide interesting first elements in these directions.
The strength of the framework stems from its systematic nature. As a consequence, we plan to use it to analyze inertial and adaptive algorithms. We hope that understanding these complex dynamics across many optimizers will help to design new methods.
Acknowledgements
The author thanks Victor Baillet, Léo Dana and Loucas Pillaud-Vivien for fruitful discussions. He also thanks the authors of [8] for making their code publicly available; in particular, this code was used to generate Figure 8.
AI-based tools were used for line completion in the text editor, for generating the plotting scripts that produce the figures from the data, and for proofreading. They were not used to generate the scientific content of the paper, to draft its prose beyond phrase-level completion, or to write the code implementing the experiments. The author has verified all AI-assisted output and takes full responsibility for the content of the paper.
The author acknowledges support from the ANR and the Ministère de l'Enseignement Supérieur et de la Recherche.
References
[1] Atish Agarwala, Fabian Pedregosa, and Jeffrey Pennington. Second-order regression models exhibit progressive sharpening to the edge of stability. In International Conference on Machine Learning, 2023.
[2] Kwangjun Ahn, Jingzhao Zhang, and Suvrit Sra. Understanding the unstable convergence of gradient descent. In International Conference on Machine Learning, 2022.
[3] Sanjeev Arora, Zhiyuan Li, and Abhishek Panigrahi. Understanding gradient descent on the edge of stability in deep learning. In International Conference on Machine Learning, 2022.
[4] Gerard Ben Arous, Reza Gheissari, Jiaoyang Huang, and Aukosh Jagannath. High-dimensional SGD aligns with emerging outlier eigenspaces. In International Conference on Learning Representations, 2024.
[5] Yuhang Cai, Jingfeng Wu, Song Mei, Michael Lindsey, and Peter Bartlett. Large step-size gradient descent for non-homogeneous two-layer networks: Margin improvement and fast optimization. Advances in Neural Information Processing Systems, 2024.
[6] Lei Chen and Joan Bruna. Beyond the edge of stability via two-step gradient updates. In International Conference on Machine Learning, 2023.
[7] Antonin Chodron de Courcel. Gradient descent at the edge of stability: free energy model and kinetic description of the two-layer network. arXiv preprint arXiv:2606.05326, 2026.
[8] Jeremy Cohen, Alex Damian, Ameet Talwalkar, Zico Kolter, and Jason Lee. Understanding optimization in deep learning with central flows. In International Conference on Learning Representations, 2025.
[9] Jeremy Cohen, Simran Kaur, Yuanzhi Li, Zico Kolter, and Ameet Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. In International Conference on Learning Representations, 2021.
[10] Alex Damian, Eshaan Nichani, and Jason Lee. Self-stabilization: The implicit bias of gradient descent at the edge of stability. In International Conference on Learning Representations, 2023.
[11] Behrooz Ghorbani, Shankar Krishnan, and Ying Xiao. An investigation into neural net optimization via Hessian eigenvalue density. In International Conference on Machine Learning, 2019.
[12] Avrajit Ghosh, Soo Min Kwon, Rongrong Wang, Saiprasad Ravishankar, and Qing Qu. Learning dynamics of deep linear networks beyond the edge of stability. International Conference on Learning Representations, 2025.
[13] Guy Gur-Ari, Daniel Roberts, and Ethan Dyer. Gradient descent happens in a tiny subspace. arXiv preprint arXiv:1812.04754, 2018.
[14] Mark Holmes. Introduction to perturbation methods. Springer Science & Business Media, 2012.
[15] Stanisław Jastrzebski, Zachary Kenton, Nicolas Ballas, Asja Fischer, Yoshua Bengio, and Amos Storkey. On the relation between the sharpest directions of DNN loss and the SGD step length. In International Conference on Learning Representations, 2019.
[16] Stanislaw Jastrzebski, Maciej Szymczak, Stanisław Fort, Devansh Arpit, Jacek Tabor, Kyunghyun Cho, and Krzysztof Geras. The break-even point on optimization trajectories of deep neural networks. In International Conference on Learning Representations, 2020.
[17] Dayal Singh Kalra, Tianyu He, and Maissam Barkeshli. Universal sharpness dynamics in neural network training: Fixed point analysis, edge of stability, and route to chaos. In International Conference on Learning Representations, 2025.
[18] Itai Kreisler, Mor Shpigel Nacson, Daniel Soudry, and Yair Carmon. Gradient descent monotonically decreases the sharpness of gradient flow solutions in scalar networks and beyond. In International Conference on Machine Learning, 2023.
[19] Xinyan Li, Qilong Gu, Yingxue Zhou, Tiancong Chen, and Arindam Banerjee. Hessian based analysis of SGD for deep nets: Dynamics and generalization. In SIAM International Conference on Data Mining, 2020.
[20] Elon Litman. The origin of edge of stability. arXiv preprint arXiv:2604.20446, 2026.
[21] Liming Liu, Zixuan Zhang, Simon Du, and Tuo Zhao. A minimalist example of edge-of-stability and progressive sharpening. Advances in Neural Information Processing Systems, 2025.
[22] Yizhou Liu, Ziming Liu, and Jeff Gore. Focus: First order concentrated updating scheme. arXiv preprint arXiv:2501.12243, 2025.
[23] Ziming Liu, Yizhou Liu, Jeff Gore, and Max Tegmark. Neural thermodynamic laws for large language model training. arXiv preprint arXiv:2505.10559, 2025.
[24] Chao Ma, Daniel Kunin, Lei Wu, and Lexing Ying. Beyond the quadratic approximation: The multiscale structure of neural network loss landscapes. arXiv preprint arXiv:2204.11326, 2022.
[25] Lachlan MacDonald, Hancheng Min, Leandro Palma, Salma Tarmoun, Ziqing Xu, and René Vidal. Convergence rates for gradient descent on the edge of stability in overparametrised least squares. Advances in Neural Information Processing Systems, 2025.
[26] Lachlan MacDonald and René Vidal. Dynamics of gradient descent with large step size near a manifold of flat minima. arXiv preprint arXiv:2607.08380, 2026.
[27] Pierre Marion. Edge flow: A tractable and predictive continuous-time model for gradient descent at the edge of stability. arXiv preprint arXiv:2606.18080, 2026.
[28] Vardan Papyan. Measurements of three-level hierarchical structure in the outliers in the spectrum of deepnet Hessians. In International Conference on Machine Learning, 2019.
[29] Vardan Papyan. Traces of class/cross-class structure pervade deep learning spectra. Journal of Machine Learning Research, 21(252):1–64, 2020.
[30] Eric Regis and Sinho Chewi. Rod flow: A continuous-time model for gradient descent at the edge of stability. arXiv preprint arXiv:2602.01480, 2026.
[31] Levent Sagun, Leon Bottou, and Yann LeCun. Eigenvalues of the Hessian in deep learning: Singularity and beyond. arXiv preprint arXiv:1611.07476, 2016.
[32] Levent Sagun, Utku Evci, V. Ugur Guney, Yann Dauphin, and Leon Bottou. Empirical analysis of the Hessian of over-parametrized neural networks. arXiv preprint arXiv:1706.04454, 2017.
[33] Jun-Ho So and Dongwook Shin. Mini-batch noise lowers sharpness via dominant-subspace fluctuations. In High-dimensional Learning Dynamics, 2026.
[34] Minhak Song, Kwangjun Ahn, and Chulhee Yun. Does SGD really happen in tiny subspaces? In International Conference on Learning Representations, 2025.
[35] Minhak Song and Chulhee Yun. Trajectory alignment: Understanding the edge of stability phenomenon via bifurcation theory. Advances in Neural Information Processing Systems, 2023.
[36] Yuqing Wang, Zhenghao Xu, Tuo Zhao, and Molei Tao. Good regularity creates large learning rate implicit biases: edge of stability, balancing, and catapult. Journal of Machine Learning Research, 26(273):1–68, 2025.
[37] Zixuan Wang, Zhouzi Li, and Jian Li. Analyzing sharpness along gd trajectory: Progressive sharpening and edge of stability. Advances in Neural Information Processing Systems, 2022.
[38] Kaiyue Wen, Zhiyuan Li, Jason Wang, David Hall, Percy Liang, and Tengyu Ma. Understanding warmup-stable-decay learning rates: A river valley loss landscape perspective. In International Conference on Learning Representations, 2025.
[39] Jingfeng Wu, Peter Bartlett, Matus Telgarsky, and Bin Yu. Large stepsize gradient descent for logistic loss: Non-monotonicity of the loss improves optimization efficiency. In Conference on Learning Theory, 2024.
[40] Jingfeng Wu, Vladimir Braverman, and Jason Lee. Implicit bias of gradient descent for logistic regression at the edge of stability. Advances in Neural Information Processing Systems, 2023.
[41] Jingfeng Wu, Pierre Marion, and Peter Bartlett. Large stepsizes accelerate gradient descent for regularized logistic regression. Advances in Neural Information Processing Systems, 2025.
[42] Chen Xing, Devansh Arpit, Christos Tsirigotis, and Yoshua Bengio. A walk with SGD. arXiv preprint arXiv:1802.08770, 2018.
[43] Geonhui Yoo, Minhak Song, and Chulhee Yun. Understanding sharpness dynamics in NN training with a minimalist example: The effects of dataset difficulty, depth, stochasticity, and more. arXiv preprint arXiv:2506.06940, 2025.
[44] Xingyu Zhu, Zixuan Wang, Xiang Wang, Mo Zhou, and Rong Ge. Understanding edge-of-stability training dynamics with a minimalist example. In International Conference on Learning Representations, 2023.
APPENDIX
A Derivation of Result 4.4
We compute the terms of order ε3/2 in the equation Δkz=−η∇f(z). For the right-hand side, we have
Here, we are interested in the edge of stability phase where ηy0=2, x1=(−1)t1a1(t2,t3). Moreover, applying Lemma 4.2 to Eq. (4.10), we have x2=−2η[23ζa12−1]+(−1)t1a2 for some a2=a2(t2,t3). This gives
We now identify terms of order ε3/2 in the y equation (4.9). Recall that y0=2/η, y1=y1(t2,t3), y2=y2(t2,t3), leading to many simplifications. We obtain
Remark A.2. In the above derivations, ensuring that F=y1y2+(2a1−a11)a2 is non-secular suffices to compute the variations of the energy E. However, ensuring that y2 and a2 are both non-secular would require a condition on an independent combination of y2 and a2. This additional condition would compute the phase shift of the self-stabilization fluctuations in the slow timescale t3. This phase shift can be observed in Fig. 5, bottom plots.
B Derivation of Result 5.1
As before, we identify terms in the expansion of
Δkx=−η∂xf(x,y),(B.1)Δky=−η∇yf(x,y).(B.2)
The expansion of the discrete difference operator Δk is the same as in Eq. (4.7). The expansion of the right-hand side also remains unchanged until Eq. (4.4). Recall that for all y∈Y, we have g(0,y)=ming. In particular, this implies that for all p⩾1, ∇ypg(0,y)=0. Moreover, it also implies that for all y∈Y, ∂xg(0,y)=0. As a consequence, for all p⩾0, ∇yp∂xg(0,y)=0. This simplifies many terms in Eq. (4.4). Combining with the assumption x0=0 and the notation S(0,y)=∂x2g(0,y), we obtain
In the derivations that follow, we do not write explicitly the evaluations at (0,y0) anymore. We can now proceed to the identification of terms in the expansion of Eqs. (B.1)–(B.2).
Order 1. As in the derivation of Result 4.1, this order gives y0=y0(t2,t3).
Order ε1/2. The x equation (B.1) gives
Δt1x1=−ηSx1.
We distinguish whether we are at the edge of stability.
• If ηS<2, recall that, by assumption from Sec. 2, we also have ηS>0. Thus x1→0 as t1→∞.
• If ηS=2, then x1=(−1)t1a1(t2,t3) for some a1.
As before, the y equation (B.2) gives y1=y1(t2,t3) and y0=y0(t3).
By Lemma 4.2, we must have ∂t2a1=ηa1⟨∇yS,y1⟩ to avoid a secular term.
We now turn to the y equation (B.2). It gives
Δt1y2+∂t2y1+∂t3y0=−η[2x12∇yS+∇yh].
We distinguish whether we are at the edge of stability.
• If ηS<2, then x1→0 as t1→∞. To prevent y2 from developing a secular term on the timescale t1, we must have ∂t2y1+∂t3y0=−η∇yh. Here, all quantities but y1 are independent of t2. To prevent a secular term, we must have
∂t3y0=−η∇yh.
In the relative interior of the stable region, the dynamics follow the gradient flow of h constrained to the valley.
• If ηS=2, then we have x1=(−1)t1a1(t2,t3). We obtain
Δt1y2=−∂t2y1−∂t3y0−η[2a12∇yS+∇yh].
The right-hand side is independent of t1. To avoid a secular term, we must have
∂t2y1=−∂t3y0−η[2a12∇yS+∇yh].(B.4)
Differentiating the edge of stability condition ηS(0,y0)=2 with respect to t3, we obtain ⟨∂t3y0,∇yS⟩=0. This suggests taking the inner product of Eq. (B.4) with ∇yS. Recall that we denote u1=⟨y1,∇yS⟩. We obtain
∂t2u1=−η[∥∇yS∥22a12+⟨∇yh,∇yS⟩].
This finishes the derivation of Eqs. (5.1).
As discussed below the result, the self-stabilization system (5.1) implies that a1 is periodic in t2 (for fixed t3). Thus in the right hand side of Eq. (B.4), all quantities are independent of t2 except for a1 which is periodic in t2.
By Lemma A.1, to avoid y1 developing a secular term in t2, we must have
∂t3y0=−η[∇yh+2⟨a12⟩t2∇yS].
This completes the derivation of item (i) by taking σ2=⟨a12⟩t2 if ηS=2 and σ2=0 if ηS<2, and thus completes the derivation of the result.
C Derivation of Result 6.1
As before, we identify terms in the expansion of
Δkx=−η∇xf(x,y),(C.1)Δky=−η∇yf(x,y).(C.2)
The expansion of the right hand side is the same as in Eq. (B.3), except for a few modifications due to the fact that X is multidimensional:
• ∂x is replaced by ∇x,
• S(0,y)=∂x2g(0,y)∈R is replaced by S(0,y)=∇x2g(0,y)∈Sym+X,
In the derivations that follow, we do not write explicitly the evaluations at (0,y0) anymore. We can now proceed to the identification of terms in the expansion of Eqs. (C.1)–(C.2).
Order 1. As before, this order gives y0=y0(t2,t3).
Order ε1/2. The x equation (C.1) gives
Δt1x1=−ηSx1.
We distinguish directions depending on whether they are critical. Recall that C=C(t3)=ker(2IdX−ηS) denotes the critical subspace. We use a spectral decomposition of ηS. By assumption from Sec. 2, all eigenvalues are positive. The eigenvectors associated the eigenvalue 2 form a basis of C, while the other eigenvectors are associated with eigenvalues in (0,2) and form a basis of C⊥.
Denoting x1∥=PCx1 and x1⊥=PC⊥x1, this gives x1⊥t1→∞0, with ∑t1=0+∞∥x1⊥(t1,t2,t3)∥<+∞ and x1∥=(−1)t1a1 for some a1=a1(t2,t3)∈C.
As before, the y equation (C.2) gives y1=y1(t2,t3) and y0=y0(t3).
Recall that C is the eigenspace of ηS associated with the eigenvalue 2, thus ηPCS=2PC. Moreover, we decompose x1=ιCx1⊥+ιC⊥x1⊥=(−1)t1ιCa1+ιC⊥x1⊥. This gives
The right hand side depends on t1 only through the (−1)t1 terms and x1⊥ terms, but the latter are vanishing as t1→∞, with ∑t1=0+∞∥x1⊥∥<+∞. This suggests studying the following generalization of Lemma 4.2.
Lemma C.1. Let α,β∈R and γ=γ(t1)∈R such that ∑t1=0+∞∣γ(t1)∣<+∞. The solutions φ=φ(t1) of the difference equation
Here, the right hand side depends on t1 only through the (−1)t1 terms and x1⊥ terms, but the latter are vanishing as t1→∞. To avoid a secular term, we must have
Note that for M∈SymC, Ψ∗[M]=(DyS)∗[ιCMPC]. Thus we have
∂t2y1+∂t3y0=−η[21Ψ∗[a1a1⊤]+∇yh].(C.3)
Here, we want to use that the evolution of S(0,y0) is constrained in the critical subspace C. We use the following lemma.
Lemma C.2. Let t↦M(t)≽0 be a smooth curve of positive semidefinite matrices, P=P(t) denote the orthogonal projection onto kerM(t), and ι=ι(t)=P∗ the corresponding inclusion operator. Then, for all t, we have P∂tMι=0.
Proof. Let a∈kerM(t). Then a⊤M(t)a=0. Moreover, for all s, we have a⊤M(s)a⩾0. We thus have, for all a∈kerM(t), ∂t(a⊤M(t)a)=a⊤∂tM(t)a=0.
Now, consider a,b∈kerM(t). Then, by polarization (∂tM(t) is symmetric),
Here, we apply the lemma to M(t3)=2IdX−ηS(0,y0(t3)). We obtain
0=PC∂t3SιC=PCDyS[∂t3y0]ιC=Ψ[∂t3y0].
This suggests evaluating Ψ at Eq. (C.3). We obtain
∂t2U1=−η[21ΨΨ∗[a1a1⊤]+Ψ[∇yh]].
This completes the derivation of the self-stabilization system (6.1).
We do not know whether the self-stabilization system induces periodic solutions in t2 when more than one eigenvalue is on the edge of stability. To give a meaning to the average ⟨⟩t2, we take the limit T2→∞ of the average over [0,T2] (if the limit exists). For instance, to avoid a secular term, y1 is uniformly bounded in t2, thus we have
thus the result holds with Σ=ιC⟨a1a1⊤⟩t2PC, which is complementary to 2IdX−ηS (by definition of C=ker(2IdX−ηS)). If we do not make the assumption that the average ⟨a1a1⊤⟩t2 is well-defined, we use that a1 is bounded in t2 (it is non-secular) and thus the averages T21∫0T2a1a1⊤dt2 have an accumulation point Σ∈Sym+C as T2→∞. We then have ⟨Ψ∗[a1a1⊤]⟩t2=Ψ∗[Σ], and we can define Σ=ιCΣPC∈Sym+X. This gives the derivation of item (i) and completes the derivation of Result 6.1.
As in the derivations above, we have ∇xg(0,y0)=0,∇yg(0,y0)=0,∇x2g(0,y0)=S(0,y0),∇x∇yg(0,y0)=0, and ∇y2g(0,y0)=0. Moreover, we have g(0,y0)=ming. We obtain