Muon's Newton-Schulz steps, counted

Muon, the optimizer, orthogonalizes every weight update with five iterations of a matrix polynomial. A new paper argues those five steps aren’t merely an approximation of the ideal update. They are a different update, and on a nearly rank-deficient toy problem a better one. I swept the step count in real training to see whether that survives contact with a network.

Context

Muon treats each 2-D weight matrix’s momentum M as a matrix, not a bag of numbers. It replaces M = U Σ Vᵀ with its polar factor U Vᵀ: same singular vectors, every singular value set to 1. An SVD per matrix per step is slow on accelerators, so Muon normalizes M by its Frobenius norm and runs a few Newton-Schulz (NS) iterations instead. Each iteration is a fixed odd polynomial applied to the singular values. Muon’s coefficients are tuned to push values toward 1 fast rather than exactly, and the default is 5 steps.

A Quadratic Lens on Muon’s Polar Update (Shulgin, Laing, Orvieto and Richtárik, October 2026) analyzes the exact polar update on matrix quadratics. One of its results is about the tiny singular values. Exact polar multiplies a singular value s by 1/s, which is unbounded. Finite NS multiplies small values by a fixed gain ℓ_q = 3.4445^q (the polynomial’s slope at zero, applied q times), so it behaves like a damped polar update, s ↦ s / √(s² + ε) with ε = ℓ_q⁻². Below about 1/ℓ_q, NS treats a direction like plain gradient descent does. The paper reports that this can make fewer NS steps converge faster than exact polar when the iterate is close to rank-deficient.

The question

The paper’s evidence for that sentence is a 10-dimensional quadratic with an identity Hessian and 3–5 NS steps (its Appendix A.4). Its network evidence is a diagnostic: in a 90M-parameter transformer trained with Muon, it reports that about a quarter of the attention matrices’ singular values sit below 1/ℓ_5 ≈ 2·10⁻³. Its conclusion suggests the step count is a design choice. It doesn’t train anything with a different step count.

So, in actual training:

  1. Does the loss depend on the NS step count, and is exact polar worse than 5 steps?
  2. Does the paper’s damped-polar model, with ε = ℓ_q⁻², predict the loss of q NS steps? If yes, the quintic polynomial’s other quirk (it leaves larger singular values anywhere in roughly 0.7–1.2 instead of at 1) doesn’t matter.

Setup

Model and data. A 4-layer, 4-head char-level GPT (width 128, context 64, 0.81M parameters) on tiny-shakespeare, batch 32, 600 steps. The learning rate is constant, then decays linearly to zero over the last 30%. Validation loss is the mean cross-entropy, in nats per character, over 8 fixed batches from the held-out last 10% of the text.

Optimizer. Muon on the 16 weight matrices inside the blocks (fused QKV, attention output, two MLP matrices per layer): Nesterov momentum 0.95, update scaled by √max(1, rows/cols), as in the reference implementation. Embeddings, the output head and LayerNorms use AdamW at 3e-3 in every Muon arm. The only thing that changes between arms is the function applied to the normalized momentum:

A, B, C = 3.4445, -4.7750, 2.0315           # Muon's quintic coefficients

def ns(G, q):                                # what Muon runs
    X = G / (G.norm() + 1e-7)
    for _ in range(q):
        S = X @ X.T
        X = A * X + (B * S + C * S @ S) @ X
    return X

def damped_polar(G, eps):                    # the paper's model of ns(G, q)
    U, s, Vh = torch.linalg.svd(G / (G.norm() + 1e-7), full_matrices=False)
    return (U * (s / torch.sqrt(s * s + eps))) @ Vh   # eps = A ** (-2 * q)

Both are simplified (the real code transposes tall matrices and runs the SVD in float64). Exact polar is damped_polar with eps = 0. NS runs in fp32 here; the reference implementation runs it in bfloat16.

Fairness. Each arm gets its own learning rate from a sweep over {0.01, 0.02, 0.04, 0.08, 0.16} (AdamW: {1, 2, 4, 8}·10⁻³) on seed 0. Then 4 more seeds at that rate. Seeds fix the initialization and the batch order, so two arms with the same seed see the same data. I report the mean and sample standard deviation over the 5 seeds and the paired difference where it matters. Seed 0 also picked the learning rates, a mild selection effect in its favor. To check that longer training doesn’t change the picture, 4 arms also ran for 2,000 steps with 2 seeds.

Hardware. A 4-core Xeon (2.8 GHz), no GPU, 4 single-threaded runs at a time. Sweep and seeds: 37 + 41 minutes.

The effect needs tiny singular values, so I checked that they exist here. At the end of training, 4.1–5.3% of the momentum buffers’ normalized singular values fall below 1/ℓ_5 (4 seeds each of the 5-step and the exact arms). They concentrate in the attention output projection (10% on average, up to 20% in one layer) and the second MLP matrix of the last layer (up to 25%). The regime exists here, just smaller than the paper’s quarter of the attention singular values. (Eight of the sixteen matrices also have one singular value below 10⁻⁷, a structural zero, likely from LayerNorm; excluding them lowers these shares by about 0.4 points.)

Results

What each update does to one singular value of the normalized momentum. Solid: NS with q steps. Dashed: damped polar with ε = ℓ_q⁻². Hover for values.

The filters first. Both families agree near zero and differ on the ramp. Past the ramp, damped polar sits at 1, while NS peaks at 1.2 and then wobbles between about 0.68 and 1.13. With one step the band is the whole spectrum: Frobenius normalization means at most 11 of a matrix’s singular values can exceed 1/ℓ_1 = 0.29, so a 1-step Muon update is close to a rescaled momentum.

Final validation loss after 600 steps, 5 seeds each:

update LR val loss, mean ± sd range optimizer ms/step
AdamW (reference) 0.004 1.774 ± 0.010 1.763–1.789 7
NS, 1 step 0.04 1.796 ± 0.011 1.781–1.808 14
NS, 2 steps 0.02 1.733 ± 0.011 1.715–1.745 20
NS, 3 steps 0.02 1.693 ± 0.010 1.679–1.703 26
NS, 5 steps (Muon default) 0.02 1.686 ± 0.006 1.680–1.694 39
NS, 8 steps 0.02 1.684 ± 0.006 1.678–1.690 59
exact polar (SVD) 0.02 1.690 ± 0.011 1.677–1.706 93
damped polar, ε = ℓ₁⁻² 0.04 1.775 ± 0.012 1.763–1.794 91
damped polar, ε = ℓ₃⁻² 0.02 1.701 ± 0.014 1.688–1.721 96
damped polar, ε = ℓ₅⁻² 0.02 1.694 ± 0.010 1.684–1.705 97

The last column is the median time of the optimizer step (Muon plus the AdamW part) on a shared CPU. Polar and damped arms use a float64 SVD. Read it as a ranking, not as GPU numbers.

Small dots: individual seeds. Diamonds: mean over 5 seeds (damped polar was run at 1, 3 and 5 only). The dashed line is AdamW’s mean. Lower is better.

Plainly:

2,000-step runs, mean of 2 seeds. Hover for each step’s values.

At 2,000 steps the four arms finish at 1.535–1.537 (individual seeds 1.529–1.543). The spread between seeds is larger than the spread between updates.

What it means

The paper’s mechanism holds up in the part that’s easy to check. Five quintic NS steps act like polar with a floor on how hard they amplify tiny directions, and an SVD with that floor trains about the same as NS. The polynomial’s wobble around 1 costs nothing: damped polar has none, and NS beat its damped twin on 4 of 5 seeds at both 3 and 5 steps, by less than 0.01.

The surprising half doesn’t show up at this scale. Exact polar trailed 5 steps by 0.003 on average, inside the seed noise, and 3 steps beat exact polar on only 2 of 5 seeds. The cleanest test of damping itself, the same SVD with and without ε, went slightly the other way.

My guess at why, which is my inference and not the paper’s analysis: there isn’t much update for damping to take away. The paper reports that in its 90M model the directions below 1/ℓ_5 carry about 16% of the exact polar update’s squared norm, and about 5% of the 5-step one. In my runs that share is 4.7% under exact polar and 1.7% under 5 steps. It grows only slightly with training: at step 2,000, 4.7–6.5% of singular values sit below 1/ℓ_5 across the four long-run arms. The paper’s slow regime is defined by the conditioning of the iterate on a quadratic, and its own diagnostic finds the momentum’s tiny directions unaligned with the weights’ smallest ones, so the share is a proxy, not its criterion.

Takeaways:

Where this breaks. This is a 0.81M-parameter character model, 600 and 2,000 steps, on a CPU. In the paper’s analysis, exact polar’s slowness grows with the share of tiny singular values, and by update norm that share is about three times larger in its 90M model than here. A larger model trained longer could still show fewer steps beating exact. NS ran in fp32; in bfloat16 the tiniest values behave differently. QKV is one fused matrix here, while the paper counts query, key and value as separate matrices. The learning-rate grid is coarse (factors of 2), and I used one learning rate for all seeds of an arm. I tested only the quintic Muon coefficients, not tuned alternatives like Polar Express. And the timing column is CPU wall-clock, which says little about a GPU.

Reproduce it

Everything is in /code/muon-ns-steps/, also as one tarball: the training script, the per-run JSON (curves, timings, end-of-training momentum spectra) and the analysis and chart scripts.

pip install torch==2.14.1 numpy --index-url https://download.pytorch.org/whl/cpu
./run_all.sh     # downloads tiny-shakespeare; ~80 min on 4 cores

A single run (THREADS=1 python3 muon_ns.py --arm ns5 --lr 0.02 --seed 0) takes about 2 minutes and, single-threaded, reproduces the shipped 1.6804 exactly; more threads move the last digits.