Muon: The Post-Adam Optimizer
An optimizer is the rule that decides, at every training step, how far and in which direction each weight should move. Adam was published in 2014 and its AdamW variant became the default choice for training large language models. Then, in 2024, a newcomer: Muon, a name built on Momentum + Orthogonalization. Its idea: after computing the classic momentum update, you orthogonalize the update matrix before applying it to the weights.
That word "orthogonalize" is defined and illustrated in Training stability: residuals, conditioning, and orthogonality. In a phrase: make a matrix non-distorting, so that it rotates space without stretching any direction more than another.
Long confined to research and to runs of a few billion parameters, Muon now appears in a top-tier model. The DeepSeek-V4 abstract lists "the Muon optimizer for faster convergence and greater training stability" among its three headline changes, and announces DeepSeek-V4-Pro: 1.6T total parameters with 49B activated, pre-trained on more than 32T tokens.
A Mixture-of-Experts (MoE) is an architecture where you store a great many parameters but put only a small fraction of them to work for each token: hence the gap between 1.6 trillion and 49 billion.
This is not the first large-scale training run without AdamW, Kimi K2, described further down this page, preceded it back in July 2025. What it does confirm is that the choice holds at the largest published scale.
DeepSeek-V4: Towards Highly Efficient Million-Token Context IntelligenceThe Problem It Solves
With Adam, weight updates tend to collapse into a low-rank subspace. Concretely, this means the update only modifies the weight in a few privileged directions, ignoring the others. The model then uses only a fraction of its weight matrix capacity.
Imagine a weight matrix of dimension 1024 x 1024: it theoretically has 1024 independent directions to exploit. But if the update has rank 5, only 5 of those directions are actually modified at each step. The other 1019 remain unexploited.
Orthogonalization: Forcing Diversity
Orthogonalization transforms the update matrix so that its rows (or columns) are orthogonal to each other, meaning perpendicular in vector space. The result: the update uniformly covers all directions of the weight space, instead of concentrating on a few.
In mathematical terms, if is the raw update matrix (after momentum), Muon computes:
then applies .
Reading the symbols: is the matrix of learned weights, the update proposed by the gradient and momentum, the same update made non-distorting, (Greek letter eta) the learning rate (the size of the step) and the arrow means "replace by". In one sentence: subtract from the weights a corrected version of the update, dosed by the learning rate.
Orthogonalization amounts to seeking the closest orthogonal matrix to :
Reading the symbols: reads "the value of that makes what follows as small as possible"; the condition restricts the search to orthogonal matrices (those that only rotate space); and is the Frobenius norm, the simplest way of measuring the gap between two matrices, subtract entry by entry, square, add it all up, take the square root. It is Pythagoras applied to a table of numbers. In one sentence: among all possible rotations, take the one that most resembles the original update.
This is exactly the operation described as "explicit projection via SVD" in Training stability (SVD for Singular Value Decomposition) applied here not to the weights but to their update.
Newton-Schulz: Orthogonalize Without SVD
The problem is that computing a full SVD is extremely expensive. For an matrix the cost grows like , the notation, which says how the cost grows with while ignoring constants. Doubling therefore multiplies the cost eightfold; at and once per training step, that is untenable.
Muon works around it with Newton-Schulz iterations, a method that approximates orthogonalization using nothing but matrix multiplications, the operation graphics processors execute most efficiently. The algorithm:
- Divide by its overall size, so that its largest singular value does not exceed . (Singular values are the matrix's stretch factors, defined in the page on stability.)
- Repeat the formula:
- In about five iterations, approaches the closest orthogonal matrix to .
Reading the formula: is the state of the matrix after repetitions ( being the starting matrix), the identity matrix (the one that does nothing), the transpose of (the table flipped along its diagonal). The and the are not arbitrary: they come from Newton's classic formula for approximating a square root, carried over to matrices, a second-order approximation, whose general principle is in Taylor series and approximations. In one sentence: on each round, every stretch factor of the matrix is nudged toward 1, and five rounds are enough to get almost all of them there.
An honesty note: real Muon implementations do not use exactly these coefficients but a polynomial whose coefficients were tuned to converge faster. The principle is the one described here; the values are not.

Each Newton-Schulz iteration performs a matrix multiplication and brings all singular values closer to 1 (the condition for an orthogonal matrix). Singular values close to 1 move little, those far from it converge quickly. In practice, 5 iterations are enough for an excellent approximation. The cost per iteration is dominated by matrix multiplications, which GPUs execute very efficiently.
Results: What Is the Gain, Exactly?
Two figures circulate, and they are best not conflated.
- In the reference experiment by Muon's author, reproduced in the figure below: at equal final quality, Muon reaches the same loss value with about 25 % less data than a carefully tuned AdamW, on a 1.5-billion-parameter model.
- In the scaling-law experiments of the Moonshot AI paper: about 2x the compute efficiency of AdamW under compute-optimal training (i.e. at a fixed compute budget, with model size and token count chosen to get the most out of it). That is the figure in the paper's abstract, cited later on this page.
What is best not said, and is often read: "Muon converges in half as many steps." Neither source measures that. The first speaks of data, the second of total compute; the number of steps is not the same quantity, since a Muon step costs more than an AdamW step.
The gain comes from better use of the parameter space: instead of concentrating updates in a few directions, Muon spreads them out, which speeds up the descent.

Limitations and Hybrid Configuration
Muon is not a universal replacement for AdamW. It has two major constraints:
1. Extra cost per step. Newton-Schulz iterations add matrix multiplications at each step. For a matrix of size with iterations, the overhead is about matrix multiplications of size . The gain in number of steps must compensate this wall-clock time overhead.
2. Only works on parameters laid out as a matrix. Orthogonalization means nothing for a single row of numbers: you need a two-dimensional table. Bias vectors (a single column) are therefore excluded, as are the embedding tables (the tables mapping each vocabulary token to its numerical representation) because each of their rows designates one specific token, which forbids mixing them together.
In practice, training with Muon uses two optimizers simultaneously:
- Muon for the weight matrices of the attention layers (the ones producing the query, key, value and output vectors) and of the multi-layer perceptron (MLP, the small network that follows attention in each block).
- AdamW for the embedding tables, the biases, the normalization layers, and the final layer that predicts the next token.
You therefore need to manage two distinct sets of settings (learning rate and weight decay, the penalty that stops weights from growing) which complicates tuning.
Simplified Pseudocode
# Initialization
momentum = torch.zeros_like(W)
beta = 0.95 # momentum coefficient
for step in range(num_steps):
grad = compute_gradient(W)
# 1. Momentum update (classic)
momentum = beta * momentum + grad
# 2. Orthogonalization via Newton-Schulz
X = momentum / momentum.norm() # normalization
for _ in range(5): # 5 iterations suffice
X = 0.5 * X @ (3 * I - X.T @ X)
# 3. Weight update
W = W - lr * X
SGD: Still Alive
Before Adam there was SGD with momentum, Stochastic Gradient Descent, "stochastic" meaning you only look at a randomly drawn sample of the data at each step. This optimizer is much simpler: it keeps only one quantity per parameter (momentum), against two for Adam.
Why Some Still Use It
The main reason is memory. Adam keeps two running averages per parameter: the average of the gradients (momentum) and the average of their squares (used to spot parameters whose gradient is habitually large or small). Each is stored in 32 bits, i.e. 4 bytes, hence 8 bytes per parameter, the course's reference figure, established in Full fine-tuning versus parameter-efficient fine-tuning.
The arithmetic then happens in front of you. For a 70-billion-parameter model:
- Adam / AdamW: GB of optimizer states.
- SGD with momentum, which keeps a single running average: GB.
| Optimizer | Running averages per parameter | Memory for 70 billion parameters, states in 32 bits |
|---|---|---|
| SGD + momentum | 1 | 280 GB |
| Adam / AdamW | 2 | 560 GB |
| Muon | 1 (momentum only) | 280 GB |
Note what this table counts: only the optimizer states, not the weights themselves nor the gradients. The total for a full training run is given in the page linked above.
Notable fact: Muon keeps only one running average, like SGD. Orthogonalization is recomputed at each step and needs no persistent storage. Muon thus offers the convergence gains of an advanced optimizer with the footprint of the leanest one.
When to Choose SGD
- Very large-scale distributed training where per-GPU memory is the limiting factor
- Vision: SGD + momentum remains competitive for ConvNets (ResNet, EfficientNet)
- Simplicity: fewer hyperparameters to tune (no , , )
For LLM pre-training, Adam/AdamW remains the default choice. SGD converges more slowly on Transformers, and the memory savings generally don't compensate for the additional compute time.
Schedulers: Steering the Learning Rate
This section is a condensed recap. The topic has a lesson of its own, with the figures and the special cases: Learning rate scheduling: warmup, cosine, WSD. We revisit it here because, at the end of this page, we need to know how those curves combine with Muon.
A scheduler is simply the curve the learning rate follows over the course of training. The learning rate is the most critical setting of training. Too high, the loss explodes and the diverged run is lost. Too low, the model progresses uselessly slowly. And most importantly, the right rate changes during training.
Phase 1: Warmup, the Gradual Ramp-Up
Warmup is the phase where you start from a learning rate of zero and raise it gradually to its cruising value, typically over the first few percent of training:
- : the current step
- : the number of warmup steps
- : the target learning rate
Why is it necessary? At the very beginning, gradients are computed from randomly initialized weights. These gradients are very noisy and point in unreliable directions. A high LR would apply large updates based on noise, which risks pushing the weights into a bad region the model will never recover from. The warmup gives time for the optimizer's internal statistics (momentum, variance for Adam) to stabilize before increasing update amplitude.
Phase 2a: Cosine Decay (The Standard)
Decay is the phase where you bring the learning rate back down. The most widespread shape follows a cosine curve:
- : the minimum LR at the end of training (often or )
- : the total number of training steps
The cosine shape gives slow decay at the beginning (you keep a high rate to explore), fast in the middle, then slow again at the end (to converge smoothly). It is the curve used by the great majority of published large language models.
If you don't know which curve to choose, warmup then cosine decay is the safest combination. It is the established practice for pre-training.
Phase 2b: WSD
WSD is short for Warmup-Stable-Decay. It divides training into three distinct phases:
- Warmup: linear LR ramp-up (identical to cosine)
- Stable: constant LR during the majority of training
- Decay: rapid decrease (linear or exponential) at the end
The piecewise formula:
- : end of warmup
- : start of decay
- : end of training
WSD's decisive advantage: with cosine, you must declare before starting, as the entire curve depends on it. If you want to extend training, the schedule is compromised. With WSD, the stable phase can last as long as you want. When you're satisfied, you trigger the decay phase. It's much more flexible for experimentation.
WSD is used by MiniCPM, and more and more teams are adopting it for its flexibility.

Linear Decay and Cooldown
Linear decay is the simplest: the rate falls in a straight line from to . Less used for large models because it doesn't adapt to the different training phases, but perfectly viable for short runs.
Cooldown refers to the final decay phase, whatever the curve. It is critical for final quality: this is where the model settles into a flatter minimum of the loss, which improves its ability to generalize (in the sense seen on the Model Soups page: a wide valley floor is less sensitive to small variations in the data than a narrow well). A cooldown that is too short, or absent, leaves the model in a narrow and fragile minimum.
Comparison of the Curves
| Curve | Needs in advance | Easy continuation | Usage |
|---|---|---|---|
| Cosine decay | Yes | Difficult | The most widespread default |
| WSD | No | Easy | Growing, especially when the duration is not fixed |
| Linear decay | Yes | Difficult | Rare for large models |
| Inverse square root | No | Easy | Historical (original Transformer) |
No percentages are given here, deliberately: there is no public census of the curves teams actually use, and the figures that circulate on this point rest on no verifiable source.
Cosine is the safe default, backed by years of practice on the largest models. WSD is the pragmatic choice when you don't know the compute budget in advance or want to be able to extend training. Both give comparable performance; the difference is operational.
Muon and the Learning Rate: How to Combine Them
Muon is used with the same curves as AdamW. The usual combination is warmup then cosine decay.
In a hybrid configuration (Muon for the matrices, AdamW for the rest), each optimizer has its own curve and its own maximum rate. Muon's rate is generally higher than AdamW's on the same model: since orthogonalization pulls all the stretch factors of the update close to 1, the size of the step is better controlled and you can afford to be more aggressive.
The values below are an illustrative order of magnitude, not a recipe: they depend entirely on the architecture and size of the model.
# Typical hybrid configuration
muon_lr = 0.02 # LR for weight matrices (attention, MLP)
adamw_lr = 3e-4 # LR for embeddings, biases, norms
warmup_steps = 1000
total_steps = 100000
# Muon: warmup + cosine
muon_scheduler = CosineWithWarmup(muon_lr, warmup_steps, total_steps)
# AdamW: warmup + cosine (same schedule, different LR)
adamw_scheduler = CosineWithWarmup(adamw_lr, warmup_steps, total_steps)
Update: How Muon Scaled Up
Muon began as a researcher's idea validated on small models. Making it work on runs of several trillion tokens took two successive fixes: the first on the size of the steps, the second on the stability of the attention layer. A third stage, in 2026, finally produced a serious comparison against AdamW at very large batch sizes.
Fix 1: Two Additions to Survive Scale
The original recipe offered no guarantee beyond a few billion parameters. A team at Moonshot AI identified two sufficient additions:
- Weight decay: a term that stops the weights from growing without bound step after step. Without it, the size of the matrices drifts upward and the effective learning rate stops meaning much of anything.
- Per-parameter update-scale matching: after orthogonalization all singular values are close to 1, so the magnitude of an update depends mostly on the matrix dimensions, not on its gradient. You rescale it to match what AdamW would have produced, which makes one learning rate valid across all layers.
With those two fixes, Muon works on a large run without re-tuning the settings. The authors' scaling-law experiments put the gain at roughly 2x the compute efficiency of AdamW under compute-optimal training. Their demonstration model, Moonlight, is a Mixture-of-Experts with 3 billion active parameters out of 16 billion total, trained on 5.7T tokens. All three figures appear verbatim in the paper's abstract.
The paper that took Muon from prototype to production: weight decay, update-scale matching, a memory- and communication-efficient distributed implementation, and the released Moonlight weights.
Muon is Scalable for LLM TrainingFix 2: MuonClip and QK-Clip
One flaw remained, and it is specific to Muon: it makes attention logits explode more readily than AdamW does. A vocabulary reminder: before the softmax (the function that turns a list of raw scores into percentages summing to 100 %), every pair of tokens gets a raw score (the attention logit) obtained by multiplying one token's query vector (Q) by another token's key vector (K). If those scores climb too high, the softmax saturates (all the weight goes to a single position), reduced-precision arithmetic overflows, and the loss spikes.
The known remedies were not enough: clipping the logit right before the softmax acts too late, since the QΒ·K product has already reached huge values; and normalizing Q and K does not apply to every attention variant. Hence QK-clip, a simple idea applied in the right place, on the weights, not the activations:
- During the forward pass, record for each attention head the largest logit seen over the batch.
- After the optimizer step, if that maximum exceeds a set threshold, multiply that head's Q and K projection matrices by a factor below 1, just enough to bring the score back under the threshold.
- Other heads are left alone. In practice only a small minority ever trigger the clip.
The elegant part: the correction changes neither the forward nor the backward computation of the current step; the max logit merely serves as a signal for how hard to restrain weight growth. And the mechanism switches itself off, in the Kimi K2 run, the logits ride the threshold for roughly the first 30% of steps, then fall back on their own and the clip stops biting.
Muon + weight decay + update-scale matching + QK-clip make up a single optimizer, MuonClip. It is what pre-trained Kimi K2 (a Mixture-of-Experts with 1 trillion total parameters and 32 billion active) on 15.5T tokens with zero loss spike across the whole run. That result is what made Muon a credible option at the largest scale: not "it converges faster", but "it doesn't break".
The Kimi K2 technical report introduces MuonClip and QK-clip. It also documents why Muon is more prone than AdamW to runaway attention logits, exactly the information you need to pick an optimizer knowingly.
Kimi K2: Open Agentic Intelligence2026: Matrix Optimizers Hold Where AdamW Degrades
In July 2026 a team at NVIDIA published the missing comparison: SOAP, Muon and AdamW put side by side in the same codebase, on multi-billion-parameter models trained over trillions of tokens. SOAP is another optimizer that treats the gradient as a matrix rather than coefficient by coefficient; the family is known as preconditioned optimizers.
Two methodological precautions make this work useful where optimizer comparisons are usually suspect:
- Learning rates are matched by effective update magnitude (update-RMS matching) rather than taken as given. Without that, you are mostly comparing badly tuned learning rates.
- The authors also measure the actual orthogonalization quality Muon achieves, instead of assuming it is perfect.
The headline result concerns batch size: the number of tokens processed at each training step. Growing the batch is the normal way to spend more graphics processing units (GPUs) to finish sooner: each step swallows more data, so fewer steps are needed. But past a certain point the quality per step degrades and buying more GPUs stops paying. Yet up to batches on the order of 100 million tokens, SOAP and Muon keep their stability and quality while AdamW degrades, that is the abstract's own wording. At the scales tested, both matrix optimizers consistently beat AdamW. The authors add the matching engineering: a layer-wise distributed implementation, compatible with the Megatron-LM training library, that balances memory and hides communication without approximating the optimizer's computations.
A unified empirical study of SOAP, Muon and AdamW, with stability fixes for SOAP at large batch sizes (per-step QR orthogonalization, QR is the name of a classic matrix decomposition, a cheaper cousin of the SVD) and a layer-wise distributed implementation.
SOAP, Muon, and Beyond: Pushing LLM Pretraining ScalesThe authors are careful to write "at the scales we tested". This is one team, one codebase, one family of architectures. The direction of the conclusion (matrix optimizers absorb very large batches better) is solid and consistent with the runs published since 2025, but it should not be treated as a universal law before independent replication.
Summary
| AdamW | Muon | SGD + momentum | |
|---|---|---|---|
| Running averages stored | 2 per parameter | 1 per parameter | 1 per parameter |
| Compute efficiency | Reference | ~2x better under compute-optimal training (Moonshot abstract) | Worse |
| Cost per step | Reference | Higher (Newton-Schulz iterations) | Lower |
| Applicable to | All parameters | Matrices only | All parameters |
| Uptake | Standard | Being adopted, up to the largest models | Marginal for LLMs |
Learning-rate curves are independent of the optimizer choice: warmup then cosine for robustness, WSD for flexibility. The maximum learning rate remains the most critical setting, regardless of the combination chosen.
And the point to carry away from the update above: what unlocked Muon at scale was not even better convergence (that was settled back in 2024) but two robustness fixes, update-scale matching and QK-clipping of the attention weights. An optimizer does not get adopted because it wins a benchmark; it gets adopted once it stops making a months-long training run fail.
1. You often read that Β« Muon converges in half as many steps as AdamW Β». What do the two circulating sources actually measure?
2. Which flaw of Adam does Muon's orthogonalization fix?
3. Why does Muon use Newton-Schulz iterations rather than an SVD to orthogonalize the update?
4. In practice, how is a training run with Muon configured?
5. What made Muon a credible option for the very largest training runs, like Kimi K2 or DeepSeek-V4?