TL;DR
The Muon optimizer has shown impressive empirical results for training deep models and LLMs by orthogonalizing momentum matrices, but its mathematical guarantees have lagged behind. This paper establishes a rigorous theoretical foundation for Muon, proving that a two-batch variance-reduced variant (Muon-MVR2) achieves the theoretically optimal $\tilde{\mathcal{O}}(T^{-1/3})$ iteration complexity in stochastic non-convex optimization and accelerated last-iterate convergence under the Polyak–Łojasiewicz (PŁ) condition.
What Problem Does This Paper Address?
Modern neural network pre-training heavily relies on adaptive optimizers like AdamW. Recently, Muon emerged as a compelling alternative that preconditions matrix-structured weights by projecting momentum updates onto the Stiefel manifold of orthogonal matrices (typically via efficient Newton–Schulz iterations). Despite its empirical speedups in training large language models (LLMs), existing theoretical analyses suffered from major deficiencies:
- Unrealistic assumptions: Prior bounds often relied on batch sizes that grew arbitrarily large or depended heavily on problem dimensions.
- Mathematical fallacies: Some earlier proofs rested on flawed matrix inequalities (e.g., mistakenly assuming $\|S^{-1}\|_2 \le 1/\|S\|_2$).
- Suboptimal convergence rates: Existing valid proofs only showed a standard $\mathcal{O}(T^{-1/4})$ iteration rate, leaving open whether Muon could match the optimal lower bound for stochastic non-convex optimization.
Methods
The authors analyze Muon within an unconstrained, constant mini-batch stochastic optimization framework, coupling matrix orthogonalization with two momentum-based variance-reduction (MVR) techniques:
-
Algorithm Framework: At each step $t$, a momentum buffer $M_t$ is constructed. The update matrix is computed via orthogonal projection $O_t = (M_t M_t^\top)^{-1/2} M_t$, and parameters update via $X_{t+1} = X_t - \eta_t O_t$.
-
Muon-MVR1 (One-Batch Approximation): Reuses the stochastic gradient from the previous step: $$M_t = \beta_t M_{t-1} + (1 - \beta_t)\nabla f(X_t; \xi_t) + \gamma \beta_t (\nabla f(X_t; \xi_t) - \nabla f(X_{t-1}; \xi_{t-1}))$$ When $\gamma = 0$, this recovers standard momentum/EMA; when tuned, it implements a Nesterov-like acceleration with a single gradient evaluation per step.
-
Muon-MVR2 (Two-Batch Principled Variance Reduction): Evaluates the previous iterate on the current mini-batch $\xi_t$: $$M_t = \beta_t M_{t-1} + (1 - \beta_t)\nabla f(X_t; \xi_t) + \gamma \beta_t (\nabla f(X_t; \xi_t) - \nabla f(X_{t-1}; \xi_t))$$ This cancels mini-batch variance directly at the cost of two gradient evaluations per step.
Datasets
The authors evaluated their algorithms on two standard benchmarks without introducing new datasets:
- CIFAR-10: Image classification using ResNet-18 (42.7M parameters) trained for 100 epochs with batch size 128 across five random seeds.
- C4 (Colossal Clean Crawled Corpus): Language model pre-training with LLaMA2-130M over 12 billion tokens (20,000 steps, batch size 128, sequence length 4,096) on 48 Ascend 910C NPUs.
Key Insights and Ideas
- Reaching the Theoretical Limit $\tilde{\mathcal{O}}(T^{-1/3})$: By combining two-batch variance reduction with a tightly coupled learning rate ($\eta_t = t^{-2/3}$) and momentum parameter ($\beta_t = 1 - \eta_t$), Muon-MVR2 achieves the optimal $\tilde{\mathcal{O}}(T^{-1/3})$ iteration complexity for non-convex stochastic optimization with fixed mini-batches, matching known theoretical lower bounds.
- Explicit Dimension Dependencies: Unlike prior works that hide constants, the authors explicitly trace how matrix dimensions ($n$) and gradient noise ($\sigma$) scale in the bounds, demonstrating that prefactors grow linearly rather than exponentially or super-linearly with matrix rank.
- Non-Ergodic (Last-Iterate) Convergence Under PŁ: Under the Polyak–Łojasiewicz (PŁ) condition, the orthogonalization update prevents standard linear recursions. The authors develop a novel potential analysis based on $\Delta_{t+1} \le \Delta_t - c \cdot t^{-p}\sqrt{\Delta_t} + \Gamma_t$, yielding last-iterate convergence rates of $\tilde{\mathcal{O}}(T^{-1/2})$ for Muon-MVR1 and $\tilde{\mathcal{O}}(T^{-2/3})$ for Muon-MVR2.
- Theory vs. Practice Trade-Off: While MVR2 offers superior theoretical iteration complexity, its requirement for two gradient evaluations doubles per-step computational overhead. In practice, MVR1 provides nearly identical validation improvements with half the wall-clock cost.
Key Results
- Vision (ResNet-18 on CIFAR-10): All Muon variants converged faster and reached lower final test loss/error than SGD and Adam. Muon-MVR2 achieved the highest test accuracy (~95.5% vs. ~93.5% for Adam and SGD).
- Language Modeling (LLaMA2-130M on C4):
- Muon variants consistently outperformed AdamW and MARS-AdamW across learning rates, reaching lower validation loss (~3.22 vs. ~3.32 for AdamW).
- Muon-MVR2 achieved the lowest per-step loss, though Muon-MVR1 achieved the best wall-clock Pareto efficiency.
- Robustness: Sweeping the variance reduction parameter $\gamma \in \{0.01, 0.025, 0.05\}$ showed minimal sensitivity, with final validation perplexities remaining stable near ~25.0.
Limitations and Future Work
- Exact vs. Inexact Orthogonalization: The theory assumes exact SVD-based matrix orthogonalization, whereas practical implementations rely on approximate quintic Newton–Schulz iterations. Theoretical guarantees accounting for finite-step Newton–Schulz errors remain an open challenge.
- Two-Batch Computational Cost: Muon-MVR2 requires two backward passes per iteration, making it expensive for compute-bound large-scale LLM training unless gradient evaluations can be amortized.
- MVR1 Rate Gap: While Muon-MVR1 matches MVR2 empirically in wall-clock performance, its theoretical bound remains at $\tilde{\mathcal{O}}(T^{-1/4})$. Tightening this gap remains an avenue for future research.
Summary updated