Fall 2026
  • Discord
  • Gradescope
  • Syllabus
  • Spring 2026

On this page

  • Steepest Descent
  • Muon’s Update
  • 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.

How should we update a matrix?


Steepest Descent

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

\[ \mathcal L(\mathbf W+\boldsymbol\Delta)\approx\mathcal L(\mathbf W)+\langle\mathbf G,\boldsymbol\Delta\rangle. \]

The Frobenius inner product generalizes the vector inner product: \[ \langle\mathbf G,\boldsymbol\Delta\rangle =\sum_{i=1}^n\sum_{j=1}^d[\mathbf G]_{ij}[\boldsymbol\Delta]_{ij}. \]

We want this predicted change in loss to be as negative as possible while the approximation holds. How small can it get if we limit the size of our update to \(\rho>0\)?

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

The answer depends on how we measure the size of a matrix: With the Frobenius norm, we recover gradient descent. With the spectral norm, we recover Muon.

Before we begin, consider the compact SVD of \(\mathbf G\ne\mathbf0\):

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

where \(r=\operatorname{rank}(\mathbf G)\) and \(\sigma_1\geq\cdots\geq\sigma_r>0\) are its positive singular values. The columns \(\mathbf u_i\) of \(\mathbf U\in\mathbb R^{n\times r}\) and \(\mathbf v_i\) of \(\mathbf V\in\mathbb R^{d\times r}\) are its left and right singular vectors; each set is orthonormal. We’ll use \(\boldsymbol\Delta^*\) for an optimal update under the chosen norm. Let’s compare two choices of norm.

Frobenius Norm

The Frobenius norm is the Euclidean length of all the entries taken together. Equivalently, it is the \(\ell_2\)-norm of the singular values:

\[ \|\mathbf G\|_F^2 =\sum_{i=1}^n\sum_{j=1}^d[\mathbf G]_{ij}^2 =\sum_{i=1}^r\sigma_i^2. \]

Under the constraint \(\|\boldsymbol\Delta\|_F\leq\rho\), the step’s singular values share a squared-length budget: increasing one leaves less room for the others. Cauchy–Schwarz gives a lower bound on the predicted loss change:

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

We attain this bound with

\[ \boldsymbol\Delta^*=-\rho\mathbf G/\|\mathbf G\|_F \]

since

\[ \langle\mathbf G,\boldsymbol\Delta^*\rangle =-\frac{\rho}{\|\mathbf G\|_F}\langle\mathbf G,\mathbf G\rangle =-\frac{\rho}{\|\mathbf G\|_F}\|\mathbf G\|_F^2 =-\rho\|\mathbf G\|_F. \]

This is the gradient-descent direction, scaled to have length \(\rho\). The usual step \(-\alpha\mathbf G\) corresponds to \(\rho=\alpha\|\mathbf G\|_F\).

Spectral Norm

To motivate the spectral norm, consider what the update does to an input \(\mathbf x\in\mathbb R^d\). The layer’s output changes by

\[ (\mathbf W+\boldsymbol\Delta)\mathbf x-\mathbf W\mathbf x=\boldsymbol\Delta\mathbf x. \]

The spectral norm is the largest output length over unit inputs. For \(\boldsymbol\Delta\), this is its largest singular value:

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

The constraint \(\|\boldsymbol\Delta\|_2\leq\rho\) bounds the output change by \(\rho\|\mathbf x\|_2\) for every input. That is, each singular value of the update can be as large as \(\rho\), regardless of the others. Compare this with the Frobenius constraint, which bounds the square root of their sum of squares.

The figure shows the allowed values for two singular values of \(\boldsymbol\Delta\), without sorting them. Since singular values are nonnegative, we show the quarter disk and square in the positive quadrant.

The axes show two nonnegative singular values of the update Δ, without sorting them. A Frobenius constraint bounds their sum of squares by ρ², giving a quarter disk of radius ρ. A spectral constraint bounds each value by ρ, giving a square with side length ρ. The slider changes ρ in both panels.

Muon’s Update

Let’s solve the same minimization problem with the spectral constraint \(\|\boldsymbol\Delta\|_2\leq\rho\).

First, we’ll write the Frobenius inner product as a trace:

\[ \begin{aligned} \langle\mathbf G,\boldsymbol\Delta\rangle &=\sum_{i=1}^n\sum_{j=1}^d[\mathbf G]_{ij}[\boldsymbol\Delta]_{ij}\\ &=\sum_{j=1}^d\sum_{i=1}^n[\mathbf G^\top]_{ji}[\boldsymbol\Delta]_{ij}\\ &=\sum_{j=1}^d[\mathbf G^\top\boldsymbol\Delta]_{jj}\\ &=\operatorname{tr}(\mathbf G^\top\boldsymbol\Delta). \end{aligned} \]

Substitute the SVD of \(\mathbf G\) into our trace expression:

\[ \begin{aligned} \langle\mathbf G,\boldsymbol\Delta\rangle &=\operatorname{tr}(\mathbf G^\top\boldsymbol\Delta)\\ &=\operatorname{tr}\left(\left(\sum_{i=1}^r\sigma_i\mathbf v_i\mathbf u_i^\top\right)\boldsymbol\Delta\right)\\ &=\sum_{i=1}^r\sigma_i\operatorname{tr}(\mathbf v_i\mathbf u_i^\top\boldsymbol\Delta)\\ &=\sum_{i=1}^r\sigma_i\operatorname{tr}(\mathbf u_i^\top\boldsymbol\Delta\mathbf v_i)\\ &=\sum_{i=1}^r\sigma_i\mathbf u_i^\top\boldsymbol\Delta\mathbf v_i. \end{aligned} \]

We used linearity to move the sum outside the trace, then the cyclic property to move \(\mathbf v_i\) to the end. The expression \(\mathbf u_i^\top\boldsymbol\Delta\mathbf v_i\) is a scalar, so taking its trace does nothing.

For each \(i=1,\ldots,r\), apply Cauchy–Schwarz to the vectors \(\mathbf u_i\) and \(\boldsymbol\Delta\mathbf v_i\):

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

Both singular vectors have length one, and the constraint bounds \(\|\boldsymbol\Delta\|_2\) by \(\rho\). Since the \(\sigma_i\) are positive, adding these bounds gives

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

We attain this bound with

\[ \boldsymbol\Delta^*=-\rho\mathbf U\mathbf V^\top=-\rho\sum_{i=1}^r\mathbf u_i\mathbf v_i^\top. \]

Its positive singular values are all \(\rho\), so its spectral norm is \(\rho\). To check the loss change, use the orthonormality of the singular vectors:

\[ \begin{aligned} \langle\mathbf G,\boldsymbol\Delta^*\rangle &=\sum_{i=1}^r\sigma_i\mathbf u_i^\top\boldsymbol\Delta^*\mathbf v_i\\ &=-\rho\sum_{i=1}^r\sigma_i\mathbf u_i^\top\left(\sum_{j=1}^r\mathbf u_j\mathbf v_j^\top\right)\mathbf v_i\\ &=-\rho\sum_{i=1}^r\sigma_i. \end{aligned} \]

Every term reaches its lower bound, so this is a steepest update under the spectral constraint. The matrix \(\mathbf U\mathbf V^\top\) is the polar factor: it keeps the singular vectors and replaces every positive singular value of \(\mathbf G\) by one. Directions perpendicular to the columns of \(\mathbf V\) map to zero.

Comparing Updates

We can now compare Muon’s step with the Frobenius step in the same singular directions. For gradient descent,

\[ \boldsymbol\Delta^*=-\rho\frac{\mathbf G}{\|\mathbf G\|_F} =-\frac{\rho}{\sqrt{\sum_{i=1}^r\sigma_i^2}}\sum_{i=1}^r\mathbf u_i\sigma_i\mathbf v_i^\top. \]

For the same input \(\mathbf x\), the two updates change the output by

\[ \begin{aligned} \text{Frobenius:}\quad \boldsymbol\Delta^*\mathbf x &=-\frac{\rho}{\sqrt{\sum_{i=1}^r\sigma_i^2}}\sum_{i=1}^r\mathbf u_i\sigma_i\mathbf v_i^\top\mathbf x,\\[6pt] \text{Spectral:}\quad \boldsymbol\Delta^*\mathbf x &=-\rho\sum_{i=1}^r\mathbf u_i\mathbf v_i^\top\mathbf x. \end{aligned} \]

In both expressions, \(\mathbf v_i^\top\mathbf x\) picks out the input’s component in direction \(\mathbf v_i\). The Frobenius step scales that component in proportion to \(\sigma_i\) before sending it in direction \(-\mathbf u_i\). The spectral step uses the same scale \(\rho\) in every direction with a positive singular value.

In the figure, \(\mathbf G=\operatorname{diag}(1,\sigma_2)\) and \(\rho=1\). Drag the input \(\mathbf x\) around the unit circle to follow \(\boldsymbol\Delta^*\mathbf x\) under both updates, or change \(\sigma_2\) to change the gradient’s second singular value.

Both panels use G = diag(1, σ₂) and step size ρ = 1. A unit input x is shown in indigo; the colored arrow is its output change Δ*x. The Frobenius step maps the unit input circle to an ellipse. The spectral step maps it to a unit circle while σ₂ is positive. Dragging rotates x in both panels; the slider changes σ₂. At σ₂ = 0, both chosen updates leave the second direction unchanged.

As \(\sigma_2\) gets small, the Frobenius step changes the output less in that direction. The spectral step keeps using the full allowance while \(\sigma_2>0\). At exactly zero, our chosen update leaves that direction alone. The spectral constraint permits more total squared movement at the same \(\rho\), so its larger predicted decrease alone doesn’t establish better training performance (Bernstein and Newhouse).

Muon usually applies this operation to a momentum average of the gradients, as in SGD and Adam. We’ll continue to call that matrix \(\mathbf G\). The idealized step is \(\mathbf W\leftarrow\mathbf W+\boldsymbol\Delta^*=\mathbf W-\rho\mathbf U\mathbf V^\top\).

Compare this with low-rank adaptation (LoRA). Muon keeps all \(r\) directions in the compact SVD of \(\mathbf G\) and gives them the same step size. With LoRA we freeze the pretrained \(\mathbf W\) and train two factors \(\mathbf B,\mathbf C\) so the total change \(\mathbf B\mathbf C\) has rank at most the inner dimension we chose. For an \(n\times d\) weight matrix and inner dimension \(k\), that gives us \(k(n+d)\) trainable numbers.

Fast Updates

Our target is \(\mathbf U\mathbf V^\top\): keep the singular vectors of \(\mathbf G\) and replace its positive singular values by one. We want to do this using matrix multiplication, without computing an SVD at each training step. Consider the product \(\mathbf G\mathbf G^\top\mathbf G\):

\[ \begin{aligned} \mathbf G\mathbf G^\top\mathbf G &=(\mathbf U\boldsymbol\Sigma\mathbf V^\top)(\mathbf V\boldsymbol\Sigma\mathbf U^\top)(\mathbf U\boldsymbol\Sigma\mathbf V^\top)\\ &=\mathbf U\boldsymbol\Sigma(\mathbf V^\top\mathbf V)\boldsymbol\Sigma(\mathbf U^\top\mathbf U)\boldsymbol\Sigma\mathbf V^\top\\ &=\mathbf U\boldsymbol\Sigma^3\mathbf V^\top. \end{aligned} \]

The orthonormal columns give \(\mathbf V^\top\mathbf V=\mathbf U^\top\mathbf U=\mathbf I_r\). So this product cubes the singular values while keeping the singular vectors. Combining it with \(\mathbf G\) lets us apply a cubic \(p(x)=ax+bx^3\) to those values:

\[ a\mathbf G+b\mathbf G\mathbf G^\top\mathbf G =\mathbf U(a\boldsymbol\Sigma+b\boldsymbol\Sigma^3)\mathbf V^\top. \]

The SVD explains what this operation does; evaluating the left-hand side only requires matrix products and addition. The remaining question is how to choose \(a\) and \(b\) so that repeating it brings every positive singular value toward one.

Choosing the Cubic

First put the singular values in a known interval. For \(\mathbf G\ne\mathbf0\), start from

\[ \mathbf X_0=\frac{\mathbf G}{\|\mathbf G\|_F},\qquad 0<\frac{\sigma_i}{\sqrt{\sum_{j=1}^r\sigma_j^2}}\leq1 \quad\text{for }i=1,\ldots,r. \]

This rescaling preserves the singular vectors and hence our target \(\mathbf U\mathbf V^\top\).

Write \(x\) for a singular value of the current iterate. We want zero to stay zero and every \(0<x<1\) to increase toward one without passing it. The cubic \(p(x)=ax+bx^3\) already has \(p(0)=0\). To keep one fixed, require \(p(1)=1\). We also choose \(p'(1)=0\): making the polynomial flat at one will reduce the error quickly once \(x\) is close to one. These two conditions determine the coefficients:

\[ \begin{aligned} p(1)=a+b&=1,\qquad p'(1)=a+3b=0,\\ p_3(x)&=\frac32x-\frac12x^3. \end{aligned} \]

We still need to check what happens between zero and one. For \(0<x<1\),

\[ \begin{aligned} p_3(x)-x&=\frac{x(1-x^2)}2>0,\\ 1-p_3(x)&=\frac{(1-x)^2(x+2)}2>0. \end{aligned} \]

The first line says the value increases; the second says it stays below one. Repeated applications therefore give an increasing, bounded sequence. Its limit must satisfy \(p_3(x)=x\), or \(x(1-x^2)=0\). The limit is positive and at most one, so it must be one. The factor \((1-x)^2\) in the second line also checks our reason for setting \(p'(1)=0\): near one, the new error is proportional to the square of the old error.

Applying this cubic to the matrix gives the Newton–Schulz iteration:

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

Every positive singular value approaches one, zero stays zero, and the singular vectors stay the same. Thus \(\mathbf X_t\to\mathbf U\mathbf V^\top\) in exact arithmetic. After stopping the iteration, use \(-\rho\mathbf X_t\) as the approximate Muon step.

The figure shows one through sixteen applications of \(p_3\) to singular values in \([0.01,1]\); darker red means more iterations. Each step is cubic, but after \(t\) iterations the composition has degree \(3^t\). We evaluate them by repeatedly applying the cubic, without expanding a high-degree polynomial.

The plot applies the same cubic p₃(x) one through sixteen times to starting singular values in [0.01, 1]. The curves range from light red for one iteration to dark red for sixteen. Each additional iteration moves values closer to one without overshooting. Small starting values approach one more slowly. After t iterations, the composed polynomial has degree 3ᵗ.

Fewer Iterations

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). \]

Its slope at zero is \(p_5'(0)=3.4445\), compared with \(p_3'(0)=1.5\), so it increases small positive values faster. But it gives up the guarantees we just proved: it can overshoot one, and \(p_5(1)=0.701\), so one is no longer a fixed point. This polynomial is chosen for an approximation after a few iterations, rather than convergence to the exact polar factor.

We can measure how close an approximate update is to the polar factor. If \(x_i\) is the value in active direction \(i\) after \(t\) iterations, then

\[ \|\mathbf X_t-\mathbf U\mathbf V^\top\|_2=\max_{1\leq i\leq r}|x_i-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. Bringing the positive singular values closer to one therefore gives a more accurate update; a cheaper polynomial gives more iterations within the same computation budget.

To evaluate one quintic step, start with the current iterate \(\mathbf X\), form \(\mathbf A=\mathbf X\mathbf X^\top\), and update

\[ \mathbf X\leftarrow a\mathbf X+\left(b\mathbf A+c\mathbf A^2\right)\mathbf X. \]

The three products form \(\mathbf A\), square it, and multiply the result of the parentheses by \(\mathbf X\). For a tall matrix, we can transpose before iterating so \(\mathbf A\) uses the smaller dimension, then transpose back. After the chosen number of iterations, we take \(\mathbf W\leftarrow\mathbf W-\rho\mathbf X\).

Polar Express, by Noah Amsel, David Persson, Christopher Musco, and Robert Gower, takes this idea further by changing the polynomial coefficients at each iteration. For a chosen degree, they select the coefficients of an odd polynomial to minimize the largest error over an interval containing the current positive singular values, then update the interval for the next step. This lets the method move small values quickly at the start and become accurate near one, while still using only matrix multiplication.