Track I · ML Fundamentals · 08/09

Frontier lab들의 Muon 변형Muon variants at frontier labs

Muon 한 step을 여섯 칸(분할 단위, 전처리, 직교화기, 정규화, 스케일·decay, 사후 제약)으로 쪼개고, Kimi K2·K3, GLM-5, DeepSeek-V4·V4.1, Qwen3.8, MiMo-V2.6, MAI-Base-2가 각 칸을 어떻게 채웠는지 1차 출처로 따라간다. head별 직교화가 왜 MLA에서 결정적인지 leverage로 유도하고, NorMuon·AdaMuon·Muown·Sinkhorn·Dion·MuonBP를 구현하고, 분산 방식별 통신·계산 비용과 하이퍼파라미터 이전, AdamW에 남기는 매개변수, Muon으로 사전학습한 모델의 SFT·RL, 실패 양상을 증거와 함께 정리한다.Split one Muon step into six slots (partition, pre-transform, orthogonaliser, normaliser, scale and decay, post-step constraint) and follow, from primary sources, how Kimi K2 and K3, GLM-5, DeepSeek-V4 and V4.1, Qwen3.8, MiMo-V2.6 and MAI-Base-2 filled each slot. Derive with leverage scores why per-head orthogonalisation matters for MLA, implement NorMuon, AdaMuon, Muown, Sinkhorn balancing, Dion and MuonBP, and work through the communication and compute of each distributed scheme, hyperparameter transfer, what stays on AdamW, SFT and RL on Muon-trained bases, and the failure modes with their evidence.

55 분min Muon · MuonClip · QK-Clip · Per-Head Muon · Muon Split · Polar Express · NorMuon · AdaMuon · Muown · Dion · MuonBP · Sinkhorn · Canzona · distributed optimizer · hyperparameter transfer · optimizer mismatch 먼저 볼 것:Before this: Muon과 직교화 옵티마이저Muon and orthogonalised optimisers, Attention: query·key·valueAttention: query, key, value

The Muon lesson built the core: steepest descent under the spectral norm gives UV⊤UV^\top, Newton–Schulz (NS) approximates it with matmuls, 0.2max⁡(m,n)0.2\sqrt{\max(m,n)} matches AdamW’s update RMS, weight decay is needed, QK-Clip stops attention logits from running away, and Distributed Muon gathers the matrix that ZeRO had split. Every frontier lab that adopted Muon in 2025–26 kept that core and then changed something — which matrix counts as “one matrix”, which polynomial, what happens after the polynomial, what constrains the weights afterwards, and how the work is spread over thousands of GPUs. This lesson goes lab by lab and variant by variant through those changes, with the numbers from the reports, and asks of each one: what broke without it?

Notation follows the Muon lesson: W∈Rm×nW\in\mathbb R^{m\times n} ([out, in]), gradient GG, momentum MM, msign⁡(X)=UV⊤\operatorname{msign}(X)=UV^\top for X=UΣV⊤X=U\Sigma V^\top, learning rate η\eta, weight decay λ\lambda; HH heads of width dhd_h.

1. One Muon step has six slots

Write a Muon step as a pipeline. Each lab’s “variant” is a choice in one or more slots:

SlotWhat it decidesChoices seen in reports and papers
① partitionwhat one matrix iswhole matrix (Moonlight, K2, V4); fused matrices split into q/k/v and gate/up (Qwen3.8); per head (K3 on Q, K, V; GLM-5 “Muon Split” on the MLA up-projections; V4.1 on Q and K)
② pre-transformwhat goes into the polynomialNesterov G+μMG+\mu M (everyone); elementwise sign first (AdaMuon)
③ orthogonaliserhow msign⁡\operatorname{msign} is approximatedJordan’s quintic ×5; 8 Jordan + 2 stabilising steps (DeepSeek-V4); Polar Express ×8 (Qwen3.8); ×10 (MiMo-V2.6 RL); low-rank power iteration (Dion); blockwise most steps (MuonBP); Sinkhorn row/column balancing instead, for embeddings and the head (V4.1)
④ normaliserwhat happens afternothing; per-row second moment (NorMuon); elementwise second moment (AdaMuon); row norms trained separately (Muown, used by MiMo-V2.6)
⑤ scale and decayhow big the step is0.2max⁡(m,n)0.2\sqrt{\max(m,n)} (Moonlight, K2, GLM, Qwen3.8); 0.18max⁡(m,n)0.18\sqrt{\max(m,n)} (V4, V4.1); λ = 0.1 almost everywhere in pre-training, 0 in MiMo’s RL
⑥ constraintwhat is enforced after the stepQK-Clip (K2, Kimi Linear, K3’s “weight clipping”); none — logits controlled by architecture instead (V4: RMSNorm on queries and KV; GLM-5: per-head split; Qwen3.8: gated residual, no qk-clip)

Two more decisions sit outside the update rule: which parameters skip Muon (§6) and how the per-matrix work is distributed (§8). The rest of this lesson takes the slots in order.

2. Slot ①: what counts as one matrix

The reports

  • Qwen3.8 (§3.1): Megatron stores qkvqkv, the SwiGLU fc1 and the GDN input projection as one fused matrix each, but “semantically they are concatenations of independent linear operators”. Orthogonalising the fused matrix “is then wrong in two ways: the iteration mixes singular directions across unrelated sub-blocks, and γ(A,B)\gamma(A,B) is computed from the concatenated shape”. They split the gradient, run NS per piece and reassemble. Per-head splitting of qkvqkv and the GDN input “improves both loss and downstream benchmarks”; splitting fc1 into gate and up leaves the loss “essentially unchanged while benchmarks improve slightly”.
  • Kimi K3 (§2.5): “we partition [the QQ, KK, VV] momentum matrices along the head dimension and orthogonalize each head’s block separately”, because “heads with larger gradient or momentum scales dominate the shared update direction, while smaller-scale heads receive insufficiently normalized updates”. No ablation numbers are given.
  • GLM-5 (§2.1, Table 1): with Muon, MLA (576-dim cache) “cannot match” GQA-8 (2048-dim cache). Splitting the up-projections WUQ,WUK,WUVW^{UQ},W^{UK},W^{UV} per head (“Muon Split”) closes the gap — MMLU 61.5 → 62.5 (GQA-8: 61.2), C-Eval 59.7 → 62.1 (60.0), RACE 77.8 → 79.9 (79.6), BBH 48.9 → 51.8 (53.3), HumanEval 33.5 → 36.7 (38.5); GSM8K is the exception, 46.2 → 45.0 (47.6) — and “the scale of attention logits of GLM-5 remains stable during pre-training without any clipping strategy”.
  • DeepSeek-V4.1-Flash (§2.5): “head-wise Muon, where Query weights are split by head”, motivated as giving “different preconditioners for different heads”; the configuration paragraph applies it to Query and Key weights. “We observe that head-wise Muon outperforms vanilla Muon”, and the report cites GLM-5 and K3 as independent confirmations.

Four labs converged on the same change within a year. Why it matters, and why it mattered most for MLA, follows from one identity.

Who gets the update: leverage

Stack the heads’ rows: G=[G1;… ;GH]G=[G_1;\dots;G_H] with Gh∈Rdh×nG_h\in\mathbb R^{d_h\times n}, m=Hdhm=Hd_h. With G=UΣV⊤G=U\Sigma V^\top (rank r=min⁡(m,n)r=\min(m,n)), head hh‘s block of the full update is UhV⊤U_hV^\top, where UhU_h is the dh×rd_h\times r slice of UU. Since VV has orthonormal columns,

∥(UV⊤)h∥F2=∥Uh∥F2=:ℓh,∑hℓh=∥U∥F2=r.\|(UV^\top)_h\|_F^2=\|U_h\|_F^2=:\ell_h,\qquad \sum_h \ell_h=\|U\|_F^2=r .

ℓh\ell_h is the leverage of head hh‘s rows. Two regimes:

  • Wide (m≤nm\le n; an MHA projection, Hdh=dmodelHd_h=d_{\text{model}}). GG has full row rank, UU is a square orthogonal matrix, every row of UU has unit norm, so ℓh=dh\ell_h=d_h for every head — no matter how different the heads’ gradients are. Whole-matrix Muon already gives every head the same update size. It still mixes directions: head hh‘s block is [(GG⊤)−1/2]h,: G[(GG^\top)^{-1/2}]_{h,:}\,G, which involves the other heads’ gradients through the off-diagonal blocks GhGh′⊤G_hG_{h'}^\top.
  • Tall (m>nm>n; MLA’s up-projections, which map a latent of width n=dcn=d_c to Hdh≫dcH d_h\gg d_c rows). Now r=n<mr=n<m: there are only nn units of ∥⋅∥F2\|\cdot\|_F^2 to hand out among mm rows, and leverage concentrates on the rows that carry the large singular directions — the heads with large gradients. A head with a small gradient can get almost nothing.

Per-head orthogonalisation replaces the shared budget with a private one: block hh becomes msign⁡(Gh)\operatorname{msign}(G_h) with ∥⋅∥F2=min⁡(dh,n)\|\cdot\|_F^2=\min(d_h,n) for every head, and the RMS scale is computed from the block’s own shape (0.2max⁡(dh,n)0.2\sqrt{\max(d_h,n)}), so every head’s update has RMS 0.2. GLM-5’s up-projections are exactly the tall case (DeepSeek-style MLA: 128 heads × 192 query dims from a 1536-dim latent in V3’s config; GLM-5 uses fewer, larger heads), which is why “different heads can update at different scales” was the fix there.

When are the two the same? Exactly when GG⊤GG^\top is block diagonal, i.e. GhGh′⊤=0G_hG_{h'}^\top=0 for h≠h′h\neq h': heads whose gradients live in mutually orthogonal input subspaces. Then (GG⊤)−1/2(GG^\top)^{-1/2} is block diagonal and msign⁡(G)=[msign⁡(G1);… ;msign⁡(GH)]\operatorname{msign}(G)=[\operatorname{msign}(G_1);\dots;\operatorname{msign}(G_H)]. In a real layer heads read the same residual stream, so the blocks interact.

Cost. Qwen3.8 estimates NS at about 4Kmax⁡(A,B)min⁡(A,B)24K\max(A,B)\min(A,B)^2 FLOPs for KK steps. For a square d×dd\times d projection split into HH blocks of dh×dd_h\times d, the cost drops from 4Kd34Kd^3 to H⋅4K d dh2=4Kd3/HH\cdot4K\,d\,d_h^2=4Kd^3/H — HH times cheaper, which is K3’s “slightly reduces optimizer overhead”. The catch is the number of kernels: “one layer contributes on the order of a hundred sub-matrices”, and Qwen3.8 captures the whole optimizer step in a CUDA graph to kill launch overhead.

Muon 레슨이 핵심을 세웠다. 스펙트럼 노름 아래의 최급강하가 UV⊤UV^\top를 주고, Newton–Schulz(NS)가 이를 행렬곱으로 근사하고, 0.2max⁡(m,n)0.2\sqrt{\max(m,n)}이 AdamW의 업데이트 RMS를 맞추고, weight decay가 필요하고, QK-Clip이 attention logit 폭주를 막고, Distributed Muon이 ZeRO가 쪼갠 행렬을 다시 모은다. 2025–26년에 Muon을 받아들인 frontier lab들은 모두 이 핵심을 지키면서 무언가를 바꿨다. 무엇을 “행렬 하나”로 볼지, 어떤 다항식을 쓸지, 다항식 다음에 무엇을 할지, step 뒤에 가중치에 어떤 제약을 걸지, 수천 GPU에 일을 어떻게 나눌지. 이 레슨은 lab별·변형별로 그 변화를 보고서의 숫자와 함께 따라가며, 각각에 대해 그것이 없으면 무엇이 깨졌는가를 묻는다.

표기는 Muon 레슨을 따른다. W∈Rm×nW\in\mathbb R^{m\times n}([out, in]), 기울기 GG, momentum MM, X=UΣV⊤X=U\Sigma V^\top에 대해 msign⁡(X)=UV⊤\operatorname{msign}(X)=UV^\top, 학습률 η\eta, weight decay λ\lambda, 폭 dhd_h인 head HH개.

1. Muon step 하나에는 여섯 칸이 있다

Muon step을 파이프라인으로 쓰자. 각 lab의 “변형”은 한 칸 이상에서의 선택이다.

칸정하는 것보고서·논문에 나온 선택
① 분할무엇이 행렬 하나인가행렬 통째(Moonlight, K2, V4). fused 행렬을 q/k/v, gate/up으로 분할(Qwen3.8). head별(K3는 Q, K, V, GLM-5 “Muon Split”은 MLA up-projection, V4.1은 Q와 K)
② 전처리다항식에 무엇이 들어가나Nesterov G+μMG+\mu M(모두). 원소별 sign 먼저(AdaMuon)
③ 직교화기msign⁡\operatorname{msign}을 어떻게 근사하나Jordan quintic ×5. Jordan 8 + 안정화 2단계(DeepSeek-V4). Polar Express ×8(Qwen3.8). ×10(MiMo-V2.6 RL). 저랭크 power iteration(Dion). 대부분 step은 블록별(MuonBP). 임베딩·head에는 대신 Sinkhorn 행/열 균형(V4.1)
④ 정규화그다음에 무엇을 하나없음. 행별 2차 모멘트(NorMuon). 원소별 2차 모멘트(AdaMuon). 행 노름을 따로 학습(Muown, MiMo-V2.6이 사용)
⑤ 스케일·decay걸음이 얼마나 큰가0.2max⁡(m,n)0.2\sqrt{\max(m,n)}(Moonlight, K2, GLM, Qwen3.8). 0.18max⁡(m,n)0.18\sqrt{\max(m,n)}(V4, V4.1). 사전학습에서는 거의 모두 λ = 0.1, MiMo의 RL에서는 0
⑥ 제약step 뒤에 무엇을 강제하나QK-Clip(K2, Kimi Linear, K3의 “weight clipping”). 없음, 대신 구조로 logit 제어(V4는 query와 KV에 RMSNorm, GLM-5는 head별 분할, Qwen3.8은 gated residual, qk-clip 없음)

갱신 규칙 바깥에 결정이 두 개 더 있다. 어떤 매개변수가 Muon을 건너뛰나(§6)와 행렬별 작업을 어떻게 분산하나(§8). 이 레슨의 나머지는 칸을 차례로 다룬다.

2. ① 칸: 무엇이 행렬 하나인가

보고서들

  • Qwen3.8(§3.1): Megatron은 qkvqkv, SwiGLU fc1, GDN 입력 projection을 각각 fused 행렬 하나로 저장하지만 “의미상 독립적인 선형 연산자들을 이어 붙인 것”이다. fused 행렬을 통째로 직교화하면 “두 가지로 틀린다. 반복이 무관한 부분 블록 사이에서 특이 방향을 섞고, γ(A,B)\gamma(A,B)를 이어 붙인 모양으로 계산한다.” 그래서 기울기를 쪼개 조각마다 NS를 돌리고 다시 합친다. qkvqkv와 GDN 입력의 head별 분할은 “손실과 다운스트림 벤치마크를 모두 개선”했고, fc1을 gate와 up으로 나누면 손실은 “사실상 그대로, 벤치마크는 약간 개선”되었다.
  • Kimi K3(§2.5): ”[QQ, KK, VV의] momentum 행렬을 head 차원으로 나누고 각 head 블록을 따로 직교화한다.” 이유는 “기울기나 momentum 스케일이 큰 head가 공유된 업데이트 방향을 지배하고, 스케일이 작은 head는 충분히 정규화되지 않은 업데이트를 받기” 때문이다. ablation 숫자는 없다.
  • GLM-5(§2.1, Table 1): Muon에서 MLA(캐시 576차원)는 GQA-8(캐시 2048차원)을 “따라잡지 못한다”. up-projection WUQ,WUK,WUVW^{UQ},W^{UK},W^{UV}를 head별로 나누면(“Muon Split”) 격차가 닫힌다. MMLU 61.5 → 62.5(GQA-8: 61.2), C-Eval 59.7 → 62.1(60.0), RACE 77.8 → 79.9(79.6), BBH 48.9 → 51.8(53.3), HumanEval 33.5 → 36.7(38.5). GSM8K만 예외로 46.2 → 45.0(47.6)이다. 그리고 “GLM-5의 attention logit 스케일은 clipping 없이도 사전학습 내내 안정적이었다.”
  • DeepSeek-V4.1-Flash(§2.5): “Query 가중치를 head별로 나눈 뒤 Muon 업데이트를 적용하는 head-wise Muon”. 동기는 “head마다 다른 preconditioner”이고, 설정 문단에서는 Query와 Key 가중치에 적용한다. “head-wise Muon이 vanilla Muon보다 낫다”고 하며 GLM-5와 K3를 독립적인 확인으로 인용한다.

네 lab이 1년 안에 같은 변경에 도달했다. 왜 중요한지, 왜 MLA에서 가장 중요했는지는 항등식 하나에서 나온다.

업데이트를 누가 가져가나: leverage

head들의 행을 쌓자. G=[G1;… ;GH]G=[G_1;\dots;G_H], Gh∈Rdh×nG_h\in\mathbb R^{d_h\times n}, m=Hdhm=Hd_h. G=UΣV⊤G=U\Sigma V^\top(rank r=min⁡(m,n)r=\min(m,n))이면 전체 업데이트 중 head hh의 블록은 UhV⊤U_hV^\top다. UhU_h는 UU의 dh×rd_h\times r 조각이다. VV의 열이 정규직교이므로

∥(UV⊤)h∥F2=∥Uh∥F2=:ℓh,∑hℓh=∥U∥F2=r.\|(UV^\top)_h\|_F^2=\|U_h\|_F^2=:\ell_h,\qquad \sum_h \ell_h=\|U\|_F^2=r .

ℓh\ell_h는 head hh 행들의 leverage다. 두 경우가 있다.

  • 넓은 행렬(m≤nm\le n, MHA projection처럼 Hdh=dmodelHd_h=d_{\text{model}}). GG는 행 full rank이고 UU는 정사각 직교 행렬이라 UU의 모든 행의 노름이 1이다. 따라서 head들의 기울기가 아무리 달라도 모든 head에서 ℓh=dh\ell_h=d_h다. 행렬 통째 Muon도 이미 모든 head에 같은 크기의 업데이트를 준다. 그래도 방향은 섞는다. head hh의 블록은 [(GG⊤)−1/2]h,: G[(GG^\top)^{-1/2}]_{h,:}\,G이고, 비대각 블록 GhGh′⊤G_hG_{h'}^\top를 통해 다른 head의 기울기가 들어온다.
  • 높은 행렬(m>nm>n, 폭 n=dcn=d_c인 latent를 Hdh≫dcH d_h\gg d_c개 행으로 펴는 MLA up-projection). 이제 r=n<mr=n<m이다. mm개 행에 나눠 줄 ∥⋅∥F2\|\cdot\|_F^2가 nn뿐이고, leverage는 큰 특이 방향을 실은 행, 즉 기울기가 큰 head에 몰린다. 기울기가 작은 head는 거의 아무것도 못 받을 수 있다.

head별 직교화는 공유 예산을 개인 예산으로 바꾼다. 블록 hh는 msign⁡(Gh)\operatorname{msign}(G_h)가 되어 모든 head에서 ∥⋅∥F2=min⁡(dh,n)\|\cdot\|_F^2=\min(d_h,n)이고, RMS 스케일도 블록 자신의 모양(0.2max⁡(dh,n)0.2\sqrt{\max(d_h,n)})으로 계산하므로 모든 head의 업데이트 RMS가 0.2다. GLM-5의 up-projection이 바로 이 높은 경우다(DeepSeek식 MLA. V3 설정에서는 1536차원 latent에서 head 128개 × query 192차원. GLM-5는 head 수를 줄이고 크게 했다). 그래서 거기서는 “head마다 다른 스케일로 업데이트”하는 것이 해법이었다.

언제 둘이 같은가? GG⊤GG^\top가 블록 대각일 때, 즉 h≠h′h\neq h'에 대해 GhGh′⊤=0G_hG_{h'}^\top=0일 때 정확히 같다. head들의 기울기가 서로 직교하는 입력 부분공간에 있을 때다. 그러면 (GG⊤)−1/2(GG^\top)^{-1/2}도 블록 대각이고 msign⁡(G)=[msign⁡(G1);… ;msign⁡(GH)]\operatorname{msign}(G)=[\operatorname{msign}(G_1);\dots;\operatorname{msign}(G_H)]이다. 실제 층에서는 head들이 같은 residual stream을 읽으므로 블록이 상호작용한다.

비용. Qwen3.8은 NS 비용을 KK단계에 약 4Kmax⁡(A,B)min⁡(A,B)24K\max(A,B)\min(A,B)^2 FLOPs로 잡는다. d×dd\times d 정사각 projection을 dh×dd_h\times d 블록 HH개로 나누면 비용이 4Kd34Kd^3에서 H⋅4K d dh2=4Kd3/HH\cdot4K\,d\,d_h^2=4Kd^3/H로, HH배 줄어든다. K3가 말한 “optimizer 오버헤드가 약간 줄어든다”가 이것이다. 대가는 커널 수다. “층 하나가 부분 행렬 백여 개를 만들고”, Qwen3.8은 launch 오버헤드를 없애려고 optimizer step 전체를 CUDA graph로 잡는다.

Click variants to add or remove them; the last one clicked is the focus (top right). Every curve is a real 200-step run of a 4-head attention layer + MLP on a fixed batch (RMS-normalised inputs; head 0 must learn hard attention, heads 1–3 soft attention). Top left: loss (log axis). Top right: each head's max logit for the focus variant (head 0 red; dashed line τ when the focus is MuonClip). Bottom left: singular values of the Wq (or Wuq) update at step 100, sorted. Bottom right: each head's share of that update, as the RMS of its block averaged over the run. Try: in the MLA-like shape, plain Muon hands head 0 — the head with the big gradient — about twice the update RMS of the others; Per-head gives every head the same RMS (≈ 0.18 rather than 0.2 because five Newton–Schulz steps leave the singular values in Jordan's band, mostly below 1) and NorMuon equalises every row at 0.2. Switch to MHA: the 16×16 matrix is full rank and every variant already splits the budget evenly. The more exact orthogonalisers (Polar Express, Hybrid 8+2) flatten the spectrum and hand head 0 an even larger share — exactness does not fix the allocation, the partition does. Raise g₀ to make the imbalance worse; focus MuonClip to see every head's max logit held at τ. This toy ranks nothing — the loss differences are within what a different seed changes. 변형을 눌러 넣고 뺀다. 마지막으로 누른 변형이 focus(오른쪽 위)다. 모든 곡선은 4-head attention + MLP를 고정 배치(RMS 정규화 입력, head 0은 hard attention, head 1–3은 soft attention을 배워야 함)로 실제 200 step 학습한 결과다. 왼쪽 위: 손실(로그 축). 오른쪽 위: focus 변형의 head별 max logit(head 0 빨강, focus가 MuonClip이면 점선이 τ). 왼쪽 아래: step 100에서 Wq(또는 Wuq) 업데이트의 특이값(정렬). 오른쪽 아래: 그 업데이트 중 각 head 블록의 RMS(학습 전체 평균). 해 볼 것: MLA형에서는 plain Muon이 기울기가 큰 head 0에 다른 head의 약 2배 RMS를 몰아준다. Per-head는 모든 head에 같은 RMS를 준다(0.2가 아니라 약 0.18인 것은 NS 5단계가 특이값을 Jordan의 띠, 대부분 1 아래에 남기기 때문이다). NorMuon은 모든 행을 0.2로 맞춘다. MHA로 바꾸면 16×16 행렬이 full rank라 어느 변형이든 이미 고르게 나눈다. 더 정확한 직교화기(Polar Express, Hybrid 8+2)는 스펙트럼을 평평하게 만들고 head 0에 더 큰 몫을 준다. 정확도가 아니라 분할이 배분을 고친다. g₀를 키우면 불균형이 심해지고, MuonClip을 focus로 두면 모든 head의 max logit이 τ에 묶인다. 이 장난감은 순위를 매기지 않는다. 손실 차이는 seed만 바꿔도 나는 수준이다.

What the switchboard shows (a toy; it illustrates mechanisms, it does not rank optimizers):

  1. MLA-like shape, default settings. Plain Muon gives head 0 — the one whose output weight g0=3g_0=3 makes its gradient large — an update RMS about twice the others’. That is leverage concentration in a 16×4 tall up-projection. Per-head equalises the four heads; NorMuon (§4) equalises every row. AdamW is the opposite of Muon here: its per-coordinate normalisation gives head 0 the smallest share.
  2. Switch to MHA. The 16×16 projection is full rank and every Muon variant gives every head the same RMS, as the identity predicts. Per-head now changes only directions.
  3. The spectrum panel shows the update’s singular values at step 100: Jordan’s quintic leaves them in a band below and above 1, the hybrid 8+2 and Polar Express ×8 put them almost exactly at 0.2max⁡(m,n)0.2\sqrt{\max(m,n)} (0.8 for the 16×16 matrix), AdamW’s is a decaying spectrum, and NorMuon’s row rescaling bends the flat line again.
  4. MuonClip as focus. Head 0’s max logit is held at τ by rescaling Wqh,WkhW^h_q,W^h_k after each step; set λ = 0 to see what happens without weight decay.

The NumPy block reproduces the leverage identity at a realistic size and checks the block-diagonal condition.

NumPy Full-matrix vs per-head orthogonalisation: leverage, directions and cost
import numpy as np

def msign(G):
    U, s, Vt = np.linalg.svd(G, full_matrices=False)
    return U @ Vt

r = np.random.default_rng(0)
H, dh = 8, 16                                    # 8 heads of 16 rows: a stacked [H*dh, n] projection
scales = np.array([8.0, 1, 1, 1, 1, 1, 1, 1])    # head 0 carries an 8x larger gradient

def head_rms(U, n):                              # RMS of each head's block of the update
    return np.sqrt((U.reshape(H, dh, n) ** 2).mean((1, 2)))

for name, n in [("MHA-like  W_q: 128 x 512 (wide)", 512), ("MLA-like W_uq: 128 x 32 (tall)", 32)]:
    G = np.concatenate([s * r.normal(size=(dh, n)) for s in scales])
    m = H * dh
    full = msign(G) * 0.2 * np.sqrt(max(m, n))                        # one msign for the whole matrix
    split = np.concatenate([msign(b) * 0.2 * np.sqrt(max(dh, n)) for b in G.reshape(H, dh, n)])
    U = np.linalg.svd(G, full_matrices=False)[0]
    lev = (U.reshape(H, dh, -1) ** 2).sum((1, 2))                     # leverage of each head's rows
    print(name)
    print("  full-matrix  per-head update RMS:", np.round(head_rms(full, n), 3))
    print("  per-head     per-head update RMS:", np.round(head_rms(split, n), 3))
    print("  leverage per head (sums to rank =", round(lev.sum()), "):", np.round(lev, 1))
    cos = (full * split).sum() / np.linalg.norm(full) / np.linalg.norm(split)
    print(f"  cosine(full, per-head) = {cos:.3f}")
    cost_full = 4 * max(m, n) * min(m, n) ** 2                        # NS FLOPs per step, Qwen3.8's estimate
    cost_split = H * 4 * max(dh, n) * min(dh, n) ** 2
    print(f"  NS cost per iteration: full {cost_full/1e6:.2f} MFLOP, per-head {cost_split/1e6:.2f} MFLOP")

# when do the two agree? exactly when the head blocks have mutually orthogonal rows (G_h G_h'^T = 0)
G = np.zeros((H * dh, 512))
for h in range(H):                                # each head reads its own 64 input coordinates
    G[h * dh:(h + 1) * dh, h * 64:(h + 1) * 64] = scales[h] * r.normal(size=(dh, 64))
same = np.allclose(msign(G), np.concatenate([msign(b) for b in G.reshape(H, dh, -1)]), atol=1e-8)
print("disjoint input subspaces -> full msign == per-head msign:", same)
 

Expected: in the wide case both rules give every head RMS 0.2 (leverage 16 each) but the directions differ (cosine ≈ 0.97 for these random, nearly orthogonal heads; it drops as heads share input directions). In the tall case the full matrix hands head 0 a leverage of about 14.7 out of 32 and an RMS of 0.38 while the other seven get about 0.15; per head, all eight get 0.2. Per-head NS costs 8× less for the wide matrix and 2× less for the tall one, and with disjoint input subspaces the two rules coincide exactly.

3. Slot ③: the orthogonaliser

The Muon lesson analysed the polynomials as scalar maps; here is what labs chose and paid.

ScheduleIterationsWhoWhat the report says
Jordan (3.4445,−4.7750,2.0315)(3.4445,-4.7750,2.0315)5Moonlight, K2, GLM-4.5 (5 steps), most open codeoutput singular values in a band around 1; Moonlight found 10 steps no better than 5
Jordan ×8, then (2,−1.5,0.5)(2,-1.5,0.5) ×210DeepSeek-V4, V4.1the first stage drives “rapid convergence”, the last two steps “stabilize the singular values precisely at 1”; NS “remain[s] stable when computed with BF16 matrix multiplications”
Polar Express (per-step minimax quintics)8Qwen3.8-Flash-Next8 steps give “more accurate orthogonalization than fewer steps and reduces both the magnitude and frequency of gradient-norm spikes in our stress test”; Frobenius-normalisation ε = 10⁻¹⁴
Jordan10MiMo-V2.6 (RL with Muown)“perform 10 Newton–Schulz iterations per update”

Two observations. First, the labs that kept the most accurate polynomials (V4, Qwen3.8) are also the ones that run them on per-matrix owners (§8), where an extra 3–5 NS steps cost compute on one GPU, not communication. Second, the evidence for “more accurate is better” is about stability, not loss: Polar Express reports GPT-2-Large validation loss 3.340 vs 3.398 for Jordan’s coefficients at lr 0.02 on 1B tokens, and Qwen3.8’s reason is the gradient-norm spikes under stress. Practitioners adopted it too: Polar Express replaced Newton–Schulz in the modded-nanogpt speedrun (record 38, Sept 2025).

The coefficients used in the code below are the Polar Express paper’s own listing (Appendix A: eight quintics for [ℓ,u]=[10−3,1][\ell,u]=[10^{-3},1], each divided by its 1.01 safety factor except the last, and the input divided by 1.01∥G∥F1.01\|G\|_F).

4. Slot ④: normalising after the orthogonaliser

NorMuon: equalise the rows

Even exact msign⁡\operatorname{msign} leaves one imbalance. For a wide full-rank GG, UV⊤UV^\top has orthonormal rows, so every output neuron’s update has norm 1. For a tall GG (m>nm>n), row ii of UV⊤UV^\top has squared norm equal to its leverage ∥Ui,:∥2\|U_{i,:}\|^2, which varies from row to row — the per-row version of §2. And approximate NS leaves the rows unequal even when m≤nm\le n. NorMuon (Li et al. 2025) measured this on a 1.1B model (“the resulting updates exhibit highly non-uniform neuron norms”) and adds an Adam-mini-like second moment per row, after orthogonalisation:

Ot=NS⁡5(Mt),vt=β2vt−1+(1−β2)mean⁡cols(Ot⊙Ot),O^t=Ot⊘vt,W←W−ηλW−0.2 ηmn∥O^t∥F⏟η^O^t.O_t=\operatorname{NS}_5(M_t),\quad v_t=\beta_2v_{t-1}+(1-\beta_2)\operatorname{mean}_{\text{cols}}(O_t\odot O_t),\quad \hat O_t=O_t\oslash\sqrt{v_t},\quad W\leftarrow W-\eta\lambda W-\underbrace{\tfrac{0.2\,\eta\sqrt{mn}}{\|\hat O_t\|_F}}_{\hat\eta}\hat O_t .

State is m(n+1)m(n+1) numbers versus Muon’s mnmn; the paper reports 21.74% better training efficiency than Adam and 11.31% over Muon at 1.1B, with a 2.9% step-time increase over AdamW, and its FSDP2 version normalises rows locally because FSDP2 shards by rows. It entered the modded-nanogpt speedrun at record 41 (Oct 2025). No frontier-lab report I found uses it.

AdaMuon: sign first, elementwise second moment after

AdaMuon (Si et al. 2025) orthogonalises sign⁡(Mt)\operatorname{sign}(M_t) instead of MtM_t, keeps an elementwise EMA VtV_t of Ot⊙OtO_t\odot O_t, divides by Vt\sqrt{V_t} and rescales to RMS 0.2 with γt=0.2mn/∥O^t∥F\gamma_t=0.2\sqrt{mn}/\|\hat O_t\|_F. It reports more than 40% training efficiency over Adam “in large-scale scenarios” (Qwen2.5 1.5B/7B architectures). The state is back to 2mn2mn, like Adam. No frontier report uses it.

Muown: give the row norms their own optimizer

Muown (Lion et al. 2026) starts from an exact decomposition of the spectral norm. With row norms g=∥W∥rowg=\|W\|_{\text{row}}, row-normalised D=Diag⁡(1/g)WD=\operatorname{Diag}(1/g)W, C=DD⊤C=DD^\top and P=Diag⁡(g/∥g∥∞)P=\operatorname{Diag}(g/\|g\|_\infty),

∥W∥22=∥g∥∞2  λmax⁡(PCP).\|W\|_2^2=\|g\|_\infty^2\;\lambda_{\max}(PCP).

The second factor is ≥1\ge1 and equals 1 iff the (non-negligible) rows are orthonormal. In a 500M Muon run they find ∥W∥2\|W\|_2 and ∥g∥∞\|g\|_\infty “move in lock-step” while λmax⁡(PCP)\lambda_{\max}(PCP) stays bounded — the spectral-norm drift that weight decay is usually asked to stop is row magnitude. Muown reparameterises W=Diag⁡(g/∥R∥row)RW=\operatorname{Diag}(g/\|R\|_{\text{row}})R inside the optimizer, runs Muon (Nesterov, 0.2max⁡(m,n)0.2\sqrt{\max(m,n)}) on the direction RR with the radial part of each row’s gradient projected out, and runs Adam on gg — Adam because steepest descent under ℓ∞\ell_\infty (the operator norm of a diagonal matrix) is sign descent. It is a drop-in replacement: the forward pass still sees WW. From 124M to 2.7B on FineWeb-Edu it beats Muon’s perplexity (1B: 11.90 vs 12.20), widens the plateau of good learning rates across widths, and reduces sensitivity to weight decay.

MiMo-V2.6 adopted it. Its base was pre-trained with AdamW, but “preliminary experiments showed diminishing optimization efficiency as the batch size increased in mixed-task RL”, so from mid-training the hidden matrices switch to Muown, which “augments Muon with explicit row-norm control, mitigating spectral-norm drift and reducing sensitivity to weight decay at negligible overhead”; embeddings, LM head and router stay on AdamW. They note prior work reporting degradation when switching an Adam-pre-trained model to Muon, “nevertheless … we observe no loss spike”. RL then runs Muown at lr 3×10−63\times10^{-6}, no weight decay, no warmup, gradient clip 1.0, momentum 0.95 (Nesterov), 10 NS iterations, an “additional update scaling factor of 0.5”, Adam β1=β2=0.95\beta_1=\beta_2=0.95, and carries “the FP32 master weights and Muown’s row state from the SFT checkpoint” into RL.

Sinkhorn balancing: the embedding analogue (DeepSeek-V4.1)

The Muon lesson noted that an embedding dualises to column normalisation, not UV⊤UV^\top. V4.1 takes the next step for embeddings, Engram tables and the prediction head, which it no longer trains with Adam (“applying Adam to the newly introduced Engram parameters substantially increases the optimizer-state memory footprint”): Nesterov momentum, then KK alternating row and column ℓ2\ell_2 normalisations (rows with norm ≤τρˉ\le\tau\bar\rho masked), times n\sqrt n so rows have unit RMS, then the learning rate times γ=0.18\gamma=0.18. The result Δ=n DrG^Dc\Delta=\sqrt n\,D_r\hat G D_c has roughly unit RMS in every row (token) and every column (feature). Settings: K=11K=11, τ=10−3\tau=10^{-3}, ε=10−20\varepsilon=10^{-20}, no weight decay; “like Muon, this approach requires only a momentum buffer while empirically outperforming Adam”.

NumPy The zoo: three NS schedules, NorMuon, Muown's decomposition, Sinkhorn balancing, Dion
import numpy as np
r = np.random.default_rng(1)

JORDAN = (3.4445, -4.7750, 2.0315)
PE = [(8.28721201814563, -23.595886519098837, 17.300387312530933),   # Polar Express, App. A
      (4.107059111542203, -2.9478499167379106, 0.5448431082926601),
      (3.9486908534822946, -2.908902115962949, 0.5518191394370137),
      (3.3184196573706015, -2.488488024314874, 0.51004894012372),
      (2.300652019954817, -1.6689039845747493, 0.4188073119525673),
      (1.891301407787398, -1.2679958271945868, 0.37680408948524835),
      (1.8750014808534479, -1.2500016453999487, 0.3750001645474248),
      (1.875, -1.25, 0.375)]
PE = [(a / 1.01, b / 1.01**3, c / 1.01**5) for a, b, c in PE[:-1]] + [PE[-1]]   # their safety factor
SCHEDULES = {"Jordan x5": [JORDAN] * 5,
             "DeepSeek-V4 8+2": [JORDAN] * 8 + [(2.0, -1.5, 0.5)] * 2,
             "Polar Express x8": PE}

def ns(G, coeffs, scale=1.0):
    X = G.T if G.shape[0] > G.shape[1] else G            # iterate on the wide side
    X = X / (np.linalg.norm(X) * scale + 1e-7)
    for a, b, c in coeffs:
        A = X @ X.T
        X = a * X + (b * A + c * A @ A) @ X
    return X.T if G.shape[0] > G.shape[1] else X

# 1) the orthogonaliser: singular values of the output for an ill-conditioned 64 x 256 input
U0, _ = np.linalg.qr(r.normal(size=(64, 64))); V0, _ = np.linalg.qr(r.normal(size=(256, 64)))
G = U0 @ np.diag(np.logspace(0, -3, 64)) @ V0.T
for name, co in SCHEDULES.items():
    s = np.linalg.svd(ns(G, co, 1.01 if "Polar" in name else 1.0), compute_uv=False)
    print(f"{name:17s} matmul-steps {len(co):2d}  sigma in [{s.min():.3f}, {s.max():.3f}]")

# 2) NorMuon: NS output of a TALL matrix has unequal row ("neuron") norms; row-normalise them
M = r.normal(size=(256, 64)) * np.linspace(0.2, 3, 256)[:, None]  # rows with different gradient scale
O = ns(M, [JORDAN] * 5)
rn = np.linalg.norm(O, axis=1)
v = (O ** 2).mean(1)                                     # one EMA step of the per-row 2nd moment
On = O / (np.sqrt(v)[:, None] + 1e-8)
On *= 0.2 * np.sqrt(On.size) / np.linalg.norm(On)        # NorMuon's RMS-0.2 rescale
rn2 = np.linalg.norm(On, axis=1)
print(f"NorMuon: row-norm max/min {rn.max()/rn.min():.2f} after NS5 -> {rn2.max()/rn2.min():.2f} after row normalisation, RMS {np.sqrt((On**2).mean()):.2f}")

# 3) Muown: ||W||_2^2 = ||g||_inf^2 * lambda_max(P C P), g = row norms (Lion et al. 2026, Prop. 1)
W = r.normal(size=(32, 48)) * r.uniform(0.5, 2, size=(32, 1))
g = np.linalg.norm(W, axis=1); D = W / g[:, None]; P = np.diag(g / g.max())
lhs = np.linalg.norm(W, 2) ** 2; rhs = g.max() ** 2 * np.linalg.eigvalsh(P @ D @ D.T @ P).max()
print(f"Muown decomposition: {lhs:.4f} = {rhs:.4f}")

# 4) Sinkhorn-balanced update for an embedding-like [vocab x hidden] matrix (DeepSeek-V4.1, Alg. 1)
def sinkhorn(Gh, K=11, tau=1e-3, eps=1e-20):
    rho = np.linalg.norm(Gh, axis=1)
    Uk = np.where((rho > tau * rho.mean())[:, None], Gh, 0.0)    # mask near-zero rows
    for k in range(1, K + 1):
        ax = 1 if k % 2 else 0                                     # odd: rows, even: columns
        Uk = Uk / (np.linalg.norm(Uk, axis=ax, keepdims=True) + eps)
    return np.sqrt(Gh.shape[1]) * Uk
E = r.normal(size=(1000, 64)) * r.lognormal(0, 1.5, size=(1000, 1)) * r.lognormal(0, 0.5, size=(1, 64))
E[r.random(1000) < 0.3] = 0                               # tokens absent from the batch
S = sinkhorn(E); live = np.abs(S).sum(1) > 0
print(f"Sinkhorn: row RMS {np.sqrt((S[live]**2).mean(1)).min():.3f}..{np.sqrt((S[live]**2).mean(1)).max():.3f}, "
      f"col RMS(live rows) {np.sqrt((S[live]**2).mean(0)).min():.3f}..{np.sqrt((S[live]**2).mean(0)).max():.3f}")

# 5) Dion: rank-r orthonormal update from one power-iteration step, with error feedback in the buffer
def dion_step(Mbuf, Grad, V, beta=0.05):
    Mbuf = Mbuf + Grad
    Pm = Mbuf @ V                                         # m x r   (communicated instead of m x n)
    Uq, _ = np.linalg.qr(Pm)
    Wm = Mbuf.T @ Uq                                      # n x r
    Mbuf = Mbuf - beta * Uq @ Wm.T                        # error feedback: unexplained part stays
    Vn = Wm / np.linalg.norm(Wm, axis=0, keepdims=True)   # column normalisation
    O = Uq @ Vn.T * np.sqrt(Mbuf.shape[0] / Mbuf.shape[1])
    return O, Mbuf, Vn
m, n, rk = 128, 256, 16
A = r.normal(size=(m, 8)) @ r.normal(size=(8, n)) + 0.3 * r.normal(size=(m, n))   # low-rank-ish gradient
Mb, V = np.zeros((m, n)), np.linalg.qr(r.normal(size=(n, rk)))[0]
for t in range(20):
    O, Mb, V = dion_step(Mb, A + 0.1 * r.normal(size=(m, n)), V)
Ut = np.linalg.svd(A)[0][:, :8]
cap = np.linalg.norm(Ut.T @ np.linalg.qr(O)[0]) ** 2 / 8
print(f"Dion: rank {np.linalg.matrix_rank(O)} update, top-8 subspace captured {cap:.3f}, "
      f"sync per step {rk*(m+n)} numbers vs {m*n} for the full gradient")
 

Expected: on a κ=103\kappa=10^3 input, Jordan ×5 leaves σ∈[0.21,1.20]\sigma\in[0.21,1.20]; the 8+2 hybrid and Polar Express ×8 both land on [1.000,1.00][1.000,1.00] (10 and 8 matmul steps). NorMuon turns a 11× spread of row norms on a tall matrix into 1.00 at RMS 0.20. Muown’s decomposition holds to four decimals. Sinkhorn balancing makes every live row and column RMS 1.000. Dion’s rank-16 update captures the gradient’s top-8 subspace while synchronising 6,144 numbers instead of 32,768.

5. Slot ⑥: four answers to logit growth

The Muon lesson derived why attention logits grow faster under Muon (full-rank updates, additive growth of aligned singular values, bilinear WqWk⊤W_qW_k^\top) and how K2’s QK-Clip works. The labs that followed answered the same problem in four different places:

AnswerWhere it actsWhoEvidence
Clip the weights after the step: Wqh←γhαWqhW^h_q\leftarrow\gamma_h^{\alpha}W^h_q, Wkh←γh1−αWkhW^h_k\leftarrow\gamma_h^{1-\alpha}W^h_k, γh=τ/Smax⁡h\gamma_h=\tau/S^h_{\max}optimizer, slot ⑥K2 (τ = 100), Kimi Linear’s MuonClip runs, K3 (“weight-clipping mechanism introduced in Kimi K2”)K2: a 9B/53B vanilla-Muon run exceeded 1000; with τ = 100, 12.7% of heads clipped at least once in the first 70k steps, none after; τ = 30 on a 0.5B/3B model had negligible loss impact
Normalise the activations that form the logitarchitectureDeepSeek-V4: “RMSNorm on the attention queries and KV entries … Consequently, we do not employ the QK-Clip technique”no clipping, no logit ablation reported
Change the partitionoptimizer, slot ①GLM-5 Muon Split“the scale of attention logits … remains stable during pre-training without any clipping strategy”
Stabilise the residual streamarchitectureQwen3.8 (gated residual, GatedNorm)full run “without a loss spike … and without explicit clipping”; the report names qk-clip and SwiGLU-clip as devices it did not need

Why per-head splitting helps logits is visible in §2’s identity: under the full-matrix rule, the head that is already learning fast — often the one whose logits are growing — also receives the largest share of a tall update. Per-head caps every head’s update at the same RMS, so no head gets the extra budget. The switchboard shows head 0’s max logit lower under Per-head than under Muon in the MLA-like shape. QK-Clip is the only answer that works for MLA without changing architecture or partition, which is why K2 needed it. DeepSeek-V4 says only that its attention architecture “allows us to directly apply RMSNorm on the attention queries and KV entries”; our reading is that its compressed KV entries are materialised as the keys themselves (MQA-style), so there is something to normalise, unlike K2’s absorbed MLA.

스위치보드에서 볼 것(장난감이다. 메커니즘을 보여 줄 뿐 옵티마이저 순위를 매기지 않는다):

  1. MLA형, 기본 설정. plain Muon은 head 0(출력 가중치 g0=3g_0=3 때문에 기울기가 큰 head)에 다른 head의 약 2배 업데이트 RMS를 준다. 16×4 높은 up-projection에서 leverage가 몰리는 현상이다. Per-head는 네 head를 같게 맞추고 NorMuon(§4)은 모든 행을 맞춘다. 여기서 AdamW는 Muon과 반대다. 좌표별 정규화 때문에 head 0이 가장 작은 몫을 받는다.
  2. MHA로 바꾸기. 16×16 projection은 full rank라 항등식대로 Muon 변형 모두가 모든 head에 같은 RMS를 준다. 이제 Per-head는 방향만 바꾼다.
  3. 스펙트럼 패널은 step 100에서 업데이트의 특이값이다. Jordan quintic은 1 위아래의 띠에 남기고, 하이브리드 8+2와 Polar Express ×8은 거의 정확히 0.2max⁡(m,n)0.2\sqrt{\max(m,n)}(16×16 행렬이면 0.8)에 놓는다. AdamW는 감소하는 스펙트럼이고, NorMuon의 행 재스케일은 평평한 선을 다시 휘게 한다.
  4. MuonClip을 focus로. 매 step 뒤 Wqh,WkhW^h_q,W^h_k를 재스케일해 head 0의 max logit을 τ에 묶는다. λ = 0으로 놓고 weight decay가 없을 때 어떻게 되는지 보라.

NumPy 블록은 현실적인 크기에서 leverage 항등식을 재현하고 블록 대각 조건을 확인한다.

NumPy 행렬 통째 대 head별 직교화: leverage, 방향, 비용
import numpy as np

def msign(G):
    U, s, Vt = np.linalg.svd(G, full_matrices=False)
    return U @ Vt

r = np.random.default_rng(0)
H, dh = 8, 16                                    # 16행짜리 head 8개를 쌓은 [H*dh, n] projection
scales = np.array([8.0, 1, 1, 1, 1, 1, 1, 1])    # head 0의 기울기가 8배 크다

def head_rms(U, n):                              # 업데이트 중 각 head 블록의 RMS
    return np.sqrt((U.reshape(H, dh, n) ** 2).mean((1, 2)))

for name, n in [("MHA형  W_q: 128 x 512 (넓음)", 512), ("MLA형 W_uq: 128 x 32 (높음)", 32)]:
    G = np.concatenate([s * r.normal(size=(dh, n)) for s in scales])
    m = H * dh
    full = msign(G) * 0.2 * np.sqrt(max(m, n))                        # 행렬 전체에 msign 한 번
    split = np.concatenate([msign(b) * 0.2 * np.sqrt(max(dh, n)) for b in G.reshape(H, dh, n)])
    U = np.linalg.svd(G, full_matrices=False)[0]
    lev = (U.reshape(H, dh, -1) ** 2).sum((1, 2))                     # 각 head 행들의 leverage
    print(name)
    print("  행렬 통째  head별 업데이트 RMS:", np.round(head_rms(full, n), 3))
    print("  head별     head별 업데이트 RMS:", np.round(head_rms(split, n), 3))
    print("  head별 leverage (합 = rank =", round(lev.sum()), "):", np.round(lev, 1))
    cos = (full * split).sum() / np.linalg.norm(full) / np.linalg.norm(split)
    print(f"  cosine(통째, head별) = {cos:.3f}")
    cost_full = 4 * max(m, n) * min(m, n) ** 2                        # 반복당 NS FLOPs, Qwen3.8의 추정식
    cost_split = H * 4 * max(dh, n) * min(dh, n) ** 2
    print(f"  반복당 NS 비용: 통째 {cost_full/1e6:.2f} MFLOP, head별 {cost_split/1e6:.2f} MFLOP")

# 언제 둘이 같은가? head 블록의 행들이 서로 직교할 때(G_h G_h'^T = 0) 정확히 같다
G = np.zeros((H * dh, 512))
for h in range(H):                                # 각 head가 자기만의 입력 좌표 64개를 읽는다
    G[h * dh:(h + 1) * dh, h * 64:(h + 1) * 64] = scales[h] * r.normal(size=(dh, 64))
same = np.allclose(msign(G), np.concatenate([msign(b) for b in G.reshape(H, dh, -1)]), atol=1e-8)
print("입력 부분공간이 겹치지 않으면 -> 통째 msign == head별 msign:", same)
 

예상 출력: 넓은 경우 두 규칙 모두 모든 head에 RMS 0.2(leverage 각 16)를 주지만 방향은 다르다(이 무작위 head들은 거의 직교라 cosine ≈ 0.97, head들이 입력 방향을 공유할수록 낮아진다). 높은 경우 행렬 통째는 head 0에 32 중 약 14.7의 leverage와 RMS 0.38을 주고 나머지 일곱은 약 0.15를 받는다. head별이면 여덟 모두 0.2다. head별 NS는 넓은 행렬에서 8배, 높은 행렬에서 2배 싸고, 입력 부분공간이 겹치지 않으면 두 규칙이 정확히 일치한다.

3. ③ 칸: 직교화기

Muon 레슨은 다항식을 스칼라 사상으로 분석했다. 여기서는 lab들이 무엇을 골랐고 무엇을 치렀는지 본다.

스케줄반복누가보고서가 말하는 것
Jordan (3.4445,−4.7750,2.0315)(3.4445,-4.7750,2.0315)5Moonlight, K2, GLM-4.5(5단계), 대부분의 공개 코드출력 특이값이 1 근처 띠에 놓인다. Moonlight는 10단계가 5단계보다 낫지 않았다
Jordan ×8 뒤 (2,−1.5,0.5)(2,-1.5,0.5) ×210DeepSeek-V4, V4.1첫 단계가 “빠른 수렴”을 만들고 마지막 두 단계가 “특이값을 정확히 1에 안정화”한다. NS는 “BF16 행렬곱으로 계산해도 안정적”이다
Polar Express(단계별 minimax quintic)8Qwen3.8-Flash-Next8단계가 “더 적은 단계보다 정확하게 직교화하고 stress test에서 gradient-norm spike의 크기와 빈도를 모두 줄인다”. Frobenius 정규화 ε = 10⁻¹⁴
Jordan10MiMo-V2.6(Muown으로 RL)“업데이트마다 Newton–Schulz 10회”

두 가지를 짚자. 첫째, 가장 정확한 다항식을 쓴 lab들(V4, Qwen3.8)은 그것을 행렬별 owner(§8)에서 돌리는 lab이기도 하다. 그 구조에서는 NS 3–5단계를 더 해도 통신이 아니라 GPU 하나의 계산만 늘어난다. 둘째, “정확할수록 좋다”의 증거는 손실보다 안정성이다. Polar Express는 GPT-2-Large, 1B 토큰, lr 0.02에서 검증 손실 3.340 대 Jordan 계수 3.398을 보고하고, Qwen3.8의 이유는 stress 아래 gradient-norm spike다. 실무자들도 받아들였다. Polar Express는 modded-nanogpt speedrun에서 Newton–Schulz를 대체했다(record 38, 2025년 9월).

아래 코드의 계수는 Polar Express 논문 자신의 목록이다(Appendix A: [ℓ,u]=[10−3,1][\ell,u]=[10^{-3},1]용 quintic 8개, 마지막을 뺀 각각을 1.01 안전 계수로 나누고, 입력은 1.01∥G∥F1.01\|G\|_F로 나눈다).

4. ④ 칸: 직교화 다음의 정규화

NorMuon: 행을 고르게

정확한 msign⁡\operatorname{msign}도 불균형 하나를 남긴다. 넓은 full-rank GG라면 UV⊤UV^\top의 행이 정규직교라 모든 출력 뉴런의 업데이트 노름이 1이다. 높은 GG(m>nm>n)에서는 UV⊤UV^\top의 ii번째 행의 제곱 노름이 그 행의 leverage ∥Ui,:∥2\|U_{i,:}\|^2이고 행마다 다르다. §2의 행 단위 버전이다. 근사 NS는 m≤nm\le n이어도 행을 고르지 않게 남긴다. NorMuon(Li et al. 2025)은 1.1B 모델에서 이를 측정했고(“결과 업데이트의 뉴런 노름이 매우 불균일하다”), 직교화 다음에 행별 Adam-mini식 2차 모멘트를 더한다.

Ot=NS⁡5(Mt),vt=β2vt−1+(1−β2)mean⁡cols(Ot⊙Ot),O^t=Ot⊘vt,W←W−ηλW−0.2 ηmn∥O^t∥F⏟η^O^t.O_t=\operatorname{NS}_5(M_t),\quad v_t=\beta_2v_{t-1}+(1-\beta_2)\operatorname{mean}_{\text{cols}}(O_t\odot O_t),\quad \hat O_t=O_t\oslash\sqrt{v_t},\quad W\leftarrow W-\eta\lambda W-\underbrace{\tfrac{0.2\,\eta\sqrt{mn}}{\|\hat O_t\|_F}}_{\hat\eta}\hat O_t .

상태는 Muon의 mnmn 대신 m(n+1)m(n+1)개다. 논문은 1.1B에서 Adam 대비 21.74%, Muon 대비 11.31% 학습 효율 향상과 AdamW 대비 step 시간 2.9% 증가를 보고하고, FSDP2가 행 단위로 샤딩하므로 FSDP2 버전은 행 정규화를 로컬에서 한다. modded-nanogpt speedrun에는 record 41(2025년 10월)로 들어갔다. 내가 찾은 frontier lab 보고서 중 이것을 쓰는 곳은 없다.

AdaMuon: 먼저 sign, 뒤에 원소별 2차 모멘트

AdaMuon(Si et al. 2025)은 MtM_t 대신 sign⁡(Mt)\operatorname{sign}(M_t)를 직교화하고, Ot⊙OtO_t\odot O_t의 원소별 EMA VtV_t로 나눈 뒤 γt=0.2mn/∥O^t∥F\gamma_t=0.2\sqrt{mn}/\|\hat O_t\|_F로 RMS 0.2에 맞춘다. “대규모 설정”(Qwen2.5 1.5B/7B 구조)에서 Adam 대비 40% 이상의 학습 효율을 보고한다. 상태는 Adam처럼 다시 2mn2mn이다. 이것을 쓰는 frontier 보고서는 없다.

Muown: 행 노름에 자기 옵티마이저를 주기

Muown(Lion et al. 2026)은 스펙트럼 노름의 정확한 분해에서 출발한다. 행 노름 g=∥W∥rowg=\|W\|_{\text{row}}, 행 정규화한 D=Diag⁡(1/g)WD=\operatorname{Diag}(1/g)W, C=DD⊤C=DD^\top, P=Diag⁡(g/∥g∥∞)P=\operatorname{Diag}(g/\|g\|_\infty)에 대해

∥W∥22=∥g∥∞2  λmax⁡(PCP).\|W\|_2^2=\|g\|_\infty^2\;\lambda_{\max}(PCP).

둘째 인자는 1 이상이고, (무시할 수 없는) 행들이 정규직교일 때만 1이다. 500M Muon 학습에서 ∥W∥2\|W\|_2와 ∥g∥∞\|g\|_\infty는 “보조를 맞춰 움직이고” λmax⁡(PCP)\lambda_{\max}(PCP)는 유계로 남는다. 보통 weight decay에게 막으라고 하는 스펙트럼 노름 drift의 정체가 행 크기라는 뜻이다. Muown은 optimizer 안에서 W=Diag⁡(g/∥R∥row)RW=\operatorname{Diag}(g/\|R\|_{\text{row}})R로 재매개변수화하고, 방향 RR에는 각 행 기울기의 반지름 방향 성분을 빼고 Muon(Nesterov, 0.2max⁡(m,n)0.2\sqrt{\max(m,n)})을, gg에는 Adam을 돌린다. Adam인 이유는 ℓ∞\ell_\infty(대각 행렬의 연산자 노름) 아래 최급강하가 sign descent이기 때문이다. forward는 여전히 WW를 보므로 그대로 갈아 끼울 수 있다. FineWeb-Edu에서 124M부터 2.7B까지 Muon보다 perplexity가 낮고(1B: 11.90 대 12.20), 폭이 달라도 좋은 학습률 구간이 넓으며, weight decay에 덜 민감하다.

MiMo-V2.6이 이것을 썼다. base는 AdamW로 사전학습했지만 “예비 실험에서 혼합 과제 RL의 batch가 커질수록 최적화 효율이 떨어졌고”, 그래서 mid-training부터 은닉 행렬을 Muown으로 바꿨다. Muown은 “Muon에 명시적 행 노름 제어를 더해 스펙트럼 노름 drift를 줄이고 weight decay 민감도를 낮추며 오버헤드는 무시할 만하다”. 임베딩, LM head, router는 AdamW에 남는다. Adam으로 사전학습한 모델을 Muon으로 바꾸면 성능이 떨어진다는 선행 연구를 언급하면서도 “그럼에도 … loss spike를 보지 못했다”고 한다. RL은 Muown을 lr 3×10−63\times10^{-6}, weight decay 없음, warmup 없음, gradient clip 1.0, momentum 0.95(Nesterov), NS 10회, “추가 업데이트 스케일 0.5”, Adam β1=β2=0.95\beta_1=\beta_2=0.95로 돌리고, “SFT 체크포인트의 FP32 master weight와 Muown의 행 상태”를 RL로 이어 간다.

Sinkhorn 균형: 임베딩판 Muon(DeepSeek-V4.1)

Muon 레슨은 임베딩의 쌍대가 UV⊤UV^\top가 아니라 열 정규화라고 했다. V4.1은 임베딩, Engram 테이블, prediction head에 대해 한 걸음 더 간다. 이것들을 더는 Adam으로 학습하지 않는다(“새로 넣은 Engram 매개변수에 Adam을 쓰면 optimizer 상태 메모리가 크게 늘어난다”). Nesterov momentum 뒤 행과 열의 ℓ2\ell_2 정규화를 KK번 번갈아 하고(노름이 τρˉ\tau\bar\rho 이하인 행은 마스크), n\sqrt n을 곱해 행 RMS를 1로 만들고, 학습률에 γ=0.18\gamma=0.18을 곱한다. 결과 Δ=n DrG^Dc\Delta=\sqrt n\,D_r\hat G D_c는 모든 행(토큰)과 모든 열(feature)의 RMS가 대략 1이다. 설정은 K=11K=11, τ=10−3\tau=10^{-3}, ε=10−20\varepsilon=10^{-20}, weight decay 없음. “Muon처럼 momentum 버퍼 하나만 필요하고 경험적으로 Adam보다 낫다.”

NumPy 변형 모음: NS 스케줄 셋, NorMuon, Muown의 분해, Sinkhorn 균형, Dion
import numpy as np
r = np.random.default_rng(1)

JORDAN = (3.4445, -4.7750, 2.0315)
PE = [(8.28721201814563, -23.595886519098837, 17.300387312530933),   # Polar Express, App. A
      (4.107059111542203, -2.9478499167379106, 0.5448431082926601),
      (3.9486908534822946, -2.908902115962949, 0.5518191394370137),
      (3.3184196573706015, -2.488488024314874, 0.51004894012372),
      (2.300652019954817, -1.6689039845747493, 0.4188073119525673),
      (1.891301407787398, -1.2679958271945868, 0.37680408948524835),
      (1.8750014808534479, -1.2500016453999487, 0.3750001645474248),
      (1.875, -1.25, 0.375)]
PE = [(a / 1.01, b / 1.01**3, c / 1.01**5) for a, b, c in PE[:-1]] + [PE[-1]]   # 논문의 안전 계수
SCHEDULES = {"Jordan x5": [JORDAN] * 5,
             "DeepSeek-V4 8+2": [JORDAN] * 8 + [(2.0, -1.5, 0.5)] * 2,
             "Polar Express x8": PE}

def ns(G, coeffs, scale=1.0):
    X = G.T if G.shape[0] > G.shape[1] else G            # 넓은 쪽에서 반복
    X = X / (np.linalg.norm(X) * scale + 1e-7)
    for a, b, c in coeffs:
        A = X @ X.T
        X = a * X + (b * A + c * A @ A) @ X
    return X.T if G.shape[0] > G.shape[1] else X

# 1) 직교화기: 조건수가 나쁜 64 x 256 입력에 대한 출력 특이값
U0, _ = np.linalg.qr(r.normal(size=(64, 64))); V0, _ = np.linalg.qr(r.normal(size=(256, 64)))
G = U0 @ np.diag(np.logspace(0, -3, 64)) @ V0.T
for name, co in SCHEDULES.items():
    s = np.linalg.svd(ns(G, co, 1.01 if "Polar" in name else 1.0), compute_uv=False)
    print(f"{name:17s} 행렬곱 단계 {len(co):2d}  sigma ∈ [{s.min():.3f}, {s.max():.3f}]")

# 2) NorMuon: 높은 행렬의 NS 출력은 행("뉴런") 노름이 고르지 않다. 행별로 정규화한다
M = r.normal(size=(256, 64)) * np.linspace(0.2, 3, 256)[:, None]  # 기울기 스케일이 다른 행들
O = ns(M, [JORDAN] * 5)
rn = np.linalg.norm(O, axis=1)
v = (O ** 2).mean(1)                                     # 행별 2차 모멘트의 EMA 한 단계
On = O / (np.sqrt(v)[:, None] + 1e-8)
On *= 0.2 * np.sqrt(On.size) / np.linalg.norm(On)        # NorMuon의 RMS 0.2 재스케일
rn2 = np.linalg.norm(On, axis=1)
print(f"NorMuon: 행 노름 max/min, NS5 뒤 {rn.max()/rn.min():.2f} -> 행 정규화 뒤 {rn2.max()/rn2.min():.2f}, RMS {np.sqrt((On**2).mean()):.2f}")

# 3) Muown: ||W||_2^2 = ||g||_inf^2 * lambda_max(P C P), g = 행 노름 (Lion et al. 2026, Prop. 1)
W = r.normal(size=(32, 48)) * r.uniform(0.5, 2, size=(32, 1))
g = np.linalg.norm(W, axis=1); D = W / g[:, None]; P = np.diag(g / g.max())
lhs = np.linalg.norm(W, 2) ** 2; rhs = g.max() ** 2 * np.linalg.eigvalsh(P @ D @ D.T @ P).max()
print(f"Muown 분해: {lhs:.4f} = {rhs:.4f}")

# 4) 임베딩 같은 [vocab x hidden] 행렬의 Sinkhorn 균형 업데이트 (DeepSeek-V4.1, Alg. 1)
def sinkhorn(Gh, K=11, tau=1e-3, eps=1e-20):
    rho = np.linalg.norm(Gh, axis=1)
    Uk = np.where((rho > tau * rho.mean())[:, None], Gh, 0.0)    # 0에 가까운 행은 마스크
    for k in range(1, K + 1):
        ax = 1 if k % 2 else 0                                     # 홀수: 행, 짝수: 열
        Uk = Uk / (np.linalg.norm(Uk, axis=ax, keepdims=True) + eps)
    return np.sqrt(Gh.shape[1]) * Uk
E = r.normal(size=(1000, 64)) * r.lognormal(0, 1.5, size=(1000, 1)) * r.lognormal(0, 0.5, size=(1, 64))
E[r.random(1000) < 0.3] = 0                               # 배치에 없는 토큰
S = sinkhorn(E); live = np.abs(S).sum(1) > 0
print(f"Sinkhorn: 행 RMS {np.sqrt((S[live]**2).mean(1)).min():.3f}..{np.sqrt((S[live]**2).mean(1)).max():.3f}, "
      f"열 RMS(살아 있는 행) {np.sqrt((S[live]**2).mean(0)).min():.3f}..{np.sqrt((S[live]**2).mean(0)).max():.3f}")

# 5) Dion: power iteration 한 단계로 만든 rank-r 정규직교 업데이트, 버퍼에 error feedback
def dion_step(Mbuf, Grad, V, beta=0.05):
    Mbuf = Mbuf + Grad
    Pm = Mbuf @ V                                         # m x r   (m x n 대신 이것을 통신)
    Uq, _ = np.linalg.qr(Pm)
    Wm = Mbuf.T @ Uq                                      # n x r
    Mbuf = Mbuf - beta * Uq @ Wm.T                        # error feedback: 설명 못 한 부분은 남는다
    Vn = Wm / np.linalg.norm(Wm, axis=0, keepdims=True)   # 열 정규화
    O = Uq @ Vn.T * np.sqrt(Mbuf.shape[0] / Mbuf.shape[1])
    return O, Mbuf, Vn
m, n, rk = 128, 256, 16
A = r.normal(size=(m, 8)) @ r.normal(size=(8, n)) + 0.3 * r.normal(size=(m, n))   # 저랭크에 가까운 기울기
Mb, V = np.zeros((m, n)), np.linalg.qr(r.normal(size=(n, rk)))[0]
for t in range(20):
    O, Mb, V = dion_step(Mb, A + 0.1 * r.normal(size=(m, n)), V)
Ut = np.linalg.svd(A)[0][:, :8]
cap = np.linalg.norm(Ut.T @ np.linalg.qr(O)[0]) ** 2 / 8
print(f"Dion: rank {np.linalg.matrix_rank(O)} 업데이트, 상위 8차원 부분공간 포착 {cap:.3f}, "
      f"step당 동기화 {rk*(m+n)}개 (전체 기울기는 {m*n}개)")
 

예상 출력: κ=103\kappa=10^3 입력에서 Jordan ×5는 σ∈[0.21,1.20]\sigma\in[0.21,1.20]에 남기고, 8+2 하이브리드와 Polar Express ×8은 둘 다 [1.000,1.00][1.000,1.00]에 놓는다(행렬곱 단계 10과 8). NorMuon은 높은 행렬의 11배 행 노름 차이를 RMS 0.20에서 1.00으로 만든다. Muown의 분해는 소수 넷째 자리까지 맞는다. Sinkhorn 균형은 살아 있는 모든 행과 열의 RMS를 1.000으로 만든다. Dion의 rank-16 업데이트는 32,768개 대신 6,144개를 동기화하면서 기울기의 상위 8차원 부분공간을 잡는다.

5. ⑥ 칸: logit 증가에 대한 네 가지 답

Muon 레슨은 Muon에서 attention logit이 왜 더 빨리 자라는지(full-rank 업데이트, 정렬된 특이값의 가산적 증가, 쌍선형 WqWk⊤W_qW_k^\top)와 K2의 QK-Clip이 어떻게 동작하는지 유도했다. 뒤따른 lab들은 같은 문제에 네 곳에서 답했다.

답작용하는 곳누가증거
step 뒤 가중치를 clip: Wqh←γhαWqhW^h_q\leftarrow\gamma_h^{\alpha}W^h_q, Wkh←γh1−αWkhW^h_k\leftarrow\gamma_h^{1-\alpha}W^h_k, γh=τ/Smax⁡h\gamma_h=\tau/S^h_{\max}optimizer, ⑥ 칸K2(τ = 100), Kimi Linear의 MuonClip 학습, K3(“Kimi K2에서 도입한 weight-clipping 메커니즘”)K2: 9B/53B vanilla Muon 학습이 1000을 넘었다. τ = 100에서 처음 70k step 동안 head의 12.7%가 한 번 이상 clip되었고 그 뒤로는 없었다. 0.5B/3B 모델에서 τ = 30은 손실에 미미한 영향
logit을 만드는 활성을 정규화구조DeepSeek-V4: “attention query와 KV 항목에 RMSNorm … 그래서 QK-Clip을 쓰지 않는다”clipping 없음, logit ablation은 보고 안 함
분할을 바꾸기optimizer, ① 칸GLM-5 Muon Split“attention logit 스케일이 clipping 없이도 사전학습 내내 안정적”
residual stream 안정화구조Qwen3.8(gated residual, GatedNorm)전체 학습이 “loss spike 없이 … 명시적 clipping 없이” 끝났다. 보고서는 qk-clip과 SwiGLU-clip을 필요 없었던 장치로 꼽는다

head별 분할이 logit에 왜 도움이 되는지는 §2의 항등식에 보인다. 행렬 통째 규칙에서는 이미 빨리 배우는 head(대개 logit이 자라는 head)가 높은 업데이트에서 가장 큰 몫까지 받는다. head별 분할은 모든 head의 업데이트를 같은 RMS로 묶으므로 어느 head도 추가 예산을 못 받는다. 스위치보드에서 MLA형일 때 head 0의 max logit이 Muon보다 Per-head에서 낮다. QK-Clip은 구조나 분할을 바꾸지 않고 MLA에 쓸 수 있는 유일한 답이고, 그래서 K2에 필요했다. DeepSeek-V4는 자기 attention 구조가 “attention query와 KV 항목에 RMSNorm을 바로 적용할 수 있게 해 준다”고만 말한다. 우리 해석은 압축된 KV 항목이 그대로 key로 만들어지므로(MQA식) 정규화할 대상이 있다는 것이고, absorb된 K2의 MLA와 다른 점이다.

6. What stays on AdamW, and MoE experts

Every report keeps a second optimizer. What goes there is remarkably consistent, with two telling disagreements:

ModelNot on MuonNotes
GLM-4.5word embeddings, biases, RMSNorm weights5 NS steps, μ = 0.95, RMS 0.2 (GLM-4.5 lesson)
DeepSeek-V4embedding, prediction head, mHC static biases and gating factors, all RMSNorm weightsexperts: “we optimize each expert independently”
DeepSeek-V4.1-Flashnorms and other non-matrix parameters on AdamW; embeddings, Engram tables and head on Sinkhorn-balanced momentumvision patch embedding made a linear projection “to ensure compatibility with the Muon optimizer”
Qwen3.8-Flash-Nextinput embeddings, output head, MoE router, the two low-rank gated-residual projections (“very elongated shape”), attention and GDN output gates (AdamW “on par with or slightly better”), GDN decay/β projections (vectors); n-gram table on Adam without decayrouted and shared expert fc1/fc2 on Muon, fc1 split into gate/up
MiMo-V2.6embeddings, LM head, MoE routerhidden matrices on Muown from mid-training
MAI-Base-2embeddings (“Muon (non-embedding 2D parameters), AdamW”)router weights are “replicated across GPUs rather than sharded … we instead issue an all-gather collective after Newton–Schulz” — so the router is orthogonalised

The disagreements are the router and elongated matrices. Qwen3.8 found that Muon “exacerbates early-training fluctuations and destabilizes the router” and offers a reason: each router output dimension is one expert’s score and the dimensions are “largely independent, leaving no shared linear structure for orthogonalization to exploit” (applying Muon to the router mid-to-late training was stable but gave no gain). MAI-Base-2’s text implies the router goes through NS. Both are single data points without a published ablation on the other side, so the honest summary is: router on AdamW is the conservative default; Muon on the router is not known to fail at scale.

Elongated matrices connect back to leverage: a d×kd\times k matrix with k≪dk\ll d gives each of its dd rows a budget that sums to kk, set by leverage. Qwen3.8’s gated-residual projections and the GR result are an instance; the fix there was to leave them on AdamW rather than split them.

MoE experts are matrices like any other and every report orthogonalises each expert separately. That has two practical consequences: thousands of identical small matrices (MAI-Base-2 caches “resharding metadata … especially useful in sparse MoE models with thousands of identically shaped parameters”; DeepSeek merges consecutive same-shape parameters for batched NS), and a scheduling problem, because NS cost is set by shape, not by parameter count (§8).

7. Hyperparameters: what transfers and what moved

The learning rate. RMS matching (Moonlight) is the reason Muon’s lr looks like AdamW’s in every report: K2 2×10−42\times10^{-4} (constant for the first 10T tokens, batch 67M tokens, λ = 0.1), GLM-5 warm-up to 2×10−42\times10^{-4} then decay to 4×10−54\times10^{-5}, DeepSeek-V4-Flash 2.7×10−42.7\times10^{-4} and V4-Pro 2.0×10−42.0\times10^{-4} (with RMS 0.18 “for reutilization of the AdamW learning rate”), Kimi Linear’s comparison runs 1.1×10−31.1\times10^{-3} at batch 32M. Moonlight’s Table 8 is the evidence for the target RMS: at about 2B tokens, update RMS 0.2 and 0.4 gave validation losses 3.325 and 3.314 against 3.503 at 0.05, 3.374 at 0.1, 3.543 at 0.8 and 3.679 for AdamW. DeepSeek’s 0.18 sits inside that flat region.

But the optimum moved. Qwen3.8 refitted its scaling law for the new architecture plus Muon and found “substantially larger batch sizes and learning rates, with a slower decay in the learning rate as model size increases”. On a 156B-A7B MoE over 419B tokens the predicted optimum (BB = 8.4M, η=1.76×10−3\eta=1.76\times10^{-3}) averaged 60.55 on their benchmark set against 56.41 for the previous Qwen3.5 recipe (BB = 4.2M, η=6.8×10−4\eta=6.8\times10^{-4}); η×2\eta\times\sqrt2 or ÷2\div\sqrt2 and B×1.25B\times1.25 all stayed within 7×10−47\times10^{-4} of the optimum’s loss.

Batch size and warm-up. Essential AI’s study found Muon “more effective than AdamW in retaining data efficiency at large batch sizes, far beyond the so-called critical batch size”. Qwen3.8 drew the operational conclusion: ramping the batch from 6.3M to 25.2M over 524B tokens ended 2.52.5–3.5×10−43.5\times10^{-4} worse than starting at 25.2M and cost 18.8% more optimizer steps, so they dropped batch warm-up. DeepSeek-V4 (ramp to 75.5M) and GLM-5 (batch warm-up as in GLM-4.5) kept theirs; the evidence against warm-up is one lab’s ablation. MiMo-V2.6’s reason for switching to Muown is the same large-batch argument, applied to RL.

Learning rate × weight decay. MAI-Base-2 swept (log⁡η,log⁡ηλ)(\log\eta,\log\eta\lambda) because good settings lie on “a narrow diagonal band” and fitted η⋆λ⋆=17.04/steps\eta^\star\lambda^\star=17.04/\text{steps} (the steps exponent “very close to −1”) and log⁡η⋆=−1.505−0.572log⁡steps+0.174log⁡TPP\log\eta^\star=-1.505-0.572\log\text{steps}+0.174\log\text{TPP}. The −1-1 has a two-line explanation. Decoupled decay multiplies WW by (1−ηλ)(1-\eta\lambda) each step, so

WT=(1−ηλ)TW0−η∑t≤T(1−ηλ)T−tsOt,W_T=(1-\eta\lambda)^TW_0-\eta\sum_{t\le T}(1-\eta\lambda)^{T-t}sO_t ,

an exponential moving average of the updates with time constant τw=1/(ηλ)\tau_w=1/(\eta\lambda) steps. If τw\tau_w should be a fixed fraction of the run, ηλ∝1/steps\eta\lambda\propto1/\text{steps}. The same sum gives the equilibrium size if successive updates are roughly uncorrelated: E∥W∥F2≈η2u2 (entries)/(1−(1−ηλ)2)≈η u2 (entries)/(2λ)\mathbb E\|W\|_F^2\approx\eta^2u^2\,\text{(entries)}/(1-(1-\eta\lambda)^2)\approx \eta\,u^2\,\text{(entries)}/(2\lambda) with uu the update RMS — weight RMS ≈uη/(2λ)\approx u\sqrt{\eta/(2\lambda)} (our derivation; it assumes uncorrelated updates, which the aligned-growth mechanism of the Muon lesson violates). So ηλ\eta\lambda fixes the memory, η/λ\eta/\lambda the scale, and RMS matching fixes uu: with the update RMS pinned, Muon’s two knobs are the same two knobs as AdamW’s.

Width transfer. Essential AI found Muon compatible with μP and proposed a “telescoping” sweep that shrinks the grid as width grows; Muown reports a near-optimal loss “for a wide range of learning rates from 2−102^{-10} up to 2−52^{-5}, irrespective of model width” (512–1280). Neither is a frontier-lab claim; the labs above transfer by fitting scaling laws on their own ladders.

6. AdamW에 남는 것, 그리고 MoE expert

모든 보고서가 두 번째 옵티마이저를 둔다. 거기에 들어가는 것은 놀랄 만큼 일관되고, 시사적인 불일치가 두 개 있다.

모델Muon을 안 쓰는 것비고
GLM-4.5word embedding, bias, RMSNorm 가중치NS 5단계, μ = 0.95, RMS 0.2(GLM-4.5 레슨)
DeepSeek-V4embedding, prediction head, mHC의 정적 bias와 gating 계수, 모든 RMSNorm 가중치expert: “각 expert를 독립적으로 최적화”
DeepSeek-V4.1-Flashnorm과 그 밖의 비행렬 매개변수는 AdamW. 임베딩, Engram 테이블, head는 Sinkhorn 균형 momentumvision patch embedding을 “Muon과 호환되도록” 선형 projection으로 바꿨다
Qwen3.8-Flash-Next입력 임베딩, 출력 head, MoE router, gated residual의 저랭크 projection 두 개(“매우 길쭉한 모양”), attention·GDN 출력 gate(AdamW가 “비슷하거나 약간 나음”), GDN decay/β projection(벡터). n-gram 테이블은 decay 없는 Adamrouted·shared expert의 fc1/fc2는 Muon, fc1은 gate/up으로 분할
MiMo-V2.6임베딩, LM head, MoE router은닉 행렬은 mid-training부터 Muown
MAI-Base-2임베딩(“Muon(임베딩이 아닌 2D 매개변수), AdamW”)router 가중치는 “샤딩하지 않고 GPU마다 복제 … Newton–Schulz 뒤 all-gather” — 즉 router도 직교화한다

불일치는 router와 길쭉한 행렬이다. Qwen3.8은 Muon이 “학습 초기의 요동을 키워 router를 불안정하게 만든다”고 보고하고 이유를 든다. router 출력의 각 차원은 expert 하나의 점수이고 차원들이 “대체로 독립적이라 직교화가 이용할 공유 선형 구조가 없다”(학습 중후반부터 router에 Muon을 쓰면 안정적이었지만 이득이 없었다). MAI-Base-2의 서술은 router가 NS를 거친다는 뜻이다. 둘 다 반대쪽 ablation이 공개되지 않은 데이터 점 하나씩이므로, 정직한 요약은 이렇다. router는 AdamW가 보수적인 기본값이고, router에 Muon을 쓰면 대규모에서 실패한다는 증거는 없다.

길쭉한 행렬은 leverage로 돌아간다. k≪dk\ll d인 d×kd\times k 행렬은 dd개 행에 합이 kk인 예산을 leverage대로 나눠 준다. Qwen3.8의 gated residual projection이 그 예이고, 거기서의 해법은 쪼개는 대신 AdamW에 남기는 것이었다.

MoE expert도 행렬이고, 모든 보고서가 expert를 하나씩 따로 직교화한다. 실무적 결과가 둘 있다. 같은 모양의 작은 행렬이 수천 개 생기고(MAI-Base-2는 “같은 모양 매개변수가 수천 개인 sparse MoE에서 특히 유용한” 재샤딩 메타데이터를 캐시하고, DeepSeek은 연속된 같은 모양 매개변수를 합쳐 NS를 batch로 돌린다), NS 비용이 매개변수 수가 아니라 모양으로 정해지므로 스케줄링 문제가 생긴다(§8).

7. 하이퍼파라미터: 무엇이 이전되고 무엇이 움직였나

학습률. 모든 보고서에서 Muon의 lr이 AdamW의 lr처럼 보이는 이유가 RMS 맞춤(Moonlight)이다. K2 2×10−42\times10^{-4}(처음 10T 토큰 동안 일정, batch 67M 토큰, λ = 0.1), GLM-5는 2×10−42\times10^{-4}까지 warmup 뒤 4×10−54\times10^{-5}로 decay, DeepSeek-V4-Flash 2.7×10−42.7\times10^{-4}와 V4-Pro 2.0×10−42.0\times10^{-4}(“AdamW 학습률을 재사용하기 위해” RMS 0.18), Kimi Linear의 비교 학습은 batch 32M에서 1.1×10−31.1\times10^{-3}. 목표 RMS의 증거는 Moonlight Table 8이다. 약 2B 토큰에서 업데이트 RMS 0.2와 0.4는 검증 손실 3.325와 3.314였고, 0.05는 3.503, 0.1은 3.374, 0.8은 3.543, AdamW는 3.679였다. DeepSeek의 0.18은 이 평평한 구간 안에 있다.

하지만 최적점은 움직였다. Qwen3.8은 새 구조와 Muon에 맞춰 scaling law를 다시 맞췄고, “batch와 학습률이 크게 커지고 모델이 커질수록 학습률이 더 천천히 줄어든다”는 결과를 얻었다. 156B-A7B MoE, 419B 토큰에서 예측 최적점(BB = 8.4M, η=1.76×10−3\eta=1.76\times10^{-3})은 벤치마크 평균 60.55로, 이전 Qwen3.5 레시피(BB = 4.2M, η=6.8×10−4\eta=6.8\times10^{-4})의 56.41보다 높았다. η×2\eta\times\sqrt2나 ÷2\div\sqrt2, B×1.25B\times1.25는 모두 최적점 손실의 7×10−47\times10^{-4} 안에 있었다.

batch 크기와 warmup. Essential AI의 연구는 Muon이 “이른바 critical batch size를 훨씬 넘는 큰 batch에서 AdamW보다 데이터 효율을 잘 유지한다”고 했다. Qwen3.8은 이를 운영 결론으로 만들었다. batch를 524B 토큰에 걸쳐 6.3M에서 25.2M으로 올리면 처음부터 25.2M을 쓴 것보다 2.52.5–3.5×10−43.5\times10^{-4} 나쁘게 끝났고 optimizer step이 18.8% 더 들었으므로, batch warmup을 뺐다. DeepSeek-V4(75.5M까지 ramp)와 GLM-5(GLM-4.5처럼 batch warmup)는 유지했다. warmup에 반대하는 증거는 한 lab의 ablation이다. MiMo-V2.6이 Muown으로 바꾼 이유도 같은 큰 batch 논리를 RL에 적용한 것이다.

학습률 × weight decay. MAI-Base-2는 좋은 설정이 “좁은 대각선 띠”에 놓이므로 (log⁡η,log⁡ηλ)(\log\eta,\log\eta\lambda) 격자로 sweep했고, η⋆λ⋆=17.04/steps\eta^\star\lambda^\star=17.04/\text{steps}(steps 지수가 “−1에 매우 가깝다”)와 log⁡η⋆=−1.505−0.572log⁡steps+0.174log⁡TPP\log\eta^\star=-1.505-0.572\log\text{steps}+0.174\log\text{TPP}를 맞췄다. −1은 두 줄로 설명된다. decoupled decay는 매 step WW에 (1−ηλ)(1-\eta\lambda)를 곱하므로

WT=(1−ηλ)TW0−η∑t≤T(1−ηλ)T−tsOt,W_T=(1-\eta\lambda)^TW_0-\eta\sum_{t\le T}(1-\eta\lambda)^{T-t}sO_t ,

즉 시간 상수 τw=1/(ηλ)\tau_w=1/(\eta\lambda) step인 업데이트의 지수 이동 평균이다. τw\tau_w가 학습 길이의 일정 비율이어야 한다면 ηλ∝1/steps\eta\lambda\propto1/\text{steps}다. 연속된 업데이트가 대략 서로 상관없다면 같은 합에서 평형 크기도 나온다. uu를 업데이트 RMS라 하면 E∥W∥F2≈η2u2 (원소 수)/(1−(1−ηλ)2)≈η u2 (원소 수)/(2λ)\mathbb E\|W\|_F^2\approx\eta^2u^2\,(\text{원소 수})/(1-(1-\eta\lambda)^2)\approx \eta\,u^2\,(\text{원소 수})/(2\lambda), 즉 가중치 RMS ≈uη/(2λ)\approx u\sqrt{\eta/(2\lambda)}다(우리의 유도. 업데이트가 서로 상관없다고 가정하는데, Muon 레슨의 정렬된 증가 메커니즘은 이를 어긴다). 그러니 ηλ\eta\lambda는 기억 길이를, η/λ\eta/\lambda는 크기를 정하고, RMS 맞춤은 uu를 정한다. 업데이트 RMS를 고정하면 Muon의 두 손잡이는 AdamW의 두 손잡이와 같다.

폭 이전. Essential AI는 Muon이 μP와 호환됨을 보이고 폭이 커질수록 격자를 줄이는 “telescoping” sweep을 제안했다. Muown은 폭 512–1280에서 “모델 폭과 상관없이 2−102^{-10}부터 2−52^{-5}까지 넓은 학습률 범위”에서 거의 최적 손실을 보고한다. 둘 다 frontier lab의 주장은 아니다. 위 lab들은 자기 ladder에서 scaling law를 맞춰 이전한다.

8. Distributing the work

NS needs a whole matrix; ZeRO, FSDP and TP split matrices. Every lab had to choose where the whole matrix gets assembled. The published schemes, from simplest to most aggressive:

  1. Gather everything on every rank and orthogonalise everything redundantly. K3 calls this “the naive approach” (“an all-gather over the entire parameter buffer on every rank … a substantial memory footprint … making communication the primary bottleneck at scale”). Per-GPU compute does not fall with NN.
  2. ZeRO-1 gather (Moonlight’s Distributed Muon): reduce-scatter gradients as usual, apply momentum on the local shard, gather the full momentum for the matrices your shard touches (bf16), run NS, keep your slice. Moonlight bounds the communication at (1,1.25]×(1,1.25]\times distributed AdamW (4 + 2 + 4 bytes against 4 + 4 per parameter) and the optimizer at 1–3% of forward–backward. Matrices cut by shard boundaries are orthogonalised by every rank that touches them.
  3. Whole-matrix owners. Assign each matrix to one rank and do the update there. Jordan’s reference code sorts matrices by size and deals them round-robin; DeepSeek-V4 caps the ZeRO degree for dense parameters and uses “a knapsack algorithm to assign parameter matrices to these ranks”, pads buckets to the largest (under 10% memory overhead “where each rank manages no more than five parameter matrices”), recomputes the update redundantly when DP exceeds the cap, flattens experts so that no expert matrix is split, runs NS in BF16 and syncs MoE gradients in BF16 with stochastic rounding plus an all-to-all + FP32 local sum. Qwen3.8’s Canzona (Wang et al. 2026) keeps ZeRO-1’s bucket geometry but shifts the cut points so that whole tensors land on ranks with balanced estimated NS FLOPs (an α\alpha knob trades load balance against communication balance), and rebuilds TP-sharded matrices with fused all-to-alls in micro-groups; on Qwen3-32B over 256 GPUs it cut the optimizer step from 0.383 s to 0.066 s (5.8×) and the iteration from 1.381 s to 0.877 s (1.57×) against NVIDIA’s layer-wise optimizer. K3 retrieves “only the shards of its locally owned parameters via peer-to-peer communication”, pipelined per model chunk; GLM-5 “restrict[s] all-gather to parameter shards owned by each rank”.
  4. All-to-all resharding (MAI-Base-2): keep standard ZeRO shards, cast the FP32 momentum shard to BF16, all-to-all “batched over parameters of the same shape” so each GPU owns a few full matrices, run “a symmetry-aware Newton–Schulz kernel”, all-to-all back, cast to FP32 and apply. With prefetching and cached metadata on 16K GPUs: 2.1% of iteration time (165 ms) against a communication-bound estimate of 55 ms; the gap is attributed to “stragglers, kernel dispatch overheads, load imbalance, and memory copies”.
  5. Don’t assemble the matrix. Dion replaces NS with one step of power iteration per update on the momentum, P=MV (m×r)P=MV\ (m\times r), U=orth⁡(P)U=\operatorname{orth}(P), W=M⊤U (n×r)W=M^\top U\ (n\times r), error feedback M←M−βUW⊤M\leftarrow M-\beta UW^\top, V←colnorm⁡(W)V\leftarrow\operatorname{colnorm}(W), update m/n UV⊤\sqrt{m/n}\,UV^\top. Only the m×rm\times r and n×rn\times r factors are synchronised; the rank fraction trades quality for cost (tested 160M–3B). MuonBP orthogonalises each TP shard locally on most steps and the full matrix every PP steps, with separate learning rates for the two kinds of step; with P=5P=5 it “recover[s] the performance of Muon with 5× reduction in the optimizer step communication volume” and reports +8% throughput on an 8B model with 8-way TP. No frontier report I found uses either in production.

The explorer below puts numbers on these schemes for three model shapes.

8. 일을 나누기

NS는 행렬 전체가 필요하고 ZeRO, FSDP, TP는 행렬을 쪼갠다. 모든 lab이 행렬 전체를 어디서 조립할지 골라야 했다. 공개된 방식을 단순한 것부터 공격적인 것까지 늘어놓으면:

  1. 전부 gather해 모든 rank가 모든 행렬을 중복 직교화. K3는 이것을 “naive 방식”이라 부른다(“모든 rank에서 전체 매개변수 버퍼를 all-gather … 상당한 메모리 … 규모가 커지면 통신이 주된 병목”). GPU당 계산이 NN에 따라 줄지 않는다.
  2. ZeRO-1 gather(Moonlight의 Distributed Muon): 평소처럼 기울기를 reduce-scatter하고, 로컬 shard에 momentum을 적용하고, 자기 shard가 걸친 행렬의 momentum 전체를 gather(bf16)해 NS를 돌리고 자기 조각만 남긴다. Moonlight는 통신을 분산 AdamW의 (1,1.25](1,1.25]배(매개변수당 4 + 2 + 4바이트 대 4 + 4)로, optimizer를 forward–backward의 1–3%로 잡는다. shard 경계에 걸린 행렬은 그 행렬을 건드리는 모든 rank가 직교화한다.
  3. 행렬 owner. 행렬마다 rank 하나를 정해 거기서 업데이트한다. Jordan의 기준 코드는 행렬을 크기순으로 정렬해 round-robin으로 나눈다. DeepSeek-V4는 dense 매개변수의 ZeRO 차수에 상한을 두고 “knapsack 알고리즘으로 매개변수 행렬을 rank에 배정”하며, bucket을 가장 큰 것에 맞춰 padding하고(“rank마다 행렬 다섯 개 이하”인 설정에서 메모리 오버헤드 10% 미만), DP가 상한을 넘으면 업데이트를 중복 계산하고, expert는 어떤 expert 행렬도 쪼개지지 않도록 평탄화하고, NS를 BF16으로 돌리고, MoE 기울기는 stochastic rounding으로 BF16 동기화하며 all-to-all + FP32 로컬 합을 쓴다. Qwen3.8의 Canzona(Wang et al. 2026)는 ZeRO-1의 bucket 구조를 유지한 채 자르는 지점을 옮겨 텐서가 통째로, 추정 NS FLOPs가 균형 맞게 rank에 놓이도록 하고(α\alpha 손잡이가 부하 균형과 통신 균형을 맞바꾼다), TP로 쪼개진 행렬은 micro-group 단위 fused all-to-all로 다시 만든다. Qwen3-32B, 256 GPU에서 NVIDIA layer-wise optimizer 대비 optimizer step을 0.383 s에서 0.066 s(5.8배), 반복을 1.381 s에서 0.877 s(1.57배)로 줄였다. K3는 “로컬에서 소유한 매개변수의 shard만 P2P로 가져오고” model chunk 단위로 pipeline한다. GLM-5는 “각 rank가 소유한 매개변수 shard로 all-gather를 제한한다”.
  4. all-to-all 재샤딩(MAI-Base-2): 표준 ZeRO shard를 유지하고, FP32 momentum shard를 BF16으로 바꿔 “같은 모양 매개변수끼리 묶은” all-to-all로 GPU마다 행렬 몇 개를 통째로 갖게 하고, “대칭성을 이용한 Newton–Schulz 커널”로 직교화한 뒤, 다시 all-to-all로 돌려보내 FP32로 바꿔 적용한다. 16K GPU에서 prefetch와 메타데이터 캐시를 더해 반복 시간의 2.1%(165 ms), 통신으로 제한되는 추정 하한은 55 ms였다. 차이는 “straggler, 커널 dispatch 오버헤드, 부하 불균형, 메모리 복사” 탓으로 본다.
  5. 행렬을 조립하지 않기. Dion은 NS 대신 업데이트마다 momentum에 power iteration 한 단계를 쓴다. P=MV (m×r)P=MV\ (m\times r), U=orth⁡(P)U=\operatorname{orth}(P), W=M⊤U (n×r)W=M^\top U\ (n\times r), error feedback M←M−βUW⊤M\leftarrow M-\beta UW^\top, V←colnorm⁡(W)V\leftarrow\operatorname{colnorm}(W), 업데이트 m/n UV⊤\sqrt{m/n}\,UV^\top. m×rm\times r와 n×rn\times r 인자만 동기화하고, rank 비율로 품질과 비용을 맞바꾼다(160M–3B에서 검증). MuonBP는 대부분의 step에서 TP shard를 로컬로 직교화하고 PP step마다 행렬 전체를 직교화하며, 두 종류의 step에 다른 학습률을 쓴다. P=5P=5로 “optimizer step 통신량을 5배 줄이면서 Muon의 성능을 회복”하고, 8-way TP의 8B 모델에서 처리량 +8%를 보고한다. 내가 찾은 frontier 보고서 중 둘 중 하나라도 실제로 쓰는 곳은 없다.

아래 탐색기는 세 가지 모델 모양에서 이 방식들에 숫자를 붙인다.

A cost model of one Muon optimizer step (5 Newton–Schulz iterations, FLOPs 5·(4a²b + 2a³) for an a×b matrix with a ≤ b) when N GPUs share the optimizer state. Left (log axis): per-GPU time each scheme adds to the step — extra communication (hatched, left bar) and orthogonalisation compute on the busiest GPU (solid, right bar); the dotted line is the forward–backward time of the step (6·active params·tokens / N / compute). Right: NS work per GPU for the selected scheme, sorted, against the mean (dashed). Try: on the MoE, gather (all) makes every GPU orthogonalise every matrix, so its time does not shrink with N. ZeRO-1 gather (Moonlight) cuts compute but cuts matrices at shard boundaries; owners and all-to-all give whole matrices to GPUs — on the 70B the 28672-wide MLP matrices make the busiest GPU wait (cubic cost; raise N). Owners also pad every bucket to the largest one, so when the dense models have few matrices per GPU the padded collectives explode (8B at N = 1024: about 425 GB extra per GPU) — the reason DeepSeek-V4 caps the ZeRO degree for dense parameters. Dion needs no gather and no NS and spreads its work evenly, but its traffic scales with the rank (ρ), not with 1/N. Estimates only: no overlap, no TP/EP, one network number. N개 GPU가 optimizer 상태를 나눠 가질 때 Muon optimizer step 하나의 비용 모형(Newton–Schulz 5회, a ≤ b인 a×b 행렬의 FLOPs 5·(4a²b + 2a³)). 왼쪽(로그 축): scheme마다 step에 더해지는 GPU당 시간. 추가 통신(빗금, 왼쪽 막대)과 가장 바쁜 GPU의 직교화 계산(채움, 오른쪽 막대). 점선은 그 step의 forward–backward 시간(6·활성 매개변수·토큰 / N / 연산). 오른쪽: 선택한 scheme의 GPU별 NS 작업량(정렬)과 평균(점선). 해 볼 것: MoE에서 gather (전부)는 모든 GPU가 모든 행렬을 직교화하므로 N을 늘려도 시간이 줄지 않는다. ZeRO-1 gather(Moonlight)는 계산을 줄이지만 shard 경계에서 행렬이 잘린다. owner와 all-to-all은 GPU에 행렬을 통째로 준다. 70B에서는 폭 28672짜리 MLP 행렬 때문에 가장 바쁜 GPU가 기다린다(세제곱 비용, N을 키워 보라). owner는 모든 bucket을 가장 큰 것에 맞춰 padding하므로, dense 모델에서 GPU당 행렬이 몇 개 안 되면 padding된 collective가 폭증한다(8B, N = 1024에서 GPU당 추가 약 425 GB). DeepSeek-V4가 dense 매개변수의 ZeRO 차수에 상한을 두는 이유다. Dion은 gather도 NS도 없고 일을 고르게 나누지만, 통신량이 1/N이 아니라 rank(ρ)에 비례한다. 추정치일 뿐이다. overlap, TP/EP 없음, 네트워크 숫자 하나.

Reading the explorer (a cost model with our assumptions: 5 NS iterations, ring-style collectives, one bandwidth number, no overlap, every GPU in one data-parallel group):

  1. The MoE is many small matrices; the dense models are few large ones. With K2’s shapes there are 69,608 Muon matrices (1.02T parameters, about 30B active excluding embeddings), so whole-matrix owners balance almost perfectly at any NN (max/mean ≈ 1.00). The dense 8B has 224 matrices: at N=1024N=1024 most GPUs have nothing to do and the step waits for the largest matrix (imbalance ≈ 8.4 in our model). That is Qwen3.8’s “cubic in the shorter dimension … severe stragglers” in miniature, and why Canzona balances estimated NS FLOPs rather than elements. Communication breaks too: owners pad every bucket to the largest, so the fp32 reduce-scatter and all-gather run on N⋅MN\cdot M elements instead of PP (MM = largest bucket) and each GPU receives 8(NM−P)(N−1)/N8(NM-P)(N-1)/N extra bytes — about 425 GB for the 8B at N=1024N=1024 (MM = 58.7M, NMNM = 8.6× PP), against 0.03 GB for all-to-all. The MoE pads by 0.1% at N=256N=256 (9 GB). This is why DeepSeek-V4 caps the ZeRO degree for dense parameters and recomputes beyond it.
  2. Redundant gathering does not scale. “gather (all)” keeps every GPU doing all ~48,500 TFLOP of NS for the MoE regardless of NN; the bar dwarfs the rest.
  3. All-to-all costs a fixed fraction of the model. Two bf16 all-to-alls move about 4P/N4P/N bytes per GPU: at N=256N=256 about 16 GB for the MoE, 0.3 s at 50 GB/s, against roughly 28 s of forward–backward at 16M tokens and 400 TFLOP/s per GPU — on the order of 1–3%, the same order as Moonlight’s 1–3% and MAI’s 2.1%.
  4. Dion behaves differently from the rest. Its traffic is set by the rank — about 8 m r8\,m\,r bytes per matrix per GPU for the reduce-scatter of P=MVP=MV and the all-gather of UU — and does not shrink with NN, so within one shard group it moves more data than all-to-all, and more than owners unless their padding has exploded (dense models at large NN); what it buys is NS-free compute spread evenly over all GPUs (no stragglers, imbalance 1.00) and a compressed data-parallel sync across replicas (the paper’s “compressed DP-sync”), which this model does not include. Lower ρ to see the trade.

9. Failure modes, with evidence

FailureEvidenceWhat fixed it
Attention-logit explosionK2: a 9B/53B vanilla-Muon run “quickly exceed[ed] … 1000”; Moonlight: some layers above 100 earlyQK-Clip (K2), q/KV RMSNorm (V4), per-head split (GLM-5), stable residual stream (Qwen3.8)
Weight and output RMS growth beyond bf16 rangeMoonlight, without weight decaydecoupled weight decay
Spectral-norm drift through row magnitudesMuown, 500M runs; ∥W∥2\|W\|_2 tracks ∥g∥∞\|g\|_\inftyweight decay, or Muown’s row-norm optimizer
Router instabilityQwen3.8: Muon “destabilizes the router” earlyrouter on AdamW
An architecture that underperforms only under MuonGLM-5 Table 1: MLA below GQA-8 with whole-matrix MuonMuon Split
Elongated matrices training worseQwen3.8’s GR low-rank projectionsAdamW for those
Gradient-norm spikes under stressQwen3.8: fewer NS steps spike more; Muon alone was the only run to cross the clip threshold in production (p99.9 pre-clip norm 0.298 vs 0.071 and 0.066 with the gated residual)8 Polar Express steps; gated residual
Optimizer mismatch in fine-tuningMoonlight Tables 6–7; Qu et al. 2026match the base’s optimizer; LoRA

Two things are not on the list. Loss spikes from Muon itself: Qwen3.8’s stress tests found the opposite — at 2× the optimal lr AdamW spiked 4.3 times per 10k steps and Muon 0.2; at 4×, AdamW 183 per 10k steps with 213 of 19,932 steps above the clip threshold, while Muon never crossed it (even though at 2× Muon had “a higher median gradient norm and larger maximum activations”). Low-rank collapse: I found no primary source reporting it under Muon, and the one measurement points the other way — K2’s App. E reports that on the 16B Moonlight, Muon-trained weights have higher singular-value entropy (effective rank) than Adam-trained ones. That full-rank character is the K2 hypothesis for why logits grow, not a collapse.

탐색기 읽는 법(우리의 가정을 깐 비용 모형이다: NS 5회, ring식 collective, 대역폭 숫자 하나, overlap 없음, 모든 GPU가 data-parallel 그룹 하나):

  1. MoE는 작은 행렬이 많고 dense 모델은 큰 행렬이 적다. K2 모양이면 Muon 행렬이 69,608개(매개변수 1.02T, 임베딩 빼고 활성 약 30B)라 행렬 owner가 어떤 NN에서도 거의 완벽하게 균형을 맞춘다(max/mean ≈ 1.00). dense 8B는 행렬이 224개다. N=1024N=1024면 대부분의 GPU가 할 일이 없고 step은 가장 큰 행렬을 기다린다(우리 모형에서 불균형 ≈ 8.4). Qwen3.8이 말한 “짧은 차원에 대해 세제곱 … 심각한 straggler”의 축소판이고, Canzona가 원소 수가 아니라 추정 NS FLOPs로 균형을 맞추는 이유다. 통신도 무너진다. owner는 모든 bucket을 가장 큰 것에 맞춰 padding하므로 fp32 reduce-scatter와 all-gather가 PP가 아니라 N⋅MN\cdot M개 원소(MM = 가장 큰 bucket)에서 돌고, GPU마다 8(NM−P)(N−1)/N8(NM-P)(N-1)/N바이트를 더 받는다. N=1024N=1024의 8B에서 약 425 GB(MM = 58.7M, NMNM = PP의 8.6배)로, all-to-all의 0.03 GB와 대비된다. MoE는 N=256N=256에서 padding이 0.1%(9 GB)다. DeepSeek-V4가 dense 매개변수의 ZeRO 차수에 상한을 두고 그 너머에서는 중복 계산하는 이유가 이것이다.
  2. 중복 gather는 확장되지 않는다. “gather (전부)“에서는 MoE의 NS 약 48,500 TFLOP 전부를 NN과 상관없이 모든 GPU가 한다. 막대가 나머지를 압도한다.
  3. all-to-all은 모델의 일정 비율만큼 든다. bf16 all-to-all 두 번이 GPU당 약 4P/N4P/N바이트를 옮긴다. N=256N=256이면 MoE에서 약 16 GB, 50 GB/s로 0.3 s이고, 16M 토큰과 GPU당 400 TFLOP/s에서 forward–backward 약 28 s와 비교하면 1–3% 수준이다. Moonlight의 1–3%, MAI의 2.1%와 같은 자릿수다.
  4. Dion은 나머지와 다르게 움직인다. 통신량이 rank로 정해지고(P=MVP=MV의 reduce-scatter와 UU의 all-gather로 행렬마다 GPU당 약 8 m r8\,m\,r바이트) NN에 따라 줄지 않으므로, shard 그룹 하나 안에서는 all-to-all보다 데이터를 더 옮기고, owner의 padding이 폭증한 경우(큰 NN의 dense 모델)가 아니면 owner보다도 더 옮긴다. 대신 얻는 것은 NS 없이 모든 GPU에 고르게 퍼진 계산(straggler 없음, 불균형 1.00)과 replica 사이의 압축된 data-parallel 동기화(논문의 “compressed DP-sync”)인데, 후자는 이 모형에 없다. ρ를 낮춰 그 거래를 보라.

9. 실패 양상과 증거

실패증거고친 것
attention logit 폭주K2: 9B/53B vanilla Muon 학습이 “빠르게 … 1000을 넘었다”. Moonlight: 일부 층이 초반에 100 초과QK-Clip(K2), q/KV RMSNorm(V4), head별 분할(GLM-5), 안정적인 residual stream(Qwen3.8)
가중치·출력 RMS가 bf16 범위를 넘게 증가Moonlight, weight decay 없을 때decoupled weight decay
행 크기를 통한 스펙트럼 노름 driftMuown, 500M 학습. ∥W∥2\|W\|_2가 ∥g∥∞\|g\|_\infty를 따라감weight decay, 또는 Muown의 행 노름 옵티마이저
router 불안정Qwen3.8: Muon이 초반에 “router를 불안정하게” 함router는 AdamW
Muon에서만 성능이 떨어지는 구조GLM-5 Table 1: 행렬 통째 Muon에서 MLA가 GQA-8보다 낮음Muon Split
길쭉한 행렬의 학습이 나쁨Qwen3.8의 GR 저랭크 projection그것들은 AdamW
stress 아래 gradient-norm spikeQwen3.8: NS 단계가 적을수록 spike가 많다. 실제 학습에서 Muon 단독만 clip 임계값을 넘었다(p99.9 clip 전 노름 0.298, gated residual이면 0.071과 0.066)Polar Express 8단계, gated residual
fine-tuning의 옵티마이저 불일치Moonlight Table 6–7, Qu et al. 2026base의 옵티마이저에 맞추기, LoRA

목록에 없는 것이 둘 있다. Muon 자체가 만드는 loss spike: Qwen3.8의 stress test는 반대를 보였다. 최적 lr의 2배에서 AdamW는 10k step당 4.3번, Muon은 0.2번 spike했고, 4배에서 AdamW는 10k step당 183번에 19,932 step 중 213 step이 clip 임계값을 넘었지만 Muon은 한 번도 넘지 않았다(2배에서 Muon이 “중앙값 기울기 노름과 최대 활성이 더 컸는데도”). 저랭크 붕괴: Muon에서 이를 보고한 1차 출처는 찾지 못했고, 측정 하나는 반대를 가리킨다. K2 App. E는 16B Moonlight에서 Muon으로 학습한 가중치의 특이값 엔트로피(유효 rank)가 Adam보다 높다고 보고한다. 이 full-rank 성질은 K2가 logit 증가를 설명하는 가설이지 붕괴가 아니다.

10. The labs side by side

LabModelVariant (slots changed)Key hyperparametersSource
MoonshotMoonlight (3B/16B MoE, 5.7T tokens)Muon + decoupled WD + RMS matching ⑤; ZeRO-1 Distributed MuonNS ×5 (Jordan), RMS 0.2, λ = 0.1arXiv 2502.16982
MoonshotKimi K2 (1T/32B)MuonClip: per-head QK-Clip ⑥, MLA-aware (qC,kCq^C,k^C by γh\sqrt{\gamma_h}, qRq^R by γh\gamma_h, shared kRk^R untouched)τ = 100, lr 2e-4 (WSD), λ = 0.1, batch 67M; Muon also in SFT and RLarXiv 2507.20534
MoonshotKimi Linear (comparison runs)MuonCliplr 1.1e-3, batch 32M, 1.4T tokensarXiv 2510.26692
MoonshotKimi K3Per-Head Muon on Q, K, V ① + K2’s weight clipping ⑥; P2P gather of owned shardsλ = 0.1, cosine schedule, 1% warm-uparXiv 2607.24653
ZhipuGLM-4.5Muon; AdamW for embeddings, biases, RMSNormNS ×5, μ = 0.95, RMS 0.2arXiv 2508.06471
ZhipuGLM-5 (744B/40B)Muon Split on WUQ,WUK,WUVW^{UQ},W^{UK},W^{UV} ① (MLA ≈ GQA-8); no clipping; zero-redundant all-gatherlr 2e-4 → 4e-5, mid-training 4e-5 → 1e-5; optimizer reset at every weight push in async RLarXiv 2602.15763
DeepSeekV4-Flash / V4-ProHybrid NS: Jordan ×8 + (2, −1.5, 0.5) ×2 ③; RMS 0.18 ⑤; q/KV RMSNorm instead of QK-Clipμ = 0.95, λ = 0.1, lr 2.7e-4 / 2.0e-4, BF16 NS, knapsack ZeROarXiv 2606.19348
DeepSeekV4.1-Flashhead-wise Muon for Q (and K) ①; Sinkhorn-balanced momentum for embeddings, Engram, headRMS 0.18; Sinkhorn K = 11, τ = 1e-3, γ = 0.18, no WDarXiv 2609.19969
QwenQwen3.8-Flash-Next (125B-A6B)Polar Express ×8 ③; fused split per head and gate/up ①; router, gates, GR on AdamW; Canzonaμ = 0.95 Nesterov, 0.2√max, ε = 1e-14, no batch warm-up, no qk-cliparXiv 2608.30320
XiaomiMiMo-V2.6AdamW pre-training → Muown ④ from mid-training through RLRL: lr 3e-6, no WD, no warm-up, clip 1.0, NS ×10, extra scale 0.5, Adam β 0.95/0.95V2.6 report §5.1; arXiv 2605.10797
Microsoft AIMAI-Base-2 (80B active / 2.8T)Muon on non-embedding 2D parameters; all-to-all reshard (BF16, same-shape batches, symmetric NS kernel)2.1% of iteration (165 ms; bound 55 ms); η⋆λ⋆=17.04/steps\eta^\star\lambda^\star=17.04/\text{steps}MAI-Base-2 report
Microsoft AIMAI-Thinking-1— (base MAI-Base-1 and its RL use AdamW)RL: AdamW β 0.95/0.95, ε 1e-15, no WD, lr 1e-6MAI-Thinking-1 report

And the research variants, with who is known to use them:

VariantSlotAdopted by
Polar Express③Qwen3.8-Flash-Next; modded-nanogpt speedrun
NorMuon④modded-nanogpt speedrun; no frontier report found
Muown④MiMo-V2.6 (mid-training and RL)
Sinkhorn balancing (SinkGD lineage)③ for embeddings/headDeepSeek-V4.1-Flash
CanzonadistributionQwen3.8-Flash-Next
AdaMuon, Dion, MuonBP, PolarGrad②④, distribution, distribution, ⑤no frontier report found (PolarGrad scales Muon’s update by the gradient’s nuclear norm — the “dual-norm step length” of the Muon lesson’s table)

11. A toy comparison you can run

The NumPy block trains the switchboard’s toy (MLA-like shape: tall 16×4 up-projections, head 0’s gradient amplified 3×) with five variants for 200 steps and reports the final loss, each head’s max logit and each head’s share of the WuqW_{uq} update.

NumPy Five variants on a 4-head attention + MLP toy (MLA-like shape, 200 steps)
import numpy as np
JORDAN = (3.4445, -4.7750, 2.0315)
def ns(G, coeffs=[JORDAN] * 5):
    X = G.T if G.shape[0] > G.shape[1] else G
    X = X / (np.linalg.norm(X) + 1e-7)
    for a, b, c in coeffs:
        A = X @ X.T
        X = a * X + (b * A + c * A @ A) @ X
    return X.T if G.shape[0] > G.shape[1] else X

d, H, dh, T, N, F, dc = 16, 4, 4, 8, 12, 16, 4      # MLA-like: W_uq, W_uk are tall 16 x 4
r = np.random.default_rng(0)
X = r.normal(size=(N, T, d)); X *= np.sqrt(d / (X ** 2).sum(-1, keepdims=True))   # RMSNorm'ed inputs
Wv = r.normal(size=(H, d, dh)) / np.sqrt(d)                  # fixed value / output maps
Wo = r.normal(size=(H, dh, d)) / np.sqrt(dh); Wo[0] *= 3.0   # head 0 matters 3x more for the loss
V = np.einsum('ntd,hde->hnte', X, Wv)

def attn(Q, K):                                              # Q, K: [H, N, T, dh]
    S = Q @ K.transpose(0, 1, 3, 2) / np.sqrt(dh)
    A = np.exp(S - S.max(-1, keepdims=True)); A /= A.sum(-1, keepdims=True)
    return S, A

# teacher: head 0 attends hard (one key per query: sharper is always better), heads 1-3 softly
Qt = np.einsum('ntd,hde->hnte', X, r.normal(size=(H, d, dh)) * 1.5 / np.sqrt(d))
Kt = np.einsum('ntd,hde->hnte', X, r.normal(size=(H, d, dh)) * 1.5 / np.sqrt(d))
St, At = attn(Qt, Kt); At[0] = (St[0] == St[0].max(-1, keepdims=True))
Zt = np.einsum('hnts,hnse,hed->ntd', At, V, Wo)
Y = Zt + np.tanh(Zt @ r.normal(size=(d, F)) / np.sqrt(d)) @ r.normal(size=(F, d)) / np.sqrt(F)
Y /= np.sqrt((Y ** 2).mean())

def init():
    q = np.random.default_rng(1)
    return {'Wdq': q.normal(size=(dc, d)) / np.sqrt(d), 'Wuq': q.normal(size=(H * dh, dc)) / np.sqrt(dc),
            'Wdk': q.normal(size=(dc, d)) / np.sqrt(d), 'Wuk': q.normal(size=(H * dh, dc)) / np.sqrt(dc),
            'W1': q.normal(size=(d, F)) / np.sqrt(d), 'W2': q.normal(size=(F, d)) / np.sqrt(F) * 0.5}

def loss_grad(P):
    Wq, Wk = (P['Wuq'] @ P['Wdq']).reshape(H, dh, d), (P['Wuk'] @ P['Wdk']).reshape(H, dh, d)
    Q = X @ Wq.transpose(0, 2, 1)[:, None]; K = X @ Wk.transpose(0, 2, 1)[:, None]   # [H, N, T, dh]
    S, A = attn(Q, K)
    Z = ((A @ V) @ Wo[:, None]).sum(0)                                               # [N, T, d]
    Hh = np.tanh(Z @ P['W1']); out = Z + Hh @ P['W2']
    R = out - Y; dout = 2 * R / R.size
    g = {'W2': Hh.reshape(-1, F).T @ dout.reshape(-1, d)}
    da = (dout @ P['W2'].T) * (1 - Hh ** 2)
    g['W1'] = Z.reshape(-1, d).T @ da.reshape(-1, F)
    dZ = dout + da @ P['W1'].T
    dA = (dZ @ Wo.transpose(0, 2, 1)[:, None]) @ V.transpose(0, 1, 3, 2)          # [H, N, T, T]
    dS = A * (dA - (dA * A).sum(-1, keepdims=True)) / np.sqrt(dh)
    gQ = ((dS @ K).transpose(0, 1, 3, 2) @ X).sum(1).reshape(H * dh, d)
    gK = ((dS.transpose(0, 1, 3, 2) @ Q).transpose(0, 1, 3, 2) @ X).sum(1).reshape(H * dh, d)
    g['Wuq'], g['Wdq'] = gQ @ P['Wdq'].T, P['Wuq'].T @ gQ
    g['Wuk'], g['Wdk'] = gK @ P['Wdk'].T, P['Wuk'].T @ gK
    return (R ** 2).mean(), S.reshape(H, -1).max(1), g

def train(variant, lr=0.04, wd=0.1, steps=200, tau=4.0):
    P = init(); st = {k: [np.zeros_like(w), np.zeros_like(w), np.zeros(w.shape[0])] for k, w in P.items()}
    head_rms = []
    for t in range(1, steps + 1):
        loss, smax, g = loss_grad(P)
        for k, W in P.items():
            m, v, row = st[k]; G = g[k]
            if variant == 'adamw':
                m[:] = 0.9 * m + 0.1 * G; v[:] = 0.95 * v + 0.05 * G * G
                U = m / (1 - 0.9 ** t) / (np.sqrt(v / (1 - 0.95 ** t)) + 1e-8)
            else:
                m[:] = 0.95 * m + G; Mn = G + 0.95 * m                 # Nesterov momentum
                if variant == 'per-head' and k in ('Wuq', 'Wuk'):       # K3 Per-Head / GLM-5 Muon Split
                    U = np.concatenate([ns(b) * 0.2 * np.sqrt(max(b.shape)) for b in Mn.reshape(H, dh, -1)])
                elif variant == 'normuon':
                    O = ns(Mn); row[:] = 0.95 * row + 0.05 * (O ** 2).mean(1)
                    U = O / (np.sqrt(row)[:, None] + 1e-8); U *= 0.2 * np.sqrt(U.size) / np.linalg.norm(U)
                else:
                    U = ns(Mn) * 0.2 * np.sqrt(max(W.shape))          # Moonlight RMS matching
            if k == 'Wuq' and t > 10:
                head_rms.append(np.sqrt((U.reshape(H, dh, -1) ** 2).mean((1, 2))))
            P[k] = W * (1 - lr * wd) - lr * U
        if variant == 'muonclip':                                       # per-head QK-Clip after the step
            for h in np.nonzero(smax > tau)[0]:
                s = np.sqrt(tau / smax[h])
                P['Wuq'][h * dh:(h + 1) * dh] *= s; P['Wuk'][h * dh:(h + 1) * dh] *= s
    return loss, smax, np.mean(head_rms, 0)

print("variant    final loss   max logit per head      W_uq update RMS per head")
for v in ['adamw', 'muon', 'muonclip', 'per-head', 'normuon']:
    loss, smax, hr = train(v)
    print(f"{v:9s}  {loss:.4f}      {np.array2string(smax, precision=1):22s}  {np.array2string(hr, precision=3)}")
 

Expected (exact digits depend on the BLAS): all five reach a loss of 0.08–0.12 — the toy does not separate them. The update shares do: Muon gives head 0 an RMS of about 0.27 and the others 0.12–0.14; Per-head gives all four about 0.18; NorMuon about 0.20 each; AdamW gives head 0 the smallest share (about 0.09). MuonClip with τ = 4 holds the max logits close to τ (the printed values come from the forward pass before the last clip). Change Wo[0] *= 3.0 to 1.0 and the imbalance under Muon shrinks.

12. The variants in PyTorch

A compact optimizer with the verified variants as switches (per param group), plus QK-Clip, Muown and the Sinkhorn update as functions. It is read-only here; it is written for torch ≥ 2.1 (Tensor.mT).

PyTorch Muon variants as switches: hybrid / Polar Express NS, per-head and fused splits, NorMuon, QK-Clip, Muown, Sinkhorn (torch 2.x) 로컬에서 실행run locally (pip install torch)
import torch
from torch import Tensor

JORDAN = (3.4445, -4.7750, 2.0315)
_PE = [(8.28721201814563, -23.595886519098837, 17.300387312530933),
       (4.107059111542203, -2.9478499167379106, 0.5448431082926601),
       (3.9486908534822946, -2.908902115962949, 0.5518191394370137),
       (3.3184196573706015, -2.488488024314874, 0.51004894012372),
       (2.300652019954817, -1.6689039845747493, 0.4188073119525673),
       (1.891301407787398, -1.2679958271945868, 0.37680408948524835),
       (1.8750014808534479, -1.2500016453999487, 0.3750001645474248),
       (1.875, -1.25, 0.375)]
SCHEDULES = {
    "jordan": [JORDAN] * 5,                                    # Jordan / Moonlight / K2
    "hybrid": [JORDAN] * 8 + [(2.0, -1.5, 0.5)] * 2,           # DeepSeek-V4
    "polar": [(a / 1.01, b / 1.01**3, c / 1.01**5) for a, b, c in _PE[:-1]] + [_PE[-1]],  # Qwen3.8
}

@torch.no_grad()
def orthogonalize(G: Tensor, schedule: str = "jordan") -> Tensor:
    """≈ msign(G) for one matrix or a batch [..., m, n], computed in bf16."""
    X = G.bfloat16()
    tall = X.size(-2) > X.size(-1)
    if tall:
        X = X.mT
    pre = 1.01 if schedule == "polar" else 1.0
    X = X / (X.norm(dim=(-2, -1), keepdim=True) * pre + 1e-7)
    for a, b, c in SCHEDULES[schedule]:
        A = X @ X.mT
        X = a * X + (b * A + c * A @ A) @ X
    if tall:
        X = X.mT
    return X.to(G.dtype)

class MuonV(torch.optim.Optimizer):
    """Muon for 2-D weights [out, in]. Per-group switches:
    ns: "jordan" | "hybrid" | "polar";  rms: 0.2 (Moonlight/K2/Qwen3.8) or 0.18 (DeepSeek-V4)
    heads: split rows into this many equal blocks before NS (K3 Per-Head, GLM-5 Muon Split, V4.1)
    split: row sizes of a fused matrix, e.g. [q, k, v] or [gate, up] (Qwen3.8)
    normuon: per-row second moment after NS (NorMuon)."""

    def __init__(self, params, lr=2e-4, momentum=0.95, weight_decay=0.1, rms=0.2, ns="jordan",
                 heads=None, split=None, normuon=False, beta2=0.95):
        super().__init__(params, dict(lr=lr, momentum=momentum, weight_decay=weight_decay, rms=rms,
                                      ns=ns, heads=heads, split=split, normuon=normuon, beta2=beta2))

    @staticmethod
    def _orth_scaled(B: Tensor, group) -> Tensor:              # B: [m, n] or [blocks, m, n]
        return orthogonalize(B, group["ns"]) * (group["rms"] * max(B.size(-2), B.size(-1)) ** 0.5)

    @torch.no_grad()
    def step(self, closure=None):
        loss = None
        if closure is not None:
            with torch.enable_grad():
                loss = closure()
        for group in self.param_groups:
            lr, mu, wd = group["lr"], group["momentum"], group["weight_decay"]
            for p in group["params"]:
                if p.grad is None:
                    continue
                assert p.ndim == 2, "MuonV is for 2-D matrices; give everything else to AdamW"
                st = self.state[p]
                if not st:
                    st["m"] = torch.zeros_like(p)
                    if group["normuon"]:
                        st["v"] = torch.zeros(p.size(0), device=p.device, dtype=torch.float32)
                st["m"].mul_(mu).add_(p.grad)
                M = p.grad.add(st["m"], alpha=mu)                     # Nesterov: G + mu * M
                if group["heads"]:                                    # one batched NS over [H, d_h, n]
                    U = self._orth_scaled(M.view(group["heads"], -1, M.size(1)), group).reshape_as(M)
                elif group["split"]:
                    U = torch.cat([self._orth_scaled(B, group) for B in M.split(group["split"], dim=0)])
                else:
                    U = self._orth_scaled(M, group)
                if group["normuon"]:
                    v = st["v"]
                    v.mul_(group["beta2"]).add_(U.float().pow(2).mean(1), alpha=1 - group["beta2"])
                    U = U / (v.sqrt().unsqueeze(1).to(U.dtype) + 1e-8)
                    U = U * (group["rms"] * U.numel() ** 0.5 / U.norm())
                p.mul_(1 - lr * wd).add_(U, alpha=-lr)
        return loss

@torch.no_grad()
def qk_clip_(w_q: Tensor, w_k: Tensor, s_max: Tensor, tau: float = 100.0, alpha: float = 0.5):
    """Kimi K2 per-head QK-Clip for MHA ([H*d_h, d_model] weights, one key head per query head).
    s_max[h]: head h's max pre-softmax logit from this step's forward pass. Call after optimizer.step()."""
    H = s_max.numel()
    gamma = (tau / s_max.float().clamp_min(tau)).to(w_q.dtype)        # 1 for heads below tau
    w_q.view(H, -1, w_q.size(1)).mul_(gamma.pow(alpha).view(H, 1, 1))
    w_k.view(H, -1, w_k.size(1)).mul_(gamma.pow(1 - alpha).view(H, 1, 1))

@torch.no_grad()
def muown_step_(W: Tensor, G: Tensor, st: dict, lr: float, mu=0.95, betas=(0.9, 0.95), eps=1e-8):
    """One Muown step (Lion et al. 2026, Alg. 1, no weight decay): Muon on the row directions R,
    Adam on the row norms g, with W = diag(g / ||R||_row) R kept as the stored weight."""
    if not st:
        n = W.norm(dim=1)
        st.update(r=n.clone(), g=n.clone(), M=torch.zeros_like(W), m=torch.zeros_like(n),
                  v=torch.zeros_like(n), t=0)
    r, g = st["r"], st["g"]
    R = W * (r / g).unsqueeze(1)
    D = R / r.unsqueeze(1)                                            # unit-norm rows
    g_grad = (G * D).sum(1)                                           # dL/dg
    R_grad = (g / r).unsqueeze(1) * (G - g_grad.unsqueeze(1) * D)     # dL/dR, radial part removed
    st["M"].mul_(mu).add_(R_grad)
    R = R - lr * 0.2 * max(W.shape) ** 0.5 * orthogonalize(R_grad.add(st["M"], alpha=mu))
    st["t"] += 1
    b1, b2 = betas
    st["m"].mul_(b1).add_(g_grad, alpha=1 - b1)
    st["v"].mul_(b2).addcmul_(g_grad, g_grad, value=1 - b2)
    g.sub_(lr * (st["m"] / (1 - b1 ** st["t"])) / ((st["v"] / (1 - b2 ** st["t"])).sqrt() + eps))
    r.copy_(R.norm(dim=1))
    W.copy_(R * (g / r).unsqueeze(1))

@torch.no_grad()
def sinkhorn_update(G_hat: Tensor, K: int = 11, tau: float = 1e-3, eps: float = 1e-20) -> Tensor:
    """DeepSeek-V4.1's balanced direction for [vocab, hidden] tables (embeddings, head):
    alternate row / column l2 normalisation K times (odd K ends on rows), then scale rows to unit RMS.
    Use with Nesterov momentum and lr * 0.18; no weight decay."""
    U = G_hat.float()
    rho = U.norm(dim=1)
    U = U * (rho > tau * rho.mean()).unsqueeze(1)                     # mask near-zero rows
    for k in range(1, K + 1):
        U = U / (U.norm(dim=1 if k % 2 else 0, keepdim=True) + eps)
    return (U * U.size(1) ** 0.5).to(G_hat.dtype)

# Example groups for an MLA layer with H = 64 heads (shapes as in DeepSeek-V3/K2):
# opt = MuonV([
#     {"params": [w_uq, w_uk, w_uv], "heads": 64},       # per-head blocks of the tall MLA up-projections
#     {"params": [w_qkv_fused], "split": [4096, 1024, 1024]},
#     {"params": other_matrices, "ns": "polar"},
#     {"params": expert_matrices, "normuon": True},
# ], lr=2e-4)
 

10. lab들을 나란히

Lab모델변형(바꾼 칸)핵심 하이퍼파라미터출처
MoonshotMoonlight(3B/16B MoE, 5.7T 토큰)Muon + decoupled WD + RMS 맞춤 ⑤. ZeRO-1 Distributed MuonNS ×5(Jordan), RMS 0.2, λ = 0.1arXiv 2502.16982
MoonshotKimi K2(1T/32B)MuonClip: head별 QK-Clip ⑥, MLA 대응(qC,kCq^C,k^C는 γh\sqrt{\gamma_h}, qRq^R는 γh\gamma_h, 공유 kRk^R는 그대로)τ = 100, lr 2e-4(WSD), λ = 0.1, batch 67M. SFT와 RL도 MuonarXiv 2507.20534
MoonshotKimi Linear(비교 학습)MuonCliplr 1.1e-3, batch 32M, 1.4T 토큰arXiv 2510.26692
MoonshotKimi K3Q, K, V에 Per-Head Muon ① + K2의 weight clipping ⑥. 소유 shard의 P2P gatherλ = 0.1, cosine 스케줄, warmup 1%arXiv 2607.24653
ZhipuGLM-4.5Muon. 임베딩, bias, RMSNorm은 AdamWNS ×5, μ = 0.95, RMS 0.2arXiv 2508.06471
ZhipuGLM-5(744B/40B)WUQ,WUK,WUVW^{UQ},W^{UK},W^{UV}에 Muon Split ①(MLA ≈ GQA-8). clipping 없음. zero-redundant all-gatherlr 2e-4 → 4e-5, mid-training 4e-5 → 1e-5. 비동기 RL에서 weight push마다 optimizer resetarXiv 2602.15763
DeepSeekV4-Flash / V4-Pro하이브리드 NS: Jordan ×8 + (2, −1.5, 0.5) ×2 ③. RMS 0.18 ⑤. QK-Clip 대신 q/KV RMSNormμ = 0.95, λ = 0.1, lr 2.7e-4 / 2.0e-4, BF16 NS, knapsack ZeROarXiv 2606.19348
DeepSeekV4.1-FlashQ(와 K)에 head-wise Muon ①. 임베딩, Engram, head에 Sinkhorn 균형 momentumRMS 0.18. Sinkhorn K = 11, τ = 1e-3, γ = 0.18, WD 없음arXiv 2609.19969
QwenQwen3.8-Flash-Next(125B-A6B)Polar Express ×8 ③. fused 행렬을 head별·gate/up으로 분할 ①. router, gate, GR은 AdamW. Canzonaμ = 0.95 Nesterov, 0.2√max, ε = 1e-14, batch warmup 없음, qk-clip 없음arXiv 2608.30320
XiaomiMiMo-V2.6AdamW 사전학습 → mid-training부터 RL까지 Muown ④RL: lr 3e-6, WD 없음, warmup 없음, clip 1.0, NS ×10, 추가 스케일 0.5, Adam β 0.95/0.95V2.6 보고서 §5.1, arXiv 2605.10797
Microsoft AIMAI-Base-2(활성 80B / 2.8T)임베딩이 아닌 2D 매개변수에 Muon. all-to-all 재샤딩(BF16, 같은 모양 묶음, 대칭 NS 커널)반복의 2.1%(165 ms, 하한 55 ms). η⋆λ⋆=17.04/steps\eta^\star\lambda^\star=17.04/\text{steps}MAI-Base-2 보고서
Microsoft AIMAI-Thinking-1— (base인 MAI-Base-1과 그 RL은 AdamW)RL: AdamW β 0.95/0.95, ε 1e-15, WD 없음, lr 1e-6MAI-Thinking-1 보고서

연구 변형과, 그것을 쓴다고 알려진 곳:

변형칸채택
Polar Express③Qwen3.8-Flash-Next, modded-nanogpt speedrun
NorMuon④modded-nanogpt speedrun. frontier 보고서는 찾지 못함
Muown④MiMo-V2.6(mid-training과 RL)
Sinkhorn 균형(SinkGD 계열)임베딩·head용 ③DeepSeek-V4.1-Flash
Canzona분산Qwen3.8-Flash-Next
AdaMuon, Dion, MuonBP, PolarGrad②④, 분산, 분산, ⑤frontier 보고서는 찾지 못함(PolarGrad는 Muon의 업데이트에 기울기의 핵 노름을 곱한다. Muon 레슨 표의 “쌍대 노름 걸음 길이”다)

11. 직접 돌려 보는 장난감 비교

NumPy 블록은 스위치보드의 장난감(MLA형: 높은 16×4 up-projection, head 0의 기울기 3배)을 다섯 변형으로 200 step 학습하고, 최종 손실, head별 max logit, WuqW_{uq} 업데이트 중 head별 몫을 보고한다.

NumPy 4-head attention + MLP 장난감에서 변형 다섯 개 (MLA형, 200 step)
import numpy as np
JORDAN = (3.4445, -4.7750, 2.0315)
def ns(G, coeffs=[JORDAN] * 5):
    X = G.T if G.shape[0] > G.shape[1] else G
    X = X / (np.linalg.norm(X) + 1e-7)
    for a, b, c in coeffs:
        A = X @ X.T
        X = a * X + (b * A + c * A @ A) @ X
    return X.T if G.shape[0] > G.shape[1] else X

d, H, dh, T, N, F, dc = 16, 4, 4, 8, 12, 16, 4      # MLA형: W_uq, W_uk가 높은 16 x 4
r = np.random.default_rng(0)
X = r.normal(size=(N, T, d)); X *= np.sqrt(d / (X ** 2).sum(-1, keepdims=True))   # RMSNorm한 입력
Wv = r.normal(size=(H, d, dh)) / np.sqrt(d)                  # 고정된 value / output 사상
Wo = r.normal(size=(H, dh, d)) / np.sqrt(dh); Wo[0] *= 3.0   # head 0이 손실에 3배 중요
V = np.einsum('ntd,hde->hnte', X, Wv)

def attn(Q, K):                                              # Q, K: [H, N, T, dh]
    S = Q @ K.transpose(0, 1, 3, 2) / np.sqrt(dh)
    A = np.exp(S - S.max(-1, keepdims=True)); A /= A.sum(-1, keepdims=True)
    return S, A

# teacher: head 0은 hard attention(query마다 key 하나, 날카로울수록 좋다), head 1-3은 soft
Qt = np.einsum('ntd,hde->hnte', X, r.normal(size=(H, d, dh)) * 1.5 / np.sqrt(d))
Kt = np.einsum('ntd,hde->hnte', X, r.normal(size=(H, d, dh)) * 1.5 / np.sqrt(d))
St, At = attn(Qt, Kt); At[0] = (St[0] == St[0].max(-1, keepdims=True))
Zt = np.einsum('hnts,hnse,hed->ntd', At, V, Wo)
Y = Zt + np.tanh(Zt @ r.normal(size=(d, F)) / np.sqrt(d)) @ r.normal(size=(F, d)) / np.sqrt(F)
Y /= np.sqrt((Y ** 2).mean())

def init():
    q = np.random.default_rng(1)
    return {'Wdq': q.normal(size=(dc, d)) / np.sqrt(d), 'Wuq': q.normal(size=(H * dh, dc)) / np.sqrt(dc),
            'Wdk': q.normal(size=(dc, d)) / np.sqrt(d), 'Wuk': q.normal(size=(H * dh, dc)) / np.sqrt(dc),
            'W1': q.normal(size=(d, F)) / np.sqrt(d), 'W2': q.normal(size=(F, d)) / np.sqrt(F) * 0.5}

def loss_grad(P):
    Wq, Wk = (P['Wuq'] @ P['Wdq']).reshape(H, dh, d), (P['Wuk'] @ P['Wdk']).reshape(H, dh, d)
    Q = X @ Wq.transpose(0, 2, 1)[:, None]; K = X @ Wk.transpose(0, 2, 1)[:, None]   # [H, N, T, dh]
    S, A = attn(Q, K)
    Z = ((A @ V) @ Wo[:, None]).sum(0)                                               # [N, T, d]
    Hh = np.tanh(Z @ P['W1']); out = Z + Hh @ P['W2']
    R = out - Y; dout = 2 * R / R.size
    g = {'W2': Hh.reshape(-1, F).T @ dout.reshape(-1, d)}
    da = (dout @ P['W2'].T) * (1 - Hh ** 2)
    g['W1'] = Z.reshape(-1, d).T @ da.reshape(-1, F)
    dZ = dout + da @ P['W1'].T
    dA = (dZ @ Wo.transpose(0, 2, 1)[:, None]) @ V.transpose(0, 1, 3, 2)          # [H, N, T, T]
    dS = A * (dA - (dA * A).sum(-1, keepdims=True)) / np.sqrt(dh)
    gQ = ((dS @ K).transpose(0, 1, 3, 2) @ X).sum(1).reshape(H * dh, d)
    gK = ((dS.transpose(0, 1, 3, 2) @ Q).transpose(0, 1, 3, 2) @ X).sum(1).reshape(H * dh, d)
    g['Wuq'], g['Wdq'] = gQ @ P['Wdq'].T, P['Wuq'].T @ gQ
    g['Wuk'], g['Wdk'] = gK @ P['Wdk'].T, P['Wuk'].T @ gK
    return (R ** 2).mean(), S.reshape(H, -1).max(1), g

def train(variant, lr=0.04, wd=0.1, steps=200, tau=4.0):
    P = init(); st = {k: [np.zeros_like(w), np.zeros_like(w), np.zeros(w.shape[0])] for k, w in P.items()}
    head_rms = []
    for t in range(1, steps + 1):
        loss, smax, g = loss_grad(P)
        for k, W in P.items():
            m, v, row = st[k]; G = g[k]
            if variant == 'adamw':
                m[:] = 0.9 * m + 0.1 * G; v[:] = 0.95 * v + 0.05 * G * G
                U = m / (1 - 0.9 ** t) / (np.sqrt(v / (1 - 0.95 ** t)) + 1e-8)
            else:
                m[:] = 0.95 * m + G; Mn = G + 0.95 * m                 # Nesterov momentum
                if variant == 'per-head' and k in ('Wuq', 'Wuk'):       # K3 Per-Head / GLM-5 Muon Split
                    U = np.concatenate([ns(b) * 0.2 * np.sqrt(max(b.shape)) for b in Mn.reshape(H, dh, -1)])
                elif variant == 'normuon':
                    O = ns(Mn); row[:] = 0.95 * row + 0.05 * (O ** 2).mean(1)
                    U = O / (np.sqrt(row)[:, None] + 1e-8); U *= 0.2 * np.sqrt(U.size) / np.linalg.norm(U)
                else:
                    U = ns(Mn) * 0.2 * np.sqrt(max(W.shape))          # Moonlight RMS 맞춤
            if k == 'Wuq' and t > 10:
                head_rms.append(np.sqrt((U.reshape(H, dh, -1) ** 2).mean((1, 2))))
            P[k] = W * (1 - lr * wd) - lr * U
        if variant == 'muonclip':                                       # step 뒤 head별 QK-Clip
            for h in np.nonzero(smax > tau)[0]:
                s = np.sqrt(tau / smax[h])
                P['Wuq'][h * dh:(h + 1) * dh] *= s; P['Wuk'][h * dh:(h + 1) * dh] *= s
    return loss, smax, np.mean(head_rms, 0)

print("변형       최종 손실    head별 max logit        head별 W_uq 업데이트 RMS")
for v in ['adamw', 'muon', 'muonclip', 'per-head', 'normuon']:
    loss, smax, hr = train(v)
    print(f"{v:9s}  {loss:.4f}      {np.array2string(smax, precision=1):22s}  {np.array2string(hr, precision=3)}")
 

예상 출력(정확한 자릿수는 BLAS에 따라 다르다): 다섯 모두 손실 0.08–0.12에 닿는다. 이 장난감은 그들을 가르지 못한다. 업데이트 몫은 가른다. Muon은 head 0에 RMS 약 0.27, 나머지에 0.12–0.14를 준다. Per-head는 넷 모두에 약 0.18, NorMuon은 각각 약 0.20을 준다. AdamW는 head 0에 가장 작은 몫(약 0.09)을 준다. τ = 4인 MuonClip은 max logit을 τ 가까이에 묶는다(출력값은 마지막 clip 전 forward의 값이다). Wo[0] *= 3.0을 1.0으로 바꾸면 Muon의 불균형이 줄어든다.

12. PyTorch로 쓴 변형들

검증된 변형을 param group별 스위치로 둔 간결한 optimizer와, QK-Clip, Muown, Sinkhorn 업데이트 함수다. 여기서는 실행하지 않으며 torch ≥ 2.1(Tensor.mT)용으로 썼다.

PyTorch 스위치로 쓴 Muon 변형: hybrid / Polar Express NS, head별·fused 분할, NorMuon, QK-Clip, Muown, Sinkhorn (torch 2.x) 로컬에서 실행run locally (pip install torch)
import torch
from torch import Tensor

JORDAN = (3.4445, -4.7750, 2.0315)
_PE = [(8.28721201814563, -23.595886519098837, 17.300387312530933),
       (4.107059111542203, -2.9478499167379106, 0.5448431082926601),
       (3.9486908534822946, -2.908902115962949, 0.5518191394370137),
       (3.3184196573706015, -2.488488024314874, 0.51004894012372),
       (2.300652019954817, -1.6689039845747493, 0.4188073119525673),
       (1.891301407787398, -1.2679958271945868, 0.37680408948524835),
       (1.8750014808534479, -1.2500016453999487, 0.3750001645474248),
       (1.875, -1.25, 0.375)]
SCHEDULES = {
    "jordan": [JORDAN] * 5,                                    # Jordan / Moonlight / K2
    "hybrid": [JORDAN] * 8 + [(2.0, -1.5, 0.5)] * 2,           # DeepSeek-V4
    "polar": [(a / 1.01, b / 1.01**3, c / 1.01**5) for a, b, c in _PE[:-1]] + [_PE[-1]],  # Qwen3.8
}

@torch.no_grad()
def orthogonalize(G: Tensor, schedule: str = "jordan") -> Tensor:
    """행렬 하나 또는 batch [..., m, n]에 대한 ≈ msign(G), bf16으로 계산."""
    X = G.bfloat16()
    tall = X.size(-2) > X.size(-1)
    if tall:
        X = X.mT
    pre = 1.01 if schedule == "polar" else 1.0
    X = X / (X.norm(dim=(-2, -1), keepdim=True) * pre + 1e-7)
    for a, b, c in SCHEDULES[schedule]:
        A = X @ X.mT
        X = a * X + (b * A + c * A @ A) @ X
    if tall:
        X = X.mT
    return X.to(G.dtype)

class MuonV(torch.optim.Optimizer):
    """2-D 가중치 [out, in]용 Muon. group별 스위치:
    ns: "jordan" | "hybrid" | "polar";  rms: 0.2(Moonlight/K2/Qwen3.8) 또는 0.18(DeepSeek-V4)
    heads: NS 전에 행을 이 개수의 같은 블록으로 분할(K3 Per-Head, GLM-5 Muon Split, V4.1)
    split: fused 행렬의 행 크기들, 예: [q, k, v] 또는 [gate, up](Qwen3.8)
    normuon: NS 뒤 행별 2차 모멘트(NorMuon)."""

    def __init__(self, params, lr=2e-4, momentum=0.95, weight_decay=0.1, rms=0.2, ns="jordan",
                 heads=None, split=None, normuon=False, beta2=0.95):
        super().__init__(params, dict(lr=lr, momentum=momentum, weight_decay=weight_decay, rms=rms,
                                      ns=ns, heads=heads, split=split, normuon=normuon, beta2=beta2))

    @staticmethod
    def _orth_scaled(B: Tensor, group) -> Tensor:              # B: [m, n] 또는 [blocks, m, n]
        return orthogonalize(B, group["ns"]) * (group["rms"] * max(B.size(-2), B.size(-1)) ** 0.5)

    @torch.no_grad()
    def step(self, closure=None):
        loss = None
        if closure is not None:
            with torch.enable_grad():
                loss = closure()
        for group in self.param_groups:
            lr, mu, wd = group["lr"], group["momentum"], group["weight_decay"]
            for p in group["params"]:
                if p.grad is None:
                    continue
                assert p.ndim == 2, "MuonV는 2-D 행렬용이다. 나머지는 AdamW에"
                st = self.state[p]
                if not st:
                    st["m"] = torch.zeros_like(p)
                    if group["normuon"]:
                        st["v"] = torch.zeros(p.size(0), device=p.device, dtype=torch.float32)
                st["m"].mul_(mu).add_(p.grad)
                M = p.grad.add(st["m"], alpha=mu)                     # Nesterov: G + mu * M
                if group["heads"]:                                    # [H, d_h, n]에 batch NS 한 번
                    U = self._orth_scaled(M.view(group["heads"], -1, M.size(1)), group).reshape_as(M)
                elif group["split"]:
                    U = torch.cat([self._orth_scaled(B, group) for B in M.split(group["split"], dim=0)])
                else:
                    U = self._orth_scaled(M, group)
                if group["normuon"]:
                    v = st["v"]
                    v.mul_(group["beta2"]).add_(U.float().pow(2).mean(1), alpha=1 - group["beta2"])
                    U = U / (v.sqrt().unsqueeze(1).to(U.dtype) + 1e-8)
                    U = U * (group["rms"] * U.numel() ** 0.5 / U.norm())
                p.mul_(1 - lr * wd).add_(U, alpha=-lr)
        return loss

@torch.no_grad()
def qk_clip_(w_q: Tensor, w_k: Tensor, s_max: Tensor, tau: float = 100.0, alpha: float = 0.5):
    """MHA용 Kimi K2 head별 QK-Clip([H*d_h, d_model] 가중치, query head마다 key head 하나).
    s_max[h]: 이번 step forward에서 head h의 최대 softmax 전 logit. optimizer.step() 뒤 호출."""
    H = s_max.numel()
    gamma = (tau / s_max.float().clamp_min(tau)).to(w_q.dtype)        # tau 아래 head는 1
    w_q.view(H, -1, w_q.size(1)).mul_(gamma.pow(alpha).view(H, 1, 1))
    w_k.view(H, -1, w_k.size(1)).mul_(gamma.pow(1 - alpha).view(H, 1, 1))

@torch.no_grad()
def muown_step_(W: Tensor, G: Tensor, st: dict, lr: float, mu=0.95, betas=(0.9, 0.95), eps=1e-8):
    """Muown 한 step(Lion et al. 2026, Alg. 1, weight decay 없음): 행 방향 R에는 Muon,
    행 노름 g에는 Adam. 저장하는 가중치는 W = diag(g / ||R||_row) R."""
    if not st:
        n = W.norm(dim=1)
        st.update(r=n.clone(), g=n.clone(), M=torch.zeros_like(W), m=torch.zeros_like(n),
                  v=torch.zeros_like(n), t=0)
    r, g = st["r"], st["g"]
    R = W * (r / g).unsqueeze(1)
    D = R / r.unsqueeze(1)                                            # 단위 노름 행
    g_grad = (G * D).sum(1)                                           # dL/dg
    R_grad = (g / r).unsqueeze(1) * (G - g_grad.unsqueeze(1) * D)     # dL/dR, 반지름 성분 제거
    st["M"].mul_(mu).add_(R_grad)
    R = R - lr * 0.2 * max(W.shape) ** 0.5 * orthogonalize(R_grad.add(st["M"], alpha=mu))
    st["t"] += 1
    b1, b2 = betas
    st["m"].mul_(b1).add_(g_grad, alpha=1 - b1)
    st["v"].mul_(b2).addcmul_(g_grad, g_grad, value=1 - b2)
    g.sub_(lr * (st["m"] / (1 - b1 ** st["t"])) / ((st["v"] / (1 - b2 ** st["t"])).sqrt() + eps))
    r.copy_(R.norm(dim=1))
    W.copy_(R * (g / r).unsqueeze(1))

@torch.no_grad()
def sinkhorn_update(G_hat: Tensor, K: int = 11, tau: float = 1e-3, eps: float = 1e-20) -> Tensor:
    """[vocab, hidden] 테이블(임베딩, head)에 대한 DeepSeek-V4.1의 균형 방향:
    행/열 l2 정규화를 K번 번갈아(K가 홀수면 행으로 끝남) 한 뒤 행 RMS를 1로.
    Nesterov momentum, lr * 0.18과 함께 쓰고 weight decay는 없다."""
    U = G_hat.float()
    rho = U.norm(dim=1)
    U = U * (rho > tau * rho.mean()).unsqueeze(1)                     # 0에 가까운 행은 마스크
    for k in range(1, K + 1):
        U = U / (U.norm(dim=1 if k % 2 else 0, keepdim=True) + eps)
    return (U * U.size(1) ** 0.5).to(G_hat.dtype)

# head H = 64인 MLA 층의 group 예(모양은 DeepSeek-V3/K2와 같음):
# opt = MuonV([
#     {"params": [w_uq, w_uk, w_uv], "heads": 64},       # 높은 MLA up-projection의 head별 블록
#     {"params": [w_qkv_fused], "split": [4096, 1024, 1024]},
#     {"params": other_matrices, "ns": "polar"},
#     {"params": expert_matrices, "normuon": True},
# ], lr=2e-4)
 
확인 문제Check yourself

An MLA query up-projection has 64 heads of 192 rows (12288 rows) and 1536 columns. With exact orthogonalisation (no RMS scaling), how is the squared Frobenius norm of the update shared among heads under whole-matrix Muon and under per-head Muon?

The whole matrix is tall: rank r=1536r=1536, so ∥UV⊤∥F2=1536\|UV^\top\|_F^2=1536, and head hh gets its leverage ℓh=∥Uh∥F2\ell_h=\|U_h\|_F^2 — any split that sums to 1536, concentrated on the heads with large gradients. Per head, each block is 192×1536192\times1536 (wide), msign⁡\operatorname{msign} has 192 unit singular values, so every head gets 192 and the total is 64⋅192=1228864\cdot192=12288. With RMS scaling (0.215360.2\sqrt{1536} per block), every head’s update RMS is exactly 0.2.

확인 문제Check yourself

A dense 8B model has 224 Muon matrices. You train it on 1024 GPUs with whole-matrix owners (each matrix orthogonalised on one GPU). Why does the optimizer step stop getting faster as you add GPUs?

Owner-based schemes parallelise over matrices, not within one. With 224 matrices, 800 of the 1024 GPUs are idle, and NS cost is cubic in the short side, so the 14336×4096 MLP matrices dominate: the step time is that of the busiest GPU. For an MoE with tens of thousands of expert matrices this never bites, which is why the explorer shows near-perfect balance for the K2 shapes; dense models need finer partitions (splitting along heads, TP shards as in MuonBP) or cost-aware placement (Canzona’s α-balanced partitioner).

Summary

  • A Muon step has six slots — partition, pre-transform, orthogonaliser, normaliser, scale/decay, post-step constraint — plus placement (what stays on AdamW) and distribution. Every lab variant is a choice in a few of them.
  • Partition is where the labs converged: Qwen3.8 splits fused matrices, K3 orthogonalises Q, K, V per head, GLM-5’s Muon Split per head on the MLA up-projections (MLA ≈ GQA-8, logits stable without clipping), V4.1 per head on Q and K. The reason is leverage: in a tall matrix the full msign⁡\operatorname{msign} shares a budget of nn among the rows by leverage, so heads with large gradients take most of it; per head every head gets the same RMS, and NS is cheaper.
  • Orthogonaliser and normaliser: DeepSeek-V4’s Jordan ×8 + (2, −1.5, 0.5) ×2, Qwen3.8’s Polar Express ×8 (adopted for stability under stress); NorMuon equalises rows, AdaMuon adds elementwise adaptivity, Muown trains row norms with Adam (MiMo-V2.6), and V4.1 replaces Adam for embeddings and the head with Sinkhorn-balanced momentum.
  • Logit growth got four answers: clip weights (K2, K3), normalise q/KV (V4), split per head (GLM-5), stabilise the residual (Qwen3.8). Low-rank collapse is not a documented failure; full-rank updates and router instability, elongated matrices and optimizer mismatch are.
  • Hyperparameters: RMS matching (0.2, or 0.18) makes AdamW-scale learning rates carry over, but optima move (Qwen3.8: larger batch and lr, no batch warm-up); MAI’s η⋆λ⋆=17.04/steps\eta^\star\lambda^\star=17.04/\text{steps} follows from the decay time scale 1/(ηλ)1/(\eta\lambda).
  • Distribution decides the overhead: whole-matrix owners or all-to-all resharding (DeepSeek knapsack, Canzona, K3 P2P, GLM-5, MAI-Base-2 at 2.1% of iteration time) beat gathering everything; MoEs balance easily, dense models need cost-aware placement and a capped shard degree (owner padding grows with NN); Dion and MuonBP avoid the full gather at a quality price.
확인 문제Check yourself

MLA query up-projection이 192행짜리 head 64개(12288행)와 1536열이다. 정확한 직교화(RMS 스케일 없음)에서 업데이트의 Frobenius 노름 제곱은 행렬 통째 Muon과 head별 Muon에서 각각 head들에 어떻게 나뉘는가?

행렬 전체는 높다. rank r=1536r=1536이므로 ∥UV⊤∥F2=1536\|UV^\top\|_F^2=1536이고, head hh는 자기 leverage ℓh=∥Uh∥F2\ell_h=\|U_h\|_F^2를 받는다. 합이 1536인 어떤 분배든 될 수 있고, 기울기가 큰 head에 몰린다. head별이면 각 블록이 192×1536192\times1536(넓음)이라 msign⁡\operatorname{msign}의 단위 특이값이 192개이므로 모든 head가 192를 받고 합은 64⋅192=1228864\cdot192=12288이다. RMS 스케일(블록마다 0.215360.2\sqrt{1536})을 곱하면 모든 head의 업데이트 RMS가 정확히 0.2다.

확인 문제Check yourself

dense 8B 모델에 Muon 행렬이 224개다. 행렬 owner 방식(행렬마다 GPU 하나에서 직교화)으로 GPU 1024개에서 학습한다. GPU를 늘려도 optimizer step이 더 빨라지지 않는 이유는?

owner 방식은 행렬 사이에서 병렬화하지 행렬 안에서 하지 않는다. 행렬이 224개면 1024 GPU 중 800개가 논다. 그리고 NS 비용은 짧은 변에 세제곱이라 14336×4096 MLP 행렬이 지배하고, step 시간은 가장 바쁜 GPU의 시간이다. expert 행렬이 수만 개인 MoE에서는 이 문제가 생기지 않으며, 그래서 탐색기가 K2 모양에서 거의 완벽한 균형을 보인다. dense 모델에는 더 잘게 나누거나(head 방향 분할, MuonBP처럼 TP shard) 비용을 고려한 배치(Canzona의 α-balanced partitioner)가 필요하다.

정리

  • Muon step에는 여섯 칸(분할, 전처리, 직교화기, 정규화, 스케일·decay, 사후 제약)이 있고, 여기에 배치(무엇을 AdamW에 남기나)와 분산이 더해진다. lab의 변형은 모두 그중 몇 칸의 선택이다.
  • lab들이 수렴한 곳은 분할이다. Qwen3.8은 fused 행렬을 쪼개고, K3는 Q, K, V를 head별로, GLM-5의 Muon Split은 MLA up-projection을 head별로(MLA ≈ GQA-8, clipping 없이 logit 안정), V4.1은 Q와 K를 head별로 직교화한다. 이유는 leverage다. 높은 행렬에서 전체 msign⁡\operatorname{msign}은 nn짜리 예산을 행들에 leverage대로 나누므로 기울기가 큰 head가 대부분을 가져간다. head별이면 모든 head가 같은 RMS를 받고 NS도 싸다.
  • 직교화기와 정규화: DeepSeek-V4의 Jordan ×8 + (2, −1.5, 0.5) ×2, Qwen3.8의 Polar Express ×8(stress 아래 안정성 때문에 채택). NorMuon은 행을 고르게, AdaMuon은 원소별 적응을 더하고, Muown은 행 노름을 Adam으로 학습하며(MiMo-V2.6), V4.1은 임베딩과 head에서 Adam을 Sinkhorn 균형 momentum으로 바꿨다.
  • logit 증가에는 네 답이 나왔다. 가중치 clip(K2, K3), q/KV 정규화(V4), head별 분할(GLM-5), residual 안정화(Qwen3.8). 저랭크 붕괴는 문서화된 실패가 아니다. full-rank 업데이트, router 불안정, 길쭉한 행렬, 옵티마이저 불일치가 문서화된 실패다.
  • 하이퍼파라미터: RMS 맞춤(0.2 또는 0.18) 덕분에 AdamW 스케일 학습률이 이전되지만 최적점은 움직인다(Qwen3.8: 더 큰 batch와 lr, batch warmup 없음). MAI의 η⋆λ⋆=17.04/steps\eta^\star\lambda^\star=17.04/\text{steps}는 decay 시간 상수 1/(ηλ)1/(\eta\lambda)에서 나온다.
  • 분산이 오버헤드를 정한다. 행렬 owner나 all-to-all 재샤딩(DeepSeek knapsack, Canzona, K3 P2P, GLM-5, 반복 시간 2.1%의 MAI-Base-2)이 전부 gather보다 낫다. MoE는 균형 맞추기 쉽고 dense 모델은 비용을 고려한 배치와 shard 차수 상한이 필요하다(owner padding이 NN과 함께 커진다). Dion과 MuonBP는 품질을 대가로 전체 gather를 피한다.

더 읽을거리Further reading