Fall 2026
  • Discord
  • Gradescope
  • Syllabus
  • Spring 2026

On this page

  • Step Size
  • Muon’s Update
  • Matrix Sign
  • Fast Updates

Muon

We’ve used gradient descent to train neural networks by updating their parameters in the direction that locally decreases the loss. Many of those parameters are matrices: they take an input vector and produce an output vector.

Muon takes this structure into account by changing how we measure the size of a matrix update. We’ll derive gradient descent and Muon’s direction from the same optimization problem, then use polynomial approximation to compute Muon’s update efficiently.

How should we update a matrix?


Step Size

Let \(\mathbf W\in\mathbb R^{d\times k}\) be a weight matrix and \(\mathbf G=\nabla_{\mathbf W}\mathcal L\) its gradient. For a small update \(\boldsymbol\Delta\in\mathbb R^{d\times k}\), the first-order approximation to the loss is

\[ \mathcal L(\mathbf W+\boldsymbol\Delta)\approx\mathcal L(\mathbf W)+\langle\mathbf G,\boldsymbol\Delta\rangle_F,\qquad \langle\mathbf G,\boldsymbol\Delta\rangle_F=\sum_{i=1}^d\sum_{j=1}^kG_{ij}\Delta_{ij}. \]

We want the inner product to be negative, but this approximation is only useful locally. Let’s limit the size of the update to \(\rho>0\) and choose the one that decreases the approximate loss most:

\[ \min_{\|\boldsymbol\Delta\|\leq\rho}\ \langle\mathbf G,\boldsymbol\Delta\rangle_F. \]

This is steepest descent. To solve it, we need to decide which norm measures the step size.

The Frobenius norm treats the entries of the matrix as one long vector:

\[ \|\boldsymbol\Delta\|_F^2=\sum_{i=1}^d\sum_{j=1}^k\Delta_{ij}^2. \]

With this norm, Cauchy–Schwarz gives

\[ \langle\mathbf G,\boldsymbol\Delta\rangle_F\geq-\|\mathbf G\|_F\|\boldsymbol\Delta\|_F\geq-\rho\|\mathbf G\|_F. \]

For \(\mathbf G\ne\mathbf0\), equality holds at \(\boldsymbol\Delta=-\rho\mathbf G/\|\mathbf G\|_F\). We recover the gradient-descent direction! The usual update \(-\alpha\mathbf G\) takes this direction with step length \(\rho=\alpha\|\mathbf G\|_F\).

Now consider what the update does to an input \(\mathbf x\in\mathbb R^k\). The layer’s output changes by \((\mathbf W+\boldsymbol\Delta)\mathbf x-\mathbf W\mathbf x=\boldsymbol\Delta\mathbf x\). We could instead limit the largest change over unit inputs, using the spectral norm:

\[ \|\boldsymbol\Delta\|_2=\max_{\|\mathbf x\|_2=1}\|\boldsymbol\Delta\mathbf x\|_2=\sigma_1(\boldsymbol\Delta). \]

Requiring \(\|\boldsymbol\Delta\|_2\leq\rho\) bounds the output change by \(\rho\|\mathbf x\|_2\) for every input. This gives a different set of permitted updates. For example, if \(\boldsymbol\Delta=\operatorname{diag}(\delta_1,\delta_2)\) and \(\rho=1\), the Frobenius constraint is the disk \(\delta_1^2+\delta_2^2\leq1\), while the spectral constraint is the square \(\max(|\delta_1|,|\delta_2|)\leq1\).

The figure uses \(\mathbf G=\operatorname{diag}(1,s)\). The lines have constant predicted loss change \(\delta_1+s\delta_2\); moving them down and left decreases it. Drag the purple point to compare the same trial update under both constraints.

For a diagonal update with entries δ₁ and δ₂, a unit Frobenius budget permits the disk δ₁² + δ₂² ≤ 1, while a unit spectral budget permits the square max(|δ₁|, |δ₂|) ≤ 1. With gradient diag(1, s), the best Frobenius step is proportional to (−1, −s). The best spectral step is (−1, −1) for s > 0. Dragging the shared trial step compares its feasibility and predicted loss under both budgets.

On the disk, the best update points opposite the gradient. On the square, when \(s>0\), we can decrease the approximate loss further by moving all the way to the lower-left corner. The spectral constraint lets us use the full allowance in both directions.

Muon’s Update

The SVD extends this picture to a general matrix. Write the compact SVD of the nonzero gradient as

\[ \mathbf G=\mathbf U\boldsymbol\Sigma\mathbf V^\top=\sum_{i=1}^r\sigma_i\mathbf u_i\mathbf v_i^\top, \]

where \(r\) is its rank, \(\sigma_i>0\), and the columns of \(\mathbf U\in\mathbb R^{d\times r}\) and \(\mathbf V\in\mathbb R^{k\times r}\) are orthonormal. In each input direction \(\mathbf v_i\), the gradient produces \(\mathbf G\mathbf v_i=\sigma_i\mathbf u_i\). Suppose we update in the opposite directions, choosing amounts \(a_i\geq0\):

\[ \boldsymbol\Delta=-\sum_{i=1}^r a_i\mathbf u_i\mathbf v_i^\top,\qquad \langle\mathbf G,\boldsymbol\Delta\rangle_F=-\sum_{i=1}^r\sigma_i a_i. \]

The Frobenius constraint requires \(\sum_{i=1}^r a_i^2\leq\rho^2\): spending more in one direction leaves less for the others. The gradient-descent direction allocates these amounts in proportion to the \(\sigma_i\). The spectral constraint only requires \(\max_{1\leq i\leq r}a_i\leq\rho\). Since every \(\sigma_i\) is positive, we should set every \(a_i=\rho\).

Claim: A steepest update under the constraint \(\|\boldsymbol\Delta\|_2\leq\rho\) is

\[ \boldsymbol\Delta=-\rho\mathbf U\mathbf V^\top,\qquad \langle\mathbf G,\boldsymbol\Delta\rangle_F=-\rho\sum_{i=1}^r\sigma_i. \]

Proof

We need to check that an update using other directions cannot do better. For any permitted \(\boldsymbol\Delta\), Cauchy–Schwarz and the spectral constraint give

\[ \mathbf u_i^\top\boldsymbol\Delta\mathbf v_i\geq-\|\mathbf u_i\|_2\|\boldsymbol\Delta\mathbf v_i\|_2\geq-\rho. \]

Both singular vectors have length one, so

\[ \langle\mathbf G,\boldsymbol\Delta\rangle_F=\sum_{i=1}^r\sigma_i\mathbf u_i^\top\boldsymbol\Delta\mathbf v_i\geq-\rho\sum_{i=1}^r\sigma_i. \]

Our proposed update has spectral norm \(\rho\) and satisfies \(\boldsymbol\Delta\mathbf v_i=-\rho\mathbf u_i\) for each \(i=1,\ldots,r\). It attains the bound.

The matrix \(\mathbf Q=\mathbf U\mathbf V^\top\) is the polar factor we will use. It keeps the singular vectors and replaces every positive singular value by one. Thus it maps \(\mathbf v_i\) to \(\mathbf u_i\) with no stretching. It maps directions perpendicular to the columns of \(\mathbf V\) to zero; if \(\mathbf G=\mathbf0\), we take \(\mathbf Q=\mathbf0\).

The figure applies both updates to the same unit inputs, again with \(\mathbf G=\operatorname{diag}(1,s)\) and \(\rho=1\). The dashed gray circle contains the inputs; the colored curves contain their output changes \(\boldsymbol\Delta\mathbf x\). Drag the input to follow its change under each update.

Both panels use gradient diag(1, s) and a unit norm budget. The Frobenius-normalized gradient step maps the unit input circle to an ellipse. The polar step maps it to a unit circle while s is positive. Dragging the same input point shows its output under both updates. At s = 0, both chosen updates leave the missing direction unchanged.

The gradient step changes the output less in the weaker singular direction. The polar step uses the full allowance in both directions whenever \(s>0\), however small \(s\) is. At exactly \(s=0\), our chosen polar factor leaves that direction alone. This jump will matter when we approximate the update.

We’ve derived two descent directions by changing the norm in the same optimization problem (Bernstein and Newhouse). The spectral constraint permits more total squared movement at the same \(\rho\), so its larger predicted decrease alone doesn’t establish better training performance.

In practice, Muon applies this transformation to a momentum-smoothed gradient \(\mathbf M\), as in SGD and Adam. Reusing \(\mathbf U\boldsymbol\Sigma\mathbf V^\top\) for its compact SVD, now with \(r=\operatorname{rank}(\mathbf M)\), the idealized update is

\[ \mathbf W\leftarrow\mathbf W-\alpha\mathbf Q,\qquad \mathbf Q=\mathbf U\mathbf V^\top. \]

Here \(\alpha\) sets the spectral step size. Computing an SVD at every training step is expensive, though. Can we compute \(\mathbf Q\) using just matrix multiplication?

Matrix Sign

First suppose \(\mathbf M\) is symmetric. Along an eigenvector, it multiplies by its eigenvalue \(\lambda\). The polar factor removes the magnitude of this scaling while preserving its sign: a positive eigenvalue becomes \(1\), a negative eigenvalue becomes \(-1\), and zero stays zero. This is the sign function:

\[ \operatorname{sign}(\lambda)=\begin{cases}1,&\lambda>0,\\0,&\lambda=0,\\-1,&\lambda<0.\end{cases} \]

A polynomial can change eigenvalues without computing eigenvectors. If \(\mathbf M\mathbf v=\lambda\mathbf v\), then \(\mathbf M^j\mathbf v=\lambda^j\mathbf v\) for each integer \(j\geq0\). Consequently,

\[ p(\mathbf M)\mathbf v=p(\lambda)\mathbf v. \]

If \(p\) is close to sign at each eigenvalue, then \(p(\mathbf M)\) is close to the polar factor. We can evaluate \(p(\mathbf M)\) with matrix multiplication and addition.

For a rectangular \(\mathbf M\in\mathbb R^{d\times k}\), we can make the same connection by placing it inside a symmetric matrix:

\[ \mathbf H=\begin{bmatrix}\mathbf0&\mathbf M\\\mathbf M^\top&\mathbf0\end{bmatrix},\qquad \operatorname{sign}(\mathbf H)=\begin{bmatrix}\mathbf0&\mathbf Q\\\mathbf Q^\top&\mathbf0\end{bmatrix}. \]

The nonzero eigenvalues of \(\mathbf H\) are the pairs \(\sigma_i,-\sigma_i\). Applying sign to these eigenvalues gives the polar factor in the off-diagonal blocks. Here sign acts on the eigenvalues, not the individual matrix entries. We won’t need to build this larger matrix: the next section gives the corresponding operations directly on \(\mathbf M\).

Why does the block-matrix identity hold?

For each singular pair, \(\mathbf M\mathbf v_i=\sigma_i\mathbf u_i\) and \(\mathbf M^\top\mathbf u_i=\sigma_i\mathbf v_i\). Therefore

\[ \mathbf H\frac1{\sqrt2}\begin{bmatrix}\mathbf u_i\\\mathbf v_i\end{bmatrix}=\sigma_i\frac1{\sqrt2}\begin{bmatrix}\mathbf u_i\\\mathbf v_i\end{bmatrix},\qquad \mathbf H\frac1{\sqrt2}\begin{bmatrix}\mathbf u_i\\-\mathbf v_i\end{bmatrix}=-\sigma_i\frac1{\sqrt2}\begin{bmatrix}\mathbf u_i\\-\mathbf v_i\end{bmatrix}. \]

These eigenvectors are orthonormal. Replacing their eigenvalues by \(1\) and \(-1\) and taking the weighted outer products gives

\[ \frac12\begin{bmatrix}\mathbf u_i\\\mathbf v_i\end{bmatrix}\begin{bmatrix}\mathbf u_i\\\mathbf v_i\end{bmatrix}^{\!\top}-\frac12\begin{bmatrix}\mathbf u_i\\-\mathbf v_i\end{bmatrix}\begin{bmatrix}\mathbf u_i\\-\mathbf v_i\end{bmatrix}^{\!\top}=\begin{bmatrix}\mathbf0&\mathbf u_i\mathbf v_i^\top\\\mathbf v_i\mathbf u_i^\top&\mathbf0\end{bmatrix}. \]

Summing over \(i=1,\ldots,r\) puts \(\sum_{i=1}^r\mathbf u_i\mathbf v_i^\top=\mathbf Q\) in the upper-right block. The remaining eigenvalues are zero and contribute nothing.

Fast Updates

Normalize the nonzero momentum matrix so its singular values lie in \([0,1]\):

\[ \mathbf X^{(0)}=\frac{\mathbf M}{\|\mathbf M\|_F}. \]

This positive rescaling leaves its singular vectors and polar factor unchanged. If \(\mathbf M=\mathbf0\), return the zero update.

Let’s find a simple polynomial that moves positive values toward one and negative values toward minus one. An odd cubic \(p(x)=ax+bx^3\) treats the two signs symmetrically and keeps zero at zero. We want \(p(1)=1\), and we’d like \(p'(1)=0\) so small errors near one become smaller after the next step. These conditions give \(a+b=1\) and \(a+3b=0\), so

\[ p_3(x)=\frac32x-\frac12x^3. \]

The upper-right block of \(\mathbf H^3\) is \(\mathbf M\mathbf M^\top\mathbf M\). So the same cubic on the symmetric block matrix gives the following operation on a rectangular matrix \(\mathbf X=\mathbf U\boldsymbol\Sigma\mathbf V^\top\):

\[ \frac32\mathbf X-\frac12\mathbf X\mathbf X^\top\mathbf X=\mathbf U\left(\frac32\boldsymbol\Sigma-\frac12\boldsymbol\Sigma^3\right)\mathbf V^\top. \]

The middle factors \(\mathbf V^\top\mathbf V\) and \(\mathbf U^\top\mathbf U\) cancel to identities. We apply the cubic to every singular value without computing any singular vectors! Repeating this operation gives the Newton–Schulz iteration:

\[ \mathbf X^{(t+1)}=\frac32\mathbf X^{(t)}-\frac12\mathbf X^{(t)}(\mathbf X^{(t)})^\top\mathbf X^{(t)}. \]

To see why it converges, consider a singular value \(0<x<1\). Then

\[ p_3(x)-x=\frac{x(1-x^2)}2>0,\qquad 1-p_3(x)=\frac{(1-x)^2(x+2)}2\geq0. \]

Each step increases \(x\) without crossing one. The sequence has a positive limit, which must be a fixed point of \(p_3\); the only positive fixed point in \([0,1]\) is one. Zero stays zero, so in exact arithmetic \(\mathbf X^{(t)}\) converges to \(\mathbf Q\). The squared factor \((1-x)^2\) also explains why the error shrinks quickly once \(x\) is close to one.

Small values take longer: near zero, the cubic only multiplies them by about \(1.5\) per step. The original Muon implementation uses a quintic with a larger slope near zero:

\[ p_5(x)=ax+bx^3+cx^5,\qquad (a,b,c)=(3.4445,-4.7750,2.0315). \]

It moves small values faster, but overshoots one and does not converge exactly to sign; even \(p_5(1)\ne1\). Muon uses a few iterations to obtain an approximate update.

The figure compares the repeated polynomials on the left and their action on the same starting spectrum on the right. Both methods get the same number of matrix products: each cubic step costs two, and each quintic step costs three. This compares product counts; runtime also depends on matrix shapes and hardware. The spectrum has three positive values and one zero, scaled together to have Frobenius norm one.

With the same matrix-product budget for both methods, the left panel compares repeated cubic and Muon quintic polynomials with sign on negative and positive eigenvalues. The right panel applies the same compositions to a shared Frobenius-normalized spectrum. The cubic converges to one slowly from small positive values. The quintic moves them faster but overshoots and does not converge exactly to one. Zero stays zero under both. A cubic step uses two matrix products; a quintic step uses three.

With a small computation budget, moving the tiny singular value faster can help more than accurately fitting the values already near one. With more computation, the cubic can become more accurate. We can measure this directly: if \(x_i^{(t)}\) is the value in active direction \(i\) after \(t\) iterations, then

\[ \|\mathbf X^{(t)}-\mathbf Q\|_2=\max_{1\leq i\leq r}|x_i^{(t)}-1|. \]

The singular vectors stay the same, so the largest scalar error is exactly the largest error in the update’s action on a unit input. Zero directions contribute no error because both maps leave them at zero. A better approximation to sign on the matrix’s spectrum therefore gives a more accurate update; a cheaper polynomial gives more iterations within the same computation budget.

To evaluate the quintic, form \(\mathbf A^{(t)}=\mathbf X^{(t)}(\mathbf X^{(t)})^\top\) and use

\[ \mathbf X^{(t+1)}=a\mathbf X^{(t)}+\left(b\mathbf A^{(t)}+c(\mathbf A^{(t)})^2\right)\mathbf X^{(t)}. \]

The three products form \(\mathbf A^{(t)}\), square it, and multiply the result of the parentheses by \(\mathbf X^{(t)}\). For a tall matrix, we can transpose before iterating so \(\mathbf A^{(t)}\) uses the smaller dimension, then transpose back. After the chosen number of iterations, we take \(\mathbf W\leftarrow\mathbf W-\alpha\mathbf X^{(t)}\). This approximates the spectral-norm descent direction using the matrix multiplications that neural-network hardware is built to compute.