arXiv:2610.16923stat.MLOct 2026

Manuscript Offprint

arXiv:2610.16923

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\beta_1 and stabilization parameter ε\varepsilon. These bounds reveal an explicit drift–noise and stability–geometry tradeoffs: noise-dominated regimes favor larger β1\beta_1, which provides stronger first-moment averaging and greater suppression of gradient noise, whereas drift-dominated regimes favor smaller β1\beta_1, allowing faster adaptation to moving optimizer. Larger ε\varepsilon 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.

Keywords Nonstationary stochastic optimization · Shampoo · Adaptive preconditioning · Momentum · Tracking error · Minimax optimality

1 Introduction

We study stochastic optimization over a compact convex set Θ⊂Rd\Theta \subset \mathbb{R}^d, where the objective evolves over time according to

θt⋆∈arg⁡min⁡θ∈ΘGt(θ), Gt(θ)=EXt∼Πt[g(θ,Xt)].\theta_{t}^{\star}\in\underset{\theta\in\Theta}{\arg\min}G_{t}(\theta),\ G_{t}(\theta)=\mathbb{E}_{X_{t}\sim\Pi_{t}}[g(\theta,X_{t})].

(Opt)

Here g(θ,Xt)g(\theta, X_t) is a noisy sample-level version of Gt(θ)G_t(\theta), with Xt∼ΠtX_t \sim \Pi_t, where Πt\Pi_t is a time-varying distribution. As Πt\Pi_t changes, so does the population objective GtG_t and its minimizer θt⋆\theta_t^\star. 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.

References (57)