The Muon optimizer is a neural network optimizer that takes the momentum of the gradient for each two-dimensional weight matrix and replaces it with its nearest orthogonal matrix, computed approximately with a Newton-Schulz iteration, before applying the update. The name stands for MomentUm Orthogonalized by Newton-Schulz.
Training large language models with Muon has repeatedly reached a given loss with fewer steps and less compute than AdamW, which made it one of the most discussed optimizer ideas in artificial intelligence since 2024. Muon is not a full replacement for Adam-style methods, however: it handles hidden weight matrices only, while embeddings, output heads, biases and normalization gains are still trained with AdamW.
How Muon orthogonalizes the update
Muon starts like SGD with Nesterov momentum: it keeps one momentum buffer per matrix and accumulates gradients into it. The difference lies in what happens next. Instead of stepping along the raw momentum, Muon computes an approximate orthogonalization of that momentum matrix, which sets all of its singular values close to one while keeping its singular vectors.
- Compute the gradient
Gof the loss with respect to a weight matrixW. - Update the momentum buffer
Mwith coefficient beta of about 0.95, usually in Nesterov form. - Normalize
Mso that its spectral norm is at most one. - Run about five Newton-Schulz iterations with a tuned quintic polynomial to push the singular values toward one.
- Scale the result by a shape-dependent factor and subtract it, times the learning rate, from
W.
The intuition is that raw gradient updates for transformer matrices tend to be dominated by a few directions with very large singular values. Orthogonalization equalizes the step size across directions, so rare but useful directions receive the same magnitude of update as dominant ones. Mathematically, the update is the solution of steepest descent under the spectral norm, which matches how a matrix acts on its inputs better than an elementwise norm does.
The Newton-Schulz polynomial is chosen for speed rather than exactness. It does not converge to a perfect orthogonal matrix; singular values end up in a band roughly between 0.7 and 1.2, which works well in practice and can run stably in bfloat16 on modern accelerators.
Key hyperparameters and settings
Muon has few hyperparameters, but their typical values differ from AdamW. The table lists the settings that practitioners adjust most often.
| Setting | Typical value | What it controls |
|---|---|---|
| Momentum coefficient | 0.95, Nesterov form | Smoothing of gradients before orthogonalization |
| Newton-Schulz steps | 5 | Quality of the orthogonal approximation |
| Learning rate | About 0.02 without RMS matching | Step size in spectral terms |
| Update scaling | Shape factor or RMS matching to AdamW | Consistency across matrix shapes |
| Weight decay | Decoupled, similar to AdamW | Growth of weight norms in long runs |
Large-scale reports found that adding weight decay and matching the update RMS to AdamW let teams reuse existing AdamW learning rates and schedules. Without these adjustments, Muon was observed to work well in short runs but to let weight norms grow in long pretraining runs.
Which parameters Muon trains
Muon is defined only for parameters that behave as matrices, so a real training setup is always a hybrid of Muon and AdamW. The split below is the common convention.
| Parameter type | Optimizer | Reason |
|---|---|---|
| Attention projections | Muon | Dense hidden matrices |
| MLP weight matrices | Muon | Dense hidden matrices |
| Convolution kernels | Muon after flattening to 2D | Can be treated as matrices |
| Token embeddings | AdamW | Sparse, lookup-style updates |
| Output head | AdamW | Empirically trains better with Adam |
| Biases and norm gains | AdamW | Vectors have no matrix structure |
Some teams split fused matrices, such as a combined query, key and value projection, into separate pieces before orthogonalizing, because the pieces play different roles. This detail can noticeably change results.
How Muon compares with other optimizers
Muon belongs to a family of matrix-aware optimizers that also includes Shampoo and SOAP. It can be described as Shampoo without accumulated preconditioners: it orthogonalizes the current momentum rather than maintaining running second-moment statistics.
| Optimizer | Optimizer state per matrix | Main idea |
|---|---|---|
| AdamW | Two buffers: first and second moments | Elementwise adaptive step sizes |
| Lion optimizer | One buffer | Sign of interpolated momentum |
| Shampoo | Left and right preconditioners | Kronecker-factored second-order statistics |
| Muon | One momentum buffer | Orthogonalized momentum update |
Because it stores only one buffer, Muon needs about half the optimizer memory of AdamW for the matrices it handles. The orthogonalization adds compute, but for large models the extra cost is usually a small percentage of total training FLOPs. Reported speedups over well-tuned AdamW vary; claims of roughly 1.3 to 2 times better compute efficiency come from specific setups and should not be assumed universally.
Limitations and open questions
Muon is still young, and its behavior at the very largest scales is less documented than AdamW. Several practical issues deserve attention before adopting it.
- Distributed training is harder: orthogonalization needs the full matrix, which conflicts with sharded optimizer states and requires gathering or careful partitioning.
- Attention logit growth has been reported in large runs; one published fix rescales query and key weights when attention logits exceed a threshold.
- Fine-tuning mismatch: models pretrained with AdamW may not benefit, or may degrade, when fine-tuned with Muon, and the reverse can also occur.
- Tuning transfer across model sizes is not yet as well understood as for Adam with established scaling rules.
A common mistake is to apply Muon to every parameter, including embeddings and the output head. This usually hurts results, so the hybrid assignment should be checked first whenever a Muon run underperforms.
Put simply
An optimizer decides how a neural network changes its weights after each batch of data. Most optimizers follow the raw slope of the error. That slope often points strongly in a few directions and hardly at all in others.
Muon evens out those directions. Think of a team where two loud members always win the vote. Muon gives every direction an equal voice, so quieter but useful changes also happen. The result is often faster learning for the same compute.
In practice
A research team pretrains a 1-billion-parameter language model on a fixed compute budget. Their baseline uses AdamW with a cosine learning rate schedule. For a second run, they switch all attention and MLP matrices to Muon with momentum 0.95, five Newton-Schulz steps, decoupled weight decay and RMS matching to AdamW, while embeddings, the output head and norm gains stay on AdamW.
Because of RMS matching, they keep the same peak learning rate and schedule. The Muon run reaches the baseline’s final validation loss after noticeably fewer tokens, and its optimizer state for the hidden matrices takes half the memory. The main engineering effort goes into the distributed setup, where each matrix is gathered onto one device for orthogonalization and the result is scattered back.