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.
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.
- 1. Muon replaces the momentum matrix by…
- 2. Muon is applied to…
- 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).
- 1. Newton–Schulz changes…
- 2. p(0.5) for the cubic (1.5, −0.5) is…
- 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- 1. Five quintic steps turned a 1000-to-1 spread into about…
- 2. Embeddings and the output head under Muon training use…
- 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.
- 1. −ηUVᵀ is steepest descent in the…
- 2. ‖G‖_* denotes…
- 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.
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
- 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.
- J. Bernstein, L. Newhouse (2024). “Old optimizer, new norm: an anthology.” arXiv:2409.20325.
- J. Liu et al. (2025). “Muon is scalable for LLM training.” arXiv:2502.16982.
- N. J. Higham (2008). Functions of Matrices: Theory and Computation. SIAM (Newton–Schulz iterations).