The Muon Optimizer: Mathematical Foundations, Newton-Schulz Polar Iterations, and Spectral Steepest Descent in LLM Pre-Training

Transformer pre-training has long relied on AdamW as the default first-order optimizer. While AdamW provides coordinate-wise scale invariance through running estimates of first and second gradient moments, it treats every weight parameter as an isolated scalar. For modern neural networks composed primarily of two-dimensional linear projections, attention transformations, and feed-forward weight matrices, this coordinate-wise factorization neglects the structural transformation properties of matr

6 min
The Muon Optimizer: Mathematical Foundations, Newton-Schulz Polar Iterations, and Spectral Steepest Descent in LLM Pre-Training

Transformer pre-training has long relied on AdamW as the default first-order optimizer. While AdamW provides coordinate-wise scale invariance through running estimates of first and second gradient moments, it treats every weight parameter as an isolated scalar. For modern neural networks composed primarily of two-dimensional linear projections, attention transformations, and feed-forward weight matrices, this coordinate-wise factorization neglects the structural transformation properties of matrix-vector mappings.

The Muon optimizer (Momentum Orthogonalized by Newton-Schulz), developed by Keller Jordan, Jeremy Bernstein, Laker Newhouse, and collaborators, addresses this limitation by formulating parameter updates as steepest descent under the matrix operator norm. Rather than computing expensive singular value decompositions or maintaining memory-heavy Kronecker covariance statistics, Muon computes orthogonalized momentum updates directly through iterative quintic Newton-Schulz polynomial iterations.

Newton-Schulz Polar Factor Iteration

The Geometric Limitation of Coordinate-Wise Optimizers

Standard stochastic gradient descent minimizes loss along Euclidean contours, updating parameters along the negative gradient vector ΔW=ηL(W)\Delta W = -\eta \nabla \mathcal{L}(W). In deep linear and multi-head attention layers, weight matrices WRdout×dinW \in \mathbb{R}^{d_{\text{out}} \times d_{\text{in}}} act as linear operators on activation spaces. Euclidean gradient updates implicitly assume an isotropic Frobenius norm geometry WF=i,jWi,j2\|W\|_F = \sqrt{\sum_{i,j} W_{i,j}^2}.

When training deep networks, the gradient matrix G=L(W)G = \nabla \mathcal{L}(W) exhibits a highly ill-conditioned singular value spectrum. A small number of dominant singular vectors absorb most of the gradient energy, while dozens or hundreds of trailing directions receive negligible updates.

Adaptive optimizers like AdamW attempt to counteract gradient variance by normalizing each entry by the square root of its uncentered second moment:

Wt=Wt1ηmtvt+ϵW_{t} = W_{t-1} - \eta \frac{m_t}{\sqrt{v_t} + \epsilon}

Because the division is performed element-wise along coordinate axes, AdamW is sensitive to coordinate rotations and cannot equalize the rate of learning across orthogonal singular modes. Second-order methods such as K-FAC and Shampoo address this by computing Kronecker-factored covariance approximations (GGT)1/4(G G^T)^{-1/4} and (GTG)1/4(G^T G)^{-1/4}. However, these algorithms require auxiliary memory buffers for large covariance matrices and periodic inversion of matrix roots, imposing non-trivial compute and communication overhead in distributed training.

Spectral Steepest Descent and the Polar Decomposition

Muon reconsiders the update step from first principles by solving for the optimal update direction under the spectral (operator) norm.

Let MRdout×dinM \in \mathbb{R}^{d_{\text{out}} \times d_{\text{in}}} denote the classical Polyak momentum accumulator:

Mt=μMt1+L(Wt1)M_t = \mu M_{t-1} + \nabla \mathcal{L}(W_{t-1})

The goal is to find a parameter perturbation ΔW\Delta W that minimizes the first-order Taylor approximation of the loss M,ΔW=Tr(MTΔW)\langle M, \Delta W \rangle = \text{Tr}(M^T \Delta W) subject to a constraint on the maximum spectral amplification of the update:

ΔW=argminΔW21M,ΔW\Delta W^* = \arg\min_{\|\Delta W\|_2 \leq 1} \langle M, \Delta W \rangle

Here, ΔW2=σmax(ΔW)\|\Delta W\|_2 = \sigma_{\max}(\Delta W) denotes the spectral norm (the largest singular value).

Using the Singular Value Decomposition (SVD) of the momentum matrix, M=UΣVTM = U \Sigma V^T, where URdout×kU \in \mathbb{R}^{d_{\text{out}} \times k} and VRdin×kV \in \mathbb{R}^{d_{\text{in}} \times k} have orthonormal columns and Σ=diag(σ1,σ2,,σk)\Sigma = \text{diag}(\sigma_1, \sigma_2, \dots, \sigma_k) with σi0\sigma_i \geq 0:

M,ΔW=Tr((UΣVT)TΔW)=Tr(ΣUTΔWV)\langle M, \Delta W \rangle = \text{Tr}((U \Sigma V^T)^T \Delta W) = \text{Tr}(\Sigma U^T \Delta W V)

To minimize this trace inner product under the spectral constraint ΔW21\|\Delta W\|_2 \leq 1, the optimal update aligns perfectly with the singular subspaces UU and VV, setting every singular value to the maximum allowable boundary of 1:

ΔW=UVT\Delta W^* = -U V^T

The matrix O=UVTO = U V^T is the polar factor (or matrix sign factor) of MM. Replacing Σ\Sigma with the identity matrix equalizes the update magnitude across all singular directions. Dominant directions with massive singular values and weakly represented directions with small singular values are updated at the exact same spectral rate, preventing representation collapse and eliminating gradient scale disparity.

Iterative Orthogonalization via Newton-Schulz Iterations

Computing the exact SVD of every 2D weight matrix at every optimization step is computationally impractical on modern GPU accelerators. Standard SVD algorithms require iterative QR or bidiagonal divide-and-conquer routines that trigger frequent host-device synchronizations and cannot leverage tensor contraction cores.

Muon bypasses SVD by computing the polar factor through polynomial iterations. The Newton-Schulz iteration is an iterative matrix method designed to compute the matrix sign function and polar decomposition using purely matrix-matrix multiplications.

Given an initial matrix X0X_0 normalized such that its spectral norm is bounded strictly below 3\sqrt{3}:

X0=MMF+ϵX_0 = \frac{M}{\|M\|_F + \epsilon}

The classical third-order Newton-Schulz iteration updates XX via:

Xk+1=12Xk(3IXkTXk)X_{k+1} = \frac{1}{2} X_k (3 I - X_k^T X_k)

To achieve faster numerical convergence within fewer steps, the Muon implementation uses a tuned fifth-order (quintic) polynomial iteration:

Xk+1=aXk+b(XkXkT)Xk+c(XkXkT)2XkX_{k+1} = a X_k + b (X_k X_k^T) X_k + c (X_k X_k^T)^2 X_k

For rectangular matrices where dout>dind_{\text{out}} > d_{\text{in}}, the transpose order is inverted to operate on the smaller inner dimension XkTXkX_k^T X_k, minimizing intermediate FLOPs.

Using polynomial optimization over the singular value interval [0,1][0, 1], the coefficients are set to:

a=3.4445,b=4.7750,c=2.0315a = 3.4445, \quad b = -4.7750, \quad c = 2.0315

These specific coefficients maximize the rate at which small singular values are inflated toward 1 in early iterations while maintaining strict numerical stability. Running exactly N=5N = 5 iterations produces an approximately orthogonal matrix OUVTO \approx U V^T.

Because each iteration consists solely of GEMM operations (general matrix multiplies), the entire orthogonalization executes directly in bfloat16 precision on GPU Tensor Cores with virtually zero kernel launch overhead.

Operator Norm Scaling and Width Transfer

To maintain consistent gradient dynamics when scaling model width (hidden dimension dd), Muon scales updates using the root-mean-square (RMS) operator norm:

WRMSRMS=maxx0WxRMSxRMS=dindoutW2\|W\|_{\text{RMS} \to \text{RMS}} = \max_{x \neq 0} \frac{\|W x\|_{\text{RMS}}}{\|x\|_{\text{RMS}}} = \sqrt{\frac{d_{\text{in}}}{d_{\text{out}}}} \|W\|_2

When applying the orthogonalized update OtO_t, Muon scales the learning rate by the aspect ratio of the layer:

Wt=Wt1ηtmax(1,dout/din)OtW_t = W_{t-1} - \eta_t \cdot \sqrt{\max(1, d_{\text{out}} / d_{\text{in}})} \cdot O_t

This scaling formulation ensures that the expected RMS change in activations remains constant regardless of the model's width dmodeld_{\text{model}} or intermediate expansion factor dffnd_{\text{ffn}}. Consequently, optimal learning rate hyperparameters tuned on small prototype models transfer directly to multi-billion parameter configurations without retuning.

Memory Footprint and Hybridization

Muon is designed specifically for two-dimensional weight tensors in linear, projection, and attention layers. It is not suitable for one-dimensional parameters (layer normalization gains, biases) or high-cardinality embedding tables where rows are updated sparsely.

Production implementations employ a hybrid optimization topology:

  1. 2D Hidden Weights (Muon): Multi-head attention projections (Wq,Wk,Wv,WoW_q, W_k, W_v, W_o) and feed-forward layers (Wgate,Wup,WdownW_{\text{gate}}, W_{\text{up}}, W_{\text{down}}) are updated via Muon.
  2. 1D and Embedding Parameters (AdamW): Token embeddings, positional embeddings, normalization gains, and final classification heads are updated via standard AdamW.

This division yields substantial memory savings over pure AdamW baselines. AdamW maintains two full-precision float32 state tensors per parameter (first moment mtm_t and second moment vtv_t), requiring 8 bytes of optimizer state per parameter. Muon maintains only a single momentum buffer MtM_t (which can be stored in bfloat16 or float32), reducing optimizer state memory on 2D weights by 50 percent.

Pre-Training Efficiency and Convergence Dynamics

Empirical evaluations across language modeling benchmarks demonstrate that Muon achieves the same pre-training validation perplexity with roughly 1.3x to 1.5x fewer training tokens compared to well-tuned AdamW baselines.

In the community NanoGPT speedrun benchmarks (training a 124M parameter transformer on FineWeb-Edu to a validation loss of 3.28), replacing AdamW with Muon reduced total GPU wall-clock training time from several minutes to under 90 seconds on an 8x H100 node. The computational overhead of the five Newton-Schulz matrix multiplications accounts for less than 2 percent of total step execution time, which is offset by the faster loss decay per optimization step.

By treating neural network weights as geometric linear operators rather than independent coordinate collections, Muon establishes a practical middle ground: capturing the spectral benefits of second-order optimization while preserving the computational simplicity and speed of first-order methods.

Sources

Written by

More to read

  • Kahneman-Tversky Optimization (KTO): Mathematical Foundations, Prospect Theory, and Binary Signal Alignment in Large Language Models

    Post-training alignment of large language models has long relied on pairwise comparison datasets. Methods such as Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO) assume access to curated pairs $(x, y_w, y_l)$, where a human or automated judge explicitly marks completion $y_w$ as superior to $y_l$ for a given prompt $x$. In production environments, however, collecting paired preferences is logistically complex, expensive, and artificial. Real-world telem

    1 min
  • Keenable Exits Stealth with 6M Seed to Build Web Index for AI Agents

    Keenable Exits Stealth with $26M Seed to Build Web Index for AI Agents Search infrastructure startup Keenable has emerged from stealth with $26 million in seed funding led by Accel, with participation from Conviction Partners and angel investors. The company is developing a web-scale indexing engine tailored specifically for programmatic retrieval by autonomous AI agents and language model workflows rather than human web browsers. Keenable was co-founded by Andrey Styskin, former head of searc

    1 min
  • OpenAI Publishes Benchmark Results for Jalapeño Custom Inference Silicon

    OpenAI Publishes Benchmark Results for Jalapeño Custom Inference Silicon OpenAI has shared its first empirical performance data for Jalapeño, the custom inference processor co-developed with Broadcom. Presented at the Hot Chips conference and published in an engineering report, the benchmark results evaluate the 700-watt accelerator across open-weight frontier models against Nvidia GB200 and GB300 systems using SemiAnalysis's InferenceX test suite. The published metrics focus on serving effici

    1 min