What Muon is
Muon (MomentUm Orthogonalized by Newton–Schulz) treats each weight matrix as a matrix rather than a bag of numbers. It keeps a momentum per matrix, replaces it by the nearest orthogonal matrix (the same directions, every singular value set to about 1) with a few cheap matrix multiplications, and steps along that. It is meant for the hidden matrices of a network; the embeddings, the output head and the LayerNorms are trained by AdamW.
This tab trains the explainer's small GPT (16,081,664 parameters) on TinyStories for 2,000 steps with the same data, initial weights and schedule as the other optimizer tabs. The toolbar picks a recorded step; the panels follow one Muon step on block 2's attention value projection ().
Momentum and the look-ahead
For a hidden matrix with gradient , Muon keeps a buffer and, with Nesterov momentum, orthogonalizes a matrix that looks one step ahead:
with . The first row of the panel draws , (last step's buffer small above), , the orthogonalized and the new weights for a 64 × 64 corner. Unlike the other tabs, a cell of cannot be worked out from the same cell of : it depends on the whole matrix.
Orthogonalizing the update
Write , its singular value decomposition. Muon steps along , the orthogonal matrix closest to : the same singular directions with every singular value replaced by 1. A gradient matrix is usually dominated by a few directions with large singular values; orthogonalizing turns those down and the many small ones up, so the step changes the matrix by a similar amount along every direction. Bernstein and Newhouse show this is steepest descent when step sizes are measured by the spectral norm, a natural norm for a layer that maps vectors to vectors.
The step's singular values chart on the right compares the four optimizers' steps on at the same step, each divided by its largest singular value: SGD's, AdamW's and Lion's fall off after the first few, Muon's stay near the top for most of its 256. At step 1,000 the median singular value of Muon's step is 0.7 of its largest, against 0.015 for AdamW, 0.018 for Lion and 8.6 × 10⁻⁵ for SGD.
Newton–Schulz iterations
An SVD of every matrix at every step would be slow on a GPU. Muon instead normalizes , so every singular value is at most 1, and applies five times
with . Each iteration keeps the singular vectors and maps every singular value to ; the coefficients were tuned to raise small values fast, at the price of not converging exactly to 1. On at step 1,000, 185 of the 256 singular values of end between 0.7 and 1.20. Directions in which the momentum is almost zero stay small, since five iterations multiply a tiny by about : 35 of the 256 are still below 0.5. The iterations run in bfloat16. The Newton–Schulz row draws the corner of each iterate, and the chart beside it the singular values of on the whole matrix as they climb towards 1. The classical cubic version of this iteration goes back to Björck and Bowie (1971).
The step, and the weights left to AdamW
The step is , without weight decay; the factor is 1 for and 2 for the MLP's 1024 × 256 up-projections. With singular values near 1, the scaled has entries of RMS about (on at step 1,000, 's RMS is 0.0539 against , the small singular values pulling it down), so the learning rate is on a different scale from AdamW's: the sweep chose 0.02 against AdamW's 4 × 10⁻³.
Muon takes the 24 matrices inside the blocks (3,145,728 weights). The token embedding, which is also the output head, the position embedding and the LayerNorm gains and biases (12,935,936 weights) are trained by AdamW with the AdamW tab's settings: an embedding row is a lookup, not a map whose directions should change evenly. The Left to AdamW panel shows AdamW's step on 32 rows of the token embedding at the same step.
In this run
After 2,000 steps Muon reaches a validation loss of 1.729, against 1.908 for AdamW, 2.190 for Lion and 3.059 for SGD.
Where it came from
Keller Jordan and collaborators introduced Muon in 2024 while speed-running the training of small GPTs, building on the idea of orthogonalized updates from Bernstein and Newhouse and on Shampoo, whose preconditioner without its accumulation reduces to the same polar factor. Moonshot AI scaled it to large language models in 2025, adding weight decay and matching AdamW's update size per matrix. The AdamW tab shows the optimizer it shares the model with, and the Lion tab a different way of fixing the size of every step.
Papers
- Muon: An optimizer for hidden layers in neural networks Muon itself: Nesterov momentum orthogonalized by a tuned quintic Newton–Schulz iteration, for hidden matrices only.
- Old Optimizer, New Norm: An Anthology Adam, Shampoo and orthogonalized updates as steepest descent under different norms; the spectral norm gives Muon's step.
- Muon is Scalable for LLM Training Muon at the scale of billions of parameters, with weight decay and an update scale matched to AdamW's.
- An Iterative Algorithm for Computing the Best Estimate of an Orthogonal Matrix The iteration that turns a matrix into its nearest orthogonal one, the classical form of Newton–Schulz.
- Shampoo: Preconditioned Stochastic Tensor Optimization A matrix-shaped preconditioner; without accumulation its update is Muon's orthogonalized gradient.
- TinyStories: How Small Can Language Models Be and Still Speak Coherent English? The dataset all four optimizer runs train on.