Adaptive Methods

Dive into Deep Learning · §35.5

Adaptive Methods
AdaGrad · RMSProp · Adam & bias correction · scale invariance · rotation sensitivity · AdamW · warmup · K-FAC & Muon

Why One Global Learning Rate Bottlenecks Networks

Motivation

Modern neural networks have 10^7 to 10^{11} parameters whose curvatures differ by orders of magnitude across layers and coordinates. On f(\mathbf{x}) = \tfrac12(x_1^2 + 1000\,x_2^2) from (1, 1) to f(\mathbf{x}) < 10^{-8}:

  • Optimal single-step GD (\eta = 2/1001): 6{,}160 steps.
  • Tuned Heavy-Ball momentum: 296 steps.
  • Per-coordinate RMS scaling (aligned): 22 steps, and increasing \kappa from 10^3 to 10^5 adds only 6 steps.
  • Rotated by 45^\circ: Scaling alone never reaches 10^{-8}.
image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/

Ideal Diagonal Preconditioning vs. Gradient Proxies

Per-Coordinate Scaling

On a diagonal bowl f(\mathbf{x}) = \tfrac12\sum_i h_i x_i^2, each coordinate updates via x_{t+1,i} = (1 - \eta_i h_i)x_{t,i}:

  • Diagonal Newton ideal: Choosing \eta_i = 1/h_i reaches zero in 1 step and eliminates \kappa = h_{\max}/h_{\min}.
  • Unknown & noisy curvatures: In deep learning, h_i is unknown and masked by minibatch noise.
  • Gradient RMS proxy: Because |g_i| = h_i|x_i|, dividing each step by a running RMS of past gradients \sqrt{v_{t,i}} automatically assigns smaller steps to steeper axes.

AdaGrad: Cumulative Per-Coordinate Normalization

AdaGrad

AdaGrad accumulates the sum of squared gradients \mathbf{s}_t elementwise and divides each step by \sqrt{s_{t,i}}:

\mathbf{s}_t = \mathbf{s}_{t-1} + \mathbf{g}_t \odot \mathbf{g}_t, \qquad \mathbf{x}_{t+1} = \mathbf{x}_t - \frac{\eta}{\sqrt{\mathbf{s}_t} + \epsilon}\,\mathbf{g}_t

  • Rare vs. frequent features: After 10^4 steps, a busy feature (g_{t,1} = \pm 1) receives step \eta/100, while a rare token embedding firing once receives a full step \eta.
  • Diagonal metric: Steepest descent under \mathbf{P}_t = \mathrm{diag}(\sqrt{\mathbf{s}_t}).

Online Convex Regret and AdaGrad’s Built-In Decay

AdaGrad

AdaGrad was designed for online convex optimization, minimizing cumulative regret \sum_{t=1}^T f_t(\mathbf{x}_t) - \min_{\mathbf{x}} \sum_{t=1}^T f_t(\mathbf{x}):

  • Coordinate-adaptive regret bound: On a box of \ell_\infty diameter D_\infty (D_2 = \sqrt{d}\,D_\infty), online gradient descent achieves regret O(D_2 G\sqrt{T}), whereas AdaGrad achieves: \text{Regret}_T(\text{AdaGrad}) = O\!\left(D_\infty \sum_{i=1}^d \sqrt{\sum_{t=1}^T g_{t,i}^2}\right) When gradient mass concentrates on a small subset of coordinates (e.g., Zipf word frequencies), AdaGrad’s bound is up to \sqrt{d} smaller.
  • Why AdaGrad stalls on deep networks: Under persistent minibatch noise of variance \sigma^2, the cumulative sum grows linearly (s_{t,i} \approx \sigma^2 t), forcing the effective step size \eta/(\sigma\sqrt{t}) to decay relentlessly to zero even when the optimizer is far from a minimum.

RMSProp: Exponential Moving Average of Squares

RMSProp

RMSProp replaces AdaGrad’s all-time sum with an exponential moving average (EMA) of squared gradients:

\mathbf{v}_t = \beta_2\,\mathbf{v}_{t-1} + (1 - \beta_2)\,\mathbf{g}_t^2, \qquad \mathbf{x}_{t+1} = \mathbf{x}_t - \frac{\eta}{\sqrt{\mathbf{v}_t} + \epsilon}\,\mathbf{g}_t

  • Finite memory window: Past squared gradients halve in weight every k_{1/2} = \frac{\log 2}{1 - \beta_2} steps (\approx 7 steps at \beta_2 = 0.9, \approx 693 steps at \beta_2 = 0.999).
  • Non-vanishing steps: Effective step sizes stay bounded away from zero under stationary noise and track changing curvature.

Adam: Combining Momentum with RMS Normalization

Adam

Adam pairs RMSProp’s second-moment EMA \mathbf{v}_t with a first-moment momentum EMA \mathbf{m}_t, correcting both for zero initialization:

\hat{\mathbf{m}}_t = \frac{\mathbf{m}_t}{1 - \beta_1^t}, \quad \hat{\mathbf{v}}_t = \frac{\mathbf{v}_t}{1 - \beta_2^t}, \quad \mathbf{x}_{t+1} = \mathbf{x}_t - \eta\,\frac{\hat{\mathbf{m}}_t}{\sqrt{\hat{\mathbf{v}}_t} + \epsilon}

  • Standard defaults: \beta_1 = 0.9 (half-life \approx 7 steps), \beta_2 = 0.999 (half-life \approx 693 steps), \epsilon = 10^{-8}.
  • Dual action: \hat{\mathbf{m}}_t averages out high-frequency oscillations before rescaling by \sqrt{\hat{\mathbf{v}}_t}.

Why Zero Initialization Demands Bias Correction

Adam

If the squared gradient scale is stationary (\mathbb{E}[\mathbf{g}_\tau^2] = \overline{\mathbf{g}^2}), summing the geometric series gives:

\mathbb{E}[\mathbf{v}_t] = (1 - \beta_2)\,\overline{\mathbf{g}^2}\sum_{\tau=1}^t \beta_2^{t-\tau} = \big(1 - \beta_2^t\big)\,\overline{\mathbf{g}^2}

  • At \beta_2 = 0.999, \mathbf{v}_{10} holds only 1\% of \overline{\mathbf{g}^2}, and \mathbf{v}_{1000} holds just 63\%.
  • Step inflation without correction: Dropping both corrections multiplies the update by \frac{1 - \beta_1^t}{\sqrt{1 - \beta_2^t}}, starting at 3.16\times (t=1) and peaking at 6.6\times (t=12) because \mathbf{m}_t fills 100\times faster than \mathbf{v}_t.
image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/

Exact Coordinate Scale Invariance of Adam

Scale Invariance

When \epsilon = 0 and \nabla\tilde{f}(\mathbf{x}) = \mathrm{diag}(c_1, \ldots, c_d)\nabla f(\mathbf{x}) (c_i > 0), linearity of the EMAs gives \tilde{m}_{t,i} = c_i m_{t,i} and \tilde{v}_{t,i} = c_i^2 v_{t,i}:

\frac{\hat{\tilde{m}}_{t,i}}{\sqrt{\hat{\tilde{v}}_{t,i}}} = \frac{c_i\,\hat{m}_{t,i}}{\sqrt{c_i^2\,\hat{v}_{t,i}}} = \frac{\hat{m}_{t,i}}{\sqrt{\hat{v}_{t,i}}}

  • Identical trajectories: Adam on \tfrac12(x_1^2 + 1000\,x_2^2) from (1, 1) follows the exact same path x_{t,1} = x_{t,2} as on the round sphere \tfrac12(x_1^2 + x_2^2).

Consequences and Limits of Scale Invariance

Scale Invariance

Applying the scale-invariance theorem to f(\mathbf{x}) = \tfrac12\sum_{i=1}^d h_i x_i^2 explains both Adam’s strength on aligned valleys and its structural boundaries:

  • Every aligned valley is a round bowl: Because \nabla f(\mathbf{x}) = \mathrm{diag}(h)\,\mathbf{x} is the gradient of the isotropic sphere \tfrac12\|\mathbf{x}\|^2 rescaled by c_i = h_i, Adam on \tfrac12(x_1^2 + 1000\,x_2^2) from (1, 1) follows the exact same trajectory x_{t,1} = x_{t,2} as Adam on \tfrac12(x_1^2 + x_2^2).
  • Distance replaces curvature: Because early steps move each coordinate by roughly \pm\eta regardless of h_i, the iteration count scales with the initial distance \|\mathbf{x}_0\|_\infty / \eta rather than \kappa = h_{\max}/h_{\min}.
  • Three boundaries of invariance:
    1. \epsilon > 0 breaks invariance once |g_{t,i}| \lesssim \epsilon.
    2. Adam is not sign descent in general: it reduces to -\eta\,\mathrm{sign}(\mathbf{g}_t) only at t=1, when \beta_1 = \beta_2 = 0, or when |g_{t,i}| is constant over \hat{v}_t’s memory.
    3. Invariance holds only for diagonal coordinate rescalings, failing under orthogonal rotations.

Fair Benchmark: Aligned vs. 45° Rotated Valley

Rotation Sensitivity

We compare optimally tuned GD and Heavy Ball (given the exact eigenvalues \mu = 1, L = 1000) against a 7-point learning-rate sweep for Adam (\beta_1 = 0 scaling-only vs. \beta_1 = 0.9) on the aligned valley and the valley rotated by \theta = 45^\circ:

steps to f < 1e-8             aligned  rotated 45
GD, eta = 2/(mu + L)             6160        6160
heavy ball, tuned                 296         296

Adam, eta =                   0.002 0.0063   0.02  0.063    0.2   0.63      2
beta1 = 0.0, aligned           2122    760    249     78     22  never  never
beta1 = 0.0, rotated 45       never  never  never  never  never  never  never
beta1 = 0.9, aligned           2033    648    195    165    205    170    196
beta1 = 0.9, rotated 45       12862   9292   5898   3171   1581    799    559

Dissecting the Benchmark: Robustness vs. Rotation

Rotation Sensitivity

  • Aligned (\theta = 0^\circ): Scaling-only Adam (\beta_1 = 0) finishes in 22 steps, and default Adam (\beta_1 = 0.9) finishes in 165–205 steps across a 100\times range of \eta.
  • Rotated (\theta = 45^\circ): GD (6{,}160 steps) and Heavy Ball (296 steps) are rotation-invariant, whereas scaling-only Adam locks into a 2-cycle and default Adam slows to 559–12{,}862 steps.
  • Why 45^\circ breaks diagonal scaling: The steep mode (-1, 1)/\sqrt{2} projects equally onto both axes, making \hat{v}_{t,1} \approx \hat{v}_{t,2} so the diagonal preconditioner collapses to a scalar.

Effective Step Sizes Across Curvature Ratios

Rotation Sensitivity

On the aligned valley (\beta_1 = 0, \eta = 0.1, \epsilon = 0), Adam discovers the 1000{:}1 curvature ratio on step 1 from gradient magnitudes alone:

t =  1: x = 0.9, 0.9;  eta/sqrt(v_hat) = 0.1, 0.0001
t = 10: x = 0.262, 0.262;  eta/sqrt(v_hat) = 0.152, 0.000152
t = 48: x = 3.91e-06, 3.91e-06;  eta/sqrt(v_hat) = 0.329, 0.000329
largest |x_1 - x_2| over the run: 5.6e-17
steps to f < 1e-8 at curvature ratios 1, 1e3, 1e5: 40 48 54
steps from (100, 100) at ratio 1e3: 4145
  • Increasing \kappa by 10^5\times (1 \to 10^3 \to 10^5) adds only 14 steps (40 \to 48 \to 54), whereas moving \mathbf{x}_0 100\times farther away (1 \to 100) multiplies the step count by \approx 86\times (48 \to 4{,}145).

Reddi’s Convex Counterexample: When Adam Diverges

Convergence Limits

On x \in [-1, 1], consider the 3-periodic convex losses (+4x, -x, -x) with average slope +2 and unique optimum x^\star = -1:

  • Short EMA memory (\beta_2 = 1/17, \beta_1 = 0): Across (+4, -1, -1), \sqrt{v_t} settles to (3.89, 1.35, 1.02), producing normalized steps -1.03\eta, +0.74\eta, +0.98\eta (net drift +0.69\eta > 0 toward the worst point x = +1).
  • AMSGrad fix: Using the running maximum \tilde{v}_t = \max(\tilde{v}_{t-1}, v_t) pins \sqrt{\tilde{v}_t} = 3.89, restoring net drift -0.51\eta to x^\star = -1.

AMSGrad Restores Convergence via Running Maxima

Convergence Limits

AMSGrad repairs the Reddi counterexample by replacing \mathbf{v}_t in the denominator with its running maximum \tilde{\mathbf{v}}_t = \max(\tilde{\mathbf{v}}_{t-1}, \mathbf{v}_t), guaranteeing nonincreasing effective steps \eta_t / \sqrt{\tilde{\mathbf{v}}_t}:

x_t at t =        30      300     3000    15000   (x* = -1)
adam         0.745    1.000    1.000    1.000
amsgrad     -0.953   -0.985   -0.995   -0.998
sgd         -0.954   -0.986   -0.995   -0.998
  • With \tilde{v}_t pinned at 15.12, the three steps become -1.03\eta, +0.26\eta, +0.26\eta (net drift -0.51\eta toward x^\star = -1), matching SGD while standard Adam locks onto x = +1.

Weight Decay in Adaptive Methods: Coupled vs. AdamW

Decoupled Weight Decay

In plain SGD, adding an \ell_2 penalty \tfrac{\lambda}{2}\|\mathbf{w}\|^2 to the loss (\mathbf{g}_t \leftarrow \mathbf{g}_t + \lambda\mathbf{w}_t) is identical to multiplying weights by (1 - \eta\lambda) at every step. In Adam, passing \lambda\mathbf{w}_t through the preconditioner \sqrt{\hat{\mathbf{v}}_t} couples decay to gradient scale:

\text{Coupled ($\ell_2$ inside Adam):}\quad \Delta w_{t,i}^{\mathrm{decay}} = -\frac{\eta\lambda}{\sqrt{\hat{v}_{t,i}} + \epsilon}\,w_{t,i} \qquad \text{vs.} \qquad \text{Decoupled (AdamW):}\quad \Delta w_{t,i}^{\mathrm{decay}} = -\eta\lambda\,w_{t,i}

  • The flaw of coupled \ell_2 decay: Coordinates with large historical gradients (\sqrt{\hat{v}_{t,i}} \gg 1) receive almost zero weight decay, while quiet coordinates (\sqrt{\hat{v}_{t,i}} \ll 1) are shrunk aggressively.
  • The AdamW update (Loshchilov and Hutter, 2019): \mathbf{w}_{t+1} = (1 - \eta\lambda)\,\mathbf{w}_t - \eta\,\frac{\hat{\mathbf{m}}_t}{\sqrt{\hat{\mathbf{v}}_t} + \epsilon} Only the data-loss gradient enters \mathbf{m}_t and \mathbf{v}_t, while multiplicative shrinkage (1 - \eta\lambda) acts uniformly on all parameters.

How Coupled Decay Distorts Shrinkage Under Noise

Decoupled Weight Decay

Simulate two groups of 10^4 weights initialized at w_0 = 1 receiving pure zero-mean Gaussian gradient noise at scales \sigma_1 = 10 and \sigma_2 = 0.1 over T = 4{,}000 steps (\eta = 10^{-3}, \lambda = 0.1):

per-step decay rates: coupled [1.e-05 1.e-03]  AdamW 0.0001
mean w, coupled: [0.961 0.027]   predictions exp(-eta lam T / sigma): [0.961 0.018]
mean w, AdamW:   [0.67 0.67]   prediction (1 - eta lam)^T: 0.67
  • Coupled Adam decays the quiet weights 100\times faster (10^{-3} vs 10^{-5} per step, ending at 0.031 vs 0.961), whereas AdamW shrinks both groups uniformly to (1 - \eta\lambda)^T \approx \exp(-0.4) \approx 0.670.

Exact-Gradient Fixed Points: MAP vs. ℓ∞ Box

Decoupled Weight Decay

When exact gradients settle (\hat{\mathbf{m}}_t \to \mathbf{u}, \hat{\mathbf{v}}_t \to \mathbf{u}^2), coupled Adam and AdamW converge to distinct stationary points:

\lambda\,w_i\big(|g_i| + \epsilon\big) = -g_i \implies |w_i| = \frac{|g_i|}{\lambda(|g_i| + \epsilon)} < \frac{1}{\lambda}

  • Coupled Adam: Vanishes iff \nabla\ell(\mathbf{w}) + \lambda\mathbf{w} = \mathbf{0} (Gaussian MAP).
  • Decoupled AdamW (\epsilon \to 0): Enforces the KKT conditions for an implicit \ell_\infty box constraint \min_{\|\mathbf{w}\|_\infty \le 1/\lambda} \ell(\mathbf{w}).

Anatomy of Opening Steps and Learning-Rate Warmup

Warmup Dynamics

At step t = 1, bias correction gives \hat{\mathbf{m}}_1 = \mathbf{g}_1 and \hat{\mathbf{v}}_1 = \mathbf{g}_1^2, so Adam’s very first update is a full sign step in every coordinate:

\mathbf{x}_2 = \mathbf{x}_1 - \eta\,\frac{\mathbf{g}_1}{|\mathbf{g}_1| + \epsilon} \approx \mathbf{x}_1 - \eta\,\mathrm{sign}(\mathbf{g}_1)

  • Why pure-noise coordinates jump 4\times farther at t = 1: On a coordinate whose gradient is independent zero-mean noise g_t \sim \mathcal{N}(0, \sigma^2), the step at t = 1 has RMS magnitude 1.00\,\eta.
  • Steady-state variance of the momentum EMA: Once \mathbf{m}_t = (1 - \beta_1)\sum_{\tau \le t}\beta_1^{t-\tau}g_\tau has averaged \sim \frac{1}{1-\beta_1} = 10 independent samples, its variance drops to \frac{1 - \beta_1}{1 + \beta_1}\sigma^2, so the steady-state RMS update is only: \text{RMS}\!\left(\frac{\hat{m}_t}{\sqrt{\hat{v}_t}}\right) \to \sqrt{\frac{1 - \beta_1}{1 + \beta_1}} = \sqrt{\frac{0.1}{1.9}} \approx 0.23</

Decomposing Early Instability: Momentum vs. Bias

Warmup Dynamics

Tracking the RMS update (in units of \eta) across 20{,}000 independent noise coordinates separates the role of the momentum window, bias correction, and linear warmup:

t:                           1     2     3    10    20    30   100  1000  3000
Adam:                     1.00  0.71  0.58  0.33  0.26  0.24  0.23  0.23  0.23
exact variance:           1.00  0.71  0.58  0.33  0.26  0.24  0.23  0.23  0.23
no bias correction:       3.16  3.02  2.87  2.17  1.61  1.32  0.74  0.29  0.24
warmup over 20 steps:     0.05  0.07  0.09  0.17  0.26  0.24  0.23  0.23  0.23

Decomposing Early Instability: Momentum vs. Bias (cont.)

Warmup Dynamics

  • Replacing \hat{\mathbf{v}}_t with the exact variance \sigma^2 = 1 leaves the 1.00 \to 0.23 curve unchanged: early step inflation on noisy coordinates comes from the 10-step momentum window (tamed by a 20-step warmup), whereas longer warmups in deep nets guard against high initial Hessian sharpness \lambda_{\max}.

Beyond Diagonal Scaling: Kronecker-Factored Metrics

Structured Preconditioners

To handle rotated valleys where curvature mixes coordinates without paying O(d^2) storage for a full d \times d preconditioner, structured methods exploit the matrix shape of neural network layers:

  • Rank-one layer gradients: For a linear layer \mathbf{y} = \mathbf{W}\mathbf{a} with \mathbf{W} \in \mathbb{R}^{m \times n}, input \mathbf{a} \in \mathbb{R}^n, and output gradient \boldsymbol{\delta} = \partial\ell/\partial\mathbf{y} \in \mathbb{R}^m, the weight gradient is \mathbf{G} = \boldsymbol{\delta}\mathbf{a}^\top, or in stacked vector form \mathrm{vec}(\mathbf{G}) = \mathbf{a} \otimes \boldsymbol{\delta}.
  • Kronecker factorization: Approximating the (mn) \times (mn) outer-product curvature \mathbb{E}[(\mathbf{a}\mathbf{a}^\top) \otimes (\boldsymbol{\delta}\boldsymbol{\delta}^\top)] by \mathbf{S}_{\mathrm{in}} \otimes \mathbf{S}_{\mathrm{out}} (where \mathbf{S}_{\mathrm{in}} = \mathbb{E}[\mathbf{a}\mathbf{a}^\top] \in \mathbb{R}^{n \times n} and \mathbf{S}_{\mathrm{out}} = \mathbb{E}[\boldsymbol{\delta}\boldsymbol{\delta}^\top] \in \mathbb{R}^{m \times m}) lets us invert and apply the preconditioner via two small matrix products: \big(\mathbf{S}_{\mathrm{in}} \otimes \mathbf{S}_{\mathrm{out}}\big)^{-1}\mathrm{vec}(\mathbf{V}) = \mathrm{vec}\big(\mathbf{S}_{\mathrm{out}}^{-1}\,\mathbf{V}\,\mathbf{S}_{\mathrm{in}}^{-1}\big)

Storage and FLOP Savings of Kronecker Factoring

Structured Preconditioners

For a single 4096 \times 4096 Transformer weight matrix (d = mn \approx 1.68 \times 10^7 parameters), compare a full (mn) \times (mn) curvature matrix against two 4096 \times 4096 Kronecker factors:

stored entries: full 2.8e+14, two factors 3.4e+07
flops to invert: full 4.7e+21, two factors 1.4e+11
  • Kronecker factoring reduces storage by 8.4 \times 10^6\times (from 2.8 \times 10^{14} entries to 3.4 \times 10^7) and inversion cost by 3.4 \times 10^{10}\times (from 4.7 \times 10^{21} FLOPs to 1.4 \times 10^{11} FLOPs).

The Preconditioning Ladder: K-FAC, Shampoo, Muon

Structured Preconditioners

Modern matrix optimizers apply two-sided preconditioning \mathbf{G} \mapsto \mathbf{P}_{\mathrm{l}}^{-a}\mathbf{G}\mathbf{P}_{\mathrm{r}}^{-a} to an m \times n gradient/momentum matrix \mathbf{G} = \mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^\top:

\big(\mathbf{G}\mathbf{G}^\top\big)^{-1/4}\,\mathbf{G}\,\big(\mathbf{G}^\top\mathbf{G}\big)^{-1/4} = \mathbf{U}\mathbf{V}^\top

  • K-FAC (a = 1) & Shampoo (a = 1/4): Approximate the Fisher / matrix-AdaGrad factors via row and column covariances.
  • Muon (polar factor \mathbf{U}\mathbf{V}^\top): Equalizes all singular values to 1 via fast Newton–Schulz iterations and commutes with arbitrary orthogonal rotations.

Concept Check: Scale Invariance, AdamW, and Muon

Concept Check

Test your understanding of adaptive and matrix-preconditioned optimizers:

  1. At step t = 1, how far does bias-corrected Adam (\epsilon = 10^{-8}) move a coordinate with gradient g_{1,i} = 10^{-6}, and after how many steps does \beta_2 = 0.999 halve the weight of an old squared gradient?
  2. On the 1D loss \ell(w) = \tfrac12(w - 3)^2 with exact gradients and \lambda = 1, what is the stationary fixed point of coupled Adam (\ell_2 penalty) versus decoupled AdamW (\epsilon \to 0)?
  3. Why does rotating the 1000{:}1 valley by 45^\circ defeat Adam’s diagonal scaling while leaving Muon’s polar factor \mathbf{U}\mathbf{V}^\top equivariant?

Answers: (1) At t = 1, \hat{m}_{1,i}/\sqrt{\hat{v}_{1,i}} = \mathrm{sign}(g_{1,i}), so the step size is \eta \frac{10^{-6}}{10^{-6} + 10^{-8}} \approx \mathbf{0.99\,\eta}. The half-life for \beta_2 = 0.999 is \frac{\log 2}{1 - 0.999} \approx \mathbf{693\text{ steps}}. (2) Coupled Adam solves (w - 3) + \lambda w = 0 \implies w^\star = \frac{3}{1+1} = \mathbf{1.5}. AdamW clips the unconstrained minimizer w = 3 to the \ell_\infty box |w| \le 1/\lambda = 1, resting at w^\star = \mathbf{1.0}. (3) A 45^\circ rotation mixes coordinates so both axes see the steep mode (\hat{v}_1 \approx \hat{v}_2), reducing Adam’s diagonal preconditioner to a scalar identity. By contrast, under orthogonal rotations \mathbf{Q}_1\mathbf{G}\mathbf{Q}_2^\top = (\mathbf{Q}_1\mathbf{U})\boldsymbol{\Sigma}(\mathbf{Q}_2\mathbf{V})^\top, the polar factor maps to \mathbf{Q}_1(\mathbf{U}\mathbf{V}^\top)\mathbf{Q}_2^\top, rotating cleanly with the basis.

Summary: Adaptive and Structured Preconditioners

Key Takeaways

Optimizer Preconditioner / Update Form Invariance Property Memory Overhead Primary Strength & Limitation
AdaGrad \mathbf{s}_t = \sum_{\tau \le t}\mathbf{g}_\tau^2, step \propto \mathbf{s}_t^{-1/2}\mathbf{g}_t Diagonal coordinate scale 1 vector (d) Optimal sparse convex regret; 1/\sqrt{t} decay stalls on deep nets
RMSProp \mathbf{v}_t = \beta_2\mathbf{v}_{t-1} + (1-\beta_2)\mathbf{g}_t^2 Diagonal coordinate scale 1 vector (d) Non-vanishing steps; noisy without momentum smoothing
Adam / AMSGrad Bias-corrected \hat{\mathbf{m}}_t / (\sqrt{\hat{\mathbf{v}}_t} + \epsilon) Exact diagonal scale (\epsilon=0) 2 vectors (2d) Fast & robust on axis-aligned valleys; fails under 45^\circ rotation
AdamW Decoupled (1-\eta\lambda)\mathbf{w}_t - \eta\hat{\mathbf{m}}_t/\sqrt{\hat{\mathbf{v}}_t} Uniform decay across scales 2 vectors (2d) Default for Transformers; fixed points lie in \ell_\infty box \|\mathbf{w}\|_\infty \le 1/\lambda
K-FAC / Shampoo Two-sided \mathbf{P}_{\mathrm{l}}^{-a}\mathbf{G}\mathbf{P}_{\mathrm{r}}^{-a} (m \times n layer) Layer row/column transforms m^2 + n^2 per layer Captures cross-coordinate correlations; periodic matrix roots/inverses
Muon Orthogonal polar factor \mathbf{U}\mathbf{V}^\top of \mathbf{M}_t Orthogonal row/col rotations 1 matrix (mn) Equalizes singular values via fast Newton–Schulz matmuls