Module contents
Lesson 26 of 27Research 110 min

Steepest descent in other geometries: sign, natural gradient and Muon

Unify modern optimizers under a classical idea: steepest descent in a chosen norm. The ℓ∞ norm gives sign descent (signSGD, Lion), the Fisher metric gives natural gradient, and spectral norm on weight matrices gives Muon’s orthogonalized update, computed with Newton–Schulz iterations.

After this lesson you can

  • Derive steepest-descent steps for an arbitrary norm using its dual norm.
  • Obtain signSGD as ℓ∞ steepest descent and analyze Lion as the sign of interpolated momentum.
  • Derive natural gradient as steepest descent in the Fisher metric (local quadratic KL approximation) and explain reparameterization invariance.
  • Derive orthogonalized UVᵀ as spectral-norm steepest descent and implement Newton–Schulz without an SVD.
  • Implement Muon for hidden network matrices and explain its combination with AdamW for embeddings, biases and output.

Before you start

Motivation: the same algorithm with a different measure

Recent optimizers have very different names and formulas: signSGD, Lion, natural gradient and K-FAC, Shampoo, Muon. Read separately they look like a bag of tricks. This lesson argues a more economical thesis, stated clearly by Bernstein and Newhouse (2024) in “Old Optimizer, New Norm”: almost all are the same algorithm, steepest descent, using a different norm to measure step size.

The idea is old (Boyd and Vandenberghe devote section 9.4 to it) and begins with an observation hidden by gradient descent. Calling −∇f-\grad f “the steepest descent direction” presupposes a way to compare equal-size steps, namely Euclidean norm. Measure steps differently and the steepest direction changes. There is no reason Euclidean norm must be the right one:

  • Coordinates at different scales. If one parameter is a rate from 0 to 1 and another a bias around 100, a Euclidean-length 0.1 step means different things for each. Measuring coordinates separately (ℓ∞\ell_\infty) leads to gradient sign, then Adam and Lion.
  • Parameters describing distributions. If θ\theta parameterizes a probabilistic model, what matters is not how far θ\theta moves but how much the distribution changes. Measuring with Kullback–Leibler divergence leads to natural gradient.
  • Matrices acting on vectors. A linear layer y=Wx\vb{y} = \mat{W}\vb{x} is not a vector of doutdind_{\text{out}} d_{\text{in}} unrelated numbers: it is an operator. What matters about change ΔW\Delta\mat{W} is how much it can change the output, measured by the operator norm. This leads to Muon’s orthogonalized update UV⊤\mat{U}\mat{V}\T.

That is the lesson’s program: a general theorem, three norms and three optimizers, with proofs, from-scratch implementations and honest evidence of when they work.

Steepest descent for any norm

Let f:Rn→Rf: \R^n \to \R be differentiable, g=∇f(x)\vb{g} = \grad f(\vb{x}), and ∥⋅∥\norm{\cdot} any norm on Rn\R^n. Near x\vb{x}, f(x+d)≈f(x)+⟨g,d⟩f(\vb{x} + \vb{d}) \approx f(\vb{x}) + \inner{\vb{g}}{\vb{d}}. “Which unit-size step most reduces the linear model?” is an optimization problem cleanly answered by dual norm ∥g∥∗=max⁡∥d∥≤1⟨g,d⟩\norm{\vb{g}}_* = \max_{\norm{\vb{d}} \le 1}\inner{\vb{g}}{\vb{d}}.

Verify the second equality by separating size and direction. Write d=c u\vb{d} = c\,\vb{u} with c≥0c \ge 0 and ∥u∥=1\norm{\vb{u}} = 1. For fixed cc the best u\vb{u} is d⋆\vb{d}^\star and the objective is −c∥g∥∗+c2/(2η)-c\norm{\vb{g}}_* + c^2/(2\eta), a parabola in cc minimized at c=η∥g∥∗c = \eta\norm{\vb{g}}_*. The versions differ: normalized steps have fixed size η\eta (gradient magnitude does not matter), while unnormalized steps scale by ∥g∥∗\norm{\vb{g}}_*. Modern optimizers usually use the normalized version, with rate and momentum controlling size. The minimizer set is always nonempty (a linear function on a compact set) and, if g≠0\vb{g} \ne \vb{0}, is a face of the unit ball: a point if strictly convex in that direction, otherwise an edge or whole face.

The chosen norm’s version of the descent lemma explains why this step.

Proof

By the fundamental theorem of calculus, f(x+d)−f(x)−⟨∇f(x),d⟩=∫01⟨∇f(x+sd)−∇f(x),d⟩ ⁣dsf(\vb{x} + \vb{d}) - f(\vb{x}) - \inner{\grad f(\vb{x})}{\vb{d}} = \int_0^1 \inner{\grad f(\vb{x} + s\vb{d}) - \grad f(\vb{x})}{\vb{d}}\dd s. Inequality ⟨a,b⟩≤∥a∥∗∥b∥\inner{\vb{a}}{\vb{b}} \le \norm{\vb{a}}_*\norm{\vb{b}} (the dual-norm definition) and the assumption bound the integrand by Ls∥d∥2L s\norm{\vb{d}}^2, so

f(x+d)≤f(x)+⟨g,d⟩+L2∥d∥2.f(\vb{x} + \vb{d}) \le f(\vb{x}) + \inner{\vb{g}}{\vb{d}} + \frac{L}{2}\norm{\vb{d}}^2.

The right side is exactly the definition’s objective with η=1/L\eta = 1/L; its minimum occurs at Δx\Delta\vb{x} and equals −η∥g∥∗2+η∥g∥∗2/2=−∥g∥∗2/(2L)-\eta\norm{\vb{g}}_*^2 + \eta\norm{\vb{g}}_*^2/2 = -\norm{\vb{g}}_*^2/(2L). Summing from t=0t = 0 to T−1T - 1 telescopes to ∑t∥∇f(xt)∥∗2≤2L(f(x0)−inf⁡f)\sum_t\norm{\grad f(\vb{x}_t)}_*^2 \le 2L(f(\vb{x}_0) - \inf f), and the minimum is at most the mean.

∎

The theorem identifies what makes a method good: the ratio of its gain ∥g∥∗2\norm{\vb{g}}_*^2 to its cost, constant LL measured in the same norm. Choosing a norm chooses pair (∥⋅∥,L)(\norm{\cdot}, L). A norm suited to the problem’s geometry gives small LL and steps long where possible, short where necessary. The same idea applied to a trust region rather than linear model underlies Newton’s method and mirror descent, which replaces norm by Bregman divergence.

A catalog of norms

Step normDual normDirection d⋆\vb{d}^\starResulting method
∥d∥2\norm{\vb{d}}_2∥g∥2\norm{\vb{g}}_2−g/∥g∥2-\vb{g}/\norm{\vb{g}}_2gradient descent
∥d∥∞\norm{\vb{d}}_\infty∥g∥1\norm{\vb{g}}_1−sign⁡(g)-\operatorname{sign}(\vb{g})sign descent (signSGD, Lion, Adam without averages)
∥d∥1\norm{\vb{d}}_1∥g∥∞\norm{\vb{g}}_\infty−sign⁡(gi) ei-\operatorname{sign}(g_i)\,\vb{e}_i, i=arg max⁡j∣gj∣i = \argmax_j\abs{g_j}greedy coordinate descent (Gauss–Southwell rule)
d⊤Pd\sqrt{\vb{d}\T\mat{P}\vb{d}}, P≻0\mat{P} \succ 0g⊤P−1g\sqrt{\vb{g}\T\mat{P}\inv\vb{g}}−P−1g/∥g∥P−1-\mat{P}\inv\vb{g}/\norm{\vb{g}}_{\mat{P}\inv}preconditioned gradient; Newton if P=∇2f\mat{P} = \hess f
Fisher metric d⊤Fd\sqrt{\vb{d}\T\mat{F}\vb{d}}g⊤F−1g\sqrt{\vb{g}\T\mat{F}\inv\vb{g}}∝−F−1g\propto -\mat{F}\inv\vb{g}natural gradient
spectral ∥D∥2\norm{\mat{D}}_2 on matricesnuclear ∥G∥∗\norm{\mat{G}}_*−UV⊤-\mat{U}\mat{V}\Tspectral descent (Muon)

The elliptical row deserves more. With diagonal P\mat{P}, step −P−1g-\mat{P}\inv\vb{g} is AdaGrad, RMSProp and Adam’s diagonal preconditioning. With P\mat{P} equal to the Hessian, it is Newton’s direction. The adaptive-methods lesson’s catalog fits in row four; rows five and six are this lesson’s focus.

InteractiveThe norm ball determines direction
⟨g, d⟩ = −2.10
  • unit ball {∥d∥≤1}\{\norm{\vb{d}} \le 1\}
  • gradient g\vb{g}
  • optimal step d⋆\vb{d}^\star and its level line
  • Euclidean direction −g/∥g∥2-\vb{g}/\norm{\vb{g}}_2
  • level lines of ⟨g,d⟩\inner{\vb{g}}{\vb{d}}
Step norm
∥g∥∗=∥g∥1=∣g1∣+∣g2∣\norm{\vb{g}}_* = \norm{\vb{g}}_1 = \abs{g_1} + \abs{g_2}
Dual norm ∥g∥∗\norm{\vb{g}}_*2.100
min⁡∥d∥≤1⟨g,d⟩\min_{\norm{\vb{d}} \le 1}\inner{\vb{g}}{\vb{d}}−2.100
Direction d⋆\vb{d}^\star(−1.00, −1.00)
Angle between d⋆\vb{d}^\star and −g-\vb{g}23.2°
∥g∥2\norm{\vb{g}}_2, for comparison1.616
Sign descent: −sign⁡(g)-\operatorname{sign}(\vb{g})
The optimum is always a vertex (±1,±1)(\pm1, \pm1): only the sign of each coordinate matters, not its magnitude.
The colored region is the selected norm's unit ball; dashed lines are level sets of linear model ⟨g,d⟩\inner{\vb{g}}{\vb{d}}, perpendicular to g\vb{g}. Optimal direction d⋆\vb{d}^\star is the ball point touching the lowest possible level, ⟨g,d⟩=−∥g∥∗\inner{\vb{g}}{\vb{d}} = -\norm{\vb{g}}_*. With ℓ∞\ell_\infty the optimum jumps between vertices as g\vb{g} rotates: only signs matter. With ℓ1\ell_1 the step moves one coordinate; bring g\vb{g} near the diagonal to see the whole tied edge. With ℓp\ell_p, raise pp from 1.1 to 12 and watch d⋆\vb{d}^\star travel from an axis to the diagonal. With the ellipse the step is no longer parallel to −g-\vb{g}: it is −P−1g-\mat{P}\inv\vb{g}.

Two readings matter. First: the optimal direction is parallel to −g-\vb{g} only in Euclidean norm. In any other norm, the angle between d⋆\vb{d}^\star and −g-\vb{g} can be large: with ℓ1\ell_1 and g=(1,0.99)\vb{g} = (1, 0.99) only the first coordinate moves, nearly 45°45° from −g-\vb{g}, and in dimension nn with all ∣gi∣\abs{g_i} similar the angle approaches arccos⁡(1/n)\arccos(1/\sqrt n), almost 90°90°. Yet d⋆\vb{d}^\star is always a descent direction, because ⟨g,d⋆⟩=−∥g∥∗<0\inner{\vb{g}}{\vb{d}^\star} = -\norm{\vb{g}}_* < 0. Second: balls with vertices give “discrete” steps. In ℓ∞\ell_\infty and ℓ1\ell_1 the optimum lies at vertices, so small gradient changes either do nothing or abruptly change direction. This causes both sign robustness and its noise.

ℓ∞ and sign descent

In the AdamW lesson you proved sign is steepest descent in ℓ∞\ell_\infty and Adam with β1=β2=0\beta_1 = \beta_2 = 0 is exactly that method. With the general framework in place, the definition is immediate.

Three properties distinguish it from gradient descent:

  1. Each coordinate moves exactly η\eta. The step depends only on each gradient component’s sign, not scale. Tiny-gradient coordinates (deep layers, rare parameters) advance as much as others. This is Adam’s invariance to separately rescaling each gradient.
  2. The geometry follows the axes. Sign is not rotation-invariant: rotating the problem truly changes the step. The second cell shows sign going from winning to losing merely by rotating the Hessian.
  3. Sign is a biased nonlinearity. E[sign⁡(g)]≠sign⁡(E[g])\E[\operatorname{sign}(g)] \ne \operatorname{sign}(\E[g]) in magnitude: for a Gaussian gradient of mean μ\mu and standard deviation σ\sigma, E[sign⁡(g)]=2Φ(μ/σ)−1\E[\operatorname{sign}(g)] = 2\Phi(\mu/\sigma) - 1, almost sign⁡(μ)\operatorname{sign}(\mu) at high signal and ≈0.8 μ/σ\approx 0.8\,\mu/\sigma at low signal. With noise, sign automatically damps coordinates whose mean gradient is small relative to noise. It also clips extremes: a huge stochastic gradient from an outlier counts as much as a normal one. Thus sign is robust to heavy-tailed noise, as you will measure.

Lion: the sign of interpolated momentum

Lion (EvoLved Sign Momentum) was not designed by hand. Chen et al. (2023) found it via symbolic program search over update rules, evaluating candidates on real tasks. The result is surprisingly simple:

ct=β1mt−1+(1−β1)gt,xt=xt−1−ηt(sign⁡(ct)+λxt−1),mt=β2mt−1+(1−β2)gt,\begin{aligned} \vb{c}_t &= \beta_1\vb{m}_{t-1} + (1 - \beta_1)\vb{g}_t, \\ \vb{x}_t &= \vb{x}_{t-1} - \eta_t\big(\operatorname{sign}(\vb{c}_t) + \lambda\vb{x}_{t-1}\big), \\ \vb{m}_t &= \beta_2\vb{m}_{t-1} + (1 - \beta_2)\vb{g}_t, \end{aligned}

with default β1=0.9\beta_1 = 0.9 and β2=0.99\beta_2 = 0.99. There are two moving averages of the same gradient, and the distinction matters. The stored one, mt\vb{m}_t, has long memory (β2=0.99\beta_2 = 0.99, about 100 steps); the one used for the step, ct\vb{c}_t, weights the current gradient more (1−β1=0.11 - \beta_1 = 0.1 versus 0.010.01). This resembles Nesterov momentum: look a little ahead of the slow average. Term λxt−1\lambda\vb{x}_{t-1} is decoupled weight decay as in AdamW.

Two practical consequences recommended by the paper. Since all sign⁡(ct)\operatorname{sign}(\vb{c}_t) entries have magnitude 1, Lion’s step norm is larger than Adam’s at the same rate (Adam’s ∣m^/v^∣\abs{\hat m/\sqrt{\hat v}} is usually well below 1). Lion’s rate is therefore typically 3 to 10 times smaller than AdamW’s and decay λ\lambda 3 to 10 times larger to preserve product ηλ\eta\lambda. Lion stores one state vector versus Adam’s two: real memory savings when optimizer state is a large fraction of total memory.

Fisher metric and natural gradient

Now parameters describe a distribution. Let pθp_\theta be a model with θ∈Rn\theta \in \R^n and L(θ)\Loss(\theta) a loss, e.g. mean negative log likelihood. Very different θ\theta values can yield the same distribution (consider simultaneous rescaling of two ReLU layers), and very close values can yield very different distributions (near σ=0\sigma = 0 in a Gaussian). Euclidean distance in θ\theta sees neither. KL divergence does, and its local form is a metric.

If pθp_\theta is sufficiently regular, the second-order Taylor expansion of KL around d=0\vb{d} = \vb{0} is

KL⁡(pθ ∥ pθ+d)=12 d⊤F(θ) d+O(∥d∥3),F(θ)=Ex∼pθ[∇θlog⁡pθ(x) ∇θlog⁡pθ(x)⊤],\KL\big(p_\theta \,\|\, p_{\theta + \vb{d}}\big) = \tfrac12\,\vb{d}\T\mat{F}(\theta)\,\vb{d} + \bigO(\norm{\vb{d}}^3), \qquad \mat{F}(\theta) = \E_{x \sim p_\theta}\big[\grad_\theta\log p_\theta(x)\,\grad_\theta\log p_\theta(x)\T\big],

where F\mat{F} is the Fisher information matrix: the zeroth-order term is 0, first order vanishes because the score has zero mean, and KL’s Hessian at d=0\vb{d} = \vb{0} is F\mat{F} (information theory’s Fisher metric). Thus KL measures elliptical norm ∥d∥F=d⊤Fd\norm{\vb{d}}_{\mat{F}} = \sqrt{\vb{d}\T\mat{F}\vb{d}} to second order, and the catalog’s fourth row gives the answer.

Fisher information appears as KL curvature rather than estimator variance. Both views yield the same matrix. For a well-specified model’s negative log likelihood, F\mat{F} equals the expected Hessian at the optimum, so natural gradient resembles Newton; with exponential-family outputs it equals the generalized Gauss–Newton Hessian (Martens, 2020), positive semidefinite even far from optimum.

Invariance to reparameterization

Natural gradient became famous because it does not depend on how parameters are written.

Proof

By the chain rule ∇ξlog⁡pϕ(ξ)=J⊤∇θlog⁡pθ\grad_\xi\log p_{\phi(\xi)} = \mat{J}\T\grad_\theta\log p_\theta, and taking the expected outer product gives Fξ=J⊤FθJ\mat{F}_\xi = \mat{J}\T\mat{F}_\theta\mat{J}. Likewise ∇ξL~=J⊤∇θL\grad_\xi\tilde\Loss = \mat{J}\T\grad_\theta\Loss. Then J Fξ−1∇ξL~=J J−1Fθ−1J−TJ⊤∇θL=Fθ−1∇θL\mat{J}\,\mat{F}_\xi\inv\grad_\xi\tilde\Loss = \mat{J}\,\mat{J}\inv\mat{F}_\theta\inv\mat{J}^{-\mathsf{T}}\mat{J}\T\grad_\theta\Loss = \mat{F}_\theta\inv\grad_\theta\Loss. For the discrete step, ϕ(ξ−ηv)=θ−ηJv+O(η2)\phi(\xi - \eta\vb{v}) = \theta - \eta\mat{J}\vb{v} + \bigO(\eta^2) with v=∇~ξL~\vb{v} = \tilde\grad_\xi\tilde\Loss, and Jv\mat{J}\vb{v} is the natural step in θ\theta. For the flow,  ⁣d ⁣dtϕ(ξ(t))=Jξ˙=−∇~θL\frac{\dd}{\dd t}\phi(\xi(t)) = \mat{J}\dot\xi = -\tilde\grad_\theta\Loss, the same differential equation with the same initial condition.

∎

The smallest example is fitting a Gaussian. Take pμ,σ=N(μ,σ2)p_{\mu,\sigma} = \Normal(\mu, \sigma^2) and loss L(μ,σ)=KL⁡(N(0,1) ∥ N(μ,σ2))=log⁡σ+μ2+12σ2−12\Loss(\mu, \sigma) = \KL\big(\Normal(0, 1) \,\|\, \Normal(\mu, \sigma^2)\big) = \log\sigma + \frac{\mu^2 + 1}{2\sigma^2} - \frac12, expected negative log likelihood on N(0,1)\Normal(0, 1) data minus its minimum. Its gradient and Fisher are

∇L=[μ/σ21/σ−(μ2+1)/σ3],F(μ,σ)=[1/σ2002/σ2].\grad\Loss = \begin{bmatrix} \mu/\sigma^2 \\ 1/\sigma - (\mu^2 + 1)/\sigma^3 \end{bmatrix}, \qquad \mat{F}(\mu, \sigma) = \begin{bmatrix} 1/\sigma^2 & 0 \\ 0 & 2/\sigma^2 \end{bmatrix}.

The natural gradient in (μ,σ)(\mu, \sigma) is (μ, σ2(1−(μ2+1)/σ2))\big(\mu,\ \tfrac{\sigma}{2}(1 - (\mu^2 + 1)/\sigma^2)\big): factors 1/σ21/\sigma^2 and 1/σ31/\sigma^3 making ordinary gradient explode near σ=0\sigma = 0 and stall for large σ\sigma disappear. In parameterization s=log⁡σs = \log\sigma, F=diag⁡(1/σ2,2)\mat{F} = \diag(1/\sigma^2, 2), and the theorem guarantees the natural step in ss mapped to σ\sigma is the same to first order.

InteractiveNatural-gradient invariance
Coordinates (μ,σ)(\mu, \sigma)
Coordinates (μ,log⁡σ)(\mu, \log\sigma) (logarithmic vertical axis)
The four Gaussians at step 0 and the target N(0,1)\mathcal{N}(0, 1)
  • gradient in (μ,σ)(\mu, \sigma)
  • gradient in (μ,log⁡σ)(\mu, \log\sigma)
  • natural in (μ,σ)(\mu, \sigma)
  • natural in (μ,log⁡σ)(\mu, \log\sigma)
  • optimum N(0,1)\mathcal{N}(0, 1)
0.050
0.050
Show
step 0
Maximum KL along the two ordinary paths…
Maximum KL along the two natural paths…
Loss: ordinary in σ\sigma / in log⁡σ\log\sigma…
Loss: natural in σ\sigma / in log⁡σ\log\sigma…
Fit N(μ,σ2)\Normal(\mu, \sigma^2) to N(0,1)\Normal(0, 1) with four dynamics: ordinary gradient in (μ,σ)(\mu, \sigma) (orange) and (μ,log⁡σ)(\mu, \log\sigma) (aqua), and natural gradient in both (wide blue and dashed violet). Each trajectory is drawn in both planes, since a point in either is the same Gaussian. Ordinary gradients follow different paths: changing coordinates changes the algorithm. Natural gradients trace almost the same curve: their largest KL along the way is about 800 times smaller than between ordinary gradients. Lower their rate and that KL collapses (from 3⋅10−43\cdot10^{-4} at η=0.1\eta = 0.1 to 8⋅10−68\cdot10^{-6} at η=0.025\eta = 0.025): the difference is pure discretization error. Drag the start toward small σ\sigma: ordinary gradient in σ\sigma jumps enormously or leaves the domain.

True versus empirical Fisher

F\mat{F} is an expectation under the model: in supervised learning, F=Ex∼datosEy∼pθ(⋅∣x)[∇log⁡pθ(y∣x)∇log⁡pθ(y∣x)⊤]\mat{F} = \E_{\vb{x}\sim\text{datos}}\E_{y \sim p_\theta(\cdot\given\vb{x})}[\grad\log p_\theta(y\given\vb{x})\grad\log p_\theta(y\given\vb{x})\T], with labels sampled from the model. Substituting real labels is tempting because the matrix then uses the same per-example gradients already available:

F^emp=1n∑i=1n∇log⁡pθ(yi∣xi) ∇log⁡pθ(yi∣xi)⊤.\hat{\mat{F}}_{\text{emp}} = \frac1n\sum_{i=1}^n \grad\log p_\theta(y_i\given\vb{x}_i)\,\grad\log p_\theta(y_i\given\vb{x}_i)\T.

This is empirical Fisher, and approximates Fisher only in one case: at the optimum of a well-specified model, where real labels follow the model distribution. Far away it can be arbitrarily poor (Kunstner, Balles and Hennig, 2019). One-line example: estimate mean μ\mu of N(μ,1)\Normal(\mu, 1) using data from N(0,1)\Normal(0, 1). True Fisher is 1 for every μ\mu; empirical Fisher is 1n∑i(xi−μ)2≈1+μ2\frac1n\sum_i(x_i - \mu)^2 \approx 1 + \mu^2. The empirical “natural step” is −μ/(1+μ2)-\mu/(1 + \mu^2), which from ∣μ∣=1\abs{\mu} = 1 gets smaller farther from the optimum: it tends to zero as 1/μ1/\mu, while the true natural step is −μ-\mu. Empirical Fisher is the gradient second-moment matrix, and far from optimum those gradients are large because the model errs, not because the surface is curved.

Natural gradient has an obvious cost: F\mat{F} is n×nn\times n, and with n=108n = 10^8 it cannot be stored or inverted. Practical methods approximate F\mat{F} in Kronecker-product-structured blocks, one per layer: K-FAC, next lesson. The same idea with an explicit KL constraint instead of a penalty underlies TRPO in reinforcement learning.

Weight matrices as operators

Return to a network. A linear layer’s parameter is matrix W∈Rdout×din\mat{W} \in \R^{d_{\text{out}}\times d_{\text{in}}} and gradient G=∇WL\mat{G} = \grad_{\mat{W}}\Loss another. Gradient descent treats it as a long vector under Frobenius norm. But the layer does y=Wx\vb{y} = \mat{W}\vb{x}, and change ΔW\Delta\mat{W} changes its output by ΔWx\Delta\mat{W}\vb{x}, whose worst case is

∥ΔWx∥2≤∥ΔW∥2 ∥x∥2,\norm{\Delta\mat{W}\vb{x}}_2 \le \norm{\Delta\mat{W}}_2\,\norm{\vb{x}}_2,

with ∥⋅∥2\norm{\cdot}_2 the spectral norm, largest singular value. To control how much a layer’s output can change for any input, spectral norm is natural for the step. Its dual under inner product ⟨A,B⟩F=tr⁡(A⊤B)\inner{\mat{A}}{\mat{B}}_F = \tr(\mat{A}\T\mat{B}) is nuclear norm ∥G∥∗=∑iσi(G)\norm{\mat{G}}_* = \sum_i\sigma_i(\mat{G}).

An exercise proves it step by step; the idea fits in one line. ⟨G,D⟩F=∑iσi ui⊤Dvi\inner{\mat{G}}{\mat{D}}_F = \sum_i\sigma_i\,\vb{u}_i\T\mat{D}\vb{v}_i and each ∣ui⊤Dvi∣≤∥D∥2≤1\abs{\vb{u}_i\T\mat{D}\vb{v}_i} \le \norm{\mat{D}}_2 \le 1, so the sum is at least −∑iσi-\sum_i\sigma_i, with equality when Dvi=−ui\mat{D}\vb{v}_i = -\vb{u}_i for all ii.

Four useful views of orth⁡(G)\operatorname{orth}(\mat{G}):

  • It is the sign of singular values. orth⁡(G)=Usign⁡(Σ)V⊤\operatorname{orth}(\mat{G}) = \mat{U}\operatorname{sign}(\mat{\Sigma})\mat{V}\T. If G\mat{G} is diagonal, orth⁡(G)=sign⁡(G)\operatorname{orth}(\mat{G}) = \operatorname{sign}(\mat{G}): spectral descent is sign descent in the gradient-diagonalizing basis. It preserves gradient input and output directions and discards magnitudes.
  • It is the semiorthogonal matrix closest to G\mat{G} in Frobenius norm (orthogonal Procrustes).
  • It is Shampoo without accumulation. With L=GG⊤\mat{L} = \mat{G}\mat{G}\T and R=G⊤G\mat{R} = \mat{G}\T\mat{G}, L−1/4GR−1/4=UΣ−1/2U⊤UΣV⊤VΣ−1/2V⊤=UV⊤\mat{L}^{-1/4}\mat{G}\mat{R}^{-1/4} = \mat{U}\mat{\Sigma}^{-1/2}\mat{U}\T\mat{U}\mat{\Sigma}\mat{V}\T\mat{V}\mat{\Sigma}^{-1/2}\mat{V}\T = \mat{U}\mat{V}\T. Shampoo accumulates L\mat{L} and R\mat{R} over time; with zero memory it is spectral descent.
  • It is rotation-equivariant. For orthogonal Q1,Q2\mat{Q}_1, \mat{Q}_2, orth⁡(Q1GQ2)=Q1orth⁡(G)Q2\operatorname{orth}(\mat{Q}_1\mat{G}\mat{Q}_2) = \mat{Q}_1\operatorname{orth}(\mat{G})\mat{Q}_2. Rotating layer inputs or outputs does not change the algorithm, as in SGD and unlike Adam or sign, which depend on the coordinate basis.

Why discard magnitudes? Network-layer gradients have very low stable rank ∥G∥F2/∥G∥22\norm{\mat{G}}_F^2/\norm{\mat{G}}_2^2: almost all energy lies in a few directions. A minibatch gradient sums BB outer products δixi⊤\boldsymbol{\delta}_i\vb{x}_i\T, so rank is at most BB, and in practice a few directions dominate. SGD spends almost its entire step there; Muon weights all gradient-visible directions equally, including weak ones potentially important for learning but drowned out by SGD.

InteractiveThe update's spectrum
Singular values of each normalized update (∥ΔW∥F=1\norm{\Delta\mat{W}}_F = 1), in descending order
Entries of each update (16 × 32): red positive, blue negative, each map with its own scale.
100
1.0
Batch size BB
Muon orthogonalization
Stable rank of SGD…
Stable rank of Adam…
Stable rank of Muon…
Energy in the first direction (SGD)…
Loss at step tt…
A 16×3216\times 32 linear layer learns to imitate another with minibatch SGD. At step tt compare three updates, all normalized to ∥ΔW∥F=1\norm{\Delta\mat{W}}_F = 1: minibatch gradient (SGD), Adam (m^/v^\hat{\vb{m}}/\sqrt{\hat{\vb{v}}} on the same gradient sequence), and Muon (orthogonalized Nesterov momentum). The plot shows descending singular values on a log scale; heatmaps show entries. With anisotropic inputs (β=1\beta = 1 or more), SGD concentrates energy in one to three directions: stable rank ∥ΔW∥F2/∥ΔW∥22\norm{\Delta\mat{W}}_F^2/\norm{\Delta\mat{W}}_2^2 is about 1 to 3 of 16, and early heatmaps show stripes. Adam spreads it somewhat but coordinatewise, not directionwise. Muon forms a plateau: equal singular values with exact SVD (stable rank 16), almost all between 0.7 and 1.35 times the mean with Newton–Schulz (stable rank around 10). Set tt to 0 with batch 8: gradient rank is at most 8 and so is Muon's, because orthogonalization cannot create missing gradient directions.

Newton–Schulz: polynomials taking singular values to 1

An SVD at every step of every layer is expensive and, above all, parallelizes poorly on a GPU. The answer is elementary: an odd matrix polynomial acts separately on each singular value.

Proof

XX⊤=UΣV⊤VΣU⊤=UΣ2U⊤\mat{X}\mat{X}\T = \mat{U}\mat{\Sigma}\mat{V}\T\mat{V}\mat{\Sigma}\mat{U}\T = \mat{U}\mat{\Sigma}^2\mat{U}\T because V⊤V=I\mat{V}\T\mat{V} = \mat{I}, so (XX⊤)kX=UΣ2kU⊤UΣV⊤=UΣ2k+1V⊤(\mat{X}\mat{X}\T)^k\mat{X} = \mat{U}\mat{\Sigma}^{2k}\mat{U}\T\mat{U}\mat{\Sigma}\mat{V}\T = \mat{U}\mat{\Sigma}^{2k+1}\mat{V}\T. Summing with coefficients yields the result. Even powers would not work: XX⊤\mat{X}\mat{X}\T lives in U\mat{U} space and lacks form U(⋅)V⊤\mat{U}(\cdot)\mat{V}\T.

∎

Thus to approximate orth⁡(X)=UV⊤\operatorname{orth}(\mat{X}) = \mat{U}\mat{V}\T, iterate a polynomial sending each σ\sigma toward 1 a few times. Each iteration costs three matrix products: A=XX⊤\mat{A} = \mat{X}\mat{X}\T, B=bA+cA2\mat{B} = b\mat{A} + c\mat{A}^2 and X←aX+BX\mat{X} \leftarrow a\mat{X} + \mat{B}\mat{X}. In wide orientation (m≤nm \le n), A\mat{A} is m×mm\times m and iteration costs about 4m2n+2m34m^2n + 2m^3 operations, all dense products GPUs run at full throughput.

The classical cubic

Newton–Schulz polar-factor iteration uses p(σ)=32σ−12σ3p(\sigma) = \tfrac32\sigma - \tfrac12\sigma^3, namely X←12X(3I−X⊤X)\mat{X} \leftarrow \tfrac12\mat{X}(3\mat{I} - \mat{X}\T\mat{X}). Its properties follow from the polynomial:

  • p(1)=1p(1) = 1 and p′(1)=32−32=0p'(1) = \tfrac32 - \tfrac32 = 0: 1 is a superattracting fixed point and nearby convergence is quadratic (error σ−1\sigma - 1 becomes −32(σ−1)2+O((σ−1)3)-\tfrac32(\sigma - 1)^2 + \bigO((\sigma - 1)^3)).
  • p(3)=0p(\sqrt3) = 0, and for σ>3\sigma > \sqrt3, p(σ)<0p(\sigma) < 0: iteration works only in (0,3)(0, \sqrt3). Therefore normalize X0=G/∥G∥F\mat{X}_0 = \mat{G}/\norm{\mat{G}}_F, guaranteeing σi≤1\sigma_i \le 1 because ∥G∥2≤∥G∥F\norm{\mat{G}}_2 \le \norm{\mat{G}}_F.
  • Near 0, p(σ)≈1.5 σp(\sigma) \approx 1.5\,\sigma: a small singular value grows only 50 % per step. From σ=10−3\sigma = 10^{-3} it takes 19 iterations to reach ∣σ−1∣<0.01\abs{\sigma - 1} < 0.01.

The last point is the issue. After Frobenius normalization most singular values of a real gradient are tiny (consider σi/∥G∥F\sigma_i/\norm{\mat{G}}_F with a hundred singular values). Five cubic steps barely move them: they multiply by 1.55≈7.61.5^5 \approx 7.6, and 10−310^{-3} remains 0.0080.008.

Muon’s quintic

Keller Jordan proposed changing the goal. Singular values need not end exactly at 1; near 1 quickly suffices. With p(σ)=3.4445 σ−4.7750 σ3+2.0315 σ5p(\sigma) = 3.4445\,\sigma - 4.7750\,\sigma^3 + 2.0315\,\sigma^5, slope at the origin is 3.44453.4445 (over double the cubic), at the cost of 1 no longer being fixed: p(1)=0.701p(1) = 0.701. Iterated five times, this polynomial takes any σ0∈[2⋅10−3,1]\sigma_0 \in [2\cdot10^{-3}, 1] into band [0.68,1.21][0.68, 1.21], oscillating there. The result is not UV⊤\mat{U}\mat{V}\T but US′V⊤\mat{U}\mat{S}'\mat{V}\T with S′\mat{S}' diagonal in that band, and empirical experience is that this does not hurt training.

InteractiveNewton–Schulz in action
Each singular value after k=0k = 0 steps versus its initial value (log scale)
0.51.01.510⁻⁴10⁻³10⁻²10⁻¹σ₀ = 1
Histogram of σ\sigma after k=0k = 0 steps
σ = 00.51.01.5
One step: σ↦p(σ)\sigma \mapsto p(\sigma) alongside the diagonal
σ = 012
k = 0
Prior normalization
1.30
p(σ)=3.4445 σ−4.7750 σ3+2.0315 σ5p(\sigma) = 3.4445\,\sigma - 4.7750\,\sigma^3 + 2.0315\,\sigma^5
Steps kk (matrix products)0 (0)
Current σmin⁡\sigma_{\min}0.0020
Current σmax⁡\sigma_{\max}0.845
Fraction with ∣σ−1∣<0.35\abs{\sigma - 1} < 0.351 %
Steps to bring all values into the band5
Each blue dot is a singular value of a normalized 128×512128\times 512 gradient: initial value horizontally on a log scale, value after kk steps vertically. Magenta is p∘⋯∘pp\circ\cdots\circ p, green is ∣σ−1∣<0.35\abs{\sigma - 1} < 0.35. The figure starts after Muon's five steps; return to k=0k = 0 and play: five steps bring all points into the band, including the smallest, around 2⋅10−32\cdot10^{-3} (raise α\alpha to 2 and values of 5⋅10−45\cdot10^{-4} appear, needing a sixth step). Switch to the classical cubic and count steps for small values: 15. Try normalization ‘None’, leaving the largest singular value at 2: the cubic sends it to −1-1 and leaves it there (red marks 3\sqrt3), while the quintic explodes. With ‘Custom coefficients’ try your own polynomial: what happens if slope aa rises without compensating bb and cc?

Muon performs five iterations in bfloat16, with products in modern GPUs’ 16-bit format (see IEEE 754 formats and relatives). This is safe for two reasons: rounding error at one step acts as a small singular-value perturbation that the next returns to the band, and the result need only be inside the band, not exact. This is mixed precision’s logic in autocast training: use low precision where errors do not accumulate.

Muon

Muon (MomentUm Orthogonalized by Newton-Schulz, Jordan et al., 2024) combines the pieces. For each hidden matrix W\mat{W} with gradient Gt\mat{G}_t:

Bt=μ Bt−1+Gt,Ot=NS⁡5(Gt+μ Bt),Wt=(1−ηλ) Wt−1−η s(dout,din) Ot,\begin{aligned} \mat{B}_t &= \mu\,\mat{B}_{t-1} + \mat{G}_t, \\ \mat{O}_t &= \operatorname{NS}_5\big(\mat{G}_t + \mu\,\mat{B}_t\big), \\ \mat{W}_t &= (1 - \eta\lambda)\,\mat{W}_{t-1} - \eta\,s(d_{\text{out}}, d_{\text{in}})\,\mat{O}_t, \end{aligned}

with μ=0.95\mu = 0.95, five quintic steps (after Frobenius normalization), decoupled weight decay λ\lambda and shape factor ss. Momentum is orthogonalized after accumulation: the recent-gradient mean best estimates direction, and orthogonalization decides how to allocate the step among its directions.

Shape scaling

Without factor ss the same rate η\eta produces very different step sizes in different-sized layers. orth⁡(G)\operatorname{orth}(\mat{G}) of a full-rank m×nm\times n matrix has min⁡(m,n)\min(m, n) singular values equal to 1, so ∥orth⁡(G)∥F2=min⁡(m,n)\norm{\operatorname{orth}(\mat{G})}_F^2 = \min(m, n) and its entries’ root-mean-square is

RMS⁡(orth⁡(G))=min⁡(m,n)mn=1max⁡(m,n).\operatorname{RMS}\big(\operatorname{orth}(\mat{G})\big) = \sqrt{\frac{\min(m, n)}{mn}} = \frac{1}{\sqrt{\max(m, n)}}.

Two conventions are used:

  • Original uses s=max⁡(1,dout/din)s = \sqrt{\max(1, d_{\text{out}}/d_{\text{in}})}. It measures the step by operator norm between unit-RMS vectors, ∥W∥RMS→RMS=din/dout ∥W∥2\norm{\mat{W}}_{\text{RMS}\to\text{RMS}} = \sqrt{d_{\text{in}}/d_{\text{out}}}\,\norm{\mat{W}}_2, whose steepest descent is −dout/din UV⊤-\sqrt{d_{\text{out}}/d_{\text{in}}}\,\mat{U}\mat{V}\T: the rate transfers between wide and narrow layers. max⁡(1,⋅)\max(1, \cdot) is a practical adjustment: it does not reduce steps for layers wider than tall.
  • Moonshot (Liu et al., 2025) uses s=0.2max⁡(dout,din)s = 0.2\sqrt{\max(d_{\text{out}}, d_{\text{in}})}, giving each step RMS 0.20.2, typical of AdamW updates. Muon can thereby reuse the rate and weight decay tuned for AdamW.

Forgetting the factor is a silent error: training works, but each layer has a different optimal rate and no global value works for all.

Parameters excluded from Muon

Muon optimizes hidden-layer weight matrices. Other parameters use AdamW in separate parameter groups (see PyTorch’s optimizer API):

  • Biases, normalization gains and scalars. These are vectors. For a vector orth⁡(g)=g/∥g∥2\operatorname{orth}(\vb{g}) = \vb{g}/\norm{\vb{g}}_2: orthogonalization degenerates to normalization and no operator structure remains to exploit.
  • Embedding table. Its input is a one-hot vector: the layer selects a column rather than mixing input directions. The appropriate operator norm from one-hot vectors measures columns separately, and its steepest descent normalizes column by column, not orthogonalizes. Also a rare token’s gradient is tiny and orthogonalization would amplify it to the same size as frequent ones.
  • Output layer. It produces softmax logits, which do not behave like unit-RMS activations. Empirically applying Muon worsens results, and Jordan and later work recommend AdamW instead.
  • Convolutions. Muon does handle them, flattening the filter of shape (cout,cin,k,k)(c_{\text{out}}, c_{\text{in}}, k, k) into matrix cout×cink2c_{\text{out}}\times c_{\text{in}}k^2.

Implementation from scratch

First, steepest descent under the catalog’s norms, checked by brute force: among two hundred thousand boundary points per ball, none should reduce the linear model more than d⋆\vb{d}^\star.

[ ]Steepest descent in four normsBrowser
import numpy as np

def paso_mas_pronunciado(g, norma, P=None):
    """Minimizador d de <g, d> en la bola unidad de la norma y valor de la norma dual ||g||_* = -<g, d>."""
    if norma == "l2":
        d = -g / np.linalg.norm(g)
    elif norma == "linf":
        d = -np.sign(g)
    elif norma == "l1":
        i = np.argmax(np.abs(g))
        d = np.zeros_like(g)
        d[i] = -np.sign(g[i])
    elif norma == "P":                                   # ||d||_P = sqrt(d' P d)
        h = np.linalg.solve(P, g)
        d = -h / np.sqrt(g @ h)
    return d, -(g @ d)

def norma_de(Z, norma, P=None):
    if norma == "l2":
        return np.linalg.norm(Z, axis=1)
    if norma == "linf":
        return np.abs(Z).max(axis=1)
    if norma == "l1":
        return np.abs(Z).sum(axis=1)
    return np.sqrt(np.einsum("ij,jk,ik->i", Z, P, Z))

rng = np.random.default_rng(0)
n = 6
g = rng.standard_normal(n)
A = rng.standard_normal((n, n))
P = A @ A.T + 0.5 * np.eye(n)
# puntos aleatorios llevados a la frontera de cada bola: ninguno debe mejorar a d
Z = rng.standard_normal((200_000, n)) * rng.exponential(size=(200_000, 1)) ** 3
print("norma   ||g||_*    mejor muestra   ||d||")
for norma in ["l2", "linf", "l1", "P"]:
    d, dual = paso_mas_pronunciado(g, norma, P)
    U = Z / norma_de(Z, norma, P)[:, None]
    print(f"{norma:5s}  {dual:8.4f}   {-(U @ g).min():12.4f}   {norma_de(d[None], norma, P)[0]:.3f}")

The sample approaches the optimum without exceeding it. Now the guarantee theorem in action. For f(x)=12x⊤Hxf(\vb{x}) = \tfrac12\vb{x}\T\mat{H}\vb{x}, the smoothness constant under norm ∥⋅∥\norm{\cdot} is L=max⁡∥d∥≤1d⊤HdL = \max_{\norm{\vb{d}} \le 1}\vb{d}\T\mat{H}\vb{d}, computed at vertices for ℓ1\ell_1 and ℓ∞\ell_\infty and by variable substitution for ellipses. Each method takes step Δx=(∥g∥∗/L) d⋆\Delta\vb{x} = (\norm{\vb{g}}_*/L)\,\vb{d}^\star; measure iteration count and worst ratio of actual to guaranteed decrease, which the theorem says never falls below 1.

[ ]The same guarantee, five geometriesBrowser
import itertools

def constante_L(H, norma, P=None):
    """L = max_{||d|| <= 1} d' H d para H semidefinida positiva: la suavidad de x'Hx/2 en esa norma."""
    if norma == "l2":
        return np.linalg.eigvalsh(H).max()
    if norma == "l1":                        # el máximo de una forma convexa en la bola l1 está en un vértice ±e_i
        return np.diag(H).max()
    if norma == "linf":                      # ... y en la bola l-infinito, en un vértice (±1, ..., ±1)
        V = np.array(list(itertools.product([-1.0, 1.0], repeat=H.shape[0])))
        return np.einsum("ij,jk,ik->i", V, H, V).max()
    R = np.linalg.cholesky(np.linalg.inv(P))  # d = R u con ||u||_2 = 1 recorre la bola de ||.||_P
    return np.linalg.eigvalsh(R.T @ H @ R).max()

def descenso(H, x0, norma, P=None, tol=1e-10, max_iter=100_000):
    L = constante_L(H, norma, P)
    f = lambda x: 0.5 * x @ H @ x
    x, f0, peor = x0.copy(), f(x0), np.inf
    for k in range(max_iter):
        d, dual = paso_mas_pronunciado(H @ x, norma, P)
        x_nuevo = x + (dual / L) * d
        peor = min(peor, (f(x) - f(x_nuevo)) / (dual**2 / (2 * L)))
        x = x_nuevo
        if f(x) <= tol * f0:
            return k + 1, peor
    return max_iter, peor

n = 8
h = np.logspace(0, 2, n)                       # curvaturas de 1 a 100
Q, _ = np.linalg.qr(np.random.default_rng(1).standard_normal((n, n)))
x0 = np.random.default_rng(2).standard_normal(n)
for nombre, H in {"alineada con los ejes": np.diag(h), "girada": Q @ np.diag(h) @ Q.T}.items():
    print(f"hessiana {nombre}:")
    for etiqueta, norma, P in [("l2", "l2", None), ("linf (signo)", "linf", None), ("l1 (coordenada)", "l1", None),
                               ("P = diag(H)", "P", np.diag(np.diag(H))), ("P = H (Newton)", "P", H)]:
        it, peor = descenso(H, x0, norma, P)
        print(f"   {etiqueta:16s} iteraciones: {it:6d}   min(descenso / garantía) = {peor:.2f}")

The table summarizes the lesson. With axis-aligned Hessian, sign needs 135 iterations versus gradient’s 719: its geometry fits the problem. Rotate the Hessian without changing eigenvalues and sign rises to 2778, worse than gradient, unaffected by rotation (903). Diagonal norm P=diag⁡(H)\mat{P} = \diag(\mat{H}) matches Newton in the aligned case and helps less when rotated (539), and P=H\mat{P} = \mat{H} solves both in one step. The minimum ratio never falls below 1, as promised.

Sign, Signum and Lion with noise

Now stochastic gradients on a 100-dimensional quadratic with curvatures 10−310^{-3} to 1. Each method uses the same rate schedule (linear decay to zero) and its best rate among eleven. Compare no noise, Gaussian noise and Student tt noise with 1.5 degrees of freedom, which has infinite variance.

[ ]Sign versus gradient with Gaussian and heavy-tailed noiseBrowser
import numpy as np

d, T = 100, 400
h = np.logspace(-3, 0, d)                        # curvaturas de 0.001 a 1, alineadas con los ejes
x_ini = 3 * np.random.default_rng(5).standard_normal(d)
f = lambda x: 0.5 * np.sum(h * x * x)

def entrenar(regla, lr, sigma, colas=False, seed=0):
    rng = np.random.default_rng(seed)
    x, m = x_ini.copy(), np.zeros(d)
    for t in range(T):
        ruido = rng.standard_t(1.5, d) if colas else rng.standard_normal(d)
        g = h * x + sigma * ruido
        eta = lr * (1 - t / T)                       # decaimiento lineal hasta 0, igual para todos
        if regla == "SGD+mom.":
            m = 0.9 * m + g
            x = x - eta * m
        elif regla == "signSGD":
            x = x - eta * np.sign(g)
        elif regla == "Signum":                      # signo del momentum
            m = 0.9 * m + 0.1 * g
            x = x - eta * np.sign(m)
        elif regla == "Lion":
            c = 0.9 * m + 0.1 * g                    # beta1 = 0.9: interpolación para el paso
            x = x - eta * np.sign(c)
            m = 0.99 * m + 0.01 * g                  # beta2 = 0.99: memoria más larga
        if not np.all(np.abs(x) < 1e6):
            return np.inf
    return f(x)

tasas = np.logspace(-4, 1, 11)
print(f"f inicial = {f(x_ini):.1f}; mejor f final tras ajustar la tasa en {len(tasas)} valores")
print(f"{'ruido':22s}" + "".join(f"{r:>12s}" for r in ["SGD+mom.", "signSGD", "Signum", "Lion"]))
for sigma, colas, nombre in [(0.0, False, "sin ruido"), (0.5, False, "gaussiano, σ = 0.5"), (0.5, True, "t de Student (ν = 1.5)")]:
    fila = [min(entrenar(regla, lr, sigma, colas) for lr in tasas) for regla in ["SGD+mom.", "signSGD", "Signum", "Lion"]]
    print(f"{nombre:22s}" + "".join(f"{v:12.2e}" for v in fila))

The result cautions against sweeping claims. On an aligned quadratic with Gaussian noise, momentum SGD beats all sign methods. With heavy-tailed noise the story reverses: SGD barely drops from 47.8 to 6.7 because its optimal rate must be tiny to survive occasional huge gradients, while signSGD reaches 1.8 by clipping each coordinate to ±η\pm\eta. Lion is last: its long moving average (β2=0.99\beta_2 = 0.99) absorbs an outlier and retains it for tens of steps, so the sign of a mean can be less robust than the mean of signs. Zhang et al. (2020) argued transformer gradient noise is heavy-tailed; Kunstner et al. (2023) later noted sign advantages persist even without noise. This experiment shows one mechanism favoring sign under heavy tails, not that this mechanism acts in your model.

A Gaussian’s natural gradient

The next cell checks invariance numerically: traverse the same total time t=η⋅pasos=2t = \eta\cdot\text{pasos} = 2 at progressively smaller rates in both parameterizations, measuring KL between final Gaussians. Then compare natural and empirical-Fisher steps.

[ ]Natural gradient: invariance and empirical FisherBrowser
import numpy as np

def grad_mu_sigma(mu, sig):                      # gradiente de KL(N(0,1) || N(mu, sig^2))
    r = mu**2 + 1.0
    return np.array([mu / sig**2, 1 / sig - r / sig**3])

def kl(p, q):                                    # KL(N(p) || N(q)), con p = (mu, sigma)
    return np.log(q[1] / p[1]) + (p[1]**2 + (p[0] - q[0])**2) / (2 * q[1]**2) - 0.5

def natural(theta0, eta, pasos, coords):
    mu, sig = theta0
    for _ in range(pasos):
        g = grad_mu_sigma(mu, sig)
        if coords == "sigma":                    # F = diag(1/sig^2, 2/sig^2)
            mu, sig = mu - eta * sig**2 * g[0], sig - eta * sig**2 / 2 * g[1]
        else:                                    # s = log sig: F = diag(1/sig^2, 2), grad_s = sig * grad_sig
            mu, sig = mu - eta * sig**2 * g[0], sig * np.exp(-eta * 0.5 * sig * g[1])
    return np.array([mu, sig])

def ordinario(theta0, eta, pasos, coords):
    mu, sig = theta0
    for _ in range(pasos):
        g = grad_mu_sigma(mu, sig)
        if coords == "sigma":
            mu, sig = mu - eta * g[0], sig - eta * g[1]
        else:
            mu, sig = mu - eta * g[0], sig * np.exp(-eta * sig * g[1])
    return np.array([mu, sig])

theta0 = (-2.0, 2.5)
print("tiempo total eta * pasos = 2 en todos los casos")
print("  eta      KL entre naturales   KL entre ordinarios")
for eta in [0.2, 0.1, 0.05, 0.025, 0.0125]:
    pasos = round(2 / eta)
    a, b = natural(theta0, eta, pasos, "sigma"), natural(theta0, eta, pasos, "log")
    c, d = ordinario(theta0, eta, pasos, "sigma"), ordinario(theta0, eta, pasos, "log")
    print(f"  {eta:<7}  {kl(a, b):.3e}            {kl(c, d):.3e}")

# Fisher verdadera frente a Fisher empírica para la media de N(mu, 1) con datos de N(0, 1)
x = np.random.default_rng(0).normal(0.0, 1.0, size=10_000)
print("\n  mu    gradiente   Fisher verdadera   Fisher empírica   paso natural   paso con la empírica")
for mu in [0.5, 2.0, 5.0, 20.0]:
    puntuaciones = x - mu                        # d/dmu log p(x | mu) en cada dato, con las etiquetas reales
    g = -puntuaciones.mean()                     # gradiente de la log-verosimilitud negativa media
    F_emp = np.mean(puntuaciones**2)             # media de los gradientes por ejemplo al cuadrado
    print(f"  {mu:4.1f}   {g:8.3f}      {1.0:6.2f}            {F_emp:8.2f}        {-g:8.3f}       {-g / F_emp:8.4f}")

The first table separates dynamics clearly. KL between natural gradients falls from 1.3⋅10−41.3\cdot10^{-4} to 3.9⋅10−73.9\cdot10^{-7}, roughly a factor of 4 each time rate halves: parameter difference is O(η)\bigO(\eta) and KL, quadratic in it, O(η2)\bigO(\eta^2). In the limit they are the same curve. Ordinary-gradient KL stays at 0.0630.063: different flows, not discretization error. The second table shows empirical Fisher’s failure: with μ=20\mu = 20 the natural step is −20-20 (reaching optimum in one step with η=1\eta = 1), and empirical step −0.05-0.05.

Newton–Schulz versus SVD

[ ]Newton–Schulz from scratchBrowser
import numpy as np

def newton_schulz(G, pasos, coef=(3.4445, -4.7750, 2.0315)):
    a, b, c = coef
    alta = G.shape[0] > G.shape[1]
    X = G.T if alta else G                           # orientación ancha: X X' es la matriz pequeña
    X = X / (np.linalg.norm(X) + 1e-7)               # Frobenius >= espectral: todos los sigma en (0, 1]
    for _ in range(pasos):
        A = X @ X.T
        B = b * A + c * A @ A
        X = a * X + B @ X
    return X.T if alta else X

rng = np.random.default_rng(0)
m, n = 64, 256
# un "gradiente" con estructura: rango bajo dominante más ruido
G = 5 * rng.standard_normal((m, 4)) @ rng.standard_normal((4, n)) + rng.standard_normal((m, n))
s = np.linalg.svd(G, compute_uv=False)
print(f"valores singulares de G: de {s[0]:.1f} a {s[-1]:.2f}; tras normalizar, de {s[0]/np.linalg.norm(s):.3f} a {s[-1]/np.linalg.norm(s):.4f}")
nuclear = s.sum()                                    # norma dual de la espectral
print("polinomio   pasos   sigma min   sigma max   <G, X> / (||X||_2 ||G||_*)")
for nombre, coef in [("cúbico", (1.5, -0.5, 0.0)), ("Muon", (3.4445, -4.7750, 2.0315))]:
    for pasos in [3, 5, 10, 20]:
        X = newton_schulz(G, pasos, coef)
        sx = np.linalg.svd(X, compute_uv=False)
        print(f"{nombre:10s}  {pasos:4d}     {sx.min():.3f}       {sx.max():.3f}       {np.sum(G * X) / (sx[0] * nuclear):.4f}")
flops = 5 * (4 * m * m * n + 2 * m**3)
print(f"\n5 pasos sobre una matriz de {m}x{n}: {flops / 1e6:.1f} millones de operaciones, todas productos densos")

The last column is the fraction of optimal linear decrease ∥G∥∗\norm{\mat{G}}_* achieved by each approximation once scaled to spectral norm 1. The cubic needs 20 steps to reach exact UV⊤\mat{U}\mat{V}\T (fraction 1). At 5 steps both approximations achieve 76 %, because the four large singular values dominate that measure; they differ on small ones: cubic leaves them at 0.050.05 and quintic raises them to 0.680.68. This is exactly what Muon seeks, moving weak directions too, and its polynomial pays by never converging to exact UV⊤\mat{U}\mat{V}\T (fraction plateaus around 0.8).

Muon from scratch on a linear layer

To finish from scratch, compare Muon, momentum SGD and Adam on the spectrum interactive’s problem: a teacher–student linear layer with highly anisotropic input covariance diag⁡(j−1.5)\diag(j^{-1.5}). Each method uses its best of five rates. Repeat with inputs rotated by a random orthogonal matrix and teacher rotated accordingly: the same problem in another basis.

[ ]Muon, SGD and Adam under input rotationBrowser
d_out, d_in, B, T = 24, 48, 16, 150
lam = np.arange(1, d_in + 1) ** -1.5                     # covarianza de las entradas: diag(j^-1.5)
W_ref = np.random.default_rng(1).standard_normal((d_out, d_in)) * 3 / np.sqrt(d_in)
Q = np.linalg.qr(np.random.default_rng(3).standard_normal((d_in, d_in)))[0]   # un giro de las entradas

def entrenar(metodo, lr, girar=False, seed=0):
    """Capa y = W x con x = Q z (si se gira) o x = z, z ~ N(0, diag(lam)); maestro W* = W_ref Q'."""
    R = Q if girar else np.eye(d_in)
    W_star = W_ref @ R.T                                  # el mismo problema, escrito en otra base
    rng = np.random.default_rng(seed)
    W, m, v = np.zeros((d_out, d_in)), np.zeros((d_out, d_in)), np.zeros((d_out, d_in))
    for t in range(1, T + 1):
        X = (rng.standard_normal((B, d_in)) * np.sqrt(lam)) @ R.T
        E = X @ (W - W_star).T + 0.1 * rng.standard_normal((B, d_out))
        G = E.T @ X / B                                   # gradiente de minilote
        eta = lr * min(1.0, 2 * (1 - t / T))              # constante y decaimiento lineal en la segunda mitad
        if metodo == "SGD":                               # con momentum de Nesterov
            m = 0.95 * m + G
            W = W - eta * (G + 0.95 * m)
        elif metodo == "Adam":
            m = 0.9 * m + 0.1 * G
            v = 0.95 * v + 0.05 * G**2
            W = W - eta * (m / (1 - 0.9**t)) / (np.sqrt(v / (1 - 0.95**t)) + 1e-8)
        else:                                             # Muon
            m = 0.95 * m + G
            W = W - eta * np.sqrt(max(1, d_out / d_in)) * newton_schulz(G + 0.95 * m, 5)
        if not np.all(np.abs(W) < 1e6):
            return np.inf
    return 0.5 * np.sum(((W - W_star) @ R) ** 2 * lam)   # error poblacional

tasas = np.logspace(-2.5, -0.5, 5)
print("pérdida inicial:", round(0.5 * np.sum(W_ref**2 * lam), 3))
print(f"método   ejes originales   entradas giradas   (mejor de {len(tasas)} tasas)")
for metodo in ["SGD", "Adam", "Muon"]:
    a = min(entrenar(metodo, lr) for lr in tasas)
    b = min(entrenar(metodo, lr, girar=True) for lr in tasas)
    print(f"{metodo:6s}   {a:.5f}           {b:.5f}")

Two lessons, neither “Muon wins.” First invariance: SGD and Muon give exactly the same loss with and without rotation because orth⁡(GQ⊤)=orth⁡(G)Q⊤\operatorname{orth}(\mat{G}\mat{Q}\T) = \operatorname{orth}(\mat{G})\mat{Q}\T; Adam does not, because its diagonal preconditioner exploits axis-aligned covariance and loses that advantage under rotation. Second experimental honesty: in this linear convex problem, with each rate well tuned, Muon trails momentum SGD (0.026 versus 0.013), and Adam is best in original axes. Published advantages appear in deep networks with many layers and nonlinearities, where directional allocation matters for reasons this toy does not capture.

The professional version: PyTorch

The next cell implements Muon as an torch.optim.Optimizer subclass and trains a four-layer MLP on synthetic classification with new data each batch, as in single-epoch pretraining. Two hidden matrices use Muon; first and output layers and all biases use AdamW. Both receive the same tuning budget: four rates each. It runs on CPU in under half a minute; on GPU change DEVICE and Newton–Schulz automatically uses bfloat16.

[ ]Muon as a PyTorch optimizerLocal GPU
import time
import torch
import torch.nn as nn
import torch.nn.functional as F

torch.set_num_threads(2)
DEVICE = "cpu"          # el experimento es pequeño; con una GPU, pon "cuda"

@torch.no_grad()
def newton_schulz5(G, pasos=5, eps=1e-7):
    """Factor polar aproximado de G: valores singulares llevados a la banda [0.68, 1.21]."""
    a, b, c = 3.4445, -4.7750, 2.0315
    X = G.to(torch.bfloat16 if G.is_cuda else torch.float32)   # bfloat16 en GPU; en CPU sería muy lento
    alta = X.size(0) > X.size(1)
    if alta:
        X = X.mT
    X = X / (X.norm() + eps)
    for _ in range(pasos):
        A = X @ X.mT
        B = b * A + c * (A @ A)
        X = a * X + B @ X
    if alta:
        X = X.mT
    return X.to(G.dtype)

class Muon(torch.optim.Optimizer):
    """Muon para parámetros 2D: momentum de Nesterov, ortogonalización y escalado por forma."""
    def __init__(self, params, lr=0.02, momentum=0.95, nesterov=True, ns_pasos=5, weight_decay=0.0):
        super().__init__(params, dict(lr=lr, momentum=momentum, nesterov=nesterov, ns_pasos=ns_pasos, weight_decay=weight_decay))

    @torch.no_grad()
    def step(self, closure=None):
        loss = None
        if closure is not None:
            with torch.enable_grad():
                loss = closure()
        for grupo in self.param_groups:
            for p in grupo["params"]:
                if p.grad is None:
                    continue
                assert p.ndim == 2, "Muon solo para matrices: usa AdamW para sesgos, ganancias y embeddings"
                estado = self.state[p]
                if "buf" not in estado:
                    estado["buf"] = torch.zeros_like(p)
                buf = estado["buf"]
                buf.mul_(grupo["momentum"]).add_(p.grad)
                u = p.grad.add(buf, alpha=grupo["momentum"]) if grupo["nesterov"] else buf
                o = newton_schulz5(u, grupo["ns_pasos"])
                escala = max(1.0, p.size(0) / p.size(1)) ** 0.5     # escalado por forma de la versión original
                p.mul_(1 - grupo["lr"] * grupo["weight_decay"])
                p.add_(o, alpha=-grupo["lr"] * escala)
        return loss

# datos sintéticos sin fin: cada lote es nuevo, etiquetado por un MLP maestro aleatorio con 10 clases
g = torch.Generator().manual_seed(0)
d_in = 32
maestro = [torch.randn(d_in, 64, generator=g) / d_in**0.25, torch.randn(64, 10, generator=g) / 2]
def lote_nuevo(n, gen):
    x = torch.randn(n, d_in, generator=gen)
    return x, (torch.tanh(x @ maestro[0]) @ maestro[1]).argmax(1)
x_te, y_te = lote_nuevo(8192, torch.Generator().manual_seed(123))

def modelo():
    torch.manual_seed(1)
    return nn.Sequential(nn.Linear(d_in, 128), nn.GELU(), nn.Linear(128, 128), nn.GELU(),
                         nn.Linear(128, 128), nn.GELU(), nn.Linear(128, 10)).to(DEVICE)

def entrenar(opt_fn, pasos=600, lote=128):
    gen = torch.Generator().manual_seed(2)                    # los mismos lotes para todos los optimizadores
    red = modelo()
    opts = opt_fn(red)
    for t in range(pasos):
        x, y = lote_nuevo(lote, gen)
        perdida = F.cross_entropy(red(x.to(DEVICE)), y.to(DEVICE))
        for o in opts:
            o.zero_grad(set_to_none=True)
        perdida.backward()
        factor = min(1.0, 2 * (1 - t / pasos))                 # constante y luego decaimiento lineal
        for o in opts:
            for grupo in o.param_groups:
                grupo["lr"] = grupo["lr_base"] * factor
            o.step()
    with torch.no_grad():
        salida = red(x_te.to(DEVICE))
        return F.cross_entropy(salida, y_te.to(DEVICE)).item(), (salida.argmax(1) == y_te.to(DEVICE)).float().mean().item()

def con_base(opt):
    for grupo in opt.param_groups:
        grupo["lr_base"] = grupo["lr"]
    return opt

def solo_adamw(lr):
    return lambda red: [con_base(torch.optim.AdamW(red.parameters(), lr=lr, weight_decay=0.01))]

def muon_y_adamw(lr_muon, lr_adam=3e-3):
    def f(red):
        capas = [m for m in red if isinstance(m, nn.Linear)]
        ocultas = [c.weight for c in capas[1:-1]]              # matrices ocultas: Muon
        resto = [p for p in red.parameters() if all(p is not q for q in ocultas)]   # entrada, salida y sesgos
        return [con_base(Muon(ocultas, lr=lr_muon)), con_base(torch.optim.AdamW(resto, lr=lr_adam, weight_decay=0.01))]
    return f

t0 = time.time()
print("AdamW en todo:")
for lr in [1e-3, 3e-3, 1e-2, 3e-2]:
    ent, ex = entrenar(solo_adamw(lr))
    print(f"   lr = {lr:.0e}   pérdida de prueba {ent:.3f}   exactitud de prueba {ex:.3f}")
print("Muon en las ocultas + AdamW (lr 3e-3) en el resto:")
for lr in [0.01, 0.03, 0.1, 0.3]:
    ent, ex = entrenar(muon_y_adamw(lr))
    print(f"   lr = {lr:.2f}    pérdida de prueba {ent:.3f}   exactitud de prueba {ex:.3f}")
print(f"tiempo total: {time.time() - t0:.1f} s")
This cell needs the local lab (PyTorch with your GPU). Start it with npm run lab and open the connection link.

In this small MLP the two are close: best Muon test loss is 0.864 and best AdamW 0.877. This is comparable to seed variation; the right reading is “tie under this budget,” not “Muon wins.” Also notice we did not search more Muon rates than AdamW. (If anything Muon has an informational advantage: its remaining parameters’ AdamW rate is the best from the AdamW sweep.) Unequal tuning is the optimizer literature’s commonest trap.

Recent PyTorch versions include torch.optim.Muon (the lab uses 2.11), with the same rule, default coefficients and both scaling conventions. Momentum is written as moving average Bt=μBt−1+(1−μ)Gt\mat{B}_t = \mu\mat{B}_{t-1} + (1 - \mu)\mat{G}_t and Newton–Schulz input as (1−μ)Gt+μBt(1 - \mu)\mat{G}_t + \mu\mat{B}_t; both are (1−μ)(1 - \mu) times those above, and normalization before iteration makes the step identical. Since torch.optim.Muon’s rate is multiplied by the chosen shape factor, with "match_rms_adamw" use the same rate as AdamW and with "original" one around 0.02:

import torch

matrices = [p for n, p in model.named_parameters() if p.ndim == 2 and "embed" not in n and "lm_head" not in n]
otros = [p for n, p in model.named_parameters() if not (p.ndim == 2 and "embed" not in n and "lm_head" not in n)]
opt_muon = torch.optim.Muon(matrices, lr=3e-4, weight_decay=0.1, momentum=0.95, ns_steps=5,
                            adjust_lr_fn="match_rms_adamw")   # factor 0.2 sqrt(max(A, B)): misma tasa que AdamW
# alternativa: adjust_lr_fn="original" (factor sqrt(max(1, A/B))) con lr del orden de 2e-2
opt_adamw = torch.optim.AdamW(otros, lr=3e-4, betas=(0.9, 0.95), weight_decay=0.1)
# en cada paso: loss.backward(); opt_muon.step(); opt_adamw.step(); y zero_grad en los dos

With adjust_lr_fn="match_rms_adamw" the factor is Moonshot’s 0.2max⁡(A,B)0.2\sqrt{\max(A, B)}, and documentation says AdamW’s rate and weight decay can then be reused. Names embed and lm_head depend on your model: inspect named_parameters().

Evidence at scale and open questions

What is known today, separating results from expectations:

  • Speed records. Muon began in public training-speed races: Jordan et al. used it to break NanoGPT (a small GPT-2) and CIFAR-10 training-time records in 2024. These are small, highly optimized tasks with all other details carefully tuned.
  • LLM scale. Liu et al. (2025, Moonshot AI) found two changes needed to scale: add weight decay and adjust shape scaling to match AdamW RMS. Their scaling-law experiments indicate compute efficiency around 2×2\times versus AdamW, and they trained Moonlight, a 16 000-million-parameter mixture of experts (3 000 million active), on 5.7 trillion tokens. Kimi K2 from the same group (2025) used MuonClip, rescaling attention query and key weights when logits exceed a threshold because Muon tended to make them grow uncontrollably.
  • Careful comparisons. Wen et al. (2025), “Fantastic Pretraining Optimizers and Where to Find Them,” tuned about ten optimizers equally carefully. Many published advantages came from poorly tuned baselines; matrix optimizers such as Muon and SOAP retained an advantage that shrinks with scale: from about 1.4×1.4\times at 100 million parameters to 1.1×1.1\times at 1 200 million (at that size, hyperparameters extrapolated by scaling law rather than a full sweep).

What remains open:

  • Why it works. Spectral-norm reasoning says which step is optimal for a linear model in that norm, not why that norm describes network loss well. Hypotheses (low stable-rank gradients, learning rare directions, links to maximal update parameterization and Bernstein’s modular norms) remain unsettled.
  • Distributed cost. Newton–Schulz needs the whole matrix. With parameters sharded across devices (ZeRO, FSDP), each matrix must be gathered before orthogonalization, adding communication elementwise AdamW does not need.
  • Interactions. With weight decay, rate schedules, attention stability (hence MuonClip), and fine-tuning models pretrained with another optimizer.

The next lesson follows this thread: curvature-accumulating preconditioners (K-FAC, Shampoo, SOAP) and how to evaluate optimizers without fooling oneself.

Common mistakes

Exercises

ProofSign minimizes on the ℓ∞ ball
Prove: For g∈Rn\vb{g} \in \R^n, min⁡∥d∥∞≤1⟨g,d⟩=−∥g∥1\min_{\norm{\vb{d}}_\infty \le 1}\inner{\vb{g}}{\vb{d}} = -\norm{\vb{g}}_1, with minimum attained at d=−sign⁡(g)\vb{d} = -\operatorname{sign}(\vb{g}).
0
Let d\vb{d} satisfy ∣di∣≤1\abs{d_i} \le 1 for every ii.

Step 1 of 4. What lower bound holds for each term gidig_i d_i?

ProofUVᵀ is spectral steepest descent
Prove: If G=UΣV⊤\mat{G} = \mat{U}\mat{\Sigma}\mat{V}\T is a reduced SVD with σi>0\sigma_i > 0, then min⁡∥D∥2≤1⟨G,D⟩F=−∑iσi\min_{\norm{\mat{D}}_2 \le 1}\inner{\mat{G}}{\mat{D}}_F = -\sum_i\sigma_i, attained at D=−UV⊤\mat{D} = -\mat{U}\mat{V}\T.
0
Write G=∑i=1rσiuivi⊤\mat{G} = \sum_{i=1}^r\sigma_i\vb{u}_i\vb{v}_i\T with orthonormal ui\vb{u}_i, vi\vb{v}_i, and let D\mat{D} satisfy ∥D∥2≤1\norm{\mat{D}}_2 \le 1.

Step 1 of 4. How do you write ⟨G,D⟩F\inner{\mat{G}}{\mat{D}}_F?

NumericOne cubic step
For Newton–Schulz cubic p(σ)=1.5σ−0.5σ3p(\sigma) = 1.5\sigma - 0.5\sigma^3, what singular value results after one iteration from σ=0.5\sigma = 0.5?
NumericAn ellipse's dual norm
With norm ∥d∥P=d⊤Pd\norm{\vb{d}}_{\mat{P}} = \sqrt{\vb{d}\T\mat{P}\vb{d}} and P=diag⁡(4,1)\mat{P} = \diag(4, 1), what is maximum linear decrease ∥g∥∗=−min⁡∥d∥P≤1⟨g,d⟩\norm{\vb{g}}_* = -\min_{\norm{\vb{d}}_{\mat{P}} \le 1}\inner{\vb{g}}{\vb{d}} for g=(2,1)\vb{g} = (2, 1)?
NumericA natural-gradient component
Fit N(μ,σ2)\Normal(\mu, \sigma^2) to N(0,1)\Normal(0, 1) with loss L=log⁡σ+(μ2+1)/(2σ2)−1/2\Loss = \log\sigma + (\mu^2 + 1)/(2\sigma^2) - 1/2. At (μ,σ)=(2,2)(\mu, \sigma) = (2, 2), what is the σ\sigma component of natural gradient F−1∇L\mat{F}\inv\grad\Loss, with F=diag⁡(1/σ2,2/σ2)\mat{F} = \diag(1/\sigma^2, 2/\sigma^2)?
NumericMoonshot's factor
A weight matrix has shape 1024×40961024\times 4096 and full-rank gradient. By what number must UV⊤\mat{U}\mat{V}\T be multiplied so its entries have root-mean-square (RMS) 0.20.2?
QuizNewton–Schulz without normalization
Apply cubic p(σ)=1.5σ−0.5σ3p(\sigma) = 1.5\sigma - 0.5\sigma^3 to an unnormalized matrix with singular value σ=2\sigma = 2. What happens under iteration?
QuizWhich matrix is Fisher?
For classifier pθ(y∣x)p_\theta(y \given \vb{x}), which matrix is the Fisher information used by natural gradient?
QuizWhat Muon does not optimize
Why is Muon not applied to a language model's embedding table or output layer?
CodeOrthogonalize with Newton–Schulz
Implement newton_schulz_orthogonalize(G, steps, coef=(1.5, -0.5, 0.0)), returning the approximation to UV⊤\mat{U}\mat{V}\T after steps iterations of X←aX+(bA+cA2)X\mat{X} \leftarrow a\mat{X} + (b\mat{A} + c\mat{A}^2)\mat{X} with A=XX⊤\mat{A} = \mat{X}\mat{X}\T. First normalize by Frobenius norm (plus 1e-12), use wide orientation (transpose if m>nm > n and undo at the end), and return a matrix shaped like G. Also implement desviacion(X), the maximum ∣σi−1∣\abs{\sigma_i - 1} over singular values of X.
import numpy as np

def newton_schulz_orthogonalize(G, steps, coef=(1.5, -0.5, 0.0)):
  a, b, c = coef
  X = np.array(G, dtype=float)
  # tu código: normalizar, orientación ancha y las iteraciones
  for _ in range(steps):
      A = X @ X.T
      X = a * X + (b * A + c * A @ A) @ X
  return X

def desviacion(X):
  # tu código: max |sigma_i - 1|
  return 0.0
Shift+Enter to run

Summary

Key idea
An optimizer is a way to measure step size. Steepest descent in norm ∥⋅∥\norm{\cdot} gives direction arg min⁡∥d∥≤1⟨g,d⟩\argmin_{\norm{\vb{d}} \le 1}\inner{\vb{g}}{\vb{d}} and decrease ∥g∥∗2/(2L)\norm{\vb{g}}_*^2/(2L) per step; ℓ∞\ell_\infty gives sign (signSGD, Lion, Adam without averages), Fisher metric gives natural gradient, and spectral norm on weight matrices gives Muon’s orthogonalized update UV⊤\mat{U}\mat{V}\T.
  • The normalized step measures η\eta in the chosen norm and decreases the linear model by η∥g∥∗\eta\norm{\vb{g}}_*; the descent-lemma guarantee depends on the pair (norm, constant LL in that norm), and good geometry makes LL small.
  • Sign is robust (clips outliers, invariant to coordinate scaling) but basis-dependent. Lion takes the sign of an interpolation of two moving averages and needs lower rates and higher weight decay than AdamW.
  • Natural gradient F−1∇L\mat{F}\inv\grad\Loss is steepest descent for local KL, invariant under reparameterization (exact in flow, O(η2)\bigO(\eta^2) per step). Empirical Fisher with real labels is not Fisher.
  • For a matrix, spectral steepest descent is −UV⊤-\mat{U}\mat{V}\T, the sign of singular values; it distributes the step equally across gradient directions and is rotation-equivariant.
  • Newton–Schulz approximates UV⊤\mat{U}\mat{V}\T with odd polynomials and matrix products alone; normalize first. Muon’s quintic trades accuracy for speed and takes values to [0.68,1.21][0.68, 1.21] in five steps.
  • Muon = Nesterov momentum, Newton–Schulz and shape scaling, only on hidden matrices; embeddings, output, biases and gains use AdamW. Evidence at scale is real but decreases with well-tuned AdamW and larger models.