TL;DR
This paper introduces DynMuon, a novel optimization technique that dynamically adjusts the spectral shaping of model updates during training. By moving from a fixed spectral shaping (like in Muon) to a schedule that emphasizes high-curvature directions early on and low-curvature directions later, DynMuon achieves lower validation loss and requires significantly fewer training steps compared to existing methods.
What Problem Does This Paper Address?
Training large language models (LLMs) is computationally intensive. While optimizers like Muon have shown promise by modifying how model updates are applied (specifically, by using the polar decomposition of the update matrix), they employ a fixed spectral shaping strategy. This paper questions whether a single, static spectral shaping is optimal throughout the entire training process. The authors hypothesize that different stages of training might benefit from different spectral biases, leading to a gap in current optimization methods: the lack of a dynamic approach to spectral shaping that adapts to the evolving training dynamics.
Methods
The core of this work is the introduction of a generalized spectral shaping operation, represented as $U\Sigma^p V^\top$, where $p$ is a spectral exponent. This framework allows for a spectrum of updates, with $p=0$ corresponding to Muon. The authors develop a noise-aware local model to understand how $p$ influences the trade-off between residual signal contraction and gradient noise amplification across different curvature directions of the loss landscape.
Based on this model, they propose DynMuon, an algorithm that dynamically schedules $p$ over training. It uses a logistic schedule to smoothly transition $p$ from positive values in the early stages to mildly negative values in the later stages. For computational efficiency, DynMuon employs an approximation of the spectral shaping that avoids full Singular Value Decomposition (SVD), maintaining a per-step cost similar to Muon.
Datasets
The experiments were conducted on the FineWeb dataset, with additional evaluations on FineWeb-Edu. The models were trained with varying token budgets, from 2.5B to 20B tokens.
Key Insights and Ideas
- Stage-Dependent Optimization: The paper reveals that the optimal spectral shaping strategy changes throughout training. Early in training, positive $p$ values are beneficial for accelerating convergence by focusing on high-curvature directions. Later, mildly negative $p$ values become more effective by reallocating update strength to low-curvature directions that still contain useful training signals.
- Signal-Noise Trade-off: The authors' model highlights a crucial trade-off: increasing $p$ helps contract residual signals in strong modes but amplifies noise in flat modes. Conversely, decreasing $p$ emphasizes flat modes but also amplifies noise there. This balance is key to understanding why dynamic scheduling is beneficial.
- Mildly Negative $p$ is Key for Late-Stage: The research uncovers a previously overlooked behavior where mildly negative spectral exponents (e.g., $p \approx -0.1$ to $-0.25$) are surprisingly effective in the late stages of training, outperforming the standard Muon ($p=0$).
- Dynamic Scheduling Outperforms Fixed: DynMuon's dynamic scheduling of $p$ consistently outperforms fixed spectral shaping strategies, including the default Muon.
Key Results
- DynMuon consistently achieves lower validation loss than Muon across various model scales (127M, 601M, 1.11B parameters) and training token budgets (10B, 20B).
- It requires 10.6-26.5% fewer steps to reach the same target validation loss compared to Muon.
- The per-step computational cost of DynMuon is negligibly higher than Muon (1.003–1.025×).
- DynMuon demonstrates robustness across different model architectures (GPT-style and Qwen-style), training token scales, and learning rates.
- The benefits of DynMuon persist across different loss objectives, including interpolations between Cross-Entropy and Brier loss.
Limitations and Future Work
- Approximation Accuracy: While DynMuon's spectral shaping approximation is efficient and closely tracks exact SVD, it is still an approximation. The paper notes that for strongly positive $p$, the approximation might become less reliable, leading to specific anchoring strategies for positive $p$.
- Fixed Schedule: The current DynMuon uses a pre-defined logistic schedule for $p$. The authors suggest future work could explore online selection of $p$ based on observed optimization statistics, potentially applied less frequently than every step for efficiency.
- Hyperparameter Tuning: While DynMuon shows robustness, the optimal scheduling parameters (transition point $\tau$, transition width $w$, and endpoint $p_{min}$) still require tuning. The paper provides some ablations showing reasonable robustness to these parameters.
Summary updated