Minimax Optimality of Shampoo for Nonstationary Stochastic Optimization
Abir Sarkar, Nirmalya Mandal, Martin T. Wells
ABSTRACT
We develop a comprehensive theoretical analysis of Matrix–Shampoo for tracking time-varying optima in nonstationary stochastic optimization. We derive finite-horizon high-probability bounds for average tracking error that disentangle initialization, optimizer drift, momentum-induced drift penalty, stochastic noise, and adaptive preconditioning, with explicit dependence on momentum parameter β1 and stabilization parameter ε. These bounds reveal an explicit drift–noise and stability–geometry tradeoffs: noise-dominated regimes favor larger β1, which provides stronger first-moment averaging and greater suppression of gradient noise, whereas drift-dominated regimes favor smaller β1, allowing faster adaptation to moving optimizer. Larger ε reduces the preconditioner-perturbation term while weakening Shampoo’s ability to exploit matrix geometry, thereby reducing adaptivity. We establish a matching minimax lower bound under squared path-variation constraint, proving the information-theoretic optimality of Shampoo over the class of causal optimization procedures. Under a constant stepsize, we establish high-probability bounds for the average projected stationarity gap along general nonstationary nonconvex objectives. We validate our theoretical findings on both synthetic and multiple real-world problems.
We study stochastic optimization over a compact convex set Θ⊂Rd, where the objective evolves over time according to
θt⋆∈θ∈ΘargminGt(θ),Gt(θ)=EXt∼Πt[g(θ,Xt)].
(Opt)
Here g(θ,Xt) is a noisy sample-level version of Gt(θ), with Xt∼Πt, where Πt is a time-varying distribution. As Πt changes, so does the population objective Gt and its minimizer θt⋆. Such problems arise in signal processing [1, 2], concept drift and online learning [3, 4], and minimum divergence-type statistical estimation objectives [5], where the goal is to follow an evolving optimizer rather than converge to a fixed solution.
Adaptive gradient methods such as Adam [6] are standard tools in large-scale deep learning [7, 8], combining momentum with coordinate-wise adaptive step sizes. However, diagonal preconditioning treats parameters independently and can fail to exploit the parameter space geometry [9], motivating richer matrix-valued adaptive methods [10]. Shampoo [11]
∗Equal contribution.
addresses this limitation through computationally tractable left and right-sided preconditioners that exploit the matrix or tensor structure of the parameters [12]. In stationary settings, Shampoo enjoys favorable convergence guarantees by leveraging Kronecker-factored preconditioning [11, 13, 14]. Very recently, Shampoo has been refined through KL-based structured geometry and unified analyses of one and two-sided preconditioning [15, 16].
In nonstationary optimization, historical gradients create an inherent tension between noise reduction and adaptation to a moving objective [17–20]. This raises the first fundamental question: does this noise–adaptation tradeoff persist when first-moment memory is coupled with Shampoo’s two-sided matrix geometry?
A second difficulty is that Shampoo’s preconditioner is constructed from current and past stochastic gradients and is therefore nonpredictable. For analytically tractable results, existing literature often introduces predictable proxy preconditioners and assumes adaptive strong monotonicity [19]. Hence, the second question: can one analyze Shampoo’s realized preconditioner directly, while obtaining asymptotic minimax-optimal guarantees?
Empirical evidence links stale optimizer to reduced plasticity under task changes [21, 22], raising a fundamental stability–geometry question: How should the ridge balance robustness to noisy or stale second-moment estimates against the benefits of matrix adaptation?
These questions motivate our theoretical study of when, and under what conditions, Shampoo’s matrix adaptivity yields sharp guarantees under distribution shift.
1.1 Our Contributions
Finite-time tracking Error Bound. We provide the first finite-horizon tracking guarantees for Shampoo when the population optimizer evolves over time. Our high-probability bound on the average tracking error T1∑t=1T∥θt−θt⋆∥2 separates the contributions of initialization, optimizer drift, momentum-induced drift, stochastic-gradient noise, and matrix-preconditioner perturbations. The main challenge is the coupled, nonpredictable dependence of momentum and the Shampoo preconditioner on stochastic gradients. Our tracking error analysis isolates their respective contributions in the final bound.
Minimax-optimal tracking under squared path variation. We measure nonstationarity through the squared path-variation budget DT:=∑t=1T∥θt+1⋆−θt⋆∥2, which controls the cumulative movement of the optimizer without imposing a pointwise bound on individual changes. Over this class of drifting problems, we establish an asymptotic minimax lower bound for arbitrary causal optimization procedures and show that appropriately tuned Shampoo attains the same rate,
rT⋆≍μ4/3T1/3σ4/3DT1/3,
up to constant factors. Here σ denotes the gradient noise level, and we assume μ-strong monotonicity on the mean-gradient map. The matching lower bound shows that no causal optimization rule can improve the asymptotic dependence on horizon T, and drift budget DT.
Noise–drift and ridge–geometry tradeoffs. Our bound reveals two distinct effects of Shampoo’s memory and ridge parameters. First, noise-dominated regimes support larger β1 through stronger averaging, while drift-dominated regimes favor smaller β1 for faster adaptation to the moving optimizer. Related phenomena have been established for momentum SGD and coordinatewise adaptive methods [18, 19, 23, 24]; our analysis extends this picture to Shampoo, where first-moment memory is coupled with a matrix-valued preconditioner. Second, the ridge parameter ε controls the strength of this matrix adaptation. Larger ε tightens the preconditioner-perturbation bound but simultaneously drives the normalized Shampoo preconditioner toward the identity, weakening matrix geometry adaptation. Smaller ε preserves stronger matrix preconditioning and reduces the effective preconditioned noise energy, but enlarges the perturbation bound. This stability–adaptivity tension is consistent with empirical evidence of stale optimizer states and degraded adaptation under rapid distribution shifts [25, 26], as well as Shampoo studies on damping and stale preconditioners [12, 27, 28].
Projected stationarity beyond strong monotonicity. Without imposing strong monotonicity, we derive a high-probability bound on the average projected stationarity gap for Shampoo along general nonstationary nonconvex objectives. Temporal objective variation, momentum-induced bias, filtered stochastic noise, and distortion from the evolving preconditioner all enter explicitly, showing that the qualitative results identified in the tracking analysis persist in the nonconvex setting.
Numerical validation across structured nonstationary problems. Synthetic experiments on convex and nonconvex problems validate the predicted momentum-noise and ridge-geometry tradeoffs and support the minimax tracking scaling across multiple path-variation regimes. On CLEAR-10 and CORe50, comparisons with SGD, momentum SGD, and Adam demonstrate Shampoo’s stable performance across momentum choices under real-world distribution shifts.
1.2 Related Work
For a matrix parameter W∈Rm×n, full-matrix AdaGrad [10] captures cross-coordinate geometry with an mn×mn preconditioner, incurring O(m2n2) memory and O(m3n3) inverse-root cost. Shampoo [11] exploits the matrix structure of W through m×m and n×n second-moment factors, reducing these costs to O(m2+n2) and O(m3+n3) while preserving matrix-valued geometry. Recent work further clarifies the structure captured by this geometry [29].
A substantial literature has improved the scalability and practical behavior of Shampoo. Distributed implementations use blocking, grafting [30], infrequent inverse-root updates, and parallelization [31, 32], while low-rank, sketching, quantization, and faster inverse-root methods further reduce memory and computation [33–36]. Alternative Kronecker constructions and structured approximations further refine the tradeoff between computational cost and matrix geometry [14, 27]. More recent work improves Shampoo's geometry through Adam-style updates in its spectral basis [13], eigenvalue and eigenbasis corrections [12], and alternative covariance approximations [15]. Adaptive damping and stabilization of infrequently updated preconditioners further address stale second-moment information [28, 37]. Recent extensions combine Shampoo geometry with richer momentum schemes, as in [38], while large-scale benchmarks increasingly evaluate Shampoo-derived methods alongside AdamW, Muon, and other modern optimizers [39]. These advances are substantial, but a significant part of the accompanying theory is predominantly developed under stationarity.
In parallel, a broad literature studies optimization under time-varying objectives, with dynamic-regret and tracking guarantees under variation or path-length constraints [17, 40–42]. More recent work studies how momentum and adaptive moment estimation behave under nonstationarity [18–20, 23], while recent analyses also investigate the convergence of Adam under heavy-tailed stochastic gradients [43]. Exponential second-moment memory can also generate unfavorable effective learning-rate dynamics even in stationary problems [44], underscoring the importance of understanding such memory effects. Adaptive methods under changing comparators have also been studied through dynamic-regret formulations [45].
Despite these advances, a theory linking Shampoo’s matrix geometry to nonstationary tracking remains largely undeveloped. Existing analyses do not jointly quantify the effects of first-moment memory, evolving two-sided preconditioning, and ridge stabilization on the tracking error. Our work fills this gap, revealing how momentum and matrix geometry shape adaptation under drift and stochastic noise, and establishing asymptotic minimax-optimal guarantees.
2 Preliminaries
Throughout the paper, lowercase letters denote scalars and vectors, uppercase letters matrices, and calligraphic letters sets and classes. For x,y∈Rd, ∥x∥ and ⟨x,y⟩ denote the Euclidean norm and inner product. For matrices A,B of the same size, ⟨A,B⟩F:=tr(A⊤B), ∥A∥F:=⟨A,A⟩F, and ∥A∥op denotes the operator norm. For symmetric matrices, A⪰B denotes the Loewner order and A≻0 positive definiteness; λmin(A) and λmax(A) denote the smallest and largest eigenvalues, respectively. Denote [x]+:=max{x,0}, and for x>0, log+x:=max{logx,0}, 1{A} denotes the indicator of an event or condition A. For a real-valued random variable X and 1≤p<∞, ∥X∥Lp:=(E∣X∣p)1/p, with Euclidean and Frobenius norms replacing ∣X∣ for vector- and matrix-valued variables, respectively.
We write EP,PP for expectation and probability under a law P, and Ev for expectation under a law indexed by hypothesis v. For probability laws P,Q, P⊗Q denotes their product law. If A≻0, we write ∥x∥A:=x⊤Ax, ΠΘA(z):=argminy∈Θ21∥y−z∥A2. We use ΠΘ for Euclidean projection and similarly ΠWF for Frobenius projection onto a matrix set. We write vec(W) for columnwise vectorization and ⊗ for the Kronecker product, so that vec(AXB)=(B⊤⊗A)vec(X). We write Id for the d×d identity matrix. For positive sequences am,bm, am=O(bm) means am≤Cbm for some constant C>0, while am≲bm (resp. ≳,≻) denotes the corresponding one-sided (resp. reverse, two-sided) bound up to constants independent of m and the problem parameters. We use oT(1) for any quantity converging to zero as T→∞.
We work on a filtered probability space (Ω,F,(Ft)t≥0,P) and write E[⋅] and P(⋅) for expectation and probability. For a σ-algebra G and α≥1, the conditional Ψα-Orlicz norm of a real-valued random variable X is
For vector and matrix-valued random variables, we apply this definition to Euclidean and Frobenius norms, respectively. Finally, DKL(P∥Q) denotes the Kullback–Leibler divergence between probability laws P and Q.
2.1 Problem Setup
Recall the nonstationary stochastic optimization problem (Opt). Since Matrix–Shampoo acts on matrix-valued parameter blocks, we work with W∈W⊂Rm×n, where W is nonempty, compact, and convex. Let d=mn and define Θ:={vec(W):W∈W}⊂Rd, θ:=vec(W). We further write D:=supW,V∈W∥W−V∥F<∞ for the Frobenius diameter of W. By the isometry of vectorization, Θ has the same diameter.
Now, we discuss the following stochastic predictability framework, adapted from [18, 19].
Assumption 1 (Stochastic predictability framework). There exists a filtered probability space (Ω,F,(Ft)t≥0,P), with F0={∅,Ω}, and an adapted data process (Xt)t≥1 so that Xt is Ft measurable for each t≥1. Let Πt denote the regular conditional law of Xt given Ft−1. Thus Πt is Ft−1-measurable and Πt(A)=P(Xt∈A∣Ft−1) a.s. for every measurable set A. We define the conditional population objective
Gt(W):=E[g(W,Xt)∣Ft−1]=EX∼Πt[g(W,X)],(2)
and let Wt⋆∈argminW∈WGt(W) denote a measurable population minimizer such that θt⋆:=vec(Wt⋆)∈int(Θ) lying in the interior of Θ, where Θ⊂Rd is compact and convex. Next, assume that, for every t≥1,
Predictable minimizer. Wt⋆ is Ft−1-measurable.
Algorithm adaptedness. The iterate Wt is Ft−1-measurable; it is chosen before observing Xt.
Martingale-difference gradient noise. We define the conditional mean gradient map, Ht(W):=E[∇Wg(W,Xt)∣Ft−1], and the observed stochastic gradient
Gt:=∇Wg(Wt,Xt)=Ht(Wt)+Ξt.
Then the associated noise term Ξt is Ft-measurable and satisfies E[Ξt∣Ft−1]=0m×n a.s. for all t.
For later analysis, we use the vectorized quantities θt:=vec(Wt), θt⋆:=vec(Wt⋆), gt:=vec(Gt), ξt:=vec(Ξt), and define ht(vec(W)):=vec(Ht(W)). The stochastic oracle can therefore be written equivalently as in [19],
gt=ht(θt)+ξt,E[ξt∣Ft−1]=0.(3)
The conditional distribution Πt allows the data-generating mechanism to evolve with the observed history, a standard formulation in nonstationary stochastic optimization [4, 18, 19]. It covers settings such as policy optimization and reinforcement learning [46, 47], contextual bandits and online recommendation [48], continual learning [49], and federated learning with time-varying client distributions [50].
Algorithm 1 Matrix–Shampoo
Require: W1∈W, horizon T≥1, effective step size α>0, β1,β2∈[0,1), and ε>0, set η=εα,
1: Initialize M0=0m×n, A0L=0m×m, A0R=0n×n
2: for t=1,…,T do
3: Gt←∇Wg(Wt,Xt)
4: Mt←β1Mt−1+(1−β1)Gt, Mt←1−β1tMt
5: AtL←β2At−1L+(1−β2)GtGt⊤,
AtR←β2At−1R+(1−β2)Gt⊤Gt
6: DtL←1−β2tAtL, Lt←εIm+DtL,
DtR←1−β2tAtR, Rt←εIn+DtR
7: Wt+1←ΠWF(Wt−ηLt−1/4MtRt−1/4)
8: end for
The algorithm specified above is the bias-corrected EMA variant of Matrix–Shampoo [32]. Let β1,β2∈[0,1) denote the first and second-moment parameters, ε,α>0 be the ridge parameter and effective step size respectively. For the analysis, we further define νt:=vec(Mt), Qt(ε):=ε(Rt−1/4⊗Lt−1/4). Since vec(AXB)=(B⊤⊗A)vec(X), the matrix update is equivalently
θt+1=ΠΘ(θt−αQt(ε)νt).(4)
We use Qt and Qt(ε) interchangeably. Since both νt and Qt depend on the current stochastic gradient Gt, they are Ft-measurable.
Our tracking analysis is formulated directly in terms of the conditional mean-gradient map Ht, under the standard Lipschitz-gradient condition commonly used in stochastic optimization [24, 44, 51].
Assumption 2 (Lipschitz continuity). There exist constants 0≤L<∞ such that, almost surely, for every t and all W,V∈W,
∥Ht(W)−Ht(V)∥F≤L∥W−V∥F,(5)
Equivalently, under vectorization, ∥ht(x)−ht(y)∥≤L∥x−y∥. In particular, since W has diameter D, under mild regularity condition, ht(θt⋆)=0, and
W∈Wsup∥Ht(W)∥F=θ∈Θsup∥ht(θ)∥≤LD.(6)
To obtain finite-horizon high-probability guarantees, we impose a conditional light-tail condition on the stochastic gradient noise [4, 18, 19, 52].
Assumption 3 (Conditional Frobenius-norm sub-Gaussian noise). There exists σ>0 such that, for every t,
E[exp(σ2∥Ξt∥F2)Ft−1]≤2a.s.(7)
Equivalently, E[exp(σ2∥ξt∥2)Ft−1]≤2 a.s.
Assumption 3 permits temporally dependent gradient noise while providing the concentration needed for finite-horizon high-probability bounds. If instead only the one-dimensional projections of ξt are assumed to be σ-sub-Gaussian, then E∥ξt∥2≲dσ2. Notably, our tracking guarantees accommodate unbounded stochastic gradients and do not require the uniform bounded-gradient assumption imposed in [53].
3 Main Results
We first establish a finite-horizon bound for tracking the moving population optimizer. In addition to Assumptions 2 and 3, we impose ordinary strong monotonicity directly on the conditional mean-gradient map [18].
Assumption 4 (Strong monotonicity). There exists 0<μ≤L such that, almost surely, for every t,
⟨Ht(W)−Ht(V),W−V⟩F≥μ∥W−V∥F2,(8)
for all W,V∈W. We measure nonstationarity through the squared path variation
without imposing a pointwise restriction on the individual increments. Our analysis does not introduce a predictable proxy preconditioner or impose adaptive strong monotonicity, unlike [19]. We control the dependence between the current stochastic gradient, momentum, and the preconditioner at the level of the accumulated tracking error. This leads naturally to a finite-horizon bound on the average tracking error.
We next establish a high-probability bound on the average tracking error of the iterates {Wt} generated by Algorithm 1. cβ1:=β1/(1−β1), and Aβ1:=1/(1−β1). Assume that, almost surely for every t, λmin(DtL)≥λL, λmin(DtR)≥λR, for some λL, λR≥0, and define
Theorem 1 (High-probability average tracking). Suppose Assumptions 1–4 hold, and suppose that the optimizer path satisfies (9). Fix δ∈(0,1) and let ε>0 as in Algorithm 1. If 0<α<384L2μ(1−β1), the following holds with probability at least 1−δ,
The exact definitions of these terms are in Appendix.
Theorem 1 separates the two principal effects of first-moment memory, controlled by β1, and the evolving matrix preconditioner, controlled through the ridge parameter ε. The initialization term measures sensitivity to the starting point, while the direct drift term captures the difficulty of following a moving optimizer. First-moment memory contributes an additional drift penalty through stale gradient information, while temporal averaging reduces the leading stochastic-noise contribution. The filtered noise term Kβ1,εZT,β1,δ makes its joint dependence on first-moment memory and ridge stabilization explicit. The preconditioner term μ2ε2Gδ quantifies the perturbation relative to identity, induced by the evolving matrix geometry.
The bound in (11) makes the drift–noise tradeoff explicit while retaining its dependence on matrix geometry. The β1-dependent momentum-induced drift term μαTDT1−β1β12 increases with β1, reflecting greater sensitivity to optimizer drift. For fixed β1<1 and δ, the filtered-noise contribution satisfies, as T→∞,
its leading coefficient decreases with β1, even though Kβ1,ε itself increases, reflecting stochastic noise suppression through temporal averaging. Thus, apart from the T−1 momentum-boundary and finite-horizon noise corrections, the leading bound favors longer memory when noise dominates and shorter memory through faster adaptation when optimizer drift dominates.
Theorem 1 exposes the stability–geometry tradeoff induced by ridge regularization. The filtered-noise coefficient Kβ1,ε is nondecreasing in κε, and hence in ε. A smaller ridge preserves stronger matrix preconditioning and can tighten the filtered-noise bound, but enlarges the ε−2 perturbation term. Conversely, a larger ridge reduces this perturbation while driving Qt(ε)→I, progressively removing Shampoo's directional rescaling and making the update approach momentum-SGD at fixed α. These stability concerns accord with empirical reports of adaptive-optimizer instability [25] and degraded adaptation under distribution shifts [21, 22].
To formalize minimax optimality, let MT=MT(μ,L,σ,DT,W) denote the class of all filtered nonstationary stochastic optimization problems satisfying Assumptions 1–4 and (9) For δ∈(0,1), define the high-probability minimax tracking radius
where the outer infimum is taken over all possibly randomized causal optimization procedures A.
Theorem 2 (Asymptotic Minimax optimality under squared path variation). Suppose there exists W0∈W, U∈Rm×n with ∥U∥F=1, and R>0 such that
{W0+zU:∣z∣≤R}⊆W.(13)
For T−1/2≲DT≲T, define J⋆:=(σ2μ2DTT2)1/3, rT⋆:=μ2Tσ2J⋆=μ4/3T1/3σ4/3DT1/3. Then there is a constant c1>0 such that, every possibly randomized causal optimization procedure A satisfies
P∈MTsupPP{T1t=1∑T∥WtA−Wt⋆∥F2≥c1rT⋆}≥21
for all sufficiently large T>T0. The above lower bound combined with (12) implies that, for every δ<1/2, we have ℜT,δ≥c1rT⋆. Conversely, fix δ∈(0,1/2) and βˉ1<1, and suppose 0≤β1≤βˉ1, then there exists tuning choices (α⋆,ε⋆), common to all P∈MT, and a constant c2>0 such that for all T>T0 Matrix–Shampoo satisfies
Consequently, ℜT,δ≍rT⋆. The constants c1,c2 may depend on the fixed problem parameters. If, additionally, T−1/2=o(DT) and DT=o(T), these constants can be chosen independent of all problem parameters, for large enough T, obtaining the minimax optimal rate.
The line-segment condition in (13) follows from the compact convex geometry of W together with the existence of an interior optimizer. Theorem 2 shows that the rate rT⋆=μ4/3T1/3σ4/3DT1/3 is minimax sharp in its joint dependence on the horizon T, drift budget DT, noise level σ, and the strong-monotonicity parameter μ. In particular, larger noise and greater optimizer variation fundamentally increase the difficulty of tracking, whereas stronger curvature improves trackability. Since appropriately tuned Matrix–Shampoo attains the matching upper bound, no causal optimization procedure can improve this worst-case order uniformly over MT, up to universal constants. Under sub-linear variation, the tuning used to certify the worst-case rate has diverging ridge factor, driving Shampoo toward momentum-SGD, consistent with the large-damping behavior [54, 55].
We next characterize burn-in under constant stepsize relative to Rδ (defined in Theorem 3), the persistent contribution to the tracking bound determined by optimizer drift, stochastic noise, first-moment memory, and preconditioner perturbations. Burn-in measures the time required for the initialization and momentum transients to decay to this scale.
Theorem 3 (High-probability burn-in time for Matrix–Shampoo). Suppose Assumptions 1–4 hold, in addition, ∥Wt+1⋆−Wt⋆∥F≤Δ, for each t≥1. Let
0<α≤8L2μ,ρ:=1−163αμ,
and let Rδ denote the high-probability post-transient tracking radius
Both the high-probability burn-in time and tracking radius remain O(1) in T, as does the iterative bound (41) in the Appendix. For comparison, existing adaptive-method guarantees may retain horizon-dependent tracking floors; Adam's high-probability bound holds simultaneously over a finite horizon and contains an O(log2T) contribution [19].
4 Nonconvex projected stationarity
The preceding analysis establishes tracking guarantees under strong monotonicity. We now drop this condition and instead study first-order stationarity for general smooth time-varying objectives. We write Ft(vec(W)):=Gt(W), with ∇Ft=ht, and define the Euclidean projected-gradient mapping
Gα,t(θ):=α1[θ−ΠΘ(θ−α∇Ft(θ))].(14)
This is the natural stationarity measure for the Euclidean-projected Matrix–Shampoo. In particular, Gα,t(θ)=0 if and only if −∇Ft(θ) belongs to the normal cone of Θ at θ. Unlike the tracking analysis, the result below does not involve the optimizer trajectory or require a path-variation budget. However, we impose the standard lower-boundedness condition used in nonconvex stochastic optimization [24, 44, 51].
Assumption 5 (Uniform lower boundedness). There exists a constant F⋆>−∞ such that Ft(θ)≥F⋆ for every t≥1 and every θ∈Θ.
To quantify nonstationarity, define the pathwise objective variation VT:=∑t=1T−1[Ft+1(θt+1)−Ft(θt+1)]+. This quantity measures the cumulative increase in the objective induced by temporal changes in the optimization problem, evaluated along the realized iterates. We now state the high-probability average projected-stationarity guarantee for Matrix-Shampoo.
Theorem 4 (High-probability projected-gradient rate). Suppose Assumptions 1–3, 5 hold. Let θ1,…,θT+1 be generated by the Euclidean-projected Matrix–Shampoo update. If 0<α≤2L1, then, for every T≥1 and every δ∈(0,1), with probability at least 1−δ,
Theorem 4 separates objective variation, momentum memory, filtered noise, and preconditioner perturbations, retaining the explicit β1 and κε dependence hidden by the generic bound ∥Gα,t(θt)∥2≤L2D2. At fixed α, the objective-variation term vanishes when VT=o(T). For fixed β1<1 and δ, the filtered noise contribution,
whereas the memory penalty κεL2D2β12 captures discrepancies between past and current mean gradients. Their opposing dependence on β1 makes the momentum tradeoff explicit. Also, larger ε drives κε toward one, making both the memory and filtered-noise contributions increasing, while reducing Gδ/ε2 and weakening Shampoo's directional rescaling. Thus, the qualitative stability–geometry tradeoff from Theorem 1 persists.
5 Experiments
We perform synthetic nonstationary experiments to examine the main phenomena established in theory. Across experiments, the target evolves over time according to, Wt+1⋆=Wt⋆+Δt∥Ut∥FUt, (Ut)ij∼N(0,1), allowing the effects of drift and stochastic-gradient noise to be varied separately. First, we study the effect of β1 on three nonstationary matrix problems: convex Kronecker quadratic, Huber Regression, and nonconvex phase retrieval.
Figure 1: Momentum drift–noise tradeoff. Results for Kronecker (left), Huber (center), and phase retrieval (right). High-drift/Low-noise regime, (Δ,σ2)=(0.15,10−2) (top), Low-drift/High-noise regime, (Δ,σ2)=(0.003,1) (bottom). Enlarged markers indicate the empirically optimal value of β1 over T=500 iterations. Across all three objectives, the optimal β1 shifts from zero in the drift-dominated regime towards right in the noise-dominated regime, illustrating that short memory facilitates tracking while longer memory suppresses stochastic noise.
We next test the minimax scaling rT∗ predicted by Theorem 2 for appropriately tuned Matrix–Shampoo.
Figure 2: Empirical validation of the minimax tracking rate. Results for the Kronecker (left), Huber (center), and soft-label logistic (right) problems under the path-variation regimes DT≍logT, T1/3, T1/2, and T. Across all three problems, the normalized errors remain overall stable over the horizon, supporting the minimax scaling.
Finally, we examine the stability–geometry tradeoff induced by ε, comparing tracking error and stationarity gaps with the realized preconditioned filtered-noise energy ZTQ(ε):=T−1∑t=1T∥Qt(ε)zt∥2, where zt is the bias-corrected exponential average of gradient noise. This diagnostic captures how the evolving matrix geometry acts on stochastic noise along the optimization, complementing the worst-case coefficient Kβ1,ε, which is nondecreasing in ε.
Figure 3: Ridge stability–geometry tradeoff. Average tracking error for convex and average projected-stationarity gap for non-convex objectives. In high-drift, low-noise regime (top), the realized preconditioned filtered-noise energy is small, so the preconditioner-perturbation term Gδ/ε2 dominates, decreasing tracking error as ε increases. In the other regime, ZTQ(ε) becomes dominant as ε increases, exhibiting the complementary behavior.
5.1 Real-Data Experiments
We use CLEAR-10 and CORe50 to evaluate optimizer adaptation under natural distribution shifts, with ResNet-18 weight blocks providing a practical setting for Shampoo's two-sided matrix preconditioning. CLEAR-10 organizes timestamped YFCC100M imagery from 2004–2014 into chronological buckets that capture the evolution of real-world visual concepts [56, 57]. Sequential training across these buckets produces a nonstationary learning problem with evolving gradient statistics. Using the predefined training and test splits, we trained ResNet-18 end to end with ridge-regularized multiclass cross-entropy and compared SGD, momentum SGD, Adam, and EMA-Shampoo.
CORe50 complements this temporal evolution with distribution shifts across 11 acquisition sessions, characterized by changes in illumination, background, viewpoint, object pose, and occlusion [58]. The same objects recur across sessions, allowing us to examine adaptation to changing visual conditions while keeping the training objects fixed. We
SGD
SGDM ( β1=0.99)
Adam ( β1=0.99)
Shampoo ( β1=0.99)
SGDM ( β1=0.5)
Adam ( β1=0.5)
Shampoo ( β1=0.5)
Figure 4: CNN performance on CLEAR-10 and CORe50. Mean classification error at bucket-end iterations on the training (left) and test (right) splits for SGD and for momentum-SGD, Adam, and Shampoo with β1∈{0.5,0.99}. Shampoo performs consistently across the β1 values, whereas Adam exhibits substantial instability with shorter memory and SGDM deteriorates under longer memory [18].
retained 50 frames per object per session and constructed a custom session-ordered, object-disjoint protocol with 40 training objects and 10 held-out test objects. We trained ResNet-18 end to end using the same optimizers, comparing their behavior as the acquisition conditions evolve.
6 Conclusion
We developed a finite-horizon theory for Matrix–Shampoo in nonstationary stochastic optimization. Our high-probability bounds separate optimizer drift, stochastic noise, first-moment memory, and evolving matrix geometry, making their tracking tradeoffs explicit. Under the stated squared path-variation conditions, we established a matching minimax lower bound and showed that appropriately tuned Matrix–Shampoo attains the optimal tracking rate over all causal optimization procedures.
Beyond strong monotonicity, we obtained high-probability projected-stationarity guarantees for smooth time-varying nonconvex objectives, revealing analogous momentum and ridge effects. Synthetic experiments support the predicted tradeoffs and minimax scaling, while experiments on CLEAR-10 and CORe50 illustrate Shampoo's stability across the tested momentum settings under natural distribution shifts. Future work should incorporate stepsize grafting and derive tracking bounds with explicit dependence on second-moment memory, bringing the theory closer to practical Shampoo implementations.
References
[1] Harold J. Kushner and G. George Yin. Applications: Proofs of Convergence, pages 251–272. Springer New York, New York, NY, 1997. ISBN 978-1-4899-2696-8. doi: 10.1007/978-1-4899-2696-8_9. URL https://doi.org/10.1007/978-1-4899-2696-8\_9.
[3] Elad Hazan. Introduction to online convex optimization. Foundations and Trends in Optimization, 2(3-4):157–325, 08 2016. ISSN 2167-3888. doi: 10.1561/2400000013. URL https://doi.org/10.1561/2400000013.
[4] Joshua Cutler, Dmitriy Drusvyatskiy, and Zaid Harchaoui. Stochastic optimization under time drift: iterate averaging, step-decay schedules, and high probability guarantees. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 11859–11869. Curran Associates, Inc., 2021. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/62e7f2e090fe150ef8deb4466fdc81b3-Paper.pdf.
[5] Subhrajyoty Roy, Abir Sarkar, Abhik Ghosh, and Ayanendranath Basu. Asymptotic breakdown point analysis for a general class of minimum divergence estimators. Bernoulli, 32(1):698–722, 2026.
[6] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980.
[7] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in Neural Information Processing Systems, 33:1877–1901, 2020.
[8] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16×16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
[9] Tianyue Zhang, Lucas Maes, Alan Milligan, Alexia Jolicoeur-Martineau, Ioannis Mitliagkas, Damien Scieur, Simon Lacoste-Julien, and Charles Guille-Escuret. Understanding Adam requires better rotation dependent assumptions. Advances in Neural Information Processing Systems, 38:115111–115152, 2026.
[10] John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12:2121–2159, 2011.
[11] Vineet Gupta, Tomer Koren, and Yoram Singer. Shampoo: Preconditioned stochastic tensor optimization. In Jennifer Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 1842–1850. PMLR, 10–15 Jul 2018. URL https://proceedings.mlr.press/v80/gupta18a.html.
[12] Runa Eschenhagen, Aaron Defazio, Tsung-Hsien Lee, Richard Turner, and Hao-Jun Shi. Purifying shampoo: Investigating shampoo’s heuristics by decomposing its preconditioner. Advances in Neural Information Processing Systems, 38:165183–165217, 2026.
[13] Nikhil Vyas, Depen Morwani, Rosie Zhao, Itai Shapira, David Brandfonbrener, Lucas Janson, and Sham M. Kakade. SOAP: Improving and stabilizing shampoo using Adam for language modeling. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=IDxZhXrpNf.
[14] Shuo Xie, Tianhao Wang, Sashank Reddi, Sanjiv Kumar, and Zhiyuan Li. Structured preconditioners in adaptive optimization: A unified analysis. arXiv preprint arXiv:2503.10537, 2025.
[15] Wu Lin, Scott C Lowe, Felix Dangel, Runa Eschenhagen, Zikun Xu, and Roger B Grosse. Understanding and improving the shampoo optimizer via Kullback-Leibler minimization. arXiv e-prints, pages arXiv–2509, 2025.
[16] Huan Li, Yiming Dong, and Zhouchen Lin. Convergence rate analysis of the Adam-style shampoo: Unifying one-sided and two-sided preconditioning. arXiv preprint arXiv:2601.07326, 2026.
[17] Joshua Cutler, Dmitriy Drusvyatskiy, and Zaid Harchaoui. Stochastic optimization under distributional drift. Journal of Machine Learning Research, 24(147):1–56, 2023. URL http://jmlr.org/papers/v24/21-1410.html.
[18] Sharan Sahu, Cameron J Hogan, and Martin T Wells. On the provable suboptimality of momentum sgd in nonstationary stochastic optimization. arXiv preprint arXiv:2601.12238, 2026.
[19] Sharan Sahu, Abir Sarkar, Cameron J Hogan, and Martin T Wells. Adapt or forget: Provable tradeoffs between Adam and sgd in nonstationary optimization. arXiv preprint arXiv:2605.04269, 2026.
[20] Enrico Bernardi, Alberto Lanconelli, and Christopher SA Lauria. On the performance of stochastic gradient methods with momentum in time-varying regimes. Applied Mathematics & Optimization, 94(3):72, 2026.
[21] Clare Lyle, Zeyu Zheng, Evgenii Nikishin, Bernardo Avila Pires, Razvan Pascanu, and Will Dabney. Understanding plasticity in neural networks. In International Conference on Machine Learning, pages 23190–23211. PMLR, 2023.
[22] Hojoon Lee, Hyeonseo Cho, Hyunseung Kim, Donghu Kim, Dugki Min, Jaegul Choo, and Clare Lyle. Slow and steady wins the race: Maintaining plasticity with hare and tortoise networks. arXiv preprint arXiv:2406.02596, 2024.
[23] Xin Zheng, Yifei Jin, and Lei Guo. Analysis of Adam algorithms for stochastic dynamic systems. arXiv preprint arXiv:2606.28879, 2026.
[24] Alexandre Défossez, Léon Bottou, Francis Bach, and Nicolas Usunier. A simple convergence proof of Adam and Adagrad. Transactions on Machine Learning Research, 2022.
[25] Zhiwei Bai, Zhangchen Zhou, Jiajie Zhao, Xiaolong Li, Zhiyu Li, Feiyu Xiong, Hongkang Yang, Yaoyu Zhang, and Zhi-Qin John Xu. Adaptive preconditioners trigger loss spikes in Adam. arXiv preprint arXiv:2506.04805, 2025.
[26] Florin Gogianu, Lutu Adrian-Cătălin, and Razvan Pascanu. Revisiting Adam for streaming reinforcement learning. Reinforcement Learning Journal, 7, 2026.
[27] Jonathan Mei, Alexander Moreno, and Luke Walters. Kradagrad: Kronecker approximation-domination gradient preconditioned stochastic optimization. In Uncertainty in Artificial Intelligence, pages 1412–1422. PMLR, 2023.
[28] Kyunghun Nam and Sumyeong Ahn. Foam: Frequency and operator error-based adaptive damping method for reducing staleness-oriented error for shampoo. arXiv preprint arXiv:2606.02365, 2026.
[29] Depen Morwani, Itai Shapira, Nikhil Vyas, Eran Malach, Sham Kakade, and Lucas Janson. A new perspective on shampoo’s preconditioner. In International Conference on Learning Representations, volume 2025, pages 5802–5822, 2025.
[30] Naman Agarwal, Rohan Anil, Elad Hazan, Tomer Koren, and Cyril Zhang. Disentangling adaptive gradient methods from learning rates. arXiv preprint arXiv:2002.11803, 2020.
[31] Rohan Anil, Vineet Gupta, Tomer Koren, Kevin Regan, and Yoram Singer. Scalable second order optimization for deep learning. arXiv preprint arXiv:2002.09018, 2020.
[32] Hao-Jun Michael Shi, Tsung-Hsien Lee, Shintaro Iwasaki, Jose Gallego-Posada, Zhijing Li, Kaushik Rangadurai, Dheevatsa Mudigere, and Michael Rabbat. A distributed data-parallel pytorch implementation of the distributed shampoo optimizer for training neural networks at-scale. arXiv preprint arXiv:2309.06497, 2023.
[33] Naman Agarwal, Brian Bullins, Xinyi Chen, Elad Hazan, Karan Singh, Cyril Zhang, and Yi Zhang. Efficient full-matrix adaptive regularization. In International Conference on Machine Learning, pages 102–110. PMLR, 2019.
[34] Vladimir Feinberg, Xinyi Chen, Y Jennifer Sun, Rohan Anil, and Elad Hazan. Sketchy: Memory-efficient adaptive regularization with frequent directions. Advances in Neural Information Processing Systems, 36:75911–75924, 2023.
[35] Sike Wang, Jia Li, Pan Zhou, and Hua Huang. 4-bit shampoo for memory-efficient network training. corr, abs/2405.18144, 2024. doi: 10.48550. arXiv preprint ARXIV.2405.18144.
[36] Ionut-Vlad Modoranu, Philip Zmushko, Erik Schultheis, Mher Safaryan, and Dan Alistarh. Dash: Faster shampoo via batched block preconditioning and efficient inverse-root solvers. arXiv preprint arXiv:2602.02016, 2026.
[37] Kevin Frans, Sergey Levine, and Pieter Abbeel. A stable whitening optimizer for efficient neural network training. Advances in Neural Information Processing Systems, 38:174086–174110, 2026.
[38] Huizhuo Yuan, Yifeng Liu, Shuang Wu, Xun Zhou, and Quanquan Gu. Mars: Unleashing the power of variance reduction for training large models, 2025. URL https://arxiv.org/abs/2411.10438.
[39] Andrei Semenov, Matteo Pagliardini, and Martin Jaggi. Benchmarking optimizers for large language model pretraining, 2025. URL https://arxiv.org/abs/2509.01440.
[41] Tianbao Yang, Lijun Zhang, Rong Jin, and Jinfeng Yi. Tracking slowly moving clairvoyant: Optimal dynamic regret of online learning with true and noisy gradient. In International Conference on Machine Learning, pages 449–457. PMLR, 2016.
[42] Yan-Feng Xie, Yu-Jie Zhang, Peng Zhao, and Zhi-Hua Zhou. Dynamic regret via discounted-to-dynamic reduction with applications to curved losses and Adam optimizer. arXiv preprint arXiv:2602.08372, 2026.
[43] Yijiang Pang. The convergence behavior of Adam under heavy-tailed noise. arXiv preprint arXiv:2607.27383, 2026.
[44] Sashank J. Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of Adam and beyond. In 6th International Conference on Learning Representations (ICLR), 2018.
[45] Parvin Nazari and Esmaile Khorram. Dynamic regret of adaptive gradient methods for strongly convex problems. Optimization, 73(3):517–543, 2024.
[46] Sham Kakade and John Langford. Approximately optimal approximate reinforcement learning. In Proceedings of the Nineteenth International Conference on Machine Learning, pages 267–274, 2002.
[47] John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pages 1889–1897. PMLR, 2015.
[48] Lihong Li, Wei Chu, John Langford, and Robert E Schapire. A contextual-bandit approach to personalized news article recommendation. In Proceedings of the 19th International Conference on World Wide Web, pages 661–670, 2010.
[49] German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019.
[50] Peter Kairouz and H Brendan McMahan. Advances and open problems in federated learning. Foundations and Trends in Machine Learning, 14(1-2):1–210, 2021.
[51] Haochuan Li, Alexander Rakhlin, and Ali Jadbabaie. Convergence of Adam under relaxed assumptions. Advances in Neural Information Processing Systems, 36:52166–52196, 2023.
[52] Nicholas J. A. Harvey, Christopher Liaw, Yaniv Plan, and Sikander Randhawa. Tight analyses for non-smooth stochastic gradient descent. In Alina Beygelzimer and Daniel Hsu, editors, Proceedings of the Thirty-Second Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pages 1579–1613. PMLR, 25–28 Jun 2019. URL https://proceedings.mlr.press/v99/harvey19a.html.
[53] A Defazio and S Jelassi. Adaptivity without compromise: A momentumized, adaptive, dual averaged gradient method for stochastic optimization. arXiv 2021. arXiv preprint arXiv:2101.11075.
[54] Pedro Savarese, David McAllester, Sudarshan Babu, and Michael Maire. Domain-independent dominance of adaptive methods. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 16281–16290. IEEE, 2021.
[55] Gustavo Silva and Paul Rodriguez. Fine-tuning adaptive stochastic optimizers: Determining the optimal hyperparameter ϵ via gradient magnitude histogram analysis, 2024. URL https://arxiv.org/abs/2311.11532.
[56] Zhiqiu Lin, Jia Shi, Deepak Pathak, and Deva Ramanan. The clear benchmark: Continual learning on real-world imagery. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2021.
[57] Bart Thomee, David A. Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. Yfcc100m: the new data in multimedia research. Commun. ACM, 59(2):64–73, January 2016. ISSN 0001-0782. doi: 10.1145/2812802. URL https://doi.org/10.1145/2812802.
[58] Vincenzo Lomonaco and Davide Maltoni. Core50: a new dataset and benchmark for continuous object recognition. In Sergey Levine, Vincent Vanhoucke, and Ken Goldberg, editors, Proceedings of the 1st Annual Conference on Robot Learning, volume 78 of Proceedings of Machine Learning Research, pages 17–26. PMLR, 13–15 Nov 2017. URL https://proceedings.mlr.press/v78/lomonaco17a.html.
A Appendix
We shall repeatedly use the following notation in the proofs. Throughout the proofs, we will write β:=β1∈[0,1) and define
Proof. Conditional Jensen and Assumption 3 give exp(σ2E[∥ξt∥2∣Ft−1∣)≤E[e∥ξt∥2/σ2∣Ft−1]≤2. Taking logarithms proves the conditional second moment bound. Conditional Markov inequality gives P(∥ξt∥2>σ2u∣Ft−1)≤e−uE[e∥ξt∥2/σ2∣Ft−1]≤2e−u, which proves (i).
Using the layer-cake identity, ∣⟨v,ξt⟩∣≤∥v∥∥ξt∥, and (i) imply, for every integer p≥1,
for a universal C (the assertion is trivial for v=0). Put X:=⟨v,ξt⟩ and z:=C∣λ∣σ∥v∥. Conditional centering removes the linear term from the exponential series, and hence
The second inequality is due to Stirling’s lower bound p!≥(p/e)p which makes the pth summand at most (ez/p)p. For 0≤z≤(2e)−1, we get 1+∑p=2∞(zp)p/p!≤1+∑p=2∞(ez)p≤e2e2z2. For z>(2e)−1, split at N:=⌈4e2z2⌉.
For p>N the summand is at most 2−p, while the first N=O(z2) terms are together at most eC1z2. The same conditional inequality holds pointwise for a predictable vt. Hence
exp{λt=1∑k⟨vt,ξt⟩−C0λ2σ2t=1∑k∥vt∥2},0≤k≤T,
is a nonnegative supermartingale with initial value one. Markov's inequality at k=T, applied to λ and −λ, gives with probability at least 1−δ,
t=1∑T⟨vt,ξt⟩≤C0λσ2t=1∑T∥vt∥2+λ1logδ2.
Choose λ=a/(C0σ2) and absorb universal numerical factors into C0.
Lemma 2 (High-probability sixth-moment average). Let ℓδ:=logδ4. There is a universal numerical constant C6≥1 such that, with probability at least 1−δ/4, T1∑t=1T∥gt∥6≤Gδ:=C6{(LD)6+σ6ℓδ3}.
Proof. Fix q≥1. By Lemma 1(i), the layer-cake identity gives, conditionally on Ft−1,
The standard Gamma-function bound (qΓ(q/2))1/q≤Cq therefore implies (E∥ξt∥q)1/q≤Cσq. The deterministic mean-field bound (6) and Minkowski's inequality yield (E∥gt∥q)1/q≤LD+Cσq. Now let p:=ℓδ>1. Taking q=6p, using (a+b)6≤32(a6+b6), and then using Minkowski in Lp gives
If Y:=T−1∑t∥gt∥6, Markov's inequality applied to Yp gives P{Y>e∥Y∥Lp}≤e−p=δ/4. Absorbing the numerical factor e into C6 proves the claim.
For the later burn-in result, we retain a uniform-in-time event. Define HT,δ:=LD+σlog(8T/δ) Lemma 1(i), a union bound, and (6) show that
t≤Tmax∥gt∥=t≤Tmax∥Gt∥F≤HT,δ(22)
with probability at least 1−δ/4.
Lemma 3 (Uniform Shampoo control for later one-step arguments). For every realization and every t≤T,
0≺Qt⪯Id.(23)
On the event (22),
∥Id−Qt∥op≤2εHT,δ2(1≤t≤T).(24)
Proof. The bias-corrected second-moment factors satisfy DtL=∑s=1tqt,s(2)GsGs⊤ and DtR=∑s=1tqt,s(2)Gs⊤Gs where the coefficients qt,s(2):=1−β2t(1−β2)β2t−s are nonnegative and sum to one. Hence, DtL,DtR⪰0. Since ε>0, every eigenvalue of Qt=(In+εDtR)−1/4⊗(Im+εDtL)−1/4 lies in (0,1], proving 0≺Qt⪯Id.
On (22), for every matrix G, GG⊤⪯∥G∥F2I and G⊤G⪯∥G∥F2I, so 0⪯DtL⪯HT,δIm and 0⪯DtR⪯HT,δIn. Thus every eigenvalue of Qt is at least (1+HT,δ/ε)−1/2. Therefore
∥Id−Qt∥op≤1−(1+εHT,δ2)−1/2≤2εHT,δ2.
15
□
Lemma 4 (Ridge control of the Shampoo geometry). Suppose that, for every t, λmin(DtL)≥λL, λmin(DtR)≥λR, for some λL,λR≥0 where DtL,DtR are explained in Algorithm 1. Then, for every z∈Rmn,
∥Qt(ε)z∥2≤(ε+λR)(ε+λL)ε∥z∥2=κε∥z∥2.
Proof. For each t, let DtL:=UtΛtLUt⊤ and DtR:=VtΛtRVt⊤ where ΛtL=diag(λ1,tL,…,λm,tL) and ΛtR=diag(λ1,tR,…,λn,tR). The vectors {vj,t⊗ui,t:1≤i≤m,1≤j≤n} form an orthonormal basis of Rmn. In this basis, the eigenvalues of Qt(ε) are
Lemma 5 (Uniform ℓ2 Hardy bound for bias-corrected EMA). For every finite Hilbert-space-valued sequence x1,…,xT,
t=1∑Ts=1∑twt,sxs2≤6s=1∑T∥xs∥2.(25)
Proof. For β=0, the averaging operator is the identity. Suppose 0<β<1, and put q:=β−1, λs:=qs−1, and Λt:=∑j=1tλj. Then, wt,s=Λtλs1{s≤t}. Choose the Schur weights ps:=Λs−1/2. Since λs=Λs−Λs−1 and Λ0=0, the row sums telescope:
To complete the argument, we use Schur's test. Suppose that Kt,s≥0 and that positive weights ps satisfy ∑sKt,sps≤Rpt, ∑tKt,spt≤Cps. For each fixed t, insert the weights ps and apply Cauchy–Schwarz:
Taking square roots shows that ∥Kx∥ℓ2≤RC∥x∥ℓ2, which is precisely the asserted operator-norm bound.
Apply this result with Kt,s=wt,s for s≤t and Kt,s=0 otherwise. The established row and column bounds give R=2 and C=3, respectively, so RC=6. Finally, for Hilbert-space-valued xs, nonnegativity of the weights and the triangle inequality give ∥∑sKt,sxs∥≤∑sKt,s∥xs∥. Applying the scalar bound above to the sequence (∥xs∥)s=1 therefore yields ∑t=1T∑s=1twt,sxs2≤6∑s=1T∥xs∥2, as required.
Corollary 1 (Uniform ℓ3 bound for bias-corrected EMA). For ρ∈[0,1), define the scalar bias-corrected EMA operator
(Kρx)t:=s=1∑t1−ρt(1−ρ)ρt−sxs,1≤t≤T.(27)
Then ∑t=1T∣(Kρx)t∣3≤6∑t=1T∣xt∣3. The constant is uniform over T and ρ∈[0,1).
Proof. For a finite sequence x=(x1,…,xT), write ∥x∥ℓp:=(∑t=1T∣xt∣p)1/p∥x∥ℓ∞:=maxt≤T∣xt∣. The induced operator norm is ∥K∥ℓp→ℓp:=supx=0∥Kx∥ℓp/∥x∥ℓp. Applying Lemma 5 with EMA parameter β=ρ gives ∑t=1T∣(Kρx)t∣2≤6∑t=1T∣xt∣2. Taking square roots shows that ∥Kρx∥ℓ2≤6∥x∥ℓ2 for every x, and hence ∥Kρ∥ℓ2→ℓ2≤6. Next, the weights defining Kρ in (27) are nonnegative and sum to one in each row. Therefore,
∣(Kρx)t∣≤s=1∑t1−ρt(1−ρ)ρt−s∣xs∣≤∥x∥ℓ∞.
Taking the maximum over t gives ∥Kρ∥ℓ∞→ℓ∞≤1. Riesz–Thorin interpolation combines these two operator bounds. The interpolation parameter ϑ corresponding to ℓ3 satisfies ϑ=1/3. Consequently, ∥Kρ∥ℓ3→ℓ3≤∥Kρ∥ℓ2→ℓ22/3∥Kρ∥ℓ∞→ℓ∞1/3≤(6)2/3=61/3. Thus, for every x, ∑t=1T∣(Kρx)t∣3=∥Kρx∥ℓ33≤6∥x∥ℓ33=6∑t=1T∣xt∣3.
Lemma 6 (Accumulated Shampoo perturbation). Define PT:=∑t=1T∥(Id−Qt)νt∥2, where νt is as defined in (17). Then, PT≤2ε23∑t=1T∥gt∥6. Consequently, on the event in Lemma 2, TPT≤2ε23Gδ.
Proof. Set Xs:=∥gs∥2 and define the two scalar EMA sequences Ut:=∑s=1tqt,s(2)Xs and Vt:=∑s=1twt,sXs. Because DtL=∑s=1tqt,s(2)GsGs⊤, DtR=∑s=1tqt,s(2)Gs⊤Gs, and GG⊤⪯∥G∥F2I, G⊤G⪯∥G∥F2I, we have pathwise 0⪯DtL⪯UtIm, 0⪯DtR⪯UtIn. Each normalized factor in Qt has eigenvalues in [(1+Ut/ε)−1/4,1]. Since the eigenvalues of a Kronecker product are pairwise products of the factor eigenvalues, (1+Ut/ε)−1/2≤λmin(Qt)≤λmax(Qt)≤1. Thus, Id−Qt⪰0, and its eigenvalues are 1−λt(Qt). Its operator norm therefore equals its largest eigenvalue, so that
Using 1−(1+x)−1/2≤x/2 for x≥0 gives ∥Id−Qt∥op≤Ut/(2ε). Next, Jensen's inequality gives the squared norm momentum bound. We should note that, ∥νt∥2=∑s=1twt,sgs2≤∑s=1twt,s∥gs∥2=Vt Combining these two, and Corollary 1,
Lemma 7 (Momentum energy with a β-free signal constant). Define the cumulative squared momentum, tracking error, and filtered-noise energies, respectively, by
where νt, et, and zt are defined in (17), (16), and (19), respectively. If each ht is L-Lipschitz and satisfies ht(θt⋆)=0, then, pathwise, NT≤12L2ET+2ZT.
Proof. Since νt=ut+zt, the inequality ∥x+y∥2≤2∥x∥2+2∥y∥2 gives NT=∑t=1T∥ut+zt∥2≤2∑t=1T∥ut∥2+2ZT. For each realization, apply Lemma 5 to the vector sequence xs=hs(θs). This yields
The root property and Lipschitz continuity imply, for every s, ∥hs(θs)∥=∥hs(θs)−hs(θs⋆)∥≤L∥θs−θs⋆∥=L∥es∥. Squaring and summing therefore gives ∑t=1T∥ut∥2≤6L2ET. Substituting into the first inequality proves
NT≤2(6L2ET)+2ZT=12L2ET+2ZT.
Lemma 8 (High-probability filtered-noise energy). Let ΨT,β:=T(1−β2)1∑t=1Tbt2, where bt is defined in (17). For every δ∈(0,1), with probability at least 1−δ,
Because 0≤at≤β and 0<bt2≤1, conditional Jensen applied to the concave map x↦xbt2 yields E[exp(σ2bt2∥ξt∥2)Ft−1]≤(E[e∥ξt∥2/σ2∣Ft−1])bt2≤2bt2 Iterating conditional expectations and applying Markov's inequality shows that, with probability at least 1−δ/2,
t=1∑Tbt2∥ξt∥2≤σ2{(log2)t=1∑Tbt2+logδ2}.(30)
Suppose first that β>0. The vector 2atbtzt−1 is Ft−1-measurable. Moreover, ∑t=1T∥2atbtzt−1∥2≤4β2ZT. Apply Lemma 1(ii) with tuning parameter (1−β2)/(8β2) and failure probability δ/2. Then
Division by T proves the result. If β=0, then zt=ξt and the cross term vanishes; the stated bound follows directly from (30) after a factor-two relaxation.
Lemma 9 (High-probability summation-by-parts boundary). Define BT:=∑t=1T−1βt∥νt∥+dT∥νT∥ and Bδ:=CB{LD+σℓδ}. There is a universal numerical constant CB>0 such that, with probability at least 1−δ/4, BT≤cβBδ. For β=0, both sides are zero.
Proof. If β=0, then dt=0 and BT=0 identically, so the claim is immediate. Assume henceforth that β>0, and let p:=ℓδ=log(4/δ)>1. Taking expectations in (21) gives (E∥ξs∥p)1/p≤Cσp. Since gs=hs(θs)+ξs and ∥hs(θs)∥≤LD by (6), Minkowski's inequality yields
∥∥gs∥∥Lp≤∥∥hs(θs)∥∥Lp+∥∥ξs∥∥Lp≤LD+Cσp.
This bound is uniform in s. Next, by (17), νt=∑s=1twt,sgs, where the weights are deterministic, nonnegative, and sum to one. The triangle inequality followed by Minkowski's inequality therefore gives
where the last step uses ∑t=1T−1βt≤cβ and dT≤cβ.
If ∥BT∥Lp=0, the conclusion is immediate. Otherwise, Markov's inequality applied to the nonnegative random variable BTp gives P{BT>e∥BT∥Lp}≤ep∥BT∥LppE[BTp]=e−p=4δ. Consequently, with probability at least 1−δ/4,
BT≤2ecβ(LD+Cσℓδ)≤cβBδ,
where the final inequality follows by choosing the universal constant CB sufficiently large.
Lemma 10 (Refined accumulated momentum pairing under total squared path variation). Suppose (9) holds. Then, pathwise,
Since θt∈Θ and projection is nonexpansive, ∥θt+1−θt∥≤α∥Qtνt∥≤ακε∥νt∥, where the last inequality uses Lemma 4. Also, et+1−et=(θt+1−θt)+(θt⋆−θt+1⋆), so ∥et+1−et∥≤ακε∥νt∥+Δt. We write Δt:=∥θt+1⋆−θt⋆∥. Using dt+1≤cβ gives
Proof. Let st:=θt⋆−θt+1⋆, define Δt:=∥st∥. Since θt⋆∈Θ and the projection is nonexpansive, ∥θt+1−θt⋆∥2≤∥et−αQtνt∥2. Also et+1=(θt+1−θt⋆)+st. The inequality ∥x+y∥2≤(1+γ)∥x∥2+(1+γ−1)∥y∥2 gives
By Lemma 4, ∥Qtνt∥2≤κε∥νt∥2. Summing and using (1+γ)∑t=1T∥et∥2−∑t=1T∥et+1∥2≤2∥e1∥2+γET together with 1+γ−1=1+μα8≤μα9 proves the claim.
Proof of Theorem 1. We work on the intersection of four events controlling the random terms that appear in the tracking argument:
(i) The energy of the noise retained by the momentum filter is controlled: TZT≤ZT,β,δ/4≲ZT,β,δ. This follows from Lemma 8, applied with failure probability δ/4.
(ii) The accumulated pairing between the tracking error and the current noise is controlled: ∑t=1T⟨et,ξt⟩≤16μET+μ16C0σ2logδ8. Since et is Ft−1-measurable, this follows from Lemma 1(ii), with vt=et, a=μ/16, and failure probability δ/4.
(iii) The sixth-moment average of the observed gradients is controlled: T1∑t=1T∥gt∥6≤Gδ. Lemma 2 guarantees this event with failure probability at most δ/4. Through Lemma 6, it also controls the Shampoo perturbation.
(iv) The momentum boundary term arising from summation by parts is controlled: BT≤cβBδ. Lemma 9 guarantees this event with failure probability at most δ/4.
By the union bound, their intersection has probability at least 1−δ. All subsequent inequalities are considered on this intersection. Moreover, bound of α and μ≤L imply μα<μ2/(384L2)≤1/384<1, so the hypothesis μα≤1 of Lemma 11 is satisfied. Insert (32) into (35). Since γ=μα/8, 2α(1+γ)87μET−γET=μα{47(1+γ)−81}ET≥23μαET. Using 1+γ≤2 and Aβ≥1 for the remaining terms gives
where Kβ,ε:=4cβκε+2Aβ+2κε. Lemma 7 gives NT≤12L2ET+2ZT, so α2Kβ,εNT≤12α2Kβ,εL2ET+2α2Kβ,εZT. Because Aβ=(1−β)−1 and κε≤1, 12α2Kβ,εL2≤96α1−βαL2<41μα. On event (ii), Lemma 1(ii) gives ∑t=1T⟨et,ξt⟩≤16μET+μ16C0σ2logδ8. Using these, we obtain
Substituting cβ and Aβ prove the average tracking error bound.
A.2 Proof of Theorem 2
Corollary 2 (Stepsize optimization with an arbitrary finite ridge). Under the assumptions of Theorem 1, fix a deterministic ε>0 and let Kβ,ε be the deterministic coefficient in the refined tracking bound. Let
Because A1+A2>0, Φε′(α)→−∞ as α↓0, while Φε′(α)→A3(ε)>0 as α→∞. Hence Φε has a unique minimizer. For the rate of the minimizer, set x:=A1/A3(ε), y:=(2A2/A3(ε))1/3, and m:=max{x,y}. The cubic becomes αˉ⋆(ε)3=x2αˉ⋆(ε)+y3. If αˉ⋆(ε)<x, then αˉ⋆(ε)3<x2αˉ⋆(ε), a contradiction; similarly αˉ⋆(ε)≥y. Thus αˉ⋆(ε)≥m. At α=2m, x2(2m)+y3≤2m3+m3<(2m)3. Uniqueness of the positive root therefore gives m≤αˉ⋆(ε)≤2m. Substituting the definitions of A1, A2, A3(ε) proves (37). Since Φε(α) dominates both A1/α+A3(ε)α and A2/α2+A3(ε)α, we conclude
for a universal c>0. Conversely, at α=m, A1/m=A3(ε)x2/m≤A3(ε)m and A2/m2=A3(ε)y3/(2m2)≤A3(ε)m/2. Since
A3(ε)m=max{A1A3(ε),21/3A21/3A3(ε)2/3},
this gives Φε(m)≤C{A1A3(ε)+A21/3A3(ε)2/3}. Therefore,
α>0infΦε(α)≍A1A3(ε)+A21/3A3(ε)2/3.(38)
Using u+v≤u+v, A1A3(ε) yields the first two terms in (36), while A21/3A3(ε)2/3 yields the third. Adding the α-independent terms from Theorem 1 proves the result.
Remark 1 (Feasibility of the optimized stepsize). As in Theorem 2, suppose 0≤β≤βˉ<1. Since 0<κε≤1, 1−β2≤Kβ,ε≤1−β4+2β≤1−β6. If T−1/2≲DT=o(T), then (37) and ZT,β,δ≍1+β1−βσ2 imply, uniformly in ε>0,
for fixed problem parameters and confidence level. Hence αˉ⋆(ε)<αmax(β) holds automatically for all sufficiently large T, including for a deterministic ridge sequence ε=εT. When DT=Θ(T), feasibility depends on the proportionality constant and the problem parameters; the exact condition αˉ⋆(ε)<αmax(β)=μ(1−β)/(384L2) is imposed.
Lemma 12 (Discrete triangular functions). Let B={ℓ,ℓ+1,…,r} be a consecutive block of length n=r−ℓ+1≥8. There is a function ϕB:B→[0,1] such that
Proof. Let q=⌊(n−1)/2⌋ and define ϕB(t):=min{t−ℓ,r−t}/q. The numerator is zero at both endpoints and lies between 0 and q, so ϕB(ℓ)=ϕB(r)=0 and ϕB(t)∈[0,1].
The numerator changes by at most one between consecutive points. Since q≥(n−2)/2 and n≥8, we get ∣ϕB(t+1)−ϕB(t)∣≤q1≤n−22≤n3. There are n−1 such increments, and hence
t=ℓ∑r−1{ϕB(t+1)−ϕB(t)}2≤(n−1)n29≤n9.
On the two sides of the triangle, each level k/q, for k=0,…,q−1, occurs at the distinct points t=ℓ+k and t=r−k. Therefore,
The last three inequalities use q≥3, q≥(n−2)/2, and n≥8, respectively. This is stronger than the required lower bound n/32.
For v,w∈{−1,+1}J, we define their Hamming distance by dH(v,w):=∑j=1J1{vj=wj}.
Lemma 13 (Binary packing). There are universal constants cV,cH>0 such that, for every sufficiently large J, a subset U⊂{−1,+1}J exists with log∣U∣≥cVJ and dH(v,w)≥cHJ for v=w.
Proof. Let m:=⌊J/4⌋. Starting with the entire Hamming cube, repeatedly choose a remaining point and delete all remaining points within Hamming distance m of it. Continue until no points remain, and denote the selected set by U. Each newly selected point lies outside the balls deleted earlier. Thus distinct v,w∈U satisfy dH(v,w)≥m+1>J/4≥J/8.
A Hamming ball of radius m contains VJ:=∑k=0m(kJ) points, since exactly k coordinates can be changed in (kJ) ways. To bound this sum, take a:=1/3. For k≤m≤J/4, we have ak≥aJ/4, so the binomial theorem gives
VJ≤a−J/4k=0∑J(kJ)ak=a−J/4(1+a)J=exp{Jh(1/4)},
where h(p):=−plogp−(1−p)log(1−p). Each selection deletes at most VJ points, and all 2J points have been deleted when the construction terminates. Consequently, ∣U∣VJ≥2J, that implies, log∣U∣≥J{log2−h(1/4)}. Since h(1/4)<log2, the claimed bounds hold with smaller universal positive constants cH,cV.
Proof of Theorem 2. Proof of Minimax lower bound Step 1: admissible paths. Choose W∘∈int(W) and set W0:=(W0+W∘)/2. By convexity,
W0+zU=21W∘+21(W0+2zU)∈int(W),∣z∣≤R/2.
Thus we have an interior segment on which to construct the paths. For sufficiently large T, set J:=⌊min{J⋆,T/16}⌋. Since DT≳T−1/2 and the problem parameters are fixed, J→∞. Hence J is large enough for Lemma 13, and 8≤J≤T/16. Partition {1,…,T} into J consecutive blocks B1,…,BJ whose lengths differ by at most one. With h:=⌊T/J⌋, each block has length h or h+1, and h≥T/(2J)≥8. Let ϕj be the triangular function on Bj from Lemma 12, and let U be the packing from Lemma 13.
For notational ease, we extend WT+1⋆,v:=W0. Because a≤R/4, every optimizer lies in the interior segment above. Each block starts and ends at W0, so there is no movement between blocks and W1⋆,v=W0. Lemma 12 therefore gives
where we used J≤J⋆ and J⋆3=μ2DTT2/σ2. Finally, DT≲T bounds both J⋆/T and rT⋆. Consequently, the caps above give J≳J⋆ and a2≳rT⋆, with implicit constants depending on the fixed problem parameters and the constant in DT≲T.
Step 2: separation. If vj=wj, then ∑t∈Bj∥Wt⋆,v−Wt⋆,w∥F2=4a2∑t∈Bjϕj(t)2≥8a2h. Using Lemma 13 and hJ≥T/2, there is a universal c2>0 such that, for distinct v,w∈U, T1∑t=1T∥Wt⋆,v−Wt⋆,w∥F2≥c2a2.
Step 3: an admissible sample-loss experiment. Fix v∈U. Let ζ1,…,ζT∼iidN(0,σ2/4), independently of the algorithm's private randomization, and define Xtv:=Wt⋆,v−μζtU, g(W,X):=2μ∥W−X∥F2−8μσ2. The population objective induced by this sample loss is
where the cross term vanishes because Eζt=0, ∥U∥F=1, and Eζt2=σ2/4. The constant in g makes this equality exact; it does not affect the sample gradient. At the algorithm's query Wt, the sample gradient is Gt:=∇Wg(Wt,Xtv)=μ(Wt−Wt⋆,v)+ζtU=Htv(Wt)+Ξt, where Htv(W):=μ(W−Wt⋆,v), Ξt:=ζtU. The map Htv has root Wt⋆,v, is μ-strongly monotone and μ-Lipschitz, and therefore is L-Lipschitz because μ≤L. The roots and mean maps are deterministic under the fixed experiment v, hence predictable. The fresh Gaussian draws give
Step 1 verifies the common initial root, feasibility, and squared path-variation budget. Thus the complete sample-loss experiment belongs to MT.
Let S denote the algorithm's private random seed, independent of v and the samples. Given S and X1:Tv, one can reproduce any causal algorithm's trajectory recursively: start from its prescribed W1, compute Gt=∇Wg(Wt,Xtv)=μ(Wt−Xtv), and use the algorithm's rule to obtain its next query from S and G1:t. Thus every output of the algorithm is a function of (S,X1:Tv). Since S is independent of v, a lower bound for estimators given the entire sequence X1:Tv also applies to every causal algorithm.
Step 4: Kullback–Leibler divergence. Let Pv be the law of X1:Tv. All differences between the mean paths lie in the direction U. In particular, for t∈Bj, the scalar coordinate ⟨Xtv−W0,U⟩F=avjϕj(t)−μζt is Gaussian with variance σ2/(4μ2); the components orthogonal to U are the same under every v. Independence over time and the Gaussian relative-entropy formula give
Since ∣vj−wj∣≤2, 0≤ϕj(t)≤1, and ∥U∥F=1, each squared distance in the sum is at most 4a2. The packing satisfies log∣U∣≥cVJ. Choosing ca≤min{1/18,cV/128}, consistently with Step 1, yields maxv,w∈UDKL(Pv∥Pw)≤161log∣U∣.
Step 5: Fano reduction. Let PS be the law of the algorithm's private seed S, and define Pv:=Pv⊗PS, the joint law of (X1:T,S) under hypothesis v. Let V be uniform on U, and conditional on V=v, draw (X1:T,S)∼Pv. We write ∣U∣ for the cardinality of a finite set U. For random variables V,Y with joint law PV,Y and marginal laws PV,PY, their mutual information is I(V;Y):=DKL(PV,Y∥PV⊗PY). Because S is independent of both V and the sample sequence, the pairwise-KL bound implies
Every decoder constructed from the algorithm can be written as V=f(X1:T,S) and takes values in U. Applying Fano's inequality to the observation (X1:T,S) gives P(V=V)≥1−log∣U∣I(V;X1:T)+log2. Since J→∞, so, for sufficiently large T, log∣U∣≥16log2/3. It follows that P(V=V)≥1−161−163=43.
Now take an arbitrary path estimate W1:T produced from the observations and the private seed. Construct a decoder by choosing a nearest packed path, breaking ties deterministically: V∈argminw∈UdistT(W,W⋆,w), where distT(X,Y)2:=T1∑t=1T∥Xt−Yt∥F2. This decoder takes values in U, as required by Fano's inequality. If the true index is v and distT(W,W⋆,v)2<4c2a2, then Step 2 and the triangle inequality make v the unique nearest index. Hence a decoding error entails tracking error at least c2a2/4, and for all large enough T,
∣U∣1v∈U∑Pv{distT(W,W⋆,v)2≥4c2a2}≥43.
In particular, the maximum of these probabilities is at least 3/4, and hence at least 1/2. By Step 1, a2≳rT⋆. Because the algorithm was arbitrary and every Pv belongs to MT, this proves the claimed minimax lower bound.
Matching Minimax upper bound. Fix δ∈(0,1/2) and 0≤β≤βˉ<1. Throughout, the problem parameters are fixed, and κT−1/2≤DT≤KT for fixed κ,K>0. Lemma 8 gives ZT,β,δ≍βˉ,δσ2, while Bδ and Gδ from Lemmas 9 and 2 are independent of T. Use a deterministic coefficient Kβ,ε valid uniformly over MT; for the original class, one may take λL=λR=0, so κε=1. In every case, 1−β2≤Kβ,ε≤1−β4+2β≤1−β6, For uniform tuning over MT, replace the initial squared error in A1 by its diameter bound:
A1:=μTD2+1−ββ2μTDT.
For each deterministic ε>0, keep A2,A3(ε) as defined in Corollary 2, and let αˉ⋆(ε) minimize Φε(α):=A1/α+A2/α2+A3(ε)α over α>0. Choose α⋆(ε):=min{αˉ⋆(ε),αmax(β)/2}. The optimizer estimate in (37), with the initial error replaced by D2, and the uniform bounds on Kβ,ε give αˉ⋆(ε)≤M<∞, uniformly in T,ε,P and β≤βˉ. Here M may depend on the fixed parameters, K,δ,βˉ, but not on T,ε or P. Since αmax(β)≥μ(1−βˉ)/(384L2), define θ:=min{1,768L2Mμ(1−βˉ)}>0. Then θαˉ⋆(ε)≤α⋆(ε)≤αˉ⋆(ε). Thus the cap preserves the optimized bound up to a fixed, possibly parameter-dependent factor:
The last comparison is uniform in ε, because Kβ,ε is bounded above and below as displayed above and β≤βˉ<1. The two comparisons needed at the endpoints are
Consequently, Φε(α⋆(ε))≤CoptrT⋆, where Copt is independent of T,ε, P but may depend on the fixed problem parameters, κ, K, δ, βˉ. The stochastic-fluctuation and momentum-boundary terms in (11) satisfy
μ2Tσ2logδ8+1−ββμTDBδ=O(T−1)=O(rT⋆),
because δ is fixed, β≤βˉ, and rT⋆≳T−1/2. Finally, choose any deterministic finite ridge satisfying
Then Gδ/(μ2ε⋆2)≤rT⋆. The preceding stepsize estimates hold uniformly in ε, so they apply to this ridge choice. Applying Theorem 1 with these parameters gives, for every P∈MT and sufficiently large T,
PP{T1t=1∑T∥WtShampoo−Wt⋆∥F2>CrT⋆}≤δ.
All tuning choices and the constant C are common to the class. The constant may depend on the fixed parameters, κ, K, δ, βˉ, but is independent of T and P. Taking the supremum over P proves the minimax upper bound. If additionally T−1/2=o(DT) and DT=o(T), then αˉ⋆(ε⋆)→0, so the cap is eventually inactive. Both endpoint comparison ratios displayed above tend to zero. Thus C can be chosen independent of the problem parameters for sufficiently large T, while retaining possible dependence on the fixed δ, βˉ.
A.3 Proof of Theorem 3
Proof. Write β:=β1. Use et from (16), the weights wt,s and momentum νt from (17), and ut,zt from (19). Throughout, C denotes a universal numerical constant that may change between inequalities. Since μ≤L and α≤μ/(8L2), we have 0<αμ≤81.
Step 1: basic moment bounds. Conditional centering and (6) give E[∥gt∥2∣Ft−1]=∥ht(θt)∥2+E[∥ξt∥2∣Ft−1]≤(LD)2+σ2log2. Also, (21) gives E∥ξt∥6≤12σ6. Therefore, E∥gt∥6≤32{(LD)6+12σ6}≤C{(LD)6+σ6}. Because νt is a convex combination of the gradients, Jensen's inequality yields
E∥νt∥2≤s=1∑twt,sE∥gs∥2≤(LD)2+σ2.
Step 2: control the momentum-induced displacement. Define Lt:=∑s=1twt,s∥et−es∥2. Projection nonexpansiveness and ∥Qjv∥2≤κε∥v∥2, from Lemma 4 imply ∥θj+1−θj∥≤α∥Qjνj∥≤ακε∥νj∥. For s<t, writing k:=t−s and using the optimizer movement bound, we obtain ∥et−es∥≤ακε∑j=st−1∥νj∥+kΔ. Squaring, applying Cauchy–Schwarz, and using Step 1 gives
The lag weights form a geometric distribution conditioned on k<t. Since k2 is increasing, its conditional second moment is at most the untruncated second moment: ∑s=1twt,s(t−s)2≤(1−β)∑k=0∞k2βk=(1−β)2β(1+β). For β=0, this inequality holds with both sides zero. Consequently, ELt≤(1−β)22β(1+β){α2κε((LD)2+σ2)+Δ2}.
Step 3: control the finite-ridge perturbation. Define pt:=(Id−Qt)ut, so that Qtνt=ut+Qtzt−pt, and let Ut:=∑s=1tqt,s(2)∥gs∥2 and Vth:=∑s=1twt,s∥hs(θs)∥2. The spectral estimate in Lemma 6 and Jensen's inequality give ∥pt∥2≤Ut2Vth/(4ε2). Using a2b≤(2a3+b3)/3 and Jensen yields
where the last step uses ∥es∥2≥21∥et∥2−∥et−es∥2. Averaging over s gives ⟨et,ut⟩≥4μ∥et∥2−2μμ2+L2Lt. Similarly, Jensen's inequality and Lipschitzness imply ∥ut∥2≤L2∑s=1twt,s∥es∥2≤2L2∥et∥2+2L2Lt. Expanding the square and using 2α2L2≤αμ/4, we obtain
∥et−αut∥2≤(1−4αμ)∥et∥2+2α(μ+μL2)Lt.
Since Qtνt=ut+Qtzt−pt, projection nonexpansiveness, Lemma 4, and the optimizer movement bound yield ∥et+1∥≤∥et−αut∥+ακε∥zt∥+α∥pt∥+Δ. Apply Young's inequality with parameter αμ/16, and use
The coefficient of ∥et∥2 satisfies (1+16αμ)(1−4αμ)=ρ−64(αμ)2≤ρ. Since αμ≤1/8, the remaining coefficients are bounded by universal numerical multiples, giving
Step 5: unroll the recursion and obtain a probability bound. Fix T≥1 and write N:=T−1. Define YT:=∑t=1NρN−t{α(μ+μL2)Lt+μα(κε∥zt∥2+∥pt∥2)}. Iterating (40) and using 1−ρ=3αμ/16 gives ∥eT∥2≤ρN∥e1∥2+CYT+α2μ2CΔ2.
Distinct martingale-difference increments are orthogonal in expectation. Therefore,
Here we used 1−βt≥1−β in the last step. Now, we define ΨT:=1+β1∑t=1NρN−tβt. The noise contribution to EYT consequently satisfies μακε∑t=1NρN−tE∥zt∥2≤3μ216κεσ21+β1−β+μ2ακεσ2ΨT.
Comparing the resulting terms with the definition of Rδ gives EYT≤CδRδ+μCακεσ2ΨT. Since YT is nonnegative, Markov's inequality gives YT≤EYT/δ with probability at least 1−δ. On this event,
∥eT∥2≤ρN∥e1∥2+CRδ+μδCακεσ2ΨT.(41)
Step 6: control the two transients. For the initialization term, ρN∥e1∥2≤e−(1−ρ)N∥e1∥2≤Rδ whenever N≥1−ρ1log+(Rδ∥e1∥2).
For the EMA transient, recall q=max{ρ,β}. Each term satisfies ρN−tβt≤qN−tqt=qN. Since there are N terms, ΨT≤1+βNqN≤NqN. This bound includes the case ρ=β. Moreover, NqN≤Ne−(1−q)N≤1−q2e−(1−q)N/2, where the last inequality follows from xe−x/2≤2 for x≥0. Consequently, μδακεσ2ΨT≤μδ(1−q)2ακεσ2e−(1−q)N/2≤2Rδ whenever
N≥1−q2log+(μδ(1−q)Rδακεσ2).
In particular, when ρ=β, we have q=β and the same bound holds for ΨT, eventually yielding the same lower bound for N. Choose Tburn as the maximum of these two thresholds. This has the order stated in the theorem. For each T≥Tburn, both transient terms in (41) are bounded by universal multiples of Rδ. Using the vectorization isometry, we conclude that
P(∥WT−WT⋆∥F2≤CRδ)≥1−δ.
A.4 Proof of Theorem 4
Proof. Step 1: express the update as an inexact gradient step. Write β:=β1. Using the mean-gradient identity ht(θ)=∇Ft(θ), abbreviate ht:=ht(θt) and define δt:=Qtνt−ht. Thus,
θt+1=ΠΘ(θt−α(ht+δt)).
The vector δt collects the discrepancy between the Shampoo direction and the current population gradient.
Step 2: obtain a one-step descent inequality. Put st:=θt+1−θt. The projection inequality, applied with p=θt+1, z=θt−α(ht+δt), and y=θt, gives 0≤⟨st+α(ht+δt),−st⟩=−∥st∥2−α⟨ht+δt,st⟩. Rearranging and applying Young's inequality yields
The stepsize condition 2αL≤1 implies the coefficient of ∥st∥2 is at least 1/(4α). Consequently, ∥st∥2≤4α(Ft(θt)−Ft(θt+1))+2α2∥δt∥2.
Step 3: compare with the noiseless projected step. Define θˉt+1:=ΠΘ(θt−αht). The inputs to the two projections differ by αδt, so nonexpansiveness gives ∥θt+1−θˉt+1∥≤α∥δt∥. By (14), αGα,t(θt)=−st+(θt+1−θˉt+1). Using ∥x+y∥2≤2∥x∥2+2∥y∥2 and the displacement bound from Step 2, we obtain
Step 4: telescope the objective values. Summing the objective differences leaves the initial and final values, together with the changes in the objective at intermediate iterates:
The last inequality uses the uniform lower bound FT(θT+1)≥F⋆ and the positive-part definition of VT in Section 4. Summing (43) and dividing by T therefore gives
Step 5: control the accumulated direction error. Use ut,zt from (19). Because the weights sum to one, the current-gradient term cancels, giving ut−ht=∑s=1t−1wt,s(hs(θs)−ht). By (6), both gradients inside each difference have norm at most LD. Moreover, (17) gives ∑s<twt,s=at≤β. Hence ∥ut−ht∥≤2LDat≤2LDβ. Since νt−ht=(ut−ht)+zt, it follows that
T1t=1∑T∥νt−ht∥2≤8L2D2β2+T2ZT.
The decomposition δt=Qt(νt−ht)+(Qt−Id)ht gives T1∑t=1T∥δt∥2≤16κεL2D2β2+T4κεZT+T2PTh where PTh:=∑t=1T∥(Id−Qt)ht∥2. To control this new perturbation energy, write Ut:=∑s=1tqt,s(2)∥gs∥2. The spectral estimate in Lemma 6 and (6) imply ∥(Id−Qt)ht∥2≤4ε2Ut2(LD)2≤12ε22Ut3+(LD)6. Corollary 1 therefore gives
TPTh≤ε21{T1t=1∑T∥gt∥6+12(LD)6}.(46)
Now, we apply Lemma 8 with failure probability δ/2. On the resulting event, TZT≤3T,β,δ/2≤233T,β,δ, where the second inequality follows from log(8/δ)≤23log(4/δ). On the sixth-moment event, whose failure probability is at most δ/4, (46) and C6≥1 give TPTh≤12ε213Gδ. The union bound shows that their intersection has probability at least 1−3δ/4≥1−δ. On this intersection,
Kronecker quadratic. The parameter and target are W,Wk⋆∈R4×4. The objective is
Fk(W)=21tr[(W−Wk⋆)TL(W−Wk⋆)R]
with population gradient ∇Fk(W)=L(W−Wk⋆)R. Independent orthogonal eigenvector matrices for L and R are generated from Gaussian QR factorizations. Both matrices have four geometrically spaced eigenvalues from 1 to 10. Therefore the vectorized Hessian has condition number 10. This is a strongly convex example of left–right matrix geometry.
Huber regression. Here W,Wk⋆∈R4×4 and w=vec(W). A fixed design X∈R64×16 has independent N(0,1) entries and. With threshold κ=0.1 and centered ridge strength λ=0.1, define
Writing ψκ(r)=max{−κ,min(r,κ)}, the analytic population gradient is
∇Fk(w)=641XTψκ(X(w−wk⋆))+λ(w−wk⋆),
where ψκ is applied entrywise. The ridge makes the objective globally λ-strongly convex while preserving wk⋆ as its exact minimizer. The Huber score supplies the intended nonquadratic regression geometry.
Soft-label logistic regression. Here W,Wk⋆∈R4×4 and w=vec(W)∈R16. The fixed design X∈R64×16 has independent N(0,1)/16 entries. If pk⋆=sigmoid(Xwk⋆), the soft-label cross-entropy has gradient ∇Fk(w)=641X⊤{sigmoid(Xw)−pk⋆}. The parameters were chosen so that the problem remains convex.
Population phase retrieval. The parameter and target are W,Wk⋆∈R4×4. Up to an additive target-only constant, the analytic population objective is
Fk(W)=43∥W∥F4−21∥Wk⋆∥F2∥W∥F2−⟨W,Wk⋆⟩F2,
with gradient
∇Fk(W)={3∥W∥F2−∥Wk⋆∥F2}W−2⟨W,Wk⋆⟩FWk⋆.
The objective is nonconvex and has the usual sign symmetry, and chosen to be smooth.
Cosine-perturbed matrix objective. Here W,Wk⋆∈R4×4. Gaussian QR generates an orthonormal basis {Aj}j=116 of R4×4 under the Frobenius inner product. With μ=0.2, amplitude a=0.03, and frequency ω=5, define
Every summand is nonnegative and vanishes at Wk⋆, so the moving target is a known global minimizer. Nevertheless, aω2=0.75>μ, and along a basis direction at cosine phase π the curvature is μ−aω2=−0.55. The objective is therefore genuinely smooth and nonconvex.
Low-rank matrix factorization. The parameters are U,V∈R12×3. With target Mk⋆=Uk⋆(Vk⋆)⊤, Fk(U,V)=21∥UV⊤−Mk⋆∥F2. Writing Ek=UV⊤−Mk⋆, the analytic gradients are ∇UFk=EkV, ∇VFk=Ek⊤U. This objective is nonconvex and nonidentifiable under factor rotations.
B.2 Experiment details
Drift and noise schedule. For matrix-valued targets, the drift is generated through normalized Gaussian directions:
Wt+1⋆=Wt⋆+Δt∥Ut∥FUt,(Ut)ij∼N(0,1).
At each round the optimizer receives Gt=Ht(Wt)+σtZt,s, where Ht is the analytic population gradient and every coordinate of Zt,s is an independent Rademacher sign multiplied by 1/d. For a multi-block parameter, d is the total number of coordinates across all blocks. Hence E[Zt,s]=0, ∥Zt,s∥=1, and ∥Gt−Ht(Wt)∥2=σt2 at every round. The dimensions are d=16 for the five single-matrix objectives and d=72 for matrix factorization. Thus, Δt sets the drift magnitude and σt2 decides the stochastic noise level.
Optimizers and tuning. EMA matrix-Shampoo is implemented as in Algorithm 1. For real data analyses SGD, bias corrected momentum SGD, and bias corrected momentum Adam with ridge parameter have been used. The effective stepsize α is tuned from a problem-specific grid, while the ridge parameter ε is tuned over the grid {10−4,10−3,10−2,10−1,1,10}. Curves are then reported for the selected learning rate, averaged over seeds {0,1,2,3,4,5,6,7,8,9}, with shaded regions denoting one standard error of the mean.
Evaluation. For convex problem we evaluate the average tracking error t1∑k=1t∥Wk−Wk⋆∥F2, and for non-convex objectives we evaluate the average stationary gap t1∑k=1t∥Gα,k(θk)∥2; see (15), over T=5000 iterations.
All other experimental details can be found in the supplementary material.
B.3 Real-data experimental details
Common setup. We compared SGD, Momentum SGD, Adam, and EMA-Shampoo using an end-to-end ResNet-18. The convolutional backbone was initialized from ImageNet-pretrained weights, while the final linear classifier was initialized to zero. The backbone and classifier were optimized jointly; batch-normalization running statistics and affine parameters were frozen to avoid introducing an additional source of temporal state. The penultimate feature vector was ℓ2-normalized before classification.
We minimized multiclass cross-entropy with the explicit penalty 2λ∥θ∥22, where λ=10−4 for every method. No additional optimizer weight decay was used. The batch size was 64. For each seed, all methods used the same initialization, preprocessing, temporal ordering, and minibatch order. Both the model parameters and the complete optimizer state, including momentum and preconditioner statistics, were carried across temporal shifts. We did not reset the optimizer or use replay. Results were computed with numerous seeds and are reported as the mean, with shaded regions indicating one standard deviation.
CLEAR-10 protocol. CLEAR-10 contains ten named visual concepts and a background class, giving 11 prediction classes. We used the official paired training and test splits from temporal buckets 1–10. Images were resized to 256 pixels, center-cropped to 224×224, and normalized using the ImageNet statistics. Bucket 1 was used as an initialization period for 10 epochs and was excluded from the reported stream. The model was then trained for one pass over each of buckets 2–10 in chronological order. Training and test errors in the figure are evaluated at the end of each bucket using the same post-update model state.
CORE50 protocol. Our CORE50 experiment is a custom session-ordered, object-disjoint protocol, rather than one of the standard CORE50 continual-learning scenarios. The prediction labels are the ten official object categories, not the 50 physical-object identities. Each category contains five physical objects. We used object positions 1–4 in every category for training, giving 40 training objects, and position 5 for testing, giving 10 held-out objects. Consequently, all ten test categories are represented during training, but the physical instances used for testing are never observed during training; the experiment therefore measures category generalization to unseen objects rather than classification of unseen classes.
Sessions s1, ..., s11 were processed in numerical order. We retained 50 uniformly spaced frames per object and session, resulting in 2,000 training and 500 held-out test images per session (22,000 and 5,500 images in total, respectively). Images were resized to 144 pixels, center-cropped to 128×128, and normalized using the ImageNet statistics. Session s1 was used for 10 initialization epochs, after which sessions s2–s11 were processed once each. The acquisition sessions induce changes in illumination, background, viewpoint, object pose, hand configuration, and occlusion. As in CLEAR-10, the displayed values are the training and held-out errors obtained from the end-of-session model states.
Optimizer settings and model selection. The first-moment coefficient was varied over β1∈{0.5,0.99} for SGDm, Adam, and Shampoo. The remaining settings were fixed across β1 and seeds. On both dataset, the learning rate and adaptive step-size for SGD, SGDM, Adam, and Shampoo were tuned optimally, with β2=0.999 for Adam and Shampoo.
Shampoo implementation. Each parameter tensor was treated independently. A tensor of order at least two was reshaped as shape[0] × ∏_{j≥1} shape[j]; vectors were treated as column matrices. The resulting matrices were partitioned along both axes into blocks of at most 128 × 128, with separate left and right second-moment statistics for each block. These statistics were updated at every optimizer step, while their inverse fourth roots were recomputed every 10 steps and cached between recomputations. First- and second-moment estimates were bias corrected. We added the permanent matrix ridge ε=10−4 before computing each inverse fourth root.
B.4 Empirical minimax scaling
We further examine the minimax tracking rate on objectives not shown in the main text. Figure 5 reports the average tracking error normalized by rT⋆=σ4/3DT1/3/(μ4/3T1/3) under DT≍logT, T1/3, T1/2, and T. While Figure 2 considers the Kronecker, pseudo-Huber, and soft-label logistic objectives, Figure 5 considers phase retrieval and the cosine objective. Across these additional problems, the normalized errors remain broadly stable over the horizon, providing further empirical support for the predicted minimax scaling.
Horizon T
−DT≍logT−DT≍T1/3−DT≍T1/2−DT≍T
Figure 5: Empirical validation of the minimax tracking rate. Results for phase retrieval (left) and the cosine objective (right) under the path-variation regimes DT≍logT, T1/3, T1/2, and T. The average tracking error is normalized by rT⋆=σ4/3DT1/3/(μ4/3T1/3). The normalized errors remain overall stable over the horizon, supporting the predicted minimax scaling.
B.5 Ridge-geometry tradeoff
We next complement the ridge experiment in the main text with the remaining objectives. Figure 6 considers the Kronecker, soft-label logistic, and cosine objectives, whereas Figure 3 in the main text reports pseudo-Huber regression, matrix factorization, and phase retrieval. For each problem, we compare the tracking error or projected-stationarity gap with the preconditioned filtered-noise energy ZTQ(ε)=T−1∑t=1T∥Qt(ε)zt∥2 across high-drift/low-noise and low-drift/high-noise regimes. The complementary behavior across the two regimes illustrates the stability–geometry tradeoff induced by the ridge parameter.
ε
Preconditioned noise energy
Figure 6: Ridge stability–geometry tradeoff. Average tracking error for convex objectives and average projected-stationarity gap for nonconvex objectives. In the high-drift, low-noise regime (top), the preconditioned filtered-noise energy ZTQ(ε) remains small, and the decreasing error with increasing ε is consistent with dominance of the preconditioner-perturbation contribution Gδ/ε2. In the low-drift, high-noise regime (bottom), ZTQ(ε) becomes increasingly important as ε grows, producing the complementary behavior.
B.6 Drift-noise tradeoff and optimal β1
The main-text experiments already illustrate the drift–noise tradeoff in the choice of first-moment memory and the corresponding variation in the preferred β1 across high-drift/low-noise and low-drift/high-noise regimes. Here, we provide additional trajectory-level comparisons of Shampoo across objectives and optimizers.
High Drift - Low Noise
Low Drift - High Noise
Figure 7: Shampoo tracking trajectories for convex objectives. Results for Kronecker quadratic, Huber, and soft-label logistic (top to bottom) under high drift/low noise ( Δ, σ2) = (0.15, 0.01) (left) and low drift/high noise (0.003, 1) (right); fixing β2=0.999. Curves show the ten-seed mean cumulative average tracking error, with one-standard-error bands. Overall, strong drift generally favors shorter first-moment memory, whereas higher noise can favor moderate memory, with the size of this benefit depending on the objective.
High Drift - Low Noise
Low Drift - High Noise
Phase Retrieval
Cosine-Perturbed
Matrix
Low-Rank Matrix
Factorization
Figure 8: Shampoo tracking trajectories for non-convex objectives. Results for Phase retrieval, cosine-perturbed matrix, and low-rank matrix factorization (top to bottom) under high drift/low noise ( Δ, σ2) = (0.15, 0.01) (left) and low drift/high noise (0.003, 1) (right); fixing β2=0.999. Curves show the ten-seed mean cumulative average stationary gap, with one-standard-error bands. Overall, strong drift generally favors shorter first-moment memory, whereas higher noise can favor moderate memory, with the size of this benefit depending on the objective.