Dion3: Full-Stack Orthogonal Updates — Summary
Summary (Overview)
- Dion3 is a comprehensive revision of the Muon optimizer that reduces the computational and communication overhead of its cubic-time Newton-Schulz orthogonalization step, achieving up to 6× speedup in optimizer step time while matching or improving training quality.
- The paper presents four compounding contributions: (1) Gram Newton-Schulz, a mathematically equivalent reformulation that reduces FLOP cost; (2) custom symmetric GEMM kernels in CuteDSL that exploit matrix symmetry; (3) a fractional row-selection update rule that orthogonalizes only a subset of momentum rows; and (4) megabatched communication to reduce distributed training overhead.
- The Gram Newton-Schulz algorithm reduces FLOPs from to , a significant saving for large aspect ratios ; for typical transformer MLP blocks (), this saves 55% of FLOPs versus standard Newton-Schulz with symmetric GEMMs.
- Dion3 with (selecting only 25% of momentum rows) not only matches but improves validation loss across model scales from 3B to 14B parameters, with the largest gain of -0.027 loss and +0.7% downstream accuracy at 14B.
- The method is implemented in two open-source, pip-installable packages (
dionandgram-newton-schulz), serving as drop-in replacements for Muon.
Introduction and Theoretical Foundation
Background and Motivation
Muon has become the optimizer of choice for frontier LLMs (e.g., Kimi K2, GLM-5) due to its ability to reach a given loss in fewer steps than AdamW. However, each Muon step is more expensive due to the Newton-Schulz orthogonalization — a cubic-time matrix operation. As model sizes grow, this overhead scales super-linearly, and distributed training adds communication costs that further erode Muon's benefits.
Muon Update Rule
The Muon optimizer is best described as steepest-descent with respect to the spectral norm. The update rule is:
where is the momentum coefficient, is the learning rate, is the momentum matrix, and the polar decomposition is:
Definition 1 (Polar Decomposition). If is the SVD of a matrix, then .
NorMuon Variant
NorMuon adds Adam-style per-neuron adaptive normalization:
Standard Newton-Schulz
The standard Newton-Schulz iteration applies degree-5 odd polynomials to approximate the polar decomposition:
Each iteration preserves singular vectors and transforms singular values via polynomial composition. With normalization , all singular values lie in , and the iterates converge to .
FLOP Analysis of Standard Newton-Schulz: For an matrix with aspect ratio and iterations:
With , this is FLOPs spread across 15 GEMMs.
Key Challenges Identified
- Super-linear complexity: Orthogonalization requires time versus linear scaling for Adam.
- Distributed training: Weight sharding requires all-to-all communication to assemble matrices before orthogonalization.
- Symmetric structure ignored: The matrices and are symmetric but standard implementations don't exploit this.
- Aspect ratio dependence: Rectangular matrix multiplications dominate the cost, and modern MoE architectures have increasing aspect ratios.
Methodology
1. Gram Newton-Schulz
Core Theorem — The key insight is that odd polynomials can be rewritten as , enabling iteration on the small symmetric Gram matrix instead of the full rectangular matrix:
Theorem 2. If for all , then , where is defined by the iteration , , and
Algorithm Structure (Naive Version):
- Compute the Gram matrix
- Iterate to approximate
- Output
FLOP Analysis: With symmetric GEMMs costing FLOPs each:
This compares favorably to standard Newton-Schulz's FLOPs with symmetric GEMMs.
Stabilization via Restarting: The naive version suffers from spurious negative eigenvalues in the Gram matrix due to half-precision rounding errors. The fix: run only the first two iterations, compute , then restart with as the new input (recomputing the Gram matrix). This resets spurious eigenvalues at the cost of FLOPs.
Algorithm 3 (Stabilized Gram Newton-Schulz) uses:
- A restart at iteration
- float16 instead of bfloat16 for casting
- Reformulated intermediate polynomials for stability
2. Symmetric GEMM Kernels in CuteDSL
Custom GPU kernels for operations and where and are symmetric:
- Triangular Scheduler: Only lower-triangle tiles (including diagonal) are computed and assigned to thread block clusters.
- Transposed Tile Epilogue: Computed lower-triangle results are copied to their transposed locations in the upper triangle.
These kernels target NVIDIA Hopper and Blackwell architectures and achieve ~2× speedup over cuBLAS for large enough .
3. Dion3 Update Rule (Fractional Row Selection)
Algorithm 4 (Dion3 update rule, single weight matrix):
- Selection: Pick the rows of with largest norm (where is the compression factor)
- Orthogonalization: Compute using Gram Newton-Schulz
- Weight update: Update only selected rows of
- Error Feedback: Decay only selected rows of by factor
The error feedback mechanism differs from standard momentum: instead of , it uses , where matches at selected rows and is zero elsewhere. This boosts the residual component, encouraging future iterations to select previously ignored rows.
Key implementation details:
- A custom Triton kernel restores numerical fusion for the weight update (avoiding precision loss from multiple upcast/downcast rounds)
- NorMuon normalization steps run in float32
- CUDA graph capture minimizes kernel launch overhead at small scales
4. Megabatched Communication
Instead of batching matrices in groups of world_size, megabatching groups all matrices of the same shape into a single batch:
- Pack local momentum shards into one all-to-all
- Assemble, orthogonalize as a batch, scatter back together
- Reduces communication rounds from to per optimizer step
This is especially effective when the optimizer is communication-bound (small models, few shards).
Empirical Validation / Results
Model Quality
Learning-Rate Transfer Rule: The optimal learning rate for fraction scales as . This is derived from matching Frobenius norms: for Muon versus for Dion3, giving .
Key Results (1B-parameter models, 100B tokens of ClimbMix):
- Dion3 with outperforms fully-tuned NorMuon when learning rate is properly scaled
- Lowest loss achieved at (approximately 0.01 lower than NorMuon)
- All Dion3 variants track below the NorMuon baseline throughout training
Scaling Results (10B tokens, 3B–14B parameters):
| Model Size | NorMuon Loss | Dion3 () Loss | Δ Loss | NorMuon Acc (%) | Dion3 Acc (%) | Δ Acc |
|---|---|---|---|---|---|---|
| 3B | 2.269 | 2.257 | -0.012 | 53.9 | 54.9 | +1.0 |
| 4B | 2.243 | 2.232 | -0.011 | 55.2 | 54.9 | -0.3 |
| 7B | 2.220 | 2.206 | -0.014 | 56.0 | 56.1 | +0.1 |
| 14B | 2.189 | 2.162 | -0.027 | 57.4 | 58.1 | +0.7 |
Dion3 improves validation loss at every scale (largest gain at 14B: -0.027) and wins downstream accuracy at 3 of 4 scales.
Optimizer Speedup
Figure 6 results (optimizer step time relative to standard Muon):
- Symmetric kernels + Gram Newton-Schulz: 1.5× combined speedup
- Adding : additional 2× reduction
- Adding : additional 3.7× reduction
- Overall: 3.6× () and 6.5× () speedup over standard Muon for larger models
- For MoE architectures (higher aspect ratios ), Gram Newton-Schulz + symmetric kernels alone achieve 2× speedup
Megabatching impact (Muon, per-GPU optimizer step time):
| Model Size | Nodes | FSDP Shards | Batching (ms) | Megabatching (ms) | Change |
|---|---|---|---|---|---|
| 1B | 1 | 8 | 80.7 | 52.1 | -35% |
| 1B | 4 | 32 | 61.9 | 59.3 | -4% |
| 14B | 1 | 8 | 144.0 | 140.8 | -2% |
| 14B | 4 | 32 | 94.7 | 89.1 | -6% |
Megabatching has the largest impact when the optimizer is communication-bound (small models, few shards).
Theoretical and Practical Implications
Theoretical Contributions
-
Gram Newton-Schulz provides a mathematically elegant reformulation showing that Newton-Schulz iterations implicitly compute inverse square roots of the Gram matrix. The complexity improvement from to is a fundamental algorithmic advance.
-
Stability analysis identifies spurious negative eigenvalues from half-precision arithmetic as the key failure mode, with a practical restart strategy that fully mitigates the issue.
-
The learning-rate transfer rule () provides a principled way to adjust hyperparameters when compressing the update.
Practical Contributions
-
Full-stack optimization: The four contributions operate at different levels (kernels → algorithm → update rule → communication), compounding for maximum benefit.
-
Drop-in replacement: The
dionandgram-newton-schulzpackages make Muon-family optimizers practical across a wide range of settings without architectural or parallelism constraints. -
Unexpected quality improvement: The finding that subsampling rows improves training quality (rather than merely approximating Muon) is surprising and suggests that partial updates may act as a form of regularization or implicit momentum diversity.
-
Kimi's success demystified: The paper explains that Muon's successful scaling at Moonshot AI relied on a fragile alignment of deprecated PyTorch features, fine-grained MoE architecture, and specific parallelism strategies — all of which Dion3 makes unnecessary.
Conclusion
Dion3 addresses the scalability challenges of Muon at every level of the stack:
- Gram Newton-Schulz reduces FLOP cost by iterating on the small symmetric Gram matrix
- CuteDSL symmetric kernels exploit matrix symmetry for ~2× speedup over cuBLAS
- Fractional row selection () provides an additional 3.7× speedup while improving training quality
- Megabatching reduces communication rounds to per step
The combined system achieves up to 6× faster optimizer steps than standard Muon while matching or improving loss. The unexpected quality improvement from subsampling warrants further investigation — the authors note support from Joo et al. [18], who showed that randomly masking update blocks improves SGD with momentum.
Future directions include:
- Understanding how widely the quality improvement generalizes across architectures and datasets
- Exploring alternative selection strategies beyond top--norm rows
- Extending the approach to other orthogonalization-based optimizers
The packages are available as open-source, making orthogonal optimizers practical and accessible for general-purpose LLM training.
Related papers
- HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
HARNESSOPT-BENCH shows optimizer model choice matters 1.8x more than coding harness choice for agent improvement, with broader search driving gains and trace reading providing no benefit.
- Dense Contexts Are Hard Contexts: Lexical Density Limits Effective Context in LLMs
Lexical density, not just length, causally degrades LLM retrieval, activating lost-in-the-middle effects at contexts far below advertised limits.
- COBS: Cumulant Order Block Sparse Attention
COBS stores compressed per-block key covariances to raise block sparse attention selection from first-order to second-order approximations, closing 86% of the gap to dense attention with minimal extra KV cache reads.