Muon
Muon (MomentUm Orthogonalized by Newton-Schulz) is an optimizer for the weight matrices of a network’s hidden layers. For a layer with , each step has three parts:
- Momentum: the buffer accumulates recent gradients with momentum coefficient .
- Orthogonalization: , where is the reduced SVD. This sets every nonzero singular value of the buffer to .
- Update: with learning rate . The lecture writes this step without the shape factor introduced below.
A matrix whose nonzero singular values all equal , such as , is called semi-orthogonal. For a gradient , the step minimizes the linearized loss change over all steps with . It is the steepest-descent step under the spectral norm. The norm gives the same direction with a shape-dependent size:
The factor lets one apply to layers of every shape. Here plays the role of the update budget in μP.Newton-Schulz iteration approximates with matrix products only, without an SVD:
- Normalize: set . Since , every nonzero singular value of lies in .
- Iterate an odd polynomial: set with . It keeps the singular vectors, , and maps each singular value to .
- Cubic: has fixed points and . Repeated steps drive every to .
- Quintic: , run for steps. It grows small singular values faster, but , so the result has singular values near .
Keller Jordan introduced Muon in a 2024 blog post titled “Muon: An optimizer for hidden layers in neural networks”. Tuned AdamW remains the default optimizer. Muon is an alternative for hidden-layer matrices.
Intuition
The gradient of a hidden-layer weight matrix often has a few large singular values and many small ones. A gradient step moves the weights along each singular direction by an amount proportional to . The weights therefore move mostly along a few directions. The learning rate must also stay small enough for the largest one. Muon keeps the singular directions of the momentum buffer and sets every singular value to . Each direction then moves by the same amount. An exact SVD at every step would be too slow for large matrices. Newton-Schulz iteration instead applies a polynomial that pushes every singular value toward and leaves the singular vectors unchanged.
\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[x=4.5cm,y=4.5cm]
\draw[->] (0,0) -- (1.75,0) node[right] {$x$};
\draw[->] (0,0) -- (0,1.3) node[above] {$y$};
\foreach \t in {0.5,1,1.5} \draw (\t,0.015) -- (\t,-0.015) node[below] {$\t$};
\foreach \t in {0.5,1} \draw (0.015,\t) -- (-0.015,\t) node[left] {$\t$};
\draw[mid,thick] (0,0) -- (1.22,1.22) node[right] {$y = x$};
\draw[cold,very thick,domain=0:1.6,samples=100] plot (\x,{1.5*\x-0.5*\x*\x*\x}) node[right] {$y = p(x)$};
\draw[hot,thick] (0.2,0) -- (0.2,0.296) -- (0.296,0.296) -- (0.296,0.431) -- (0.431,0.431) -- (0.431,0.6065) -- (0.6065,0.6065) -- (0.6065,0.7982) -- (0.7982,0.7982) -- (0.7982,0.943) -- (0.943,0.943) -- (0.943,0.9952) -- (0.9952,0.9952);
\fill[hot] (0.2,0) circle (0.012);
\node[below,hot] at (0.2,-0.04) {$x_0 = 0.2$};
\fill (1,1) circle (0.014);
\node[above left] at (1,1) {fixed point $x = 1$};
\end{tikzpicture}
\end{document}The figure follows one singular value through the cubic , starting from . Each vertical segment applies . Each horizontal segment moves over to the line , so the output becomes the next input. While the value is small, each step multiplies it by about . Once it passes , three more steps bring it within of , where the curve is flat. Every singular value of the matrix follows the same curve at the same time.
Properties
(Equal Step in Every Direction) A semi-orthogonal update moves the weights by the same amount along every singular direction of the gradient.
Write the gradient as . The gradient step moves the weights by along the direction . The Muon step moves them by along every direction. All nonzero singular values of equal , so its condition number is . Jordan (2024) reports that momentum and Adam updates for transformer weight matrices are nearly low rank. A few directions dominate them. Under a gradient step, a direction with moves times less than the top direction. Muon gives it the same step as the top direction. The update keeps only the directions and discards the relative sizes .
(Odd Polynomials Keep Singular Vectors) An odd matrix polynomial changes only the singular values, so Newton-Schulz never needs or .
Let be the reduced SVD, so and is square and diagonal. Then
Repeating the step gives , and summing the terms gives . Only odd powers have the form . An even term such as is and loses . Every odd polynomial has , so zero singular values stay zero. For a gradient of rank , the iteration therefore approaches and adds no new directions.
(Fixed Points of the Cubic) Iterating the cubic drives every value in to , and near the error shrinks quadratically.
Solving gives , so the fixed points are and . The derivative equals at , so values near move away from it. It equals at , so values near move toward them. Writing for the error, the identity
shows quadratic convergence near . On , and , so the iterates rise steadily to . On , is positive and below , so one step moves the value into . At the value maps to , and above it turns negative.
(Why Normalize First) The Frobenius norm gives a cheap scale that puts every singular value where the cubic converges.
Without normalization, a singular value of maps to , and its direction flips. The Frobenius norm satisfies , so has largest singular value at most . It needs one pass over the entries, while the exact needs an SVD or a power iteration. Multiplying by any leaves and unchanged. The Frobenius bound is loose, though. If a matrix has equal singular values, each becomes , about for . Near the cubic only multiplies a value by per step, so these small values need many steps.
(The Quintic Trades Accuracy for Speed) The quintic multiplies small singular values by per step but never converges to .
The slope at the origin is , against for the cubic. A singular value of reaches after four quintic steps. Higher-degree polynomials can grow values faster, but each step costs more products. The quintic gives , so is not a fixed point. The fixed point closest to is , where . Because there, nearby values move away. The iterates keep moving back and forth around , between about and . A numerical check over all starting values in shows that after steps every value lies in . Later steps keep it there. The band runs from the local minimum up to . Jordan (2024) tuned the coefficients to maximize the slope at zero while keeping values within about of . He reports that errors of this size did not hurt training.
\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{grn}{HTML}{2F9E44}
\definecolor{prp}{HTML}{8E6BD6}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[x=4.5cm,y=4.5cm]
\draw[->] (0,0) -- (1.6,0) node[right] {$x$};
\draw[->] (0,0) -- (0,1.35) node[above] {$y$};
\foreach \t in {0.5,1} \draw (\t,0.015) -- (\t,-0.015) node[below] {$\t$};
\foreach \t in {0.5,1} \draw (0.015,\t) -- (-0.015,\t) node[left] {$\t$};
\draw[mid,thick] (0,0) -- (1.25,1.25) node[right] {$y = x$};
\draw[prp,very thick,domain=0:1.23,samples=150] plot (\x,{3.4445*\x-4.7750*\x*\x*\x+2.0315*\x*\x*\x*\x*\x});
\node[prp,above] at (0.5545,1.21) {$y = f(x)$};
\draw[hot,thick] (0.1,0) -- (0.1,0.34) -- (0.34,0.34) -- (0.34,0.992) -- (0.992,0.992) -- (0.992,0.707) -- (0.707,0.707) -- (0.707,1.107) -- (1.107,1.107) -- (1.107,0.712) -- (0.712,0.712) -- (0.712,1.101) -- (1.101,1.101) -- (1.101,0.706) -- (0.706,0.706);
\fill[hot] (0.1,0) circle (0.012);
\node[below,hot] at (0.1,-0.04) {$x_0 = 0.1$};
\fill (1,0.701) circle (0.014);
\draw (1,0.701) -- (1.15,0.42) node[below] {$f(1) = 0.701$};
\draw[grn,very thick] (1.42,0.682) -- (1.42,1.134);
\draw[grn,very thick] (1.39,0.682) -- (1.45,0.682);
\draw[grn,very thick] (1.39,1.134) -- (1.45,1.134);
\node[grn,right] at (1.45,0.908) {$[0.68, 1.14]$};
\end{tikzpicture}
\end{document}The figure starts the quintic at . After two steps the value is , and from then on it alternates between about and . The green bar marks the band , where every starting value in sits after five steps.
(Cost and Memory) A cubic step costs two matrix products and a quintic step three, and Muon stores one buffer per weight matrix.
Not Taught in Lecture
Lecture did not count the cost. A homework problem analyzed the cubic step, and the quintic code and overhead estimate come from Jordan (2024).
A cubic step forms the Gram matrix and then the product . A quintic step forms , then , then , and adds . Since , an implementation can form whichever Gram matrix is smaller. With and , each product then costs at most about multiply-adds. Jordan’s code transposes tall matrices for this reason and runs the products in bfloat16. On a GPU, a few large matrix products take much less time than one SVD of the same matrix. Jordan estimates the total overhead at under of training FLOPs for large-batch language-model training. For memory, Muon keeps one buffer per weight matrix, as SGD with momentum does. Adam keeps two, the first- and second-moment estimates.
(Which Parameters Use Muon) Muon handles the 2D weight matrices of hidden layers, and the other parameters usually stay on AdamW.
Not Taught in Lecture
Lecture did not cover which parameters Muon should handle. This split follows Jordan (2024). The convolution reshape appeared in a homework problem.
A convolution kernel of shape is reshaped to a matrix before orthogonalization. This is the matrix that multiplies the unfolded patches in the im2col form of a convolution, so . Biases and the gains of normalization layers are vectors. A matrix has one singular value, so orthogonalizing it gives , the normalized gradient. Jordan recommends AdamW for these vectors, for the embedding layer and for the output head. A training run therefore uses two optimizers at once. His public implementation also uses Nesterov-style momentum in place of the plain buffer .
(Results) Muon set training-speed records, and it has been used to train large language models.
In the NanoGPT speedrun, contributors compete to train a small GPT-2 model to a fixed validation loss. The lecture showed the record falling from minutes to about minutes. Muon was one of several changes along the way. In Jordan’s wall-clock comparison, Muon lowered the validation loss faster than Adam, Distributed Shampoo and SOAP. Its time per step was nearly the same as Adam’s. Moonshot AI’s report “Muon is Scalable for LLM Training” (Liu et al., February 2025) applied Muon to large language models.
Examples
(Easy) One Step on a Diagonal Gradient
A layer receives the gradient .
Normalize , apply one cubic Newton-Schulz step, and compare the result with . The Frobenius norm is , so . Its singular values are and . The minus sign belongs to , with , so . For a diagonal matrix, cubes each entry, and one step gives The signs survive because is odd. The errors fell from to and from to . Both match . The smaller error shrank by the larger factor, as quadratic convergence predicts.
(Medium) Orthogonalizing a Non-Symmetric Gradient
A layer receives the gradient
Find from the SVD. Then run the cubic iteration from and compare. The matrix has eigenvalues and , so and . Since , the product equals . Here , and a rotation by . For the iteration, , so the starting singular values are and . The cubic steps give The larger singular value reaches after two steps. The smaller one goes , , , , . After five steps no entry differs from by more than . Five quintic steps instead give singular values and . Neither equals , because .
(Medium) The Update of a Convolutional Layer
A convolutional layer has filters of size . Its gradient has full rank. Muon orthogonalizes it exactly and applies the step .
Find the matrix shape Muon sees, and the spectral norm, norm and RMS entry size of the update. Reshaping gives a matrix, since . The scale is . Every nonzero singular value of equals , so . The norm multiplies this by , which gives exactly . The matrix has rank , so . The RMS entry of the update is therefore A patch with RMS changes the layer's output RMS by at most . A random patch with unit-variance entries changes it by about . This is smaller because the update acts on only of the input directions.
(Hard) How Many Steps for a Small Singular Value
After Frobenius normalization, a momentum buffer has singular values between and .
How many cubic steps make every singular value at least ? How many matrix products is that, and what do five quintic steps give instead? On the cubic is increasing, since . It keeps the singular values in order, so the smallest one arrives last. Starting from , the iterates are , , , , , , , , , , , and . The cubic needs steps. Pure growth by would need , since , and the term slows the last steps. At two products per step, that is products of size . Five quintic steps take such products. From they give , , , and . Every starting value in ends in . The quintic gives a rougher result with about fewer products.
See Also
- 6.4.4. Steepest Descent Under a Norm, for the derivation of the spectral-norm step and other norm choices.
- 4.3. Maximal Update Parameterization, for the norm and the width scaling .
- 6.4.3. Adam, the default optimizer, which Muon replaces for hidden-layer matrices.
- 13.1 Singular Value Decomposition, for , and .
- 5.2.1. Convolutional Layer, for the im2col reshape of convolution kernels.