Abstract
The Muon optimizer has gained significant traction in the Large Language Model (LLM) community for its ability to accelerate training through matrix orthogonalization. Despite its empirical success, a rigorous theoretical understanding has been lacking. This paper addresses this gap by introducing two momentum-based variance-reduced variants: Muon-MVR1 and Muon-MVR2. We prove that Muon-MVR2 achieves the optimal iteration complexity of $\tilde{O}(T^{-1/3})$ for stochastic non-convex optimization. Furthermore, we demonstrate that these variants exhibit dimension-independent convergence rates and accelerated performance under the Polyak-Łojasiewicz (PŁ) condition. Empirical evaluations on CIFAR-10 and the C4 dataset validate our theoretical findings, showing that Muon-MVR2 outperforms standard optimizers like Adam and SGD.
Introduction
Training modern LLMs is a computationally intensive endeavor, driving the search for more "parameter-efficient" optimizers. Muon has emerged as a promising candidate, utilizing matrix orthogonalization to ensure that weight updates remain diverse rather than collapsing into a few dominant directions. However, existing theoretical analyses of Muon have been hampered by suboptimal convergence rates ($O(T^{-1/4})$), dependence on model dimensions, and reliance on questionable matrix inequalities regarding the inverse square root of the momentum matrix.
This work provides the first comprehensive theoretical framework for Muon. By integrating Momentum-based Variance Reduction (MVR), we derive variants that not only fix previous mathematical inconsistencies but also reach the fundamental theoretical limits of stochastic optimization.
Methodology: Muon with Variance Reduction
The core of the Muon framework involves taking a momentum-based gradient estimate and projecting it onto the set of orthogonal matrices. In practice, this is often approximated using Newton-Schulz iterations, though our analysis treats it as an SVD-based projection. To improve theoretical guarantees, we propose two variants:
- Muon-MVR1 (One-batch): This version maintains computational efficiency by reusing the gradient from the previous iteration to reduce variance, requiring only a single gradient evaluation per step.
- Muon-MVR2 (Two-batch): This more principled approach evaluates the gradient twice per iteration—once at the current parameters and once at the previous parameters using the same mini-batch. This dual evaluation allows for more precise noise suppression.
A key finding of our analysis is the necessity of "critical coupling" between the learning rate ($\eta_t$) and the momentum parameter ($\beta_t$), specifically $\beta_t = 1 - \eta_t$, to optimally balance optimization progress with noise reduction.
Theoretical Contributions
Our analysis yields several significant insights:
- Optimal Complexity: Muon-MVR2 hits the $\tilde{O}(T^{-1/3})$ iteration complexity, which is the established lower bound for stochastic non-convex problems.
- PŁ Condition Acceleration: Under the PŁ condition—a property often satisfied by neural network landscapes—Muon-MVR2 achieves an accelerated rate of $\tilde{O}(T^{-2/3})$ and guarantees last-iterate convergence.
- Dimension Independence: Unlike previous bounds, our results do not scale with the size of the weight matrices, explaining Muon's effectiveness in large-scale LLM training.
Empirical Validation
We tested the proposed variants against standard baselines on two distinct benchmarks.
Image Classification on CIFAR-10
Using a ResNet-18 architecture, we compared Muon-MVR1 and Muon-MVR2 against SGD and Adam. As shown in Figure 1, the Muon variants consistently achieved higher test accuracy and lower loss. Muon-MVR2, in particular, demonstrated superior convergence characteristics both in terms of epochs and wall-clock time.
Language Modeling on C4
To evaluate performance in a large-scale setting, we pre-trained a LLaMA2-130M model on the C4 dataset. Muon-MVR2 significantly outperformed the industry-standard AdamW, exhibiting a faster decline in training loss and better generalization on validation sets.
Discussion and Conclusion
This work bridges the gap between the empirical success of Muon and its mathematical foundations. By achieving optimal iteration complexity and dimension-independent rates, Muon-MVR2 establishes itself as a theoretically sound and practically potent optimizer for deep learning.
While MVR2 is theoretically optimal, it requires two gradient passes per step, which may be a significant overhead in large-scale settings. Future research should address this computational cost and provide formal proofs for the Newton-Schulz approximation used in practical implementations. Additionally, developing automated methods for tuning the variance reduction parameters would further enhance the utility of these optimizers.
Summary updated