betaFeedback

WorksComputer Science

Mirror Descent at the Edge of Stability

Abstract

In many deep learning settings, gradient descent has been shown to operate at the edge of stability – a regime where the largest eigenvalue of the loss Hessian hovers around 2/η2/η. We study this phenomenon in mirror descent, a generalization of gradient descent. As mirror descent is non-Euclidean, existing explanations of the edge of stability phase do not extend to this setting. We generalize the existing notion of sharpness to introduce mirror sharpness, which measures the curvature of the loss with respect to the mirror potential. Empirically, we observe that the mirror sharpness hovers slightly above the 2/η2/η threshold. Furthermore, we derive a dual central flow ODE for mirror descent that models iterates in continuous time at the onset of edge of stability. Our ODE provides insights into the difficulties of extending existing arguments for why sharpness stabilizes at 2/η2/η from gradient descent to mirror descent in full generality.

Introduction

First-order methods, such as gradient descent, are the de facto optimization methods for much of deep learning. Despite their empirical successes, their behaviors on realistic non-convex objectives, such as neural network losses, are poorly understood and significantly depart from the classical picture of convex optimization.

For instance, the famed descent lemma [35] guarantees that if the maximum Hessian eigenvalue is uniformly bounded above by MM, then gradient descent monotonically decreases the loss when the step size satisfies η<2/M\eta< 2/M. However, in realistic settings, gradient descent has been shown to operate close to the boundary of this “stable regime.” In particular, [9] observed across a variety of architectures that, for a fixed step size η\eta, the sharpness, S(x):=λmax⁡(∇2L(x))S(x) := \lambda_{\max}(\nabla^2 L(x)), progressively increases until it reaches approximately 2/η2/\eta, after which it oscillates near this threshold while optimization continues. The first phase is known as progressive sharpening, and the second is termed the edge of stability (EoS).

While full-batch gradient descent is typically the testbed for the analysis of the EoS regime, recent works have shown that EoS also manifests in several fundamental optimizers beyond this setting. A key thread through some of these works is that the relevant notion of sharpness is connected to the geometry induced by the optimizer. For instance, [8] formulates a preconditioned sharpness and observes an EoS phase in adaptive preconditioning methods like AdaGrad and Adam. Most recently, [19] formulates a generalized sharpness and observes EoS behavior in steepest descent methods in arbitrary norm.

In this paper, we consider EoS behavior in mirror descent, a non-Euclidean extension of gradient descent that fundamentally differs from the steepest descent studied in [19]. Whereas steepest descent “fixes” a geometry, mirror descent introduces a Bregman geometry that can change at every point. Furthermore, mirror descent differs from general adaptive preconditioning optimizers (such as AdaGrad and Adam, as studied in [8]) because the Bregman geometry is explicitly given by the iterate and does not otherwise depend on the history of the trajectory.

We believe the study of mirror descent to be important for two main reasons. First, we view understanding this regime to be a first step in building towards a theory that explains the mechanisms of EoS in adaptively preconditioned optimizers (such as those in [8]). While these optimizers differ from mirror descent, historically, the developments of several adaptive preconditioning methods like AdaGrad [10] and Shampoo [14] are based on the lens of (online) mirror descent. Second, mirror descent is a relatively tractable testbed for understanding fundamental differences in the EoS phenomenon between Euclidean and non-Euclidean regimes, as the Bregman geometry is well-structured and the update is entirely explicit.

In (stochastic) gradient descent, why does sharpness tend to hover around 2/η2/\eta? Several existing explanations of this phenomenon for gradient descent [5, 11, 7, 29] rely on the observation that at EoS, the gradient descent iterates oscillate along “unstable” eigendirections uku_k with eigenvalue 2/η2/\eta, and these oscillations induce a “self-stabilizing” effect. This understanding of optimization is formalized in the central flows framework of [7], but it is unclear the extent to which this model holds for mirror descent. We find that such an explanation is not sufficient to justify the self-stabilization phenomenon in mirror descent in full generality, and we believe that further exploration would clarify the extent to which self-stabilization is a universal phenomenon across non-Euclidean optimizers.

Our contributions are as follows:

  • In § 3, we define mirror sharpness, which generalizes existing notions of sharpness to the point-wise geometry induced by mirror descent. We connect this definition to an approximate descent lemma (Proposition 4) as well as optimization over a quadratic (Proposition 6).

  • In § 4, across a series of mirror maps and architectures, we empirically observe that mirror sharpness hovers around 2/η2/\eta.

  • In § 5, we derive a central flow ODE that empirically describes the time-averaged iterates at the onset of EoS via the method of [7], improving over Riemannian gradient flow.

Related Works

Edge of stability Even in the simplest case of full-batch gradient descent, the EoS phenomenon remains poorly understood. Many works attempt to study EoS dynamics in the case of specific simplified loss functions [ZWW+22, ABC+23, KNSC23, GKW+24, LZDZ25, YSY25], even those beyond neural network losses. Another line of work [5, 11, 7, 33, 29] analyzes EoS behavior for general losses. To our knowledge, all works of this sort exploit the Euclidean fact that the gradient of the sharpness can be expressed with the third derivative of the loss, which [11 Lemma 2] dubs the “self-stabilization property.” Unfortunately, for mirror sharpness, such a simple identity does not hold, and we find an additional third-order geometry correction (see Lemma 14). This creates difficulties in analysis, which we make explicit in § 5.3.

Central flows Central flows, introduced by [7], are ODEs that model optimization algorithms in continuous time. They differ from “small step size” approximations (e.g., Riemannian gradient flow) because they use the EoS phase as an ansatz to construct a flow. Some recent work propose modifications to the central flow [RC26a, Mar26] and [RC26b] extends a model to algorithms with momentum. We extend the central flow model of [7] to mirror descent in the regime where one eigenvalue is at 2/η2/\eta by modeling oscillations in the dual space, which we empirically show to track the mirror descent iterates better.

Implicit bias of mirror descent Mirror descent, introduced in [37], has been a central first-order optimization paradigm for decades, as it is a surprisingly broad framework. Recent works within the past decade have focused on the implicit bias of mirror descent. For instance, in various regression settings, [16, 3, 4] argue that mirror descent finds a solution close to initialization in Bregman divergence. [SATA22, SGAA23] show that in classification settings, mirror descent (with an ℓp\ell_p potential) finds a solution that maximizes a margin with respect to an ℓp\ell_p norm. Recent work [38, 20] has also studied the implicit bias of the associated flow with mirror descent in various settings. Our paper instead studies the implicit bias of mirror descent through the complementary lens of sharpness; we think of the EoS phenomenon as implicitly induced through the discrete nature of mirror descent.

Applications of mirror descent In practice, mirror descent is most often used in optimization settings with constraints, although we do not deal with this topic in our paper. For instance, many policy optimization problems in reinforcement learning (e.g., LLM post-training) deal with optimizing over a simplex; thus, it is natural to approach these in terms of mirror descent. This view is made explicit in the framework of mirror descent policy optimization (MDPO) [TSEG21]. Furthermore, popular algorithms such as TRPO [SLA+15] can also be interpreted as an approximate mirror descent step, as shown by [36] and [17]. Mirror descent variants are also frequently used in the min-max problem setting, which may arise when optimizing data mixtures for pretraining [XPD+23] and aligning language models to human preferences [34, 12].

Background

We will work with multi-linear operators though they are not required to understand the high-level contents of the paper. Throughout this paper, unless otherwise indicated, we will use H(x)=∇2L(x)H(x)=\nabla^2 L(x) and G(x)=∇2Φ(x)G(x)=\nabla^2\Phi(x), where LL is the loss and Φ\Phi is the mirror potential (as defined below). In all formal statements and definitions, we will assume LL, Φ\Phi to have appropriate regularity where needed. Assuming that these are C3C^3 is usually sufficient (unless otherwise noted). We study the task of minimizing LL given queries to ∇L\nabla L.

Notation To make the distinction between primal coordinates and dual coordinates more clear, we will work over the parameter space E=RnE=\mathbb{R}^n with dual E∗E^*. Let L:E→RL:E\to\mathbb{R} be a C3C^3 loss function throughout this paper. We use A≻0A\succ0 to denote that AA is positive definite. For a matrix AA, let λmax⁡(A)\lambda_{\max}(A) to denote the largest eigenvalue of AA, and let λmin⁡(A)\lambda_{\min}(A) denote the smallest. We use ∥x∥22=∑xi2\lVert x\rVert_2^2=\sum x_i^2 to denote the squared ℓ2\ell_2 norm.

Derivatives In deriving the central flows for mirror descent, we will often use higher-order derivatives that are multilinear. We try to keep such notation at a minimum, opting to use the more familiar gradient ∇k\nabla^k where possible. We refer the reader to [26 Chapter XIII, §6] for explicit constructions of these objects.

Let F:E→EF:E\to E be a CkC^k function (such as the loss LL or mirror potential Φ\Phi). We use DkF(x):Ek→ED^kF(x):E^k\to E to denote the derivative viewed as a kk-linear map, which is symmetric since we assume FF is CkC^k. We will frequently invoke Taylor’s theorem; a proof can be found in [26 Chapter XIII, §6].

Theorem 1 (Taylor’s theorem). Let f:E→Ef:E\to E be CpC^p. Denote by y(k)y^{(k)} the kk-tuple [y,…,y][y,\ldots,y]. Then

f(x+y)=f(x)+∑k=1p−1Dkf(x)[y(k)]k!+O(∥y∥p).f(x+y)=f(x)+\sum_{k=1}^{p-1}\frac{D^k f(x)[y^{(k)}]}{k!}+O(\lVert y\rVert^p).

In the case when f:E→Rf:E\to\mathbb{R} (as in the case of the loss LL or mirror potential Φ\Phi) and ff is CkC^k, we opt to use the more familiar gradient notation ∇k\nabla^k. We will only invoke the k≤3k\leq3 cases. As the k=1k=1 case corresponds to the gradient and the k=2k=2 case corresponds to the Hessian, we will describe the k=3k=3 case. Let ∇3f(x):E2→E∗\nabla^3f(x):E^2\to E^* be the symmetric, bilinear operator that satisfies

⟨∇3f(x)[u,v,w]=D3f(x)[u,v,w]\langle\nabla^3f(x)[u,v,w]=D^3f(x)[u,v,w]

for all u,v,w∈Eu,v,w\in E.

Generalized eigenvalues We say λi\lambda_i is a generalized eigenvalue1 of (H,G)(H,G) if Hvi=λiGviHv_i=\lambda_iGv_i for some nonzero eigenvector viv_i. When GG is the identity, this reduces to an eigenvalue of HH.

Mirror descent We say a function Φ:E→R\Phi: E \to\mathbb{R} is a mirror potential if it is differentiable, strictly convex, and its gradient ∇Φ:E→E∗\nabla\Phi: E \to E^* is a bijection. We call ∇Φ:E→E∗\nabla\Phi: E \to E^* the mirror map. Its inverse is given by (∇Φ)−1=∇Φ∗(\nabla\Phi)^{-1} = \nabla\Phi^*, where Φ∗\Phi^* denotes the convex conjugate of Φ\Phi. In this paper, we set E=RnE = \mathbb{R}^n.2

The natural notion of “distance” induced by Φ\Phi on EE is the Bregman divergence DΦ(x,y):=Φ(x)−Φ(y)−⟨∇Φ(y),x−y⟩D_\Phi(x,y) := \Phi(x)-\Phi(y)-\langle\nabla\Phi(y),x-y\rangle. Note that the Bregman divergence is not symmetric (i.e., in general, DΦ(x,y)≠DΦ(y,x)D_\Phi(x,y) \ne D_\Phi(y,x)). When Φ\Phi is strongly convex, GG is a positive-definite metric (i.e., G(x)≻0G(x) \succ0 for all x∈Ex \in E).

The mirror descent (MD) algorithm is given by the update

xt+1=arg⁡min⁡y∈E{η⟨∇L(xt),y−xt⟩+DΦ(y,xt)}.x_{t+1} = \underset{y \in E}{\arg\min}\{\eta\langle\nabla L(x_t),y-x_t\rangle+ D_\Phi(y,x_t)\}.

or equivalently

xt+1=∇Φ∗(∇Φ(xt)−η∇L(xt)).(1)x_{t+1} = \nabla\Phi^*(\nabla\Phi(x_t)-\eta\nabla L(x_t)). \tag*{(1)}

Conceptually, we may also think of the above as updates in dual coordinates zt=∇Φ(xt)z_t = \nabla\Phi(x_t) given by

zt+1=zt−η(∇L∘∇Φ∗)(zt).z_{t+1} = z_t - \eta(\nabla L \circ\nabla\Phi^*)(z_t).

We may refer to both ztz_t and xtx_t as iterates because the mirror map ∇Φ\nabla\Phi is bijective. As an example, when Φ(x)=12∥x∥22\Phi(x) = \frac{1}{2}\lVert x\rVert_2^2, we retrieve ordinary gradient descent, with xt=ztx_t = z_t.

Defining sharpness

In this section, we generalize the notion of sharpness to mirror descent. Recall that for ordinary gradient descent, the sharpness is given by

Sℓ2(x):=λmax⁡(∇2L(x))=max⁡∥u∥2=1⟨u,∇2L(x)u⟩.S^{\ell_2}(x) := \lambda_{\max}(\nabla^2L(x)) = \max_{\lVert u\rVert_2=1}\langle u,\nabla^2L(x)u\rangle.

A loose geometric interpretation of this quantity is the maximum curvature3 of LL along any direction uu. We will refer to this notion of sharpness as the ℓ2\ell_2 sharpness.

Our definition is inspired by the work of [18], which interprets mirror descent in the primal space as a partial discretization of a Riemannian gradient flow with geometry G(x):=∇2Φ(x)G(x) := \nabla^2\Phi(x). Thus, it is natural to measure the curvature of LL under this geometry:

Definition 2 (Mirror sharpness) Let ∇2Φ(x)≻0\nabla^2\Phi(x) \succ0. For x∈Ex \in E, the mirror sharpness4^{4} SΦ:E→RS^\Phi: E \to\mathbb{R} is given by

SΦ(x):=max⁡⟨u,∇2Φ(x)u⟩=1⟨u,∇2L(x)u⟩.S^\Phi(x) := \max_{\langle u,\nabla^2\Phi(x)u\rangle=1}\langle u,\nabla^2L(x)u\rangle.

Equivalently, SΦ(x)S^\Phi(x) is the top generalized eigenvalue of (∇2L(x),∇2Φ(x))(\nabla^2L(x),\nabla^2\Phi(x)).

Similar to the definition for ℓ2\ell_2 sharpness, SΦS^\Phi is the maximum curvature of LL along any direction uu with respect to the local metric G(x)=∇2Φ(x)G(x) = \nabla^2\Phi(x). 4 Note that when Φ(x)=12∥x∥22\Phi(x) = \frac{1}{2}\lVert x\rVert_2^2, we retrieve ℓ2\ell_2 sharpness.

Mirror sharpness also retrieves previous notions of curvature studied for preconditioned gradient descent [8, 7, 19], which we show in § 4.1. Furthermore, while our definition resembles the generalized sharpness presented in [19], their work studies steepest descent algorithms in arbitrary norm, which induce a different fixed geometry on the space than mirror descent. In this sense, mirror sharpness can be viewed as generalized sharpness with respect to a point-wise norm.

One benefit of mirror sharpness is that it is relatively simple to compute, as it can be expressed as a generalized eigenvalue. If we assume that ∇2Φ(x)\nabla^2\Phi(x) is positive-definite, then the mirror sharpness can be written as a symmetric eigenvalue problem via Rayleigh–Ritz:

Lemma 3. Let x∈Ex \in E and G=∇2Φ(x)≻0G = \nabla^2\Phi(x) \succ0. Then, SΦ(x)=λmax⁡(G−1/2(x)∇2L(x)G−1/2(x))S^\Phi(x) = \lambda_{\max}\left(G^{-1/2}(x)\nabla^2L(x)G^{-1/2}(x)\right).

Second-order pictures of mirror sharpness

We show how, at the second order, we can retrieve familiar results in terms of the mirror sharpness.

The ℓ2\ell_2 sharpness in ordinary gradient descent is significant because it can characterize when LL decreases between two iterates xtx_t and xt+1x_{t+1}. In the case of mirror descent, this relationship is murkier because the geometry induced by Φ\Phi changes between xtx_t and xt+1x_{t+1}. However, this asymmetry only arises at the third order locally:

DΦ(xt,xt+1)=DΦ(xt+1,xt)+O(∥xt+1−xt∥3).D_\Phi(x_t,x_{t+1}) = D_\Phi(x_{t+1},x_t) + O(\lVert x_{t+1}-x_t\rVert^3).

Consequently, at second order, using standard arguments, we recover a descent lemma [6] with the familiar 2/η2/\eta threshold.

Proposition 4 (Second-order (approximate) descent lemma). Let ∇2Φ(xt)≻0\nabla^2\Phi(x_t) \succ0. Let xt+1x_{t+1} be a mirror descent update with step size η\eta. Then,

L(xt+1)−L(xt)≤(SΦ(xt)−2η)DΦ(xt+1,xt)+O(∥xt+1−xt∥3).L(x_{t+1}) - L(x_t) \le\left(S^\Phi(x_t) - \frac{2}{\eta}\right)D_\Phi(x_{t+1},x_t) + O\left(\lVert x_{t+1}-x_t\rVert^3\right).

Next, we restrict the loss to a quadratic objective, and we show that for any mirror map Φ\Phi, mirror descent can be reinterpreted as gradient descent. To our knowledge, this appears not to be a readily known result in the literature. Using this equivalence, we show that mirror sharpness naturally emerges as the sharpness of the reparameterized loss function.

Theorem 5 (Quadratic mirror descent as gradient descent). Let L(x):=12⟨x−x⋆,A(x−x⋆)⟩L(x) := \frac{1}{2}\langle x-x^\star,A(x-x^\star)\rangle with A≻0A \succ0. Let ∇2Φ(x)≻0\nabla^2\Phi(x) \succ0 for all x∈Ex \in E. Define z⋆:=∇Φ(x⋆)z^\star:= \nabla\Phi(x^\star) and y:=A−1/2(z−z⋆)y := A^{-1/2}(z-z^\star), and let

L^(y):=Φ⋆(z⋆+A1/2y)−Φ⋆(z⋆)−⟨x⋆,A1/2y⟩=DΦ⋆(z⋆+A1/2y,z⋆).\widehat{L}(y) := \Phi^\star(z^\star+ A^{1/2}y) - \Phi^\star(z^\star) - \langle x^\star,A^{1/2}y\rangle= D_{\Phi^\star}(z^\star+ A^{1/2}y,z^\star).

Then, the dual mirror descent updates zkz_k on LL correspond to the gradient descent updates yky_k on L^\widehat{L} (i.e., zk=z⋆+A1/2ykz_k = z^\star+ A^{1/2}y_k).

This equivalence shows that the quadratic picture of mirror descent in the dual is essentially the same as gradient descent. Thus, any “new” behavior that is different from gradient descent must arise through third-order interactions of the loss, as we later argue in § 5.3. Lastly, we identify mirror sharpness with ℓ2\ell_2 sharpness in the reparameterized coordinates:

Proposition 6. Let L^\widehat{L} be defined as in Theorem 5 and y∈Ey \in E. Set x:=∇Φ⋆(z⋆+A1/2y)x := \nabla\Phi^\star(z^\star+ A^{1/2}y) (i.e., xx is the corresponding coordinate of yy) and take ∇2Φ(x)≻0\nabla^2\Phi(x) \succ0. Then, λmax⁡(∇2L^(y))=SΦ(x)\lambda_{\max}(\nabla^2\widehat{L}(y)) = S^\Phi(x).

Mirror sharpness stabilizes at 2/η2/\eta

In this section, we empirically demonstrate that just as sharpness hovers around 2/η2/\eta in gradient descent, our notion of mirror sharpness also hovers around 2/η2/\eta.

Preconditioned gradient descent (PGD)

As a sanity check, we apply our definition of mirror sharpness to preconditioned gradient descent (PGD), which can be rewritten as mirror descent with a quadratic potential ΦPGD(x)=12⟨x,Px⟩\Phi_{\mathrm{PGD}}(x)=\frac{1}{2}\langle x,Px\rangle for a matrix P≻0P \succ0. In this setting, because ∇ΦPGD\nabla\Phi_{\mathrm{PGD}} is linear, Equation (MD) reduces to the update xt+1=xt−ηP−1∇L(xt)x_{t+1}=x_t-\eta P^{-1}\nabla L(x_t). Mirror sharpness recovers previous notions of sharpness for PGD as previously studied in [7, 19]$:

SΦPGD(x)=max⁡⟨u,Pu⟩=1⟨u,∇2L(x)u⟩=max⁡∥v∥2=1⟨P−1/2v,∇2L(x)P−1/2v⟩.S^{\Phi_{\mathrm{PGD}}}(x)=\max_{\langle u,Pu\rangle=1}\langle u,\nabla^2L(x)u\rangle=\max_{\lVert v\rVert_2=1}\left\langle P^{-1/2}v,\nabla^2L(x)P^{-1/2}v\right\rangle.

where the second equality follows from a change of variables u↦P−1/2vu\mapsto P^{-1/2}v.

Non-Euclidean mirror potentials

We demonstrate EoS behavior with various architectures trained on a subset of CIFAR-10. All experiments in this section are run with full-batch mirror descent, ReLU activations, and MSE loss. Specific architectural and implementation details can be found in Appendix § 10. In general, we have found these behaviors rather consistent across several architectures, with further experiments shown in Appendix § 11.

Hypentropy We consider the class of hypentropy mirror potentials

Φhyp,γ(x)=∑i(xiarcsinh⁡(xiγ)−xi2+γ2),γ>0\Phi_{\mathrm{hyp},\gamma}(x)=\sum_i\left(x_i\operatorname{arcsinh}\left(\frac{x_i}{\gamma}\right)-\sqrt{x_i^2+\gamma^2}\right),\qquad\gamma>0

proposed by [13]. The mirror descent update induced by this class interpolates between a Euclidean update and the multiplicative weights update. As γ\gamma approaches 0, hypentropy acts similarly to entropy, and as γ\gamma grows large, hypentropy acts as a scaled Euclidean distance.

In Figure 1, we see that for a variety of step sizes η\eta, the mirror sharpness SΦS^\Phi stabilizes just over 2/η2/\eta. This is consistent with previous findings for full-batch gradient descent in [9] and non-Euclidean steepest descent in [19]. In contrast, the ℓ2\ell_2 sharpness does not stabilize at 2/η2/\eta; furthermore, in the very non-Euclidean case of γ=0.01\gamma=0.01, the ℓ2\ell_2 sharpness appears to drift substantially even after EoS.

Figure 1. CNN with a hypentropy potential. Columns show training loss, norm of the loss gradient with respect to GG, mirror sharpness, and ℓ2\ell_2 sharpness. The 2/η2/\eta thresholds are indicated by the horizontal dashed lines. Top: γ=0.01\gamma=0.01, bottom: γ=2\gamma=2.

ℓp\ell_p norm We consider the class of mirror potentials given by Φℓp(x)=1p∥x∥pp\Phi_{\ell_p}(x)=\frac{1}{p}\lVert x\rVert_p^p for p∈(1,∞)p\in(1,\infty), whose implicit regularization properties are studied in [4 SATA22, JTA26]. This class of maps has received attention because it is implementable coordinate-wise and also has been empirically observed to generalize better than ordinary gradient descent (p=2p=2) in some settings [SATA22].

One peculiarity of this class of maps for p≠2p \ne2 is that the Hessian ∇2Φ(x)\nabla^2\Phi(x) becomes problematic whenever xi=0x_i = 0, so mirror sharpness cannot be defined on this set. In practice, this is typically not a significant issue unless parameters are zero at initialization because this region is measure zero. More specifically, for p∈(1,2)p \in(1, 2), Φℓp\Phi_{\ell_p} fails to be C2C^2 here, so ∇2Φ\nabla^2\Phi is not defined. For p>2p > 2, ∇2Φ(x)\nabla^2\Phi(x) has a zero eigenvalue whenever some xi=0x_i = 0. Outside of this region, one may compute

[∇2Φℓp(x)]ij−1={1p−1∣xi∣2−pi=j0i≠j.\left[\nabla^2\Phi_{\ell_p}(x)\right]^{-1}_{ij} = \begin{cases} \frac{1}{p-1}|x_i|^{2-p} & i = j \\ 0 & i \ne j. \end{cases}

In general, we observe that for p∈(1,2)p \in(1, 2), as xi→0x_i \to0, we have Gii−1→0G^{-1}_{ii} \to0. In practice, this suppresses certain coordinates in HH when computing the mirror sharpness via Lemma 3. By contrast, in the p>2p > 2 regime, as xi→0x_i \to0, we have Gii−1→∞G^{-1}_{ii} \to\infty. This amplifies certain coordinates when computing mirror sharpness, and thus the mirror sharpness sharply spikes when some xix_i is close to zero. In our experiments, these effects are most significant near initialization.

The ill-posed nature of ∇2Φ\nabla^2\Phi does not appear to significantly empirically alter EoS dynamics, and our theoretical results remain valid away from the problematic set. We find these empirical results very interesting, and we believe that they may hint that some more “universal” mechanism is at play that manifests in the EoS phenomenon.

Mirror sharpness and ordinary sharpness

We discuss the behavior of the well-studied ℓ2\ell_2 sharpness, whose connection to generalization has been extensively studied, such as in [23, 2]. Furthermore, [8] empirically showed that while Adam maintains a preconditioned sharpness6, Adam has the capability to arbitrarily increase the sharpness. This fact appears connected to how the Frobenius norm of the preconditioner matrix PtP_t is observed to increase throughout training time7, allowing λmax⁡(H)\lambda_{\max}(H) to increase arbitrarily while fixing λmax⁡(Pt−1H)\lambda_{\max}(P_t^{-1}H) around Adam’s corresponding stability threshold.

In the case of mirror descent, can we predict Sℓ2S^{\ell_2} at EoS? In the most general sense where we can take any Φ\Phi, the answer is no: taking Φ=12c∥x∥22\Phi= \frac{1}{2c}\lVert x\rVert_2^2 yields SΦ=cSℓ2S^\Phi= cS^{\ell_2}. Fixing a mirror map Φ\Phi, however, we can make the following naive estimate of the ratio Sℓ2/SΦS^{\ell_2}/S^\Phi:

Proposition 7 (Sharpness ratio). Assume SΦ(x)>0S^\Phi(x) > 0. Then,

λmin⁡(∇2Φ(x))≤Sℓ2(x)SΦ(x)≤λmax⁡(∇2Φ(x)).\lambda_{\min}\left(\nabla^2\Phi(x)\right) \le\frac{S^{\ell_2}(x)}{S^\Phi(x)} \le\lambda_{\max}\left(\nabla^2\Phi(x)\right).

For some mirror maps, we can bound λmax⁡(∇2Φ)\lambda_{\max}(\nabla^2\Phi). For instance, in the case of the hypentropy potential Φhyp,γ\Phi_{\mathrm{hyp},\gamma}, we can compute λmax⁡(∇2Φ(x))≤1γ\lambda_{\max}(\nabla^2\Phi(x)) \le\frac{1}{\gamma}; we empirically observe this in all of our experiments. In these cases, if we assume that SΦS^\Phi is approximately 2/η2/\eta, then this implies that Sℓ2S^{\ell_2} cannot arbitrarily increase—in contrast to Adam. In fact, as mentioned previously, in certain runs (e.g., Figure 1), we found that Sℓ2S^{\ell_2} may decrease after the onset of EoS. In light of Proposition 7, we find it surprising that, in our experiments, the ratio Sℓ2/SΦS^{\ell_2}/S^\Phi remains relatively stable and occupies a very narrow range within what is predicted by Proposition 7.

A dual central flow for mirror descent

In the remainder of this paper, we attempt to study mirror descent through the central flow framework [7], which is an ODE that describes a time-averaged (i.e., locally smooth) trajectory xˉ(t)\bar{x}(t) of iterates at EoS. The Riemannian gradient flow fails to be a good approximation at EoS because it does not fix the sharpness at around 2/η2/\eta; thus, the Riemannian gradient flow significantly diverges from the mirror descent iterates after the onset of EoS. We show this empirically in § 5.2.

While this ODE may be of independent interest as a more tractable object to study than mirror descent, our main goal is to understand the extent to which the self-stabilization theory holds in the non-Euclidean setting of mirror descent, so we use this picture as an ansatz for our central flow. We find that such a framework is not necessarily well posed without adding extra constraints on the third-order interactions between the loss and Φ\Phi; such a result is interesting because it raises a challenge in extending the self-stabilization argument to mirror descent [5, 11, 7, 29].

Deriving the central flow

We will assume that L,ΦL,\Phi are C4C^4. We will restrict our central flow to the case when only one eigenvalue of HH is at (approximately) 2/η2/\eta. Let u=u(xˉ)u=u(\bar{x}) be the top eigenvector of (H,G)(H,G) that solves the maximization problem defined in Definition 2. Even in this case, there are complexities caused by the non-Euclidean nature of mirror descent.

The main idea behind central flows is modeling the iterates xtx_t as an oscillation about a time-averaged8 xˉ(t)\bar{x}(t) along the unstable eigenvector u(t)u(t). More concretely, [7] models xt=xˉ(t)+ξ(t)u(t)x_t=\bar{x}(t)+\xi(t)u(t). 9It is unclear to what extent such a phenomenon holds for the case of mirror descent especially because neither the primal nor the dual space is implicitly endowed with an ℓ2\ell_2 geometry in general. To make progress towards answering this question, let us naively assume that such a model is valid.

Specifically, we model oscillations in the dual space via zt=zˉ(t)+ξ(t)r(t)z_t=\bar{z}(t)+\xi(t)r(t), where r=Gur=Gu is the pushforward of uu under the mirror map ∇Φ\nabla\Phi (i.e., the natural way tangent vectors in the primal space are mapped to tangent vectors in the dual space).10 Furthermore, we impose E[ξ(t)]=0\mathbb{E}[\xi(t)]=0 and E[ξ(t)r(t)]≈E[ξ(t)]r(t)=0\mathbb{E}[\xi(t)r(t)]\approx\mathbb{E}[\xi(t)]r(t)=0. We believe that the dual is a more natural choice to model than the primal because the primal update introduces additional non-linearities via the mirror map. Recall that the dual update is given by:

zt+1−zt=−η(∇L∘∇Φ∗)(zt).z_{t+1}-z_t=-\eta(\nabla L\circ\nabla\Phi^*)(z_t).

We abbreviate F:=∇L∘∇Φ∗F:=\nabla L\circ\nabla\Phi^*. With these assumptions and regularity where appropriate, approximating dzˉ/dt≈zˉt+1−zˉtd\bar{z}/dt\approx\bar{z}_{t+1}-\bar{z}_t and expanding all relevant terms to O(ξ3)O(\xi^3) yields the dual central flow ODE:

dzˉdt=−η(F(zˉ)+σ22D2F(zˉ)[r,r]).\frac{d\bar{z}}{dt}=-\eta\left(F(\bar{z})+\frac{\sigma^2}{2}D^2F(\bar{z})[r,r]\right).

where σ2:=E[ξ(t)2]\sigma^2 := \mathbb{E}[\xi(t)^2]. By further constraining S~Φ(zˉ):=(SΦ∘∇Φ∗)(zˉ)=2/η\widetilde{S}^{\Phi}(\bar{z}) := (S^{\Phi} \circ\nabla\Phi^*)(\bar{z}) = 2/\eta to model iterates at EoS, we can solve for a unique value of σ2\sigma^2 to pin down the trajectory:

σ2=−2⟨∇S~Φ(zˉ),F(zˉ)⟩⟨∇S~Φ(zˉ),D2F(zˉ)[r,r]⟩.\sigma^2 = \frac{-2\langle\nabla\widetilde{S}^{\Phi}(\bar{z}), F(\bar{z})\rangle}{\langle\nabla\widetilde{S}^{\Phi}(\bar{z}), D^2F(\bar{z})[r,r]\rangle}.

As much of the details of this derivation are similar to those in [7], we defer a complete derivation to Section A.1. We observe that in the case where Φ=12∥x∥22\Phi= \frac{1}{2}\lVert x\rVert_2^2, we retrieve the central flow for ordinary gradient descent in [7].

Finally, we retrieve a flow for the primal quantity xˉ(t):=∇Φ∗(zˉ(t))\bar{x}(t) := \nabla\Phi^*(\bar{z}(t)). Again, as dxˉ/dtd\bar{x}/dt is a tangent vector on the primal space, we use the pullback G−1G^{-1} to relate it with dzˉ/dtd\bar{z}/dt:

dxˉdt=G−1dzˉdt=−ηG−1(∇L(xˉ)+σ22(∇3L(xˉ)[u,u]−HG−1∇3Φ(xˉ)[u,u])).\frac{d\bar{x}}{dt} = G^{-1}\frac{d\bar{z}}{dt} = -\eta G^{-1}\left(\nabla L(\bar{x}) + \frac{\sigma^2}{2}\left(\nabla^3 L(\bar{x})[u,u] - HG^{-1}\nabla^3\Phi(\bar{x})[u,u]\right)\right).

We call this the primal central flow.11 In the second equality, we re-express the dual quantities in Equation (DCF) in primal quantities.

Empirical verification

We verify empirically that Equation (DCF) describes iterates at the edge of stability more accurately than the Riemannian gradient flow in the dual space, which is given by

dzˉdt=−η∇L(xˉ).\frac{d\bar{z}}{dt} = -\eta\nabla L(\bar{x}).

For comparison, we also plot the trajectory of gradient flow (i.e., where we let GG be the identity) to show that it diverges sharply from the mirror descent trajectory.

We find that the dual central flow tracks the mirror descent iterates fairly well at EoS, improving over the Riemannian gradient flow, even when there is more than one unstable eigenvalue. Furthermore, our dual central flow straddles the 2/η2/\eta threshold for mirror sharpness very closely. We also remark that discretizing Equation (DCF) is non-trivial since we require that the mirror sharpness is constrained exactly at 2/η2/\eta. We comment more on this in Section A.2. Further experiments can be found in Appendix § 13.

The central flow (may) encode self-stabilization

Let us make more explicit how the central flow Equation (DCF) “encodes” the past result of [11] explaining why ℓ2\ell_2 sharpness stabilizes at 2/η2/\eta in the case of gradient descent. Assuming a well-separated gap between the first and second eigenvalues, one can solve explicitly for ddtSΦ\frac{d}{dt}S^\Phi.

Proposition 8 Let zˉ\bar{z} evolve according to Equation (DCF). Let L,ΦL,\Phi be C4C^4 and ∇2Φ≻0\nabla^2\Phi\succ0 for all xx along xˉ\bar{x}. Then,

ddtSΦ(zˉ)=η⟨∇S~(zˉ),−F(zˉ)⟩−ησ22⟨∇S~(zˉ),D2F(zˉ)[r,r]⟩\frac{d}{dt}S^\Phi(\bar{z})=\eta\langle\nabla\widetilde{S}(\bar{z}),-F(\bar{z})\rangle-\frac{\eta\sigma^2}{2}\langle\nabla\widetilde{S}(\bar{z}),D^2F(\bar{z})[r,r]\rangle

where r=Gur=Gu and uu is the top eigenvector of (H,G)(H,G).

The first term admits a very simple interpretation as the progressive sharpening coefficient. In dual space, the gradient update is given by −F(z)-F(z), so S~\widetilde{S} increases if and only if ⟨∇S~(z),−F(z)⟩>0\langle\nabla\widetilde{S}(z),-F(z)\rangle>0.

Definition 9 The progressive sharpening coefficient is given by

αΦ(z):=−⟨∇S~(z),F(z)⟩.\alpha^\Phi(z):=-\langle\nabla\widetilde{S}(z),F(z)\rangle.

In the case of gradient descent, αΦ\alpha^\Phi is assumed to be positive by [11] and verified empirically. To counteract the positive contribution to SΦS^\Phi, [11] explains that the oscillations along the top eigenvector “self-stabilize” the sharpness. In the context of gradient descent, the strength of this restoring force is quantified by βℓ2(x)=∥∇Sℓ2(x)∥22≥0\beta^{\ell_2}(x)=\lVert\nabla S^{\ell_2}(x)\rVert_2^2\ge0. As we may expect, the second term in Proposition 8 reveals the mirror descent analogue of βℓ2\beta_{\ell_2}, as D2F(zˉ)[r,r]D^2F(\bar{z})[r,r] reduces to ∇S(x)\nabla S(x) in the case of gradient descent.

Definition 10 The mirror stabilization coefficient βΦ(z)\beta^\Phi(z) is given by:

βΦ(zˉ):=⟨∇S~(zˉ),D2F(zˉ)[r,r]⟩\beta^\Phi(\bar{z}):=\langle\nabla\widetilde{S}(\bar{z}),D^2F(\bar{z})[r,r]\rangle

where r=Gur=Gu and uu is the top eigenvector of (H,G)(H,G). Equivalently, by Proposition 16,

βΦ(∇Φ(x))=∥∇S∥G−12+⟨G−1∇S,(SI−HG−1)∇3Φ[u,u]⟩\beta^\Phi(\nabla\Phi(x))=\lVert\nabla S\rVert_{G^{-1}}^2+\langle G^{-1}\nabla S,(SI-HG^{-1})\nabla^3\Phi[u,u]\rangle

Using the primal expansion of βΦ\beta^\Phi, we observe that for quadratic potentials, βΦ≥0\beta^\Phi\ge0. However, this need not be true in general; we show the “geometry correction” term can be made large, pushing βΦ\beta^\Phi to be negative:

Lemma 11 (βΦ\beta^\Phi can be negative). Fix x⋆∈Ex^\star\in E where the ambient dimension d>1d>1, and some mirror map Φ\Phi with ∇3Φ(x⋆)≠0\nabla^3\Phi(x^\star)\ne0. There exists some LL with bounded ∥∇3L[⋅,⋅,⋅]∥\lVert\nabla^3L[\cdot,\cdot,\cdot]\rVert such that βΦ(x⋆)<0\beta^\Phi(x^\star)<0 and SΦ(x⋆)S^\Phi(x^\star) can be made any positive number (e.g., 2/η2/\eta).

Why is this problematic? If we assume that progressive sharpening happens with αΦ>0\alpha^\Phi>0, having βΦ<0\beta^\Phi<0 forces SΦ(zˉ)S^\Phi(\bar{z}) to increase via Proposition 8. Thus, in this case, when we solve for the value of σ2=2αΦ/βΦ\sigma^2=2\alpha^\Phi/\beta^\Phi, we would find that σ2\sigma^2, which represents the variance of the oscillations, is negative and thus the central flow fails to be physically relevant. We conclude that the universal self-stabilization mechanism via oscillations is not currently sufficient to explain EoS in mirror descent.

While our result, as stated, concerns only a single point x⋆x^\star, we believe that it is generally possible to use this construction to generate explicit examples of optimization around x⋆x^\star such that βΦ<0\beta^\Phi<0 along a time-averaged trajectory for any (locally nonquadratic) mirror map. We have provided such an example in R2\mathbb{R}^2 via a cubic loss in Appendix H for the hyperentropy map, where αΦ>0\alpha^\Phi>0 but βΦ<0\beta^\Phi<0 along an optimization trajectory slightly above the edge of stability.

In light of this negative result, we believe it is quite difficult, given the current theory, to argue for a self-stabilization result without enforcing substantial conditions that are not easy to interpret. While it may be possible to sidestep the obstacle mentioned in Lemma 11 by arguing that the central flow is repelled from regions where βΦ<0\beta^\Phi<0, we find this difficult because even arguing why αΦ>0\alpha^\Phi>0 holds is a major open question for ordinary gradient descent. In our neural-network experiments in Appendix § 13, we plot values of αΦ,βΦ\alpha^\Phi,\beta^\Phi along the dual central flow trajectory, and we find that βΦ>0\beta^\Phi>0 always.

Conclusion and future work

In this work, we studied edge of stability behavior in the non-Euclidean setting of mirror descent, by introducing a mirror sharpness that recovers the familiar 2/η2/\eta threshold for the edge of stability. Empirically, we show that the EoS phase manifests through various step sizes, architectures, and mirror maps. However, through the framework of central flows, we identify that a “self-stabilization” picture in the dual space does not sufficiently explain why mirror descent should stabilize due to third-order interactions between the mirror potential and the loss.

It remains unclear if mirror descent “universally” self-stabilizes, even if we assume progressive sharpening, in realistic losses. Towards a positive answer, one could argue that the situations in Lemma 11 where βΦ<0\beta^{\Phi}<0 are naturally avoided by mirror descent, or, alternatively that points where βΦ<0\beta^{\Phi}<0 do not naturally show up in neural network losses. Towards a negative answer, one may try to exhibit a realistic example of successful optimization where βΦ(z)<0\beta^{\Phi}(z)<0 and the mirror sharpness climbs arbitrarily high beyond the edge of stability.

AI use statement

Almost all of our code was generated by generative AI tools, although the first author has carefully checked the output and takes full responsibility. We plan to release code at a slightly later date. We have also used generative AI tools to do some technical computations. The authors take full responsibility for the correctness of this work.

Acknowledgments

We acknowledge the computational resources provided by the Aalto Science-IT project. We would also like to thank several anonymous reviewers whose comments have improved the paper.

More on the central flow

Central flow derivation

We will consider the appropriate regularity L,Φ∈C4L, \Phi\in C^{4}. We will work in the dual coordinates z=∇Φ(xˉ)z = \nabla\Phi(\bar{x}). Recalling F=∇L∘∇Φ∗F = \nabla L \circ\nabla\Phi^{*}, we may write the dual mirror descent update:

zk+1=zk−ηF(zk),z_{k+1} = z_k - \eta F(z_k),

We model iterates zkz_k as oscillating along the direction rr, which is the pushforward of uu through ∇Φ\nabla\Phi, given by r=Gur = Gu. Then, r∈E∗r \in E^{*} satisfies ⟨r,∇2Φ∗(z)r⟩=1\langle r, \nabla^{2}\Phi^{*}(z)r\rangle= 1, and we model z(t):=zˉ(t)+ξ(t)r(t)z(t) := \bar{z}(t) + \xi(t)r(t) with E[ξ(t)]=0\mathbb{E}[\xi(t)] = 0. Let σ2(t):=E[ξ(t)2]\sigma^{2}(t) := \mathbb{E}[\xi(t)^{2}]. One may Taylor expand FF at zˉ\bar{z} along the rr direction:

F(zˉ+ξr)=F(zˉ)+ξDF(zˉ)[r]+ξ22D2F(zˉ)[r,r]+O(ξ3).F(\bar{z} + \xi r) = F(\bar{z}) + \xi DF(\bar{z})[r] + \frac{\xi^{2}}{2}D^{2}F(\bar{z})[r,r] + O(\xi^{3}).

After averaging, we have:

E[F(zˉ+ξr)]=E[F(zˉ)+ξDF(zˉ)[r]+ξ22D2F(zˉ)[r,r]]+O(E[∣ξ∣3])≈F(zˉ)+σ22D2F(zˉ)[r,r]+O(E[∣ξ∣3]).\begin{aligned} \mathbb{E}\left[F(\bar{z} + \xi r)\right] = \mathbb{E}\left[F(\bar{z}) + \xi DF(\bar{z})[r] + \frac{\xi^{2}}{2}D^{2}F(\bar{z})[r,r]\right] + O\left(\mathbb{E}[|\xi|^{3}]\right) \\ &\approx F(\bar{z}) + \frac{\sigma^{2}}{2}D^{2}F(\bar{z})[r,r] + O\left(\mathbb{E}[|\xi|^{3}]\right). \end{aligned}

Here, we take some care in handling the second term

E[ξDF(zˉ)[r]]=DF(zˉ)[E[ξr]]≈DF(zˉ)[E[ξ]r]=0,\mathbb{E}[\xi DF(\bar{z})[r]] = DF(\bar{z})[\mathbb{E}[\xi r]] \approx DF(\bar{z})[\mathbb{E}[\xi]r] = 0,

as DF(zˉ)DF(\bar{z}) acts linearly on rr. At the time tt that corresponds to an iterate zkz_k, we may approximate

dzˉdt≈zˉk+1−zˉk=−ηE[F(zˉk+ξr)].\frac{d\bar{z}}{dt} \approx\bar{z}_{k+1} - \bar{z}_k = -\eta\mathbb{E}[F(\bar{z}_k+\xi r)].

Combining the two equations yields the dual central flow ODE:

dzˉdt=−η(F(zˉ)+σ22D2F(zˉ)[r,r]).\frac{d\bar{z}}{dt} = -\eta\left(F(\bar{z})+\frac{\sigma^2}{2}D^2F(\bar{z})[r,r]\right).

Define S~=S∘∇Φ∗\widetilde{S}=S\circ\nabla\Phi^*.

In the continuous-time limit, to solve for σ2(t)\sigma^2(t), we may simply assume that the iterates zˉ\bar{z} are already at the edge of stability:

S~(zˉ(t))=2η,\widetilde{S}(\bar{z}(t))=\frac{2}{\eta},

and therefore to ensure that zˉ\bar{z} stays here, we enforce

ddt(S∘∇Φ∗(zˉ))=0\frac{d}{dt}\left(S\circ\nabla\Phi^*(\bar{z})\right)=0

Then, by the chain rule, the LHS can be re-expressed as ⟨∇S~,dzˉdt⟩\left\langle\nabla\widetilde{S},\frac{d\bar{z}}{dt}\right\rangle, which implies that

⟨∇S~(zˉ),−η(F(zˉ)+σ22D2F(zˉ)[r,r])⟩=0.\left\langle\nabla\widetilde{S}(\bar{z}),-\eta\left(F(\bar{z})+\frac{\sigma^2}{2}D^2F(\bar{z})[r,r]\right)\right\rangle=0.

Solving for σ2\sigma^2 yields:

σ2=−2⟨∇S~(zˉ),F(zˉ)⟩⟨∇S~(zˉ),D2F(zˉ)[r,r]⟩.\sigma^2=\frac{-2\langle\nabla\widetilde{S}(\bar{z}),F(\bar{z})\rangle}{\langle\nabla\widetilde{S}(\bar{z}),D^2F(\bar{z})[r,r]\rangle}.

Observe that the numerator is exactly 2αΦ2\alpha^\Phi as ∇S~(zˉ)=G−1∇S(xˉ)\nabla\widetilde{S}(\bar{z})=G^{-1}\nabla S(\bar{x}) by Lemma 13 and the denominator is equal to βΦ\beta^\Phi by Proposition 16. To retrieve Equation (PCF), we directly apply Proposition 15.

Discretizing the central flow

In practice, however, we cannot assume that S~(zˉ(t))\widetilde{S}(\bar{z}(t)) will rise continuously until it hits 2/η2/\eta due to discretization effects. Let us suppose that the top eigenvalue of (H,G)(H,G) is close to, but not over, 2/η2/\eta.

Define the sharpness residue A(z):=2/η−S~(z)A(z):=2/\eta-\widetilde{S}(z). Let us write down the following differential complementarity problem (DCP) in ζ\zeta:

dzˉdt=−η(F(zˉ)+ζ2D2F(zˉ)[r,r]),where0⪯ζ⊥A(zˉ)⪰0.\frac{d\bar{z}}{dt}=-\eta\left(F(\bar{z})+\frac{\zeta}{2}D^2F(\bar{z})[r,r]\right),\qquad\text{where}\quad0\preceq\zeta\perp A(\bar{z})\succeq0.

We use ζ⊥A(zˉ)\zeta\perp A(\bar{z}) (where ⊥\perp denotes complementarity) to enforce the condition that ζA(zˉ)=0\zeta A(\bar{z})=0.

Discretizing this DCP is discussed in good detail in [7 Appendix A.6.1], and we adapt their method. While this is not practical in general in the case of multiple unstable eigenvectors as [7] describes, for our purposes of modeling one unstable eigenvector, it is satisfactory. Define the linearization of AA:

Alin(z):=A(zˉ)+⟨∇A(zˉ),z−zˉ⟩=2/η−S~(zˉ)−⟨∇S~(zˉ),z−zˉ⟩A^{\mathrm{lin}}(z):=A(\bar{z})+\langle\nabla A(\bar{z}),z-\bar{z}\rangle =2/\eta-\widetilde{S}(\bar{z})-\langle\nabla\widetilde{S}(\bar{z}),z-\bar{z}\rangle

Let t′t' denote the current time step, and t′+ϵt' + \epsilon denote the next timestep. We would like to enforce the DCP at zˉ(t′+ϵ)=zˉ(t′)+ϵdzˉ(t′)dt\bar{z}(t' + \epsilon) = \bar{z}(t') + \epsilon\frac{d\bar{z}(t')}{dt}. Thus,

Alin(zˉ(t′+ϵ))=2/η−S~(zˉ(t′))−⟨∇S~(zˉ(t′)),ϵdzˉ(t′)dt⟩=2/η−S~(zˉ(t′))−ηϵαΦ(zˉ(t′))+ηϵ2βΦ(zˉ(t′)),\begin{aligned} A^{\mathrm{lin}}\left(\bar{z}(t' + \epsilon)\right) = 2/\eta- \widetilde{S}\left(\bar{z}(t')\right) - \left\langle\nabla\widetilde{S}\left(\bar{z}(t')\right), \epsilon\frac{d\bar{z}(t')}{dt} \right\rangle\\ &= 2/\eta- \widetilde{S}\left(\bar{z}(t')\right) - \eta\epsilon\alpha^{\Phi}\left(\bar{z}(t')\right) + \frac{\eta\epsilon}{2}\beta^{\Phi}\left(\bar{z}(t')\right), \end{aligned}

where the last equality follows from Proposition 8. Thus, enforcing the complementarity condition at zˉ(t′+ϵ)\bar{z}(t' + \epsilon) yields

ζ=0 or ζ=2βΦ(zˉ(t′))(αΦ(zˉ(t′))−2/η−S~(zˉ(t′))ηϵ).\zeta= 0 \text{ or } \zeta= \frac{2}{\beta^{\Phi}\left(\bar{z}(t')\right)}\left(\alpha^{\Phi}\left(\bar{z}(t')\right) - \frac{2/\eta- \widetilde{S}\left(\bar{z}(t')\right)}{\eta\epsilon}\right).

Enforcing the complementarity and ζ≥0\zeta\ge0 and Alin(zˉ(t′+ϵ))≥0A^{\mathrm{lin}}\left(\bar{z}(t' + \epsilon)\right) \ge0 yields (and assuming βΦ(zˉ(t′))>0\beta^{\Phi}\left(\bar{z}(t')\right) > 0):

ζ=max⁡(0,2βΦ(zˉ(t′))(αΦ(zˉ(t′))−2/η−S~(zˉ(t′))ηϵ)).\zeta= \max\left(0, \frac{2}{\beta^{\Phi}\left(\bar{z}(t')\right)}\left(\alpha^{\Phi}\left(\bar{z}(t')\right) - \frac{2/\eta- \widetilde{S}\left(\bar{z}(t')\right)}{\eta\epsilon}\right)\right).

This becomes our choice of ζ\zeta, and we implement the Euler timestep

zˉ(t′+ϵ)←zˉ(t′)−ηϵ(F(zˉ(t′))+ζ2D2F(zˉ(t′))[r(t′),r(t′)]).\bar{z}(t' + \epsilon) \leftarrow\bar{z}(t') - \eta\epsilon\left(F\left(\bar{z}(t')\right) + \frac{\zeta}{2}D^2F\left(\bar{z}(t')\right)[r(t'),r(t')]\right).

Comparison against CDTKL24

We compare our model against [7]’s central flow model for gradient descent. Surprisingly, even though we only account for the top eigenvector, our model provides very similar results. We hypothesize that this might be because we run 4 timesteps per mirror descent iteration, so our solver can “take turns” and push down each eigenvector that has eigenvalue greater than 2/η2/\eta.

Figure 4. MLP with an MSE loss on a subset of CIFAR-10; gradient descent; η=0.02\eta= 0.02. We compare our dual central flow (DCF) against the central flow (CF) of [7]. We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η1.95/\eta.

A spectral interpretation of the stabilization coefficient

Proposition 12 (Expansion in the generalized eigenbasis). Let uiu_i be an orthonormal basis of generalized eigenvectors satisfying

Hui=λiGui,⟨ui,Guj⟩=δij,(2)Hu_i = \lambda_i Gu_i, \qquad\langle u_i, Gu_j \rangle= \delta_{ij}, \tag*{(2)}

with eigenvalues ordered so that λ1=S\lambda_1 = S. Then,

βΦ(x)=∥∇SΦ(x)∥G−12+∑i(SΦ−λi)⟨∇SΦ,ui⟩⟨∇3Φ[u,u],ui⟩.\beta^\Phi(x) = \lVert\nabla S^\Phi(x) \rVert_{G^{-1}}^2 + \sum_i (S^\Phi- \lambda_i) \langle\nabla S^\Phi, u_i \rangle\langle\nabla^3 \Phi[u,u], u_i \rangle.

While we can guarantee ∥∇SΦ(x)∥G−12\lVert\nabla S^\Phi(x) \rVert_{G^{-1}}^2 is never negative, it appears difficult to control the geometry correction caused by the alignment of ∇S\nabla S and ∇3Φ[u,u]\nabla^3 \Phi[u,u]. Interestingly, the eigenvalues at the edge of stability do not contribute to the geometry correction, and smaller eigenvalues are weighted heavier in the geometry correction. This suggests that understanding EoS dynamics in mirror descent may require tracking the evolution of the entire spectrum during training, rather than only the largest eigenvalue.

Deferred proofs and some identities

Proof of lem:rayleigh-ritz

Via a homogeneity argument,

S(x)=max⁡⟨u,Gu⟩=1⟨u,Hu⟩=max⁡u≠0⟨u,Hu⟩⟨u,Gu⟩.S(x) = \max_{\langle u,Gu\rangle=1} \langle u, Hu\rangle = \max_{u \ne0} \frac{\langle u, Hu\rangle}{\langle u, Gu\rangle}.

Since G≻0G \succ0, let v:=G1/2uv := G^{1/2}u. Then, one can rewrite ⟨u,Gu⟩=⟨v,v⟩\langle u, Gu\rangle= \langle v, v\rangle and ⟨u,Hu⟩=⟨v,G−1/2HG−1/2v⟩\langle u, Hu\rangle= \langle v, G^{-1/2}HG^{-1/2}v\rangle. Therefore,

S(x)=max⁡v≠0⟨v,G−1/2HG−1/2v⟩⟨v,v⟩.S(x) = \max_{v \ne0} \frac{\langle v, G^{-1/2}HG^{-1/2}v\rangle}{\langle v, v\rangle}.

Since G−1/2HG−1/2G^{-1/2}HG^{-1/2} is symmetric, Rayleigh–Ritz gives

SΦ(x)=λmax⁡(G−1/2HG−1/2).S^\Phi(x) = \lambda_{\max}(G^{-1/2}HG^{-1/2}).

This shows the first claim. Observe that the top eigenvector v1v_1 solves

SΦv1=G−1/2HG−1/2v1.S^\Phi v_1 = G^{-1/2}HG^{-1/2}v_1.

Let u1=G−1/2v1u_1 = G^{-1/2}v_1, and rewrite

SΦG1/2u1=G−1/2Hu1.S^\Phi G^{1/2}u_1 = G^{-1/2}Hu_1.

As G≻0G \succ0, we find that SGu1=Hu1SG u_1 = Hu_1, showing that mirror sharpness is the top generalized eigenvalue of (H,G)(H,G).

Proof of prop:descent

Let Δt:=xt+1−xt\Delta_t := x_{t+1} - x_t. Taylor expanding LL gives

L(xt+1)−L(xt)=⟨∇L(xt),Δt⟩+12⟨Δt,H(xt)Δt⟩+O(∥Δt∥3).L(x_{t+1}) - L(x_t) = \langle\nabla L(x_t), \Delta_t \rangle+ \frac{1}{2}\langle\Delta_t, H(x_t)\Delta_t\rangle+ O(\lVert\Delta_t\rVert^3).

and we will bound the terms on the RHS. Writing the Equation (MD) update gives:

∇Φ(xt+1)−∇Φ(xt)=−η∇L(xt).\nabla\Phi(x_{t+1}) - \nabla\Phi(x_t) = -\eta\nabla L(x_t).

Taking the inner product with Δt\Delta_t, we obtain

⟨∇L(xt),Δt⟩=−1η(DΦ(xt+1,xt)+DΦ(xt,xt+1)).\langle\nabla L(x_t), \Delta_t \rangle= -\frac{1}{\eta}\left(D_\Phi(x_{t+1},x_t) + D_\Phi(x_t,x_{t+1})\right).

Note that DΦ(xt+1,xt)D_{\Phi}(x_{t+1},x_t) and DΦ(xt,xt+1)D_{\Phi}(x_t,x_{t+1}) have the same Taylor expansion up to order two:

DΦ(xt+1,xt)=12⟨Δt,G(xt)Δt⟩+O(∥Δt∥3),D_{\Phi}(x_{t+1},x_t)=\frac{1}{2}\langle\Delta_t,G(x_t)\Delta_t\rangle+O(\lVert\Delta_t\rVert^3),
DΦ(xt,xt+1)=12⟨Δt,G(xt)Δt⟩+O(∥Δt∥3).D_{\Phi}(x_t,x_{t+1})=\frac{1}{2}\langle\Delta_t,G(x_t)\Delta_t\rangle+O(\lVert\Delta_t\rVert^3).

Thus, one can rewrite:

⟨∇L(xt),Δt⟩=−2ηDΦ(xt+1,xt)+O(∥Δt∥3).\langle\nabla L(x_t),\Delta_t\rangle=-\frac{2}{\eta}D_{\Phi}(x_{t+1},x_t)+O(\lVert\Delta_t\rVert^3).

By the definition of mirror sharpness,

⟨Δt,H(xt)Δt⟩≤S(xt)⟨Δt,G(xt)Δt⟩.\langle\Delta_t,H(x_t)\Delta_t\rangle\leq S(x_t)\langle\Delta_t,G(x_t)\Delta_t\rangle.

To compute ⟨Δt,G(xt)Δt⟩\langle\Delta_t,G(x_t)\Delta_t\rangle, we can Taylor expand Φ(xt+1)\Phi(x_{t+1}) about xtx_t:

Φ(xt+1)=Φ(xt)+⟨∇Φ(xt),Δt⟩+12⟨Δt,G(xt)Δt⟩+O(∥Δt∥3).\Phi(x_{t+1})=\Phi(x_t)+\langle\nabla\Phi(x_t),\Delta_t\rangle+\frac{1}{2}\langle\Delta_t,G(x_t)\Delta_t\rangle+O(\lVert\Delta_t\rVert^3).

Rearranging and substituting the Bregman divergence DΦ(xt+1,xt)D_{\Phi}(x_{t+1},x_t) yields:

12⟨Δt,G(xt)Δt⟩=DΦ(xt+1,xt)+O(∥Δt∥3).\frac{1}{2}\langle\Delta_t,G(x_t)\Delta_t\rangle=D_{\Phi}(x_{t+1},x_t)+O(\lVert\Delta_t\rVert^3).

Combining these estimates yields the result.

Proof of thm:quadraticequivalence

Write zt:=∇Φ(xt)z_t:=\nabla\Phi(x_t). Since ∇L(x)=A(x−x⋆)\nabla L(x)=A(x-x^\star), the mirror descent update in dual coordinates is

zt+1=zt−ηA(xt−x⋆)=zt−ηA(∇Φ∗(zt)−∇Φ∗(z⋆)).z_{t+1}=z_t-\eta A(x_t-x^\star)=z_t-\eta A(\nabla\Phi^\ast(z_t)-\nabla\Phi^\ast(z^\star)).

The key observation is that, because the gradient of the quadratic objective is linear, this vector field becomes a Euclidean gradient after a linear change of coordinates. Define

yt:=A−1/2(zt−z⋆),such thatzt=z⋆+A1/2yt.y_t:=A^{-1/2}(z_t-z^\star),\qquad\text{such that}\qquad z_t=z^\star+A^{1/2}y_t.

Multiplying the dual update by A−1/2A^{-1/2} gives

yt+1=yt−ηA1/2(∇Φ∗(z⋆+A1/2yt)−x⋆).y_{t+1}=y_t-\eta A^{1/2}(\nabla\Phi^\ast(z^\star+A^{1/2}y_t)-x^\star).

On the other hand, differentiating L^\widehat{L} yields

∇L^(y)=A1/2(∇Φ∗(z⋆+A1/2y)−x⋆).\nabla\widehat{L}(y)=A^{1/2}(\nabla\Phi^\ast(z^\star+A^{1/2}y)-x^\star).

Thus,

yt+1=yt−η∇L^(yt).y_{t+1}=y_t-\eta\nabla\widehat{L}(y_t).

Proof of prop:quadraticsharpness

Differentiating L^\widehat{L} twice yields

∇2L^(y)=A1/2∇2Φ∗(z⋆+A1/2y)A1/2.\nabla^2\widehat{L}(y)=A^{1/2}\nabla^2\Phi^\ast(z^\star+A^{1/2}y)A^{1/2}.

Note that ∇2Φ∗(z)=(∇2Φ(x))−1=G−1\nabla^2\Phi^\ast(z)=(\nabla^2\Phi(x))^{-1}=G^{-1}, which follows from differentiating both sides of ∇Φ∗(∇Φ(x))=x\nabla\Phi^\ast(\nabla\Phi(x))=x. Thus, we may rewrite this as

∇2L^(y)=A1/2G−1A1/2.\nabla^2\widehat{L}(y)=A^{1/2}G^{-1}A^{1/2}.

We claim that the eigenvectors v~i\widetilde{v}_i of ∇2L^(y)\nabla^2\widehat{L}(y) are in bijection with the generalized eigenvectors viv_i of (H,G)(H,G) via v~i↦A1/2vi\widetilde{v}_i\mapsto A^{1/2}v_i; furthermore, their eigenvalues are preserved. Indeed,

A1/2G−1A1/2v~i=λiv~i⟺G−1Avi=λivi⟺Avi=λiGvi.A^{1/2}G^{-1}A^{1/2}\widetilde{v}_i=\lambda_i\widetilde{v}_i \quad\Longleftrightarrow\quad G^{-1}Av_i=\lambda_i v_i \quad\Longleftrightarrow\quad Av_i=\lambda_iGv_i.

This proves the claim by taking the top eigenvalue.

Proof of Proposition 7

The proof follows from several applications of Rayleigh–Ritz. Throughout these proofs, let uu be the top generalized eigenvector of (H,G)(H,G), and let vv be the top eigenvector of HH. For the first inequality:

Sℓ2=max⁡w≠0⟨w,Hw⟩⟨w,w⟩≥⟨u,Hu⟩⟨u,u⟩=SΦ⟨u,Gu⟩⟨u,u⟩≥SΦλmin⁡(G).\mathcal{S}^{\ell_2} = \max_{w \ne0} \frac{\langle w, Hw\rangle}{\langle w,w\rangle} \ge\frac{\langle u, Hu\rangle}{\langle u,u\rangle} = \mathcal{S}^{\Phi}\frac{\langle u, Gu\rangle}{\langle u,u\rangle} \ge\mathcal{S}^{\Phi}\lambda_{\min}(G).

For the second inequality:

SΦ=max⁡w≠0⟨w,Hw⟩⟨w,Gw⟩≥⟨v,Hv⟩⟨v,Gv⟩=Sℓ2⋅⟨v,v⟩⟨v,Gv⟩≥Sℓ2⋅1λmax⁡(G).\mathcal{S}^{\Phi} = \max_{w \ne0} \frac{\langle w, Hw\rangle}{\langle w, Gw\rangle} \ge\frac{\langle v, Hv\rangle}{\langle v, Gv\rangle} = \mathcal{S}^{\ell_2}\cdot\frac{\langle v,v\rangle}{\langle v, Gv\rangle} \ge\mathcal{S}^{\ell_2}\cdot\frac{1}{\lambda_{\max}(G)}.

Proof of Proposition 8

By chain rule,

ddtSΦ=⟨dzˉdt,∇S~Φ(zˉ)⟩=⟨−η(F(zˉ)+σ22D2F(zˉ)[r,r]),∇S~Φ(zˉ)⟩=η⟨∇S~(zˉ),−F(zˉ)⟩−ησ22⟨∇S~(zˉ),D2F(zˉ)[r,r]⟩(3)\begin{aligned} \frac{d}{dt}\mathcal{S}^{\Phi} &= \left\langle\frac{d\bar{z}}{dt}, \nabla\widetilde{\mathcal{S}}^{\Phi}(\bar{z}) \right\rangle\\ &= \left\langle-\eta\left(F(\bar{z})+\frac{\sigma^2}{2}D^2F(\bar{z})[r,r]\right), \nabla\widetilde{\mathcal{S}}^{\Phi}(\bar{z}) \right\rangle\\ &= \eta\langle\nabla\widetilde{\mathcal{S}}(\bar{z}),-F(\bar{z})\rangle-\frac{\eta\sigma^2}{2}\langle\nabla\widetilde{\mathcal{S}}(\bar{z}),D^2F(\bar{z})[r,r]\rangle \tag*{(3)} \end{aligned}

Proof of Lemma 11

The overall idea is that we can arbitrarily pick HH and ∇3L[u,u]\nabla^3L[u,u] to be adversarial, where uu is the maximum eigenvector that satisfies SGu=HuSG u = Hu and ⟨u,Gu⟩=1\langle u, Gu\rangle= 1, which is equivalent to the problem defined in Definition 2. Let

L={losses L:∥∇3L[⋅,⋅,⋅]∥ bounded}.\mathcal{L} = \{\text{losses } L : \lVert\nabla^3L[\cdot,\cdot,\cdot]\rVert\text{ bounded}\}.

We present a affine reparameterization that allows us to take G(x⋆)=IG(x^\star)=I without loss of generality. Consider the coordinate transformation x=x⋆+G(x⋆)−1/2yx=x^\star+G(x^\star)^{-1/2}y, and the reparameterized loss and mirror map

L^(y):=L(x⋆+G(x⋆)−1/2y).\widehat{L}(y):=L\left(x^\star+G(x^\star)^{-1/2}y\right).
Φ^(y):=Φ(x⋆+G(x⋆)−1/2y).\widehat{\Phi}(y):=\Phi\left(x^\star+G(x^\star)^{-1/2}y\right).

One may observe that when x=x⋆x=x^\star, we have y=0y=0 with

∇2Φ^(0)=I,\nabla^2\widehat{\Phi}(0)=I,

or we find that the mirror metric in the reparameterized coordinates is precisely Euclidean. We can compute that β\beta remains unchanged under these coordinates, and L^\hat{L} remains in L\mathcal{L}.

Without loss of generality, take G(x⋆)=IG(x^\star)=I and x⋆=0x^\star=0. Let T:=∇3Φ(x⋆)T:=\nabla^3\Phi(x^\star). Noting that T≠0T\ne0, we claim that there exists a unit vector uu such that

T[u,u]∉span⁡{u}.T[u,u]\notin\operatorname{span}\{u\}.

To see this, suppose not, and write f(x)=T[x,x,x]f(x)=T[x,x,x]. Then, one may compute ∇f(x)=3T[x,x]\nabla f(x)=3T[x,x]. We observe that because ∇f(x)\nabla f(x) is parallel to xx everywhere, ff must be constant on a unit sphere. However, because ff is odd, the only case must be f=0f=0 everywhere on the sphere. We require d≥2d\ge2 for this argument because the unit sphere is connected here. This directly implies T=0T=0, which is a contradiction. Thus, let us decompose T[u,u]=au+bT[u,u]=au+b for some b⊥ub\perp u and b≠0b\ne0.

We construct HH by considering its projections on span⁡{u}\operatorname{span}\{u\} and u⊥u^\perp, the orthogonal complement. Fix some λ<S\lambda<S, and let LL be such that the Hessian HH satisfies

H=SuuT+λ(I−uuT).H=Suu^{T}+\lambda(I-uu^{T}).

Now, we may compute

βΦ(x)=∥∇S(x)∥G−12+⟨G−1∇S,(SI−HG−1)T[u,u]⟩=∥∇S(x)∥22+⟨∇S,(SI−H)(au+b)⟩\begin{aligned} \beta^\Phi(x)&=\lVert\nabla S(x)\rVert_{G^{-1}}^2+\left\langle G^{-1}\nabla S,\left(SI-HG^{-1}\right)T[u,u]\right\rangle\\ &=\lVert\nabla S(x)\rVert_2^2+\left\langle\nabla S,(SI-H)(au+b)\right\rangle \end{aligned}

Observe that the eigenvectors of HH are uu (with eigenvalue SS) and the vectors perpendicular to uu (with eigenvalue λ\lambda). Thus, Hu=SuHu=Su and Hb=λbHb=\lambda b, so

βΦ(x)=∥∇S(x)∥22+⟨∇S,(S−λ)b⟩.\beta^\Phi(x)=\lVert\nabla S(x)\rVert_2^2+\langle\nabla S,(S-\lambda)b\rangle.

While keeping the Hessian HH fixed at x⋆x^\star, we may prescribe ∇3L[u,u]\nabla^3L[u,u] arbitrarily; for instance, this can be achieved by adding an appropriate cubic polynomial, whose third derivative is constant. By extension, we can control ∇S\nabla S arbitrarily by Lemma 14, and we opt to minimize Equation (1). We choose L∈LL\in\mathcal{L} so that

∇S=−S−λ2b.\nabla S=-\frac{S-\lambda}{2}b.

Substituting this into the stabilization coefficient gives

βΦ=(S−λ)24∥b∥22−(S−λ)22∥b∥22=−(S−λ)24∥b∥22<0.\begin{aligned} \beta^\Phi&=\frac{(S-\lambda)^2}{4}\lVert b\rVert_2^2-\frac{(S-\lambda)^2}{2}\lVert b\rVert_2^2\\ &=-\frac{(S-\lambda)^2}{4}\lVert b\rVert_2^2<0. \end{aligned}

Proof of prop:spectral

Observe that qi=G1/2uiq_i=G^{1/2}u_i forms an orthonormal basis in the L2L^2 inner product. Thus, we may decompose:

G−1/2∇3Φ[u,u]=∑i⟨G−1/2∇3Φ[u,u],qi⟩qi.G^{-1/2}\nabla^3\Phi[u,u]=\sum_i\left\langle G^{-1/2}\nabla^3\Phi[u,u],q_i\right\rangle q_i.

Furthermore, observe that the qiq_i’s are eigenvectors of G−1/2HG−1/2G^{-1/2}HG^{-1/2} with G−1/2HG−1/2ui=λiuiG^{-1/2}HG^{-1/2}u_i=\lambda_i u_i. Expanding βΦ(x)\beta^\Phi(x) from Proposition 16, we find:

βΦ(x)=∥∇S∥G−12+⟨G−1/2∇S,G−1/2(SI−HG−1)G1/2G−1/2∇3Φ[u,u]⟩=∥∇S∥G−12+⟨G−1/2∇S,(SI−G−1/2HG−1/2)G−1/2∇3Φ[u,u]⟩=∥∇S∥G−12+⟨G−1/2∇S,(SI−G−1/2HG−1/2)∑i⟨G−1/2∇3Φ[u,u],qi⟩qi⟩=∥∇S∥G−12+∑i⟨G−1/2∇S,(S−λi)qi⟩⟨G−1/2∇3Φ[u,u],qi⟩=∥∇S∥G−12+∑i(S−λi)⟨G−1/2∇S,qi⟩⟨G−1/2∇3Φ[u,u],qi⟩=∥∇S∥G−12+∑i(S−λi)⟨∇S,ui⟩⟨∇3Φ[u,u],ui⟩.\begin{aligned} \beta^\Phi(x) &= \|\nabla S\|_{G^{-1}}^2+\left\langle G^{-1/2}\nabla S,G^{-1/2}(SI-HG^{-1})G^{1/2}G^{-1/2}\nabla^3\Phi[u,u]\right\rangle\\ &=\|\nabla S\|_{G^{-1}}^2+\left\langle G^{-1/2}\nabla S,(SI-G^{-1/2}HG^{-1/2})G^{-1/2}\nabla^3\Phi[u,u]\right\rangle\\ &=\|\nabla S\|_{G^{-1}}^2+\left\langle G^{-1/2}\nabla S,(SI-G^{-1/2}HG^{-1/2})\sum_i\left\langle G^{-1/2}\nabla^3\Phi[u,u],q_i\right\rangle q_i\right\rangle\\ &=\|\nabla S\|_{G^{-1}}^2+\sum_i\left\langle G^{-1/2}\nabla S,(S-\lambda_i)q_i\right\rangle\left\langle G^{-1/2}\nabla^3\Phi[u,u],q_i\right\rangle\\ &=\|\nabla S\|_{G^{-1}}^2+\sum_i(S-\lambda_i)\left\langle G^{-1/2}\nabla S,q_i\right\rangle\left\langle G^{-1/2}\nabla^3\Phi[u,u],q_i\right\rangle\\ &=\|\nabla S\|_{G^{-1}}^2+\sum_i(S-\lambda_i)\langle\nabla S,u_i\rangle\langle\nabla^3\Phi[u,u],u_i\rangle. \end{aligned}

Auxiliary computations

Throughout this section, we will let u(x)u(x) be the top unit eigenvector, and further assume that it is unique. More specifically, uu is the maximum eigenvector that satisfies SGu=HuSG u=Hu and ⟨u,Gu⟩=1\langle u,Gu\rangle=1, as defined in Definition 2. Define r=Gur=Gu, which is the pushforward of uu under ∇Φ\nabla\Phi.

Lemma 13 (Gradient in dual coordinates) Let f:E→Rf:E\to\mathbb{R} and define

f~:=f∘∇Φ∗.\tilde{f}:=f\circ\nabla\Phi^*.

For z=∇Φ(x)z=\nabla\Phi(x),

∇f~(z)=∇2Φ∗(z)∇f(x)=G(x)−1∇f(x).\nabla\tilde{f}(z)=\nabla^2\Phi^*(z)\nabla f(x)=G(x)^{-1}\nabla f(x).

By the chain rule,

∇f~(z)=∇2Φ∗(z)∇f(x).\nabla\tilde{f}(z)=\nabla^2\Phi^*(z)\nabla f(x).

Moreover, differentiating ∇Φ∗(∇Φ(x))=x\nabla\Phi^*(\nabla\Phi(x))=x gives

∇2Φ∗(z)∇2Φ(x)=I,\nabla^2\Phi^*(z)\nabla^2\Phi(x)=I,

and hence ∇2Φ∗(z)=G(x)−1\nabla^2\Phi^*(z)=G(x)^{-1}.

Lemma 14 (Computation of sharpness gradient)

∇SΦ(x)=∇3L(x)[u,u]−S(x)∇3Φ(x)[u,u].\nabla S^{\Phi}(x)=\nabla^3L(x)[u,u]-S(x)\nabla^3\Phi(x)[u,u].

Define H:=∇2L(x)H:=\nabla^2L(x). Let uu satisfy the eigenvalue problem

SGu=Hu,⟨u,Gu⟩=1SG u=Hu,\qquad\langle u,Gu\rangle=1

Take gradients on both sides,

(∇H)u+H(∇u)=(∇S)Gu+S(∇G)u+SG∇u.(\nabla H)u+H(\nabla u)=(\nabla S)Gu+S(\nabla G)u+SG\nabla u.

Taking an inner product with uu,

⟨u,(∇H)u⟩+⟨u,H(∇u)⟩=∇S⟨u,Gu⟩+S⟨u,(∇G)u⟩+S⟨u,G(∇u)⟩\langle u,(\nabla H)u\rangle+\langle u,H(\nabla u)\rangle=\nabla S\langle u,Gu\rangle+S\langle u,(\nabla G)u\rangle+S\langle u,G(\nabla u)\rangle

Notice that

⟨u,H(∇u)⟩=⟨Hu,∇u⟩=S⟨Gu,∇u⟩.\langle u,H(\nabla u)\rangle=\langle Hu,\nabla u\rangle=S\langle Gu,\nabla u\rangle.

Rearranging and writing the identity in tensor notation yields the result.

Proposition 15 Let x∈Ex \in E, v∈Ev \in E, z=∇Φ(x)z = \nabla\Phi(x).

∇3Φ∗(z)[Gv,Gv]=−G−1∇3Φ(x)[v,v].\nabla^{3}\Phi^{*}(z)[Gv,Gv] = -G^{-1}\nabla^{3}\Phi(x)[v,v].

It is well-known that the left-hand side can be expressed as the acceleration of a curve [27]. In particular, let α(t)=∇Φ∗(z+tGv)\alpha(t) = \nabla\Phi^{*}(z+tGv). Then, α′′(0)=∇3Φ∗(z)[Gv,Gv]\alpha''(0) = \nabla^{3}\Phi^{*}(z)[Gv,Gv]. By applying ∇Φ\nabla\Phi, one can write

∇Φ∘α(t)=z+tGv\nabla\Phi\circ\alpha(t) = z+tGv

and taking derivatives

∇2Φ(α(t))α′(t)=Gv\nabla^{2}\Phi(\alpha(t))\alpha'(t) = Gv
∇3Φ(α(t))[α′(t),α′(t)]+∇2Φ(α(t))α′′(t)=0.\nabla^{3}\Phi(\alpha(t))[\alpha'(t),\alpha'(t)] + \nabla^{2}\Phi(\alpha(t))\alpha''(t) = 0.

Plugging in t=0t=0 yields α′(0)=v\alpha'(0)=v and α′′(0)=−G−1∇3Φ[v,v]\alpha''(0)=-G^{-1}\nabla^{3}\Phi[v,v].

Proposition 16 Let x∈Ex \in E with z=∇Φ(x)z = \nabla\Phi(x). Let S~(z)=S∘∇Φ∗\widetilde{S}(z) = S \circ\nabla\Phi^{*}. Then,

⟨∇S~(z),D2F[r,r]⟩=∥∇S(x)∥G−12+⟨G−1∇S,(SI−HG−1)∇3Φ[u,u]⟩\langle\nabla\widetilde{S}(z),D^{2}F[r,r]\rangle= \lVert\nabla S(x)\rVert^{2}_{G^{-1}} + \langle G^{-1}\nabla S,(SI-HG^{-1})\nabla^{3}\Phi[u,u]\rangle

The above quantity is the same as βΦ(x)\beta^{\Phi}(x) as defined in Definition 10.

First, we compute ∇S(x)\nabla S(x). By Lemma 14,

∇S=∇3L[u,u]−S∇3Φ[u,u].\nabla S = \nabla^{3}L[u,u] - S\nabla^{3}\Phi[u,u].

Next, differentiating F=∇L∘∇Φ∗F=\nabla L\circ\nabla\Phi^{*} twice yields

D2F[r,r]=∇3L[u,u]−HG−1∇3Φ[u,u]=∇S+S∇3Φ[u,u]−HG−1∇3Φ[u,u]\begin{aligned} D^{2}F[r,r] &= \nabla^{3}L[u,u] - HG^{-1}\nabla^{3}\Phi[u,u] \\ &= \nabla S + S\nabla^{3}\Phi[u,u] - HG^{-1}\nabla^{3}\Phi[u,u] \end{aligned}

By Lemma 13, ∇S~(z)=G−1∇S(x)\nabla\widetilde{S}(z)=G^{-1}\nabla S(x). Putting these together yields:

⟨∇S~(z),D2F[r,r]⟩=⟨G−1∇S(x),∇S+S∇3Φ[u,u]−HG−1∇3Φ[u,u]⟩=∥∇S(x)∥G−12+⟨G−1∇S,(SI−HG−1)∇3Φ[u,u]⟩.\begin{aligned} \langle\nabla\widetilde{S}(z),D^{2}F[r,r]\rangle &= \langle G^{-1}\nabla S(x),\nabla S + S\nabla^{3}\Phi[u,u] - HG^{-1}\nabla^{3}\Phi[u,u]\rangle\\ &= \lVert\nabla S(x)\rVert^{2}_{G^{-1}} + \langle G^{-1}\nabla S,(SI-HG^{-1})\nabla^{3}\Phi[u,u]\rangle. \end{aligned}

Experimental Details

Experiments were run on a shared cluster of V100s, A100s, and H200s.

Computational details

Eigenvalues and sharpness All eigenvalues are calculated through a LOBPCG algorithm [25] and use the implementation of [7] (keeping their condition for termination). This method is particularly nice for computing sharpness because it uses the previous eigenvector to “warm start” the solver for the next computation. All computations are done in Float64, as we observe that Float32 can incur substantial numerical errors. In our experiments in Appendix § 11, we plot the sharpness every 30 steps.

For the ℓ3\ell_{3} mirror potential, if any parameter ∣xi∣<10−30\lvert x_i\rvert< 10^{-30}, we set ∣xi∣=10−30\lvert x_i\rvert= 10^{-30} for the purposes of computing G−1G^{-1} and G−1/2G^{-1/2}, which are singular when xi=0x_i=0 as described in § 4.2. In practice, we observe that this route is never used except when layers are initialized at zero. This happens only in our vision transformer, where some parameters are set to zero at initialization.

Central flows We try to follow the choices of [7] in general. For the flows that represent mirror descent, we do all updates in the dual, which we observe to incur less error. The dual central flow is computed using an Euler method, with step size 0.25 (so that four steps correspond to a mirror descent update, which takes unit time). We discuss our discretization in Section A.2 as it is non-trivial; this discretization is used when SΦ>1.95/ηS^{\Phi} > 1.95/\eta. The other stable flows are implemented with the conservative choice of adaptive step size 1/max⁡(4,⌈2SΦ⌉)1/\max(4,\lceil2S^{\Phi}\rceil). We terminate the gradient flow when the step size becomes smaller than 1/1000.

Some of our choices also differ from [7] (other than only dealing with the regime of one unstable eigenvalue). We do not find it necessary to run mirror descent for a few steps before computing the flows, as the mirror sharpness at initialization falls below 2/η2/\eta. We also compare with the iterates directly instead of a “second-order” average of the iterates, as it is unclear how to “average” the primal iterates in non-Euclidean geometries.

Architectural/dataset details

We use ReLU activation functions for the experiments in Appendix § 11, and we use GeLU activation functions for the central flow experiments to ensure differentiability of the loss.

MLP We use the MLP architecture of [9]. We use PyTorch’s standard initializations. This architecture has 655604 parameters.

CNN We use the CNN architecture of [9]. We use PyTorch’s standard initializations. This architecture has 30634 parameters.

ViT Our ViT follows the same architecture as that of [7], whose implementation is provided in [30]. Following [7], in our experiments, we multiply the initialization weights and biases of the final layer by 0.5 to reduce the sharpness at initialization. This architecture has 496996 parameters.

CIFAR-10 details We used a training set consisting of 1000 images, which are obtained by taking the first 250 of the first four classes of CIFAR-10. We use the standard pre-processing of centering and normalizing the data by subtracting the mean and then dividing by the standard deviation for each channel across the full CIFAR-10 dataset.

Varying architectures

In this section, we observe the 2/η2/\eta mirror sharpness threshold in a variety of architectures beyond this settings described in the main text. For each setting, we graph the training loss, the gradient norm ∥∇L∥G−12\lVert\nabla L\rVert_{G^{-1}}^{2}, the mirror sharpness SΦS^{\Phi}, and the ratio between ℓ2\ell_{2} sharpness and mirror sharpness Sℓ2/SΦS^{\ell_{2}}/S^{\Phi}.

MLP

MSE

Figure 5. MLP with an MSE loss on a subset of CIFAR-10; ordinary gradient descent.

MLP with an MSE loss on a subset of CIFAR-10; hypentropy potential

Figure 6. MLP with an MSE loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01\gamma= 0.01, bottom: γ=2\gamma= 2.

MLP with an MSE loss on a subset of CIFAR-10; $\ell_p$ potential

Figure 7. MLP with an MSE loss on a subset of CIFAR-10; ℓp\ell_p potential. Top: ℓ1.5\ell_{1.5}, bottom: ℓ3\ell_3.

Cross-entropy

For cross-entropy losses, we observe that the mirror sharpness hovers slightly above the 2/η2/\eta threshold before returning to zero. This is well-explained in the case for gradient descent in [9 Appendix C], and we anticipate that a similar explanation may be at play here.

MLP with a cross-entropy loss on a subset of CIFAR-10; ordinary gradient descent

Figure 8. MLP with a cross-entropy loss on a subset of CIFAR-10; ordinary gradient descent.

Four-panel plots for MLP with hypentropy potential

Figure 9. MLP with a cross-entropy loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01\gamma= 0.01, bottom: γ=2\gamma= 2.

Four-panel plots for MLP with $\ell_p$ potential

Figure 10. MLP with a cross-entropy loss on a subset of CIFAR-10; ℓp\ell_p potential. Top: ℓ1.5\ell_{1.5}, bottom: ℓ3\ell_3.

CNN

MSE

Figure 11. CNN with an MSE loss on a subset of CIFAR-10; gradient descent.

CNN with an MSE loss on a subset of CIFAR-10; hypentropy potential

Figure 12. CNN with an MSE loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01\gamma= 0.01, bottom: γ=2\gamma= 2. These are the same experiments as Figure 1.

CNN with an MSE loss on a subset of CIFAR-10; $\ell_p$ potential

Figure 13. CNN with an MSE loss on a subset of CIFAR-10; ℓp\ell_p potential. Top: ℓ1.5\ell_{1.5}, bottom: ℓ3\ell_3.

Cross-entropy

CNN with cross-entropy loss on a subset of CIFAR-10; hypentropy potential

Figure 14. CNN with cross-entropy loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01\gamma= 0.01, bottom: γ=2\gamma= 2.

CNN training curves for two values of $p$

Figure 15. CNN with cross-entropy loss on a subset of CIFAR-10; ℓp\ell_p potential. Top: ℓ1.5\ell_{1.5}, bottom: ℓ3\ell_3.

ViT

MSE

ViT training curves with ordinary gradient descent

Figure 16. ViT with an MSE loss on a subset of CIFAR-10; ordinary gradient descent.

ViT training curves with hypentropy potential

Figure 17. ViT with an MSE loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01\gamma= 0.01, bottom: γ=2\gamma= 2.

ViT with an MSE loss on a subset of CIFAR-10; $\ell_p$ potential

Figure 18. ViT with an MSE loss on a subset of CIFAR-10; ℓp\ell_p potential. Top: ℓ1.5\ell_{1.5}, bottom: ℓ3\ell_3. These are the same experiments as Figure 2.

Figure 2. Vision transformer (ViT) with an ℓp\ell_p potential. Columns show training loss, norm of the loss gradient with respect to GG, mirror sharpness, and ℓ2\ell_2 sharpness. The 2/η2/\eta thresholds are indicated by the horizontal dashed lines. Top: p=1.5p = 1.5, bottom: p=3p = 3.

Cross-entropy

ViT with cross-entropy loss on a subset of CIFAR-10; hypentropy potential

Figure 19. ViT with cross-entropy loss on a subset of CIFAR-10; hypentropy potential. Top: γ=0.01\gamma= 0.01, bottom: γ=2\gamma= 2.

ViT with cross-entropy loss on a subset of CIFAR-10; $\ell_p$ potential

Figure 20. ViT with cross-entropy loss on a subset of CIFAR-10; ℓp\ell_p potential. Top: ℓ1.5\ell_{1.5}, bottom: ℓ3\ell_3.

Central flow experiments

Figure 21. CNN with an MSE loss on a subset of CIFAR-10; hypentropy potential with γ=0.01\gamma= 0.01; η=0.8\eta= 0.8. We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η1.95/\eta.

Figure 22. CNN with an MSE loss on a subset of CIFAR-10; ℓ1.5\ell_{1.5} potential; η=0.08\eta= 0.08. This is the same experiment as Figure 3. We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η1.95/\eta.

Figure 3. CNN with an ℓ1.5\ell_{1.5} potential, GeLU activations, MSE loss, and η=0.08\eta= 0.08 on a subset of CIFAR-10. Along with the mirror descent iterates (MD), we track the Riemannian gradient flow (RGF), gradient flow (GF), and our dual central flow (DCF). We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η1.95/\eta. Left: Mirror sharpness. Right: Distance to mirror descent iterates.

Figure 23. MLP with an MSE loss on a subset of CIFAR-10; hypentropy potential with γ=0.01\gamma= 0.01; η=0.8\eta= 0.8. We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η1.95/\eta.

Mirror sharpness, distance to MD, progressive sharpening, and stabilization plots

Figure 24. MLP with an MSE loss on a subset of CIFAR-10; ℓ1.5\ell^{1.5} potential; η=0.08\eta= 0.08. We indicate, in gray, the timesteps where the DCF iterates only have one unstable eigenvector with eigenvalue greater than 1.95/η1.95/\eta.

Transformer on Tiny Shakespeare

So far, we have considered an image classification task with several architectures, mirror maps, losses, and step sizes. In this section, we instead consider a language modeling task. More specifically, we train a transformer to predict the next character in the Tiny Shakespeare dataset [22]. We defer experimental details to Appendix § 14.§ 1.

Training loss, gradient norm, mirror sharpness, and sharpness ratio for a transformer on Tiny Shakespeare

Figure 25. Transformer with a cross-entropy loss on Tiny Shakespeare; gradient descent.

Transformer training curves with hypentropy potential

Figure 26. Transformer with a cross-entropy loss on Tiny Shakespeare; hypentropy potential. Top: γ=0.01\gamma= 0.01, bottom: γ=2\gamma= 2.

Transformer training curves with $\ell_p$ potential

Figure 27. Transformer with a cross-entropy loss on Tiny Shakespeare; ℓp\ell_p potential. Top: ℓ1.5\ell_{1.5}, bottom: ℓ3\ell_3.

Experimental details

Our experiment largely follows that of [9] (Appendix L.1), with the Tiny Shakespeare dataset instead of WikiText-2. We use the first 90% of the text for the training split. We cut this text into sequences of 35 characters, which consist of our training samples. For each sample, the model is asked to predict the next character given the previous. We use a cross-entropy loss, and our architecture is identical to that of [9].

Concrete example of lem:negativebeta

We present a concrete numerical example of Lemma 11 over parameters in R2\mathbb{R}^2; the main idea is to write out the quadratic and cubic terms separately about a point x⋆x^\star and prescribe our desired quantities explicitly.

Consider the hypentropy mirror map with γ=0.6\gamma= 0.6, and let x⋆=(0.8,−0.8)x^\star= (0.8, -0.8). This forces G=∇2Φ(x⋆)=IG = \nabla^2\Phi(x^\star) = I.

Pick vectors u=(1/2,1/2)u = (1/\sqrt{2},1/\sqrt{2}) and v=(−1/2,1/2)v = (-1/\sqrt{2},1/\sqrt{2}). One may explicitly compute ∇3Φ(x⋆)[u,u]=(−0.4,0.4)\nabla^3\Phi(x^\star)[u,u] = (-0.4,0.4), noting that vv and ∇3Φ(x⋆)[u,u]\nabla^3\Phi(x^\star)[u,u] point in the same direction.

Fix some S>0S > 0. We choose the loss so that the third derivative points along this direction (orthogonal to uu): for d∈R2d \in\mathbb{R}^2, define

L(x⋆+d)=12⟨d,SuuTd⟩+S4⟨u,d⟩2⟨∇3Φ(x⋆)[u,u],d⟩,L(x^\star+ d) = \frac{1}{2}\langle d, Suu^T d\rangle+ \frac{S}{4}\langle u,d\rangle^2\langle\nabla^3\Phi(x^\star)[u,u],d\rangle,

which satisfies the conditions needed in the proof of Lemma 11, as one may check

∇2L(x⋆)=SuuT\nabla^2 L(x^\star) = Suu^T
∇3L(x⋆)[u,u]=S2∇3Φ(x⋆)[u,u],\nabla^3 L(x^\star)[u,u] = \frac{S}{2}\nabla^3\Phi(x^\star)[u,u],

noting that we have set λ=0\lambda= 0 to simplify. Following the computation in the proof of Lemma 11, one can check that βΦ(x⋆)=−0.08S2<0\beta^\Phi(x^\star) = -0.08S^2 < 0.

Some observations about LL: first, note that LL is unbounded below and thus can tend to −∞-\infty in our example. Indeed, in our optimization example, we see that the trajectory runs out of this neighborhood (and in fact the iterates become infinite on our machine). We believe that it is possible to repair this by considering a quartic polynomial with the same information at the first three orders. Second: we note that x⋆x^\star is a local minima, with L(x⋆)=0L(x^\star) = 0. Thus, we must slightly perturb it, as it would otherwise become a fixed point. Third: we note that we must take S>2/ηS > 2/\eta so that our trajectory moves away from x⋆x^\star.

We consider mirror descent with parameters S=16S = 16, η=0.13\eta= 0.13, γ=0.6\gamma= 0.6, starting at a point x0=x⋆+0.01ux_0 = x^\star+ 0.01u. On our machine, the iterate became infinite after 48 steps.

Figure 28. Three-dimensional visualization of the mirror descent iterates on the loss surface LL before the iterates diverge. We plot the motion of the average (dual) iterate over the last 6 steps in green.

As the central flow model ceases to be relevant since βΦ<0\beta^\Phi< 0, we instead track the evolution of the time-averaged iterates by averaging the last six iterates in the dual space. We track αΦ\alpha^\Phi and βΦ\beta^\Phi for these iterates. We find that for most of the trajectory, αΦ\alpha^\Phi remains positive and βΦ\beta^\Phi remains negative.

Figure 29. We plot associated quantities of the actual iterates and the time-averaged iterates before divergence.

References

  1. [2]Maksym Andriushchenko, Francesco Croce, Maximilian Müller, Matthias Hein, and Nicolas Flammarion. A Modern Look at the Relationship between Sharpness and Generalization. In Proceedings of the 40th International Conference on Machine Learning, pages 840–902. PMLR, July 2023.arxiv.org/abs/2302.07011
  2. [3]Navid Azizan and Babak Hassibi. Stochastic Gradient/Mirror Descent: Minimax Optimality and Implicit Regularization. In International Conference on Learning Representations, September 2018.arxiv.org/abs/1806.00952
  3. [4]Navid Azizan, Sahin Lale, and Babak Hassibi. Stochastic Mirror Descent on Overparameterized Nonlinear Models. IEEE Transactions on Neural Networks and Learning Systems, 33(12):7717–7727, December 2022.
  4. [5]Sanjeev Arora, Zhiyuan Li, and Abhishek Panigrahi. Understanding Gradient Descent on the Edge of Stability in Deep Learning. In Proceedings of the 39th International Conference on Machine Learning, pages 948–1024. PMLR, June 2022.arxiv.org/abs/2205.09745
  5. [6]Jérôme Bolte, Shoham Sabach, Marc Teboulle, and Yakov Vaisbourd. First order methods beyond convexity and lipschitz gradient continuity with applications to quadratic inverse problems. SIAM Journal on Optimization, 28:2131–2151, July 2018.arxiv.org/abs/1706.06461
  6. [7]Jeremy Cohen, Alex Damian, Ameet Talwalkar, J. Zico Kolter, and Jason D. Lee. Understanding Optimization in Deep Learning with Central Flows. In The Thirteenth International Conference on Learning Representations, October 2024.arxiv.org/abs/2410.24206
  7. [8]Jeremy Cohen, Behrooz Ghorbani, Shankar Krishnan, Naman Agarwal, Sourabh Medapati, Michal Badura, Daniel Suo, Zachary Nado, George E. Dahl, and Justin Gilmer. Adaptive Gradient Methods at the Edge of Stability. In NeurIPS 2023 Workshop Heavy Tails in Machine Learning, November 2023.arxiv.org/abs/2207.14484
  8. [9]Jeremy Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter, and Ameet Talwalkar. Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability. In International Conference on Learning Representations, October 2020.arxiv.org/abs/2103.00065
  9. [10]John Duchi, Elad Hazan, and Yoram Singer. Adaptive Subgradient Methods for Online Learning and Stochastic Optimization. Journal of Machine Learning Research, 12(61):2121–2159, 2011.
  10. [11]Alex Damian, Eshaan Nichani, and Jason D. Lee. Self-Stabilization: The Implicit Bias of Gradient Descent at the Edge of Stability. In The Eleventh International Conference on Learning Representations, September 2022.arxiv.org/abs/2209.15594
  11. [12]Riccardo Formenti, Aditya Agrawal, and Vikas Garg. Can You Trust Your Preference Models? Stackelberg Games for Alignment, October 2026.arxiv.org/abs/2610.15008
  12. [13]Udaya Ghai, Elad Hazan, and Yoram Singer. Exponentiated Gradient Meets Gradient Descent. In ALT. arXiv, February 2019.arxiv.org/abs/1902.01903
  13. [14]Vineet Gupta, Tomer Koren, and Yoram Singer. Shampoo: Preconditioned Stochastic Tensor Optimization. In Proceedings of the 35th International Conference on Machine Learning, pages 1842–1850. PMLR, July 2018.arxiv.org/abs/1802.09568
  14. [16]Suriya Gunasekar, Jason Lee, Daniel Soudry, and Nathan Srebro. Characterizing Implicit Bias in Terms of Optimization Geometry. In Proceedings of the 35th International Conference on Machine Learning, pages 1832–1841. PMLR, July 2018.arxiv.org/abs/1802.08246
  15. [17]Matthieu Geist, Bruno Scherrer, and Olivier Pietquin. A theory of regularized Markov decision processes. In International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2160–2169, 2019.arxiv.org/abs/1901.11275
  16. [18]Suriya Gunasekar, Blake Woodworth, and Nathan Srebro. Mirrorless Mirror Descent: A Natural Derivation of Mirror Descent. In Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, pages 2305–2313. PMLR, March 2021.arxiv.org/abs/2004.01025
  17. [19]Rustem Islamov, Michael Crawshaw, Jeremy Cohen, and Robert M. Gower. Non-Euclidean Gradient Descent Operates at the Edge of Stability. In Forty-Third International Conference on Machine Learning, June 2026.arxiv.org/abs/2603.05002
  18. [20]Tom Jacobs and Guido Montufar. Implicit Bias of Mirror Flow in Homogeneous Neural Networks: Sparse and Dense Feature Learning, May 2026.arxiv.org/abs/2605.19458
  19. [22]Andrej Karpathy. char-rnn: Multi-layer recurrent neural networks for character-level language models. https://github.com/karpathy/char-rnn, 2015.
  20. [23]Simran Kaur, Jeremy Cohen, and Zachary C. Lipton. On the Maximum Hessian Eigenvalue and Generalization, May 2023.arxiv.org/abs/2206.10654
  21. [25]Andrew V. Knyazev. Toward the optimal preconditioned eigensolver: Locally optimal block preconditioned conjugate gradient method. SIAM Journal on Scientific Computing, 23(2):517–541, 2001.DOI
  22. [26]Serge Lang. Real and Functional Analysis, volume 142 of Graduate Texts in Mathematics. Springer-Verlag, New York, 3 edition, 1993.DOI
  23. [27]John M. Lee. Introduction to Smooth Manifolds, volume 218 of Graduate Texts in Mathematics. Springer, New York, 2 edition, 2013.
  24. [28]Haihao Lu, Robert M. Freund, and Yurii Nesterov. Relatively smooth convex optimization by first-order methods, and applications. SIAM Journal on Optimization, 28(1):333–354, 2018.arxiv.org/abs/1610.05708
  25. [29]Fangshuo Liao, Afroditi Kolomvaki, and Anastasios Kyrillidis. SGD at the Edge of Stability: The Stochastic Sharpness Gap, April 2026.arxiv.org/abs/2604.21016
  26. [30]LucidRains. Vision transformer – PyTorch, 2024.
  27. [33]Lachlan Ewen MacDonald, Hancheng Min, Leandro Palma, Salma Tarmoun, Ziqing Xu, and Rene Vidal. Convergence Rates for Gradient Descent on the Edge of Stability for Over-parametrised Least Squares. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, October 2025.arxiv.org/abs/2510.17506
  28. [34]Remi Munos, Michal Valko, Daniele Calandriello, Mohammad Gheshlaghi Azar, Mark Rowland, Zhaohan Daniel Guo, Yunhao Tang, Matthieu Geist, Thomas Mesnard, Côme Fiegel, Andrea Michi, Marco Selvi, Sertan Girgin, Nikola Momchev, Olivier Bachem, Daniel J. Mankowitz, Doina Precup, and Bilal Piot. Nash Learning from Human Feedback. In Forty-First International Conference on Machine Learning, June 2024.arxiv.org/abs/2312.00886
  29. [35]Yurii Nesterov. Introductory Lectures on Convex Optimization: A Basic Course. Kluwer Academic Publishers, 2004.
  30. [36]Gergely Neu, Anders Jonsson, and Vicenç Gómez. A unified view of entropy-regularized Markov decision processes, May 2017.arxiv.org/abs/1705.07798
  31. [37]Arkadi S. Nemirovski and David B. Yudin. Problem Complexity and Method Efficiency in Optimization. Wiley, 1983.
  32. [38]Scott Pesme, Radu-Alexandru Dragomir, and Nicolas Flammarion. Implicit Bias of Mirror Flow on Separable Data. In The Thirty-Eighth Annual Conference on Neural Information Processing Systems, November 2024.arxiv.org/abs/2406.12763

Paper details

vlnc:W_dbxnvppq
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents