Manuscript Offprint

arXiv:2610.26742

Polar Switch: Fast Muon Orthogonalization with Polynomial Circuits

Zhehang Du, Weijie Su

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Muon, a 2024-born optimizer for language models, differs from the 2015-born spectral gradient descent [1, 2] mainly in its fast, GPU-friendly Newton–Schulz polynomial for orthogonalizing the gradient matrix. Accordingly, a line of research proposes faster polynomial iterations for gradient orthogonalization, such as Polar Express and Gram Newton-Schulz, both built on quintic polynomials. In this paper, we introduce Polar Switch, a new approach to polynomial gradient orthogonalization. Using simple polynomial circuits, Polar Switch reaches a given high polynomial degree at a lower FLOP cost than quintic iterations. We define a circuit as a short sequence of symmetric matrix products on a few square buffers, and circuits with k products form a restricted family of odd polynomials of degree up to 2k+1+12^{k+1} + 1. We choose the sequence of products in each circuit, their coefficients, and how the circuits are composed by numerically minimizing a worst-case bound on the polar approximation error. This minimization is subject to a FLOP budget that accounts for symmetric matrix multiplication kernels and a rounding constraint for numerical stability in half precision. Our two recommended Polar Switch methods have 15.5–18.7% lower runtime than Polar Express on square matrices and 8.6–16.2% lower runtime than Gram Newton-Schulz on rectangular matrices with aspect ratios 3.25, 3.5, and 8, with comparable approximation accuracy. In pretraining Modded-NanoGPT #91, Qwen3-0.6B, and Gemma 3-1B, Polar Switch reaches final validation losses similar to those of established orthogonalization methods. Across the more than 14 million matrices that each of the two recommended methods orthogonalized in these runs, the estimated output spectral norms never exceed the designed bounds by more than 3%, demonstrating their numerical stability.

1 Introduction

For years, Adam [3] and AdamW [4] have been the go-to optimizers for training large language models (LLMs) [5]. Both scale the momentum coordinatewise, without explicitly accounting for the matrix structure of the parameters. Muon [6] takes a different approach in that it uses the matrix structure of the momentum and approximates its polar factor to form the update. Studies have shown that Muon can reach the same training loss as AdamW with less computation [7, 8], and it has since been used to train several frontier open-weight LLMs, including Kimi K3 [9], GLM-5 [10], Step 3.5 Flash [11], DeepSeek-V4 [12], and Qwen3.8-Flash-Next [13]. This advantage comes with additional computation at each optimizer step, because Muon must approximate the polar factor. The question is therefore how to compute this approximation accurately and efficiently.

Let W∈Rn×mW \in \mathbb{R}^{n \times m} be a matrix-shaped parameter, ∇W\nabla W its gradient, and MM its momentum matrix. Without loss of generality, let n≤mn \leq m, because matrices with more rows than columns are handled by transposition. With momentum coefficient μ\mu and learning rate η\eta, a simplified Muon update is

M←μM+∇W,W←W−ηpolar(M).M\leftarrow\mu M+\nabla W,\qquad W\leftarrow W-\eta\mathrm{p o l a r}(M).

*Code is available at https://github.com/zhehangdu/polar-switch.

†^{\dagger}University of Pennsylvania. Emails: {duz,suw}@wharton.upenn.edu.

If M=UΣV⊤M = U \Sigma V^\top is the compact singular value decomposition (SVD), then polar( M)=UV⊤M) = UV^\top [14]. However, computing an SVD at every optimizer step is expensive for LLM training. Muon approximates the polar factor using polynomial iterations inspired by Newton–Schulz [6]. First, we normalize MM as X←M/(∥M∥F+ϵ)X \leftarrow M / (\|M\|_F + \epsilon) with a small ϵ>0\epsilon > 0 ( 10−710^{-7} in our implementation), so that all singular values of XX lie in [0, 1]. At iteration tt, we choose a quintic polynomial pt(x)=ctx+btx3+atx5p_t(x) = c_t x + b_t x^3 + a_t x^5 with coefficients at,bt,cta_t, b_t, c_t and compute

A←XXT,Z←btA+atA2,X←ZX+ctX.(1)A\leftarrow X X^{\mathsf{T}},\qquad Z\leftarrow b_{t}A+a_{t}A^{2},\qquad X\leftarrow Z X+c_{t}X. \tag{1}

Let X=UΣV⊤X = U \Sigma V^\top be the compact SVD of XX. The update is X←U(ctΣ+btΣ3+atΣ5)V⊤X \leftarrow U(c_t \Sigma + b_t \Sigma^3 + a_t \Sigma^5) V^\top. Suppose that, at each iteration tt, pt(σ)≥0p_t(\sigma) \geq 0 for every singular value σ\sigma of the current matrix XX. The iteration replaces each singular value σ\sigma by pt(σ)p_t(\sigma). After TT iterations, each initial singular value σ\sigma becomes (pT∘⋯∘p1)(σ)(p_T \circ \cdots \circ p_1)(\sigma). Approximating the polar factor in Muon therefore requires this composition to approximate one on the positive initial singular values.

The classical Newton–Schulz iteration uses pt(x)=(3x−x3)/2p_t(x) = (3x - x^3)/2, whose repeated application converges to one for 0<x≤10 < x \leq 1 [14]. Muon uses Jordan's fixed quintic pt(x)=3.4445x−4.775x3+2.0315x5p_t(x) = 3.4445x - 4.775x^3 + 2.0315x^5 [6]. Polar Express (PE) uses minimax approximation to choose a different quintic polynomial at each iteration, minimizing its maximum deviation from one over the current singular value interval [15]. Jordan's method and Polar Express differ in their coefficients, but both use quintic iterations. We therefore ask the following question:

Under a fixed FLOP budget for matrix orthogonalization, do repeated quintic iterations yield the most accurate polar approximation?

We answer this question negatively with Polar Switch, which replaces repeated quintic iterations with a few high-degree polynomial circuits. Each circuit is a short sequence of symmetric matrix products on a small number of square buffers. For example, the first circuit of Polar Switch 3-55 (PS3-55) uses three square buffers B1,B2,B3∈Rn×nB_1, B_2, B_3 \in \mathbb{R}^{n \times n}, with the coefficients aτ,bτ,cτa_\tau, b_\tau, c_\tau given in Algorithm A.1:

B1←XXT,B2←a1B12+b1B1+c1I,B3←a2B22+b2B2+c2I,B2←a3B32+b3B3+c3I,B3←a4B22+b4B3+c4I,B1←a5B32+b5B1+c5I,X←B1X.\begin{align*}B_{1}\leftarrow X X^{\mathsf{T}},\quad&B_{2}\leftarrow a_{1}B_{1}^{2}+b_{1}B_{1}+c_{1}I,\quad B_{3}\leftarrow a_{2}B_{2}^{2}+b_{2}B_{2}+c_{2}I,\quad B_{2}\leftarrow a_{3}B_{3}^{2}+b_{3}B_{3}+c_{3}I,\\&B_{3}\leftarrow a_{4}B_{2}^{2}+b_{4}B_{3}+c_{4}I,\quad B_{1}\leftarrow a_{5}B_{3}^{2}+b_{5}B_{1}+c_{5}I,\quad X\leftarrow B_{1}X.\end{align*}

(2)

Each squaring doubles the degree in XX⊤XX^{\top}, to 2, 4, 8, 16, and 32, so the circuit applies an odd polynomial of degree 65 to the singular values. Polar Switch searches numerically for the circuits and their coefficients that approximate the polar factor most accurately under a FLOP budget. Table 1 compares Polar Switch with the quintic baselines. Polar Switch 2-55 (PS2-55) and PS3-55 use fewer FLOPs than Polar Express and Gram Newton-Schulz and less memory than Gram Newton-Schulz.

We make three contributions. (i) We introduce Polar Switch, a FLOP-efficient orthogonalization method for Muon based on high-degree polynomial circuits. (ii) We develop efficient GPU implementations of Polar Switch with two or three square buffers. Each kernel combines a matrix product and its additions before one float16 store, and we select coefficients that try to keep this half-precision computation numerically stable. (iii) Across three LLM pretraining setups, Polar Switch reaches final validation losses similar to those of established orthogonalization methods.

The remainder of the paper is structured as follows. Section 2 reviews related work. Section 3 presents Polar Switch, explains how we design its circuits and coefficients under a FLOP budget, and describes its GPU implementation. Section 4 compares Polar Switch with quintic baselines in LLM pretraining, runtime, and approximation accuracy. Appendix A gives the theory, the numerical search, and the coefficients of Polar Switch. Appendix B gives the detailed experimental setup for LLM pretraining and the runtime and approximation accuracy experiments.

Table 1: Memory in matrix elements, FLOPs, and final singular value intervals for X∈Rn×mX\in \mathbb{R}^{n\times m} with n≤mn\leq m and α=m/n\alpha = m/n. In exact arithmetic, each method maps singular values in [0.001, 1] into its final interval. Jordan and Gram Newton–Schulz multiply the output of their final iteration by a constant that centers this interval at one. Algorithm A.1 gives the iterations of Polar Switch.

MethodMemoryFLOPsFinal interval
Jordan [6]n2(2α+2)n^2(2\alpha+2)(15α+5)n3(15\alpha+5)n^3[0.562544, 1.437456]
Polar Express [15]n2(2α+2)n^2(2\alpha+2)(15α+5)n3(15\alpha+5)n^3[0.858872, 1.141128]
Gram Newton–Schulz [16]n2(2α+4)n^2(2\alpha+4)(6α+14)n3(6\alpha+14)n^3[0.787021, 1.212979]
Polar Switch 2-55n2(2α+2)n^2(2\alpha+2)(6α+10)n3(6\alpha+10)n^3[0.872263, 1.106236]
Polar Switch 2-64n2(2α+2)n^2(2\alpha+2)(6α+10)n3(6\alpha+10)n^3[0.897110, 1.081213]
Polar Switch 2-54n2(2α+2)n^2(2\alpha+2)(6α+9)n3(6\alpha+9)n^3[0.771715, 1.201363]
Polar Switch 2-512n2(2α+2)n^2(2\alpha+2)(9α+8)n3(9\alpha+8)n^3[0.894082, 1.091006]
Polar Switch 2-4111n2(2α+2)n^2(2\alpha+2)(12α+7)n3(12\alpha+7)n^3[0.930600, 1.056149]
Polar Switch 2-11111n2(2α+2)n^2(2\alpha+2)(15α+5)n3(15\alpha+5)n^3[0.867287, 1.118678]
Polar Switch 3-55n2(2α+3)n^2(2\alpha+3)(6α+10)n3(6\alpha+10)n^3[0.898309, 1.080954]
Polar Switch 3-64n2(2α+3)n^2(2\alpha+3)(6α+10)n3(6\alpha+10)n^3[0.913241, 1.070202]
Polar Switch 3-54n2(2α+3)n^2(2\alpha+3)(6α+9)n3(6\alpha+9)n^3[0.800196, 1.178895]

References (100)

Couldn't load all references. Reload the page to try again.