The Muon optimizer has recently taken the machine learning world by storm, showing impressive speedups over Adam in training large language models like DeepSeek-V3. Despite its empirical success, we’ve lacked a rigorous mathematical understanding of why it works and when it might actually fail.
A new paper, "Phases of Muon: When Muon Eclipses SignSGD," provides the first exact theoretical analysis of Muon’s dynamics. By leveraging high-dimensional random matrix theory, the authors map out the conditions under which spectral optimizers like Muon outperform diagonal optimizers like Adam.
TL;DR
This paper derives the exact deterministic dynamics of the Muon optimizer, revealing that its power comes from performing "square-root preconditioning" on the data. The authors identify a critical batch size ($B=N$) required for Muon to fully resolve the gradient's spectrum and present a phase diagram showing that Muon is most effective for "hard," bias-dominated problems where the target signal is hidden in small eigenvalues.
What Problem Does This Paper Address?
Most popular optimizers, including Adam, use diagonal preconditioning. This means they scale the learning rate for each parameter independently based on historical gradients. However, neural network parameters are naturally organized as matrices, and diagonal methods ignore this structure.
Muon is a "spectral" optimizer that performs whitening on matrix-valued gradients. It uses Newton–Schulz iterations to ensure the update matrix has singular values equal to one. While Muon has shown great promise, its relationship with batch size, matrix dimension, and data anisotropy (the "shape" of the data distribution) was poorly understood. This paper seeks to answer: What are the necessary conditions for Muon to outperform Adam?
Methods
The authors analyze a high-dimensional matrix-valued least squares problem. To make the math tractable, they compare two idealized algorithms:
- SignSVD: The theoretical limit of Muon (exact spectral whitening).
- SignSGD: A proxy for Adam (entrywise sign updates).
Using Random Matrix Theory (RMT), they derive a set of deterministic equations that track the "risk" (loss) over time. Instead of running thousands of expensive simulations, these equations allow researchers to predict the entire training trajectory of the optimizer based on a few key parameters like batch size ($B$), dimension ($N$), and the data covariance spectrum.
Datasets
As a theoretical work, the paper uses synthetic data models designed to mimic real-world conditions:
- Isotropic Data: Where all directions in the data space are equally important.
- Anisotropic Power-Law Data: Where the importance of different directions follows a power law ($\mu_i = i^{-\alpha}$). This is a common property of real-world datasets like natural images or text.
- Teacher-Student Setup: A fixed "teacher" matrix $W^*$ defines the target, and the optimizer tries to find it.
Key Insights and Ideas
- The $\sqrt{N}$ "Moonshot" Rule: The paper rigorously confirms an empirical observation: Muon requires a learning rate roughly $\sqrt{N}$ times larger than Adam-like methods to be optimal.
- The Critical Batch Size ($B=N$): A major "aha" moment is the discovery that batch size acts as a spectral resolution scale. If your batch size $B$ is smaller than the dimension $N$, Muon can only "see" and whiten the top $B$ eigenmodes. The remaining modes behave like standard SGD, slowing down convergence.
- Square-Root Preconditioning: For large batches, Muon effectively performs a square-root preconditioning of the covariance matrix. This makes it behave like an optimal momentum method, accelerating convergence on strongly convex problems.
- The Phase Diagram of Performance: The authors show that Muon isn't always better. They define three phases in the $(\alpha, \beta)$ plane (where $\alpha$ is data decay and $\beta$ is target decay):
- Phase A (Hard): Muon is uniformly better.
- Phase B (Mixed): SignSGD starts faster, but Muon wins in the long run.
- Phase C (Easy): SignSGD is uniformly better.
Key Results
The theoretical predictions match numerical simulations with startling accuracy.
- Isotropic Parity: On perfectly uniform data, Muon and SignSGD actually have the same convergence rate if both are tuned optimally. Muon’s advantage is purely a product of dealing with anisotropic (non-uniform) data.
- Anisotropic Speedup: In "Phase A" (high-rank, bias-dominated problems), the gap between Muon and SignSGD diverges polynomially as the target error $\epsilon$ goes to zero. This means Muon can be orders of magnitude faster in reaching high-precision solutions.
- Momentum Robustness: The authors found that adding heavy-ball momentum (as used in the actual Muon implementation) doesn't change the fundamental convergence rate (the slope of the loss curve), but it does shift the "noise floor" of the optimizer.
Limitations and Future Work
While this paper provides a massive leap in understanding, the authors note several areas for future exploration:
- Feature Learning: The current model uses a fixed quadratic objective. It doesn't yet account for how Muon interacts with the changing internal representations (feature learning) of a deep neural network.
- Non-linear Dynamics: Effects like "edge-of-stability," where the optimizer operates at the brink of divergence to find better minima, are not yet captured.
- Generalization: The paper focuses on "training risk." Whether Muon’s spectral bias leads to better generalization on unseen data remains an open question for high-dimensional analysis.
By providing a rigorous framework, this work moves Muon from an "empirical trick" to a mathematically grounded tool, helping researchers design better optimizers for the next generation of AI models.
Summary updated