Foundations to Frontier
Tests
E. Deep Learning › E3 Optimizers (one page each)

Muon

Muon (momentum orthogonalised by Newton–Schulz) applies SGD momentum to each hidden weight matrix and then replaces the update by its nearest semi-orthogonal matrix, so every singular direction of the update gets the same size. A few steps of a matrix polynomial iteration do this cheaply, without an SVD. It set speed records for small language-model training and has been scaled to large models. This page covers the update, the Newton–Schulz iteration, its link to Shampoo and to steepest descent in the spectral norm, and practical rules. In the exercises you show five quintic Newton–Schulz steps squeeze a 1000-to-1 spread of singular values into about 0.3–1.2 without changing the singular vectors, then switch one 64 × 64 hidden layer from Adam to Muon and reach a loss target in about half the steps, an advantage that vanished with a 32-unit layer.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Equal-sized steps in every direction of a matrix

A weight matrix’s gradient usually points strongly in a few directions and weakly in many others. Plain momentum follows the strong directions and barely moves in the weak ones. Muon takes the momentum matrix and rescales it so all its directions have the same strength, while keeping which directions they are. This lets rarely-pushed directions learn too.

Optimizer lab: Muon versus plain gradient descent
Muon: final loss 0.153 (target reached at step 84) · gradient descent: final loss 2.2e-9 (step 22)
Orange: the chosen optimizer; grey dashed: plain gradient descent with the same learning rate. Darker shading means higher loss. On the ill-conditioned bowl, raise κ and watch gradient descent zig-zag across the narrow direction; on the saddle it stalls near the flat start; on the plateau its gradients are tiny. Adaptive methods rescale each direction; momentum methods build speed along consistent directions. The target is 1% of the starting loss (for the saddle, a loss below −0.2; its minima are at −0.25).
Why engineers care

Muon trains transformers in noticeably fewer steps than AdamW in several published speed-runs and scaled experiments, and it keeps only one momentum buffer per matrix. It applies only to 2-D weight matrices; embeddings, the output layer, biases and norms stay on AdamW.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Muon replaces the momentum matrix by…
  2. 2. Muon is applied to…
  3. 3. Orthogonalising makes the update's singular values…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

By hand

  • Momentum: M ← βM + G (β = 0.95); Nesterov input B = G + βM.
  • Orthogonalise: if B = USVᵀ, the target is O = UVᵀ, the closest matrix with orthonormal rows or columns.
  • Update: W ← W − η·√max(1, rows/cols)·O.
  • Newton–Schulz: scale B to Frobenius norm 1 (so all singular values are at most 1), then repeat X ← aX + b(XXᵀ)X + c(XXᵀ)²X. Each step maps every singular value s to p(s) = as + bs³ + cs⁵ and leaves U and V alone.
    • Classic cubic: (a, b, c) = (1.5, −0.5, 0). Then p(1) = 1 and p(0.5) = 0.6875: it converges to 1 but slowly for small s.
    • Muon’s quintic (3.4445, −4.7750, 2.0315) has a steep slope near 0, p(0.1) ≈ 0.340, so five steps suffice. The result is only approximately orthogonal.
  • Example: M = (1, 0), G = (0, 2) as vectors: new M = (0.95, 2), Nesterov input (0.9025, 3.9).
📝 Quick check (Level 1)
0/3 answered
  1. 1. Newton–Schulz changes…
  2. 2. p(0.5) for the cubic (1.5, −0.5) is…
  3. 3. Muon's scale for a 4096 × 1024 matrix is…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

Muon in code

Exercise 1.

  • A 64 × 32 gradient had singular values from 1 down to 0.001.
  • Five quintic Newton–Schulz steps gave singular values from 0.29 to 1.19, a spread of 4.2 instead of 1000.
  • The singular vectors were unchanged: Uᵀ(result)V was diagonal.
  • Thirty steps of the classic cubic converged to UVᵀ to 10⁻¹³, at six times the cost.

Practice.

  • Use Muon (η ≈ 0.02 with this scaling, β = 0.95, Nesterov) for hidden matrices, and AdamW for embeddings, the output head, biases and gains.
  • Run the iteration in bfloat16: it is just matrix multiplications.
  • For large models, Liu et al. (2025) added weight decay and matched the update’s RMS to AdamW’s (about 0.2–0.4), so AdamW’s learning rate and schedule transfer.
  • Convolution kernels are flattened to 2-D before orthogonalising.
# github.com/KellerJordan/Muon : Muon(hidden_matrices, lr=0.02, momentum=0.95) + AdamW for the rest
🐍 Exercise 1: Newton–Schulz orthogonalisation
Implement the Newton–Schulz iteration and compare the quintic and cubic versions on a gradient with widely spread singular values.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Five quintic steps turned a 1000-to-1 spread into about…
  2. 2. Embeddings and the output head under Muon training use…
  3. 3. Newton–Schulz runs well in bfloat16 because it is…

Level 3: Advanced

★★★★☆ Advanced⏱ 30 minGraduate level, with full derivations and proofs.

Theory

Steepest descent in the spectral norm. Among updates Δ with spectral norm ‖Δ‖₂ ≤ η, the one that most decreases the linear model ⟨G, Δ⟩ is Δ = −ηUVᵀ, because ⟨G, Δ⟩ ≥ −‖G‖*·‖Δ‖₂, with ‖G‖* the sum of singular values, and equality holds at UVᵀ. Bernstein and Newhouse (2024) argue the spectral norm is the natural one for linear layers, because it bounds how much a layer’s output can change.

Link to Shampoo. Shampoo’s step with no accumulation is L^(−1/4)GR^(−1/4) = UVᵀ (E3-17). Muon is that step applied to the momentum, without storing L or R.

Why it can help. Gradients of hidden layers often have low effective rank: a few directions dominate. Orthogonalising amplifies the rare directions, which plain momentum and even Adam leave nearly untouched.

Approximate is enough. The quintic coefficients were tuned to raise small singular values fast. They leave values scattered around 0.7–1.2 rather than at exactly 1. Jordan et al. found this does not hurt training.

📝 Quick check (Level 3)
0/3 answered
  1. 1. −ηUVᵀ is steepest descent in the…
  2. 2. ‖G‖_* denotes…
  3. 3. Muon is Shampoo's one-gradient step applied to…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

One layer on Muon

History.

  • J. Bernstein and L. Newhouse (2024) derived orthogonalised updates as steepest descent under the spectral norm.
  • K. Jordan et al. (2024) introduced Muon and used it to set speed records for training small GPT-2-size models.
  • J. Liu et al. (2025) scaled Muon to large language models with weight decay and update-RMS matching.

Exercise 2. The spirals network with 64 hidden units: mini-batches of 32, 400 steps, three seeds. “Muon” uses Muon for the 64 × 64 hidden matrix and Adam (η = 0.03) for the rest; “AdamW” uses Adam everywhere. The target is a full-data loss below 0.05, checked every 5 steps.

method η steps to loss < 0.05 mean final loss
AdamW 0.01 120, 100, 95 0.0031
AdamW 0.03 70, 65, 55 0.0018
AdamW 0.1 45, 60, 65 0.093
AdamW 0.3 —, —, 315 0.456
Muon 0.1 50, 50, 45 0.0008
Muon 0.3 35, 35, 30 0.0019

(Final loss is the mean of the full-data loss at every 5th of the last 50 steps.)

  • Changing one layer to Muon reached the target in about 33 steps instead of about 63 for the best stable AdamW run, with the same final loss (about 0.002).
  • AdamW at η = 0.1 was nearly as fast on some seeds, but one seed became unstable and the mean final loss rose to 0.093.
  • Muon was stable at both learning rates tried, consistent with its update size being fixed in spectral norm.
  • The result depends on the layer size. With 32 hidden units instead of 64, the same comparison natively gave AdamW’s best stable run 55 steps against Muon’s 63: no advantage. Muon’s published gains are for large matrices.
  • Caveat: a small network and three seeds; published gains on transformers come at far larger scale.
🐍 Exercise 2 (research): one layer on Muon
Train the spirals network with Adam everywhere and with Muon on the hidden matrix, and compare steps to a loss target and final loss.

Muon in AI, robotics and aerospace

  • Language-model training: Muon has trained models from speed-run scale up to large mixture-of-experts models with fewer steps than AdamW.
  • Faster experimentation: when each model in a robotics or autonomy pipeline must be retrained often, fewer steps shorten the loop.
  • Spectral-norm control of updates connects to the stability and robustness analyses used for controllers built from neural networks.

References

  1. K. Jordan, Y. Jin, V. Boza, J. You, F. Cesista, L. Newhouse, J. Bernstein (2024). “Muon: an optimizer for hidden layers in neural networks.” kellerjordan.github.io/posts/muon.
  2. J. Bernstein, L. Newhouse (2024). “Old optimizer, new norm: an anthology.” arXiv:2409.20325.
  3. J. Liu et al. (2025). “Muon is scalable for LLM training.” arXiv:2502.16982.
  4. N. J. Higham (2008). Functions of Matrices: Theory and Computation. SIAM (Newton–Schulz iterations).