Full text not available for this paper
Summary (Overview)
- Cost-free spectral estimation from Newton–Schulz: The paper shows that the intermediate Gram matrices formed during Newton–Schulz (NS) iterations already contain sufficient information to estimate the input's singular-value spectrum via inexpensive scalar reductions (traces and Frobenius norms), requiring no additional matrix multiplications.
- Spectrum-adaptive orthogonalization: Using these moments, the authors fit a maximum-entropy spectral measure and use it to select a specialized Polar Express (PE) polynomial routine per matrix, replacing the standard fixed conservative routine used for all layers and throughout training.
- Theoretical guarantees: They prove (Theorem 1) that broader spectral intervals strictly increase minimax error at fixed depth, and (Theorem 2) that the fitted spectrum predicts spectral averages (like RMS error) with bounded error, even when the spectrum is not uniquely identifiable.
- Empirical validation: Offline, spectral estimation reduces polar RMS error by up to 90× on saved MLP momentum matrices at K=5 iterations, and reaches target accuracy with fewer iterations (e.g., 5 vs. 12 for MLP). In GPT pretraining (160M–1B params), it consistently improves validation loss for both Muon and Online KL Shampoo (OKLS) optimizers.
- Practical efficiency: The added cost is negligible—scalar reductions add ~3r² work per iteration (a fraction 3/(2n+r) of the iteration), and the fit runs on a fixed grid on CPU, independent of matrix size. For a 1B Muon model, this adds under 1ms of GPU time and 4ms CPU per step.
Introduction and Theoretical Foundation
Background and Motivation
Matrix optimizers (Muon, Shampoo, SOAP, Dion, OKLS) are increasingly popular for neural network training, with Muon adopted in systems like DeepSeek-V4, GLM-5, and Kimi K3. Muon approximately orthogonalizes momentum matrices via a small number of Newton–Schulz iterations, replacing expensive SVDs with hardware-efficient matrix multiplications.
The key observation is that the difficulty of orthogonalization depends strongly on the input's singular-value spectrum, and spectra vary significantly across:
- Matrix types (attention vs. MLP)
- Layers (deeper layers often have broader spectra)
- Training time (spectra evolve as training proceeds)
A conservative routine designed for the hardest case (broadest spectrum) wastes iterations on easier cases (narrow spectra).
Theoretical Foundation
Newton–Schulz iteration. For with , a quintic iteration takes the form:
If , then after iterations:
Polar Express (PE) chooses coefficients by minimizing worst-case error over a prescribed spectral interval :
The only relevant parameter is the ratio (after rescaling the upper endpoint to 1). A broader interval (smaller ) defines a harder problem.
Theorem 1 (Interval width and minimax error). Let be the minimum uniform error on over all compositions of odd polynomials of degree ≤ 5. Then:
and for :
This establishes that broader intervals require strictly more iterations to reach a given accuracy.
RMS error metric. For normalized nonzero singular values :
This is the squared relative Frobenius error to the polar factor. Minimizing worst-case error need not minimize this average—allowing larger error in a sparse tail can improve accuracy over the bulk.
Methodology
4.1 Spectral Moments from the Newton–Schulz Computation
The core insight is that the intermediate matrices and expose even spectral moments of orders 2–8 via scalar reductions, with no additional matrix multiplications.
Measurement pass (Algorithm):
Require: X_0, coefficients (a_j, b_j, c_j)
for j = 0, ..., K_meas - 1 do
A_j ← X_j X_j^⊤ (1)
B_j ← A_j A_j (2)
(m_{2,j}, m_{4,j}) ← (tr A_j, ‖A_j‖_F²)/r
(m_{6,j}, m_{8,j}) ← (⟨A_j, B_j⟩_F, ‖B_j‖_F²)/r
C_j ← b_j A_j + c_j B_j
X_{j+1} ← a_j X_j + C_j X_j (3)
end for
Read ‖X_{K_meas}‖_F²/r
(1)–(3) are existing matrix products; purple marks added scalar reductions.
Proposition 1 (Spectral moments from the iteration). In exact arithmetic:
where , , and is the empirical scaled spectrum. This gives scalar measurements total.
4.2 Fitting a Spectrum via Maximum Entropy
The method recovers a discrete spectral measure from the measurements using a maximum-entropy moment fit. With masses on grid points and :
The two-stage optimization is:
Both problems are convex. The normalization uses the CANS Gram-power upper bound , which safely bounds the spectrum from above.
4.3 Prediction Guarantee
Theorem 2 (Prediction from the fitted spectrum). Let be the true spectral measure, the measurement functions with observations satisfying . Let solve (11) and define . For any bounded measurable and affine combination with :
The three terms capture: how well is represented by the measured functions, error in observations, and the fit residual.
4.4 Routine Selection
The fitted spectrum scores a precomputed set of PE routines. Each candidate has true and predicted squared RMS errors:
Two selection objectives:
- Fixed-depth rule: picks the best routine at a given depth :
- Target rule: picks the shortest routine predicted to meet accuracy :
Measurements are taken every steps (spectra change gradually), with fitting/selection running in the background.
Empirical Validation / Results
5.1 Offline Orthogonalization of Real Spectra
Evaluated on saved Muon momentum spectra from a FineWeb run. Baselines: fixed conservative PE on and a minimax oracle (exact spectrum).
Table 1: Fixed-depth polar error (mean per-matrix RMS and worst-case error):
| | RMS error | | | Worst-case error | | | |---|---|---|---|---|---| | K | Fixed PE | Ours | Oracle | Fixed PE | Ours | Oracle | | Attention | | | | | | | | 5 | 0.667 | 0.472 | 0.653 | 0.976 | 0.982 | 0.966 | | 8 | 0.159 | 0.0431 | 0.104 | 0.222 | 0.353 | 0.161 | | MLP | | | | | | | | 5 | 0.626 | 0.00694 | 0.0179 | 0.976 | 0.0643 | 0.0266 | | 8 | 0.162 | 0.00101 | 1.13×10⁻⁶ | 0.222 | 0.00153 | 1.78×10⁻⁶ |
Key findings:
- 90× reduction in mean polar RMS error for MLP matrices at K=5 relative to fixed PE
- Spectral estimation has lower RMS error than the minimax oracle on attention through K=9 and on MLP through K=6 (because it optimizes RMS, not worst-case)
- With target accuracy, spectral estimation picks shorter routines (e.g., MLP needs 5 vs. 12 iterations for τ=10⁻²)
5.2 LLM Pretraining
GPT-style decoder-only models (160M, 300M, 1B non-embedding params) trained on 20B tokens of Nemotron-CC v2 High-Quality. Both Muon (polar factor) and OKLS (inverse square roots via coupled NS) were tested.
Table 3: Pretraining across optimizers and sizes (final validation loss, K=5, T=200):
| | Muon | | | OKLS | | | |---|---|---|---|---|---| | Size | Fixed | Oracle | Ours | Fixed | Oracle | Ours | | 160M | 2.761 | 2.752 | 2.751 | 2.687 | 2.675 | 2.673 | | 300M | 2.662 | 2.654 | 2.655 | 2.597 | 2.591 | 2.590 | | 1B | 2.455 | 2.450 | 2.449 | 2.449 | 2.439 | 2.436 |
Table 4: Muon 160M across depths (final validation loss):
| K | Fixed | Ours |
|---|---|---|
| 4 | 2.808 | 2.791 |
| 5 | 2.761 | 2.751 |
| 6 | 2.754 | 2.752 |
| 8 | 2.752 | 2.752 |
Key findings:
- Spectral estimation improves on the fixed baseline for both optimizers at every model size
- It matches or improves on periodic selection from exact SVD/eigendecomposition (oracle)
- With only 5 iterations, our method reaches lower loss than the fixed baseline at any depth—adaptation can replace extra iterations
Cost Analysis
Table 14: Added cost of each spectrum estimator for , (one NS iteration costs ):
| Method | Extra products | Work that grows with M | Fixed work |
|---|---|---|---|
| Ours | none | ≈ 3r² per iteration | fit, scoring |
| SVD (singular values) | – | O(r²n) | – |
| Gram eigenvalues | – | O(r²n + r³) | – |
For the 1B Muon model (N=168, K=5, T=200, ~40s/step): under 1ms of reductions, 0.025 iterations, and 4ms CPU per step.
Theoretical and Practical Implications
Theoretical Implications
-
Newton–Schulz is self-measuring: The intermediate matrices of the iteration are not just computational byproducts—they encode spectral information that can be extracted at negligible cost. This reframes the problem: matrix-function operations inside optimizers need not be designed for a conservative worst-case spectrum.
-
Error bounds for spectral prediction: Theorem 2 provides a rigorous bound on the error of predicting spectral averages from finitely many moments. The bound decomposes into three interpretable terms: representation error, observation error, and fit residual. This connects to the broader theory of moment problems (Krein–Nudel'man) and spectral density estimation.
-
Optimality of spectrum-adaptive design: Theorem 1 formalizes that wider design intervals strictly degrade minimax error at fixed depth, providing theoretical justification for adapting the routine to the actual spectrum rather than covering all possible cases.
Practical Implications
-
Immediate cost savings: The method requires no additional matrix multiplications, and the fit runs on a fixed grid on CPU, independent of matrix size. This makes it applicable at frontier model scales where exact spectra are prohibitively expensive.
-
Applicable to multiple optimizers: The same measure-fit-select procedure works for both Muon (polar factor) and OKLS (inverse square roots), suggesting broad applicability to any Newton–Schulz-based matrix optimizer.
-
Adaptation replaces computation: The results show that per-matrix spectral adaptation can achieve the same accuracy with fewer iterations, or better accuracy at the same cost—effectively substituting cheap measurement for expensive computation.
-
Future directions: The method can be combined with other optimizations (Gram NS, communication-efficient variants like Dion), and the grouped selection idea could benefit mixture-of-experts models.
Conclusion
The paper demonstrates that Newton–Schulz orthogonalization does not need to treat the spectrum it processes as unknown—the iteration itself produces the measurements needed to specialize its own computation. Key contributions:
-
Spectral moments at negligible cost: The Gram matrices formed inside NS iterations yield spectral moments through scalar reductions, with no additional matrix multiplications.
-
Spectrum-adaptive selection: A maximum-entropy fit recovers enough spectral structure to select a specialized polynomial routine for each matrix, responding to differences across layers and training time.
-
Comprehensive validation: Offline, spectral estimation reduces polar RMS error by up to 90× at fixed iteration budget or reaches the same accuracy with fewer iterations. In GPT pretraining up to 1B parameters, it improves validation loss for both Muon and OKLS.
The results suggest a broader principle: matrix-function operations inside optimizers can cheaply measure the spectrum they are already processing and specialize computations accordingly, rather than being designed for a conservative worst-case spectrum. Useful adaptation does not require recovering the spectrum exactly—only predicting which candidate routine will work well.
Related papers
- On-Demand Attention: Language Models Know When to Recall
On-demand attention uses a lightweight recall head to predict when global attention helps, recovering most quality with up to 2.65x decoding throughput.
- How Linear Attention Remembers
Linear attention memory stores facts via concentrated content-specific writes and retrieves them via focused query-time reads, with hybrid models shifting recall to full-attention KV caches.
- Counterexamples to Local Reconstruction Gain as a Proxy for Final Fidelity in Residual Completion
Local attention-output reconstruction gains do not guarantee final-model fidelity, as residual completion can improve local error while worsening dense-model KL divergence.