Sharpness-Aware Muon: Matrix-Aware Optimization with Momentum-Guided Perturbations
Organizations: Department of Information Engineering, The Chinese University of Hong Kong.
Abstract
Muon is a matrix-aware optimizer that combines momentum with orthogonalization to produce structured update directions with strong empirical behavior. However, it only shapes the geometry of the update itself and does not explicitly control neighborhood worst-case loss or bias training toward flat regions, which are often linked to stronger generalization. To address this limitation, we introduce the sharpness-aware formulation of Muon. We first develop MuSAM, which incorporates Sharpness-Aware Minimization (SAM)-style perturbation into Muon's orthogonalized update and establishes a principled bridge between sharpness-aware training and matrix-aware optimization. We then show that this formulation faces an efficiency--stability tension: constructing the perturbation requires an extra gradient evaluation, while the perturbation itself is generated from a single minibatch gradient and is therefore noisy. To resolve this issue, we propose MoMuSAM, which turns Muon's momentum from an update variable into a sharpness-probing signal. By using normalized momentum as the perturbation direction, MoMuSAM removes the extra clean-gradient computation and replaces the single-batch perturbation proxy with a temporally aggregated one. We prove that both MuSAM and MoMuSAM attain the same asymptotic first-order stationarity order, and further show that MoMuSAM yields a more stable stochastic linearization than MuSAM. Experiments on standard benchmarks demonstrate that sharpness awareness consistently improves Muon.
Figures & tables
| Aspect | Muon | MuSAM | MoMuSAM |
| Perturbation source | – | ||
| Per-iteration gradient cost | 1 | 2 | 1 |
| Directional stability † | – | ||
| First-order stationarity ⋄ |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | SAM | MSAM | VASSO | Muon | MuSAM | MoMuSAM |
| FMNIST | 93.83 0.11 | 93.74 0.14 | 93.86 0.08 | 94.10 0.06 | 94.27 0.08 | 94.35 0.17 |
| CIFAR-10 | 89.27 0.05 | 89.40 0.07 | 89.26 0.25 | 90.72 0.23 | 91.11 0.18 | 91.21 0.19 |
| CIFAR-100 | 68.98 0.29 | 68.48 0.14 | 68.96 0.33 | 74.18 0.20 | 74.62 0.17 | 75.14 0.16 |
| Algorithm | |||||
| Muon | 30.21 | 17.89 | 9.50 | 7.59 | 6.08 |
| MuSAM | 8.71 | 6.42 | 5.42 | 3.48 | 2.71 |
| MoMuSAM | 5.55 | 3.18 | 1.78 | 1.41 | 1.06 |
| Wall-clock time test accuracy (%) | |||||||
| Algorithm | 200 sec | 500 sec | 800 sec | 1100 sec | 1400 sec | 1700 sec | 2000 sec |
| SAM | 68.68 | 74.26 | 78.27 | 81.94 | 84.65 | 85.84 | 86.53 |
| MSAM | 75.02 | 77.78 | 82.50 | 84.23 | 85.15 | 87.20 | 87.86 |
| VASSO | 68.40 | 76.17 | 79.17 | 85.26 | 85.35 | 86.33 | 87.64 |
| Muon | 83.74 | 85.67 | 88.38 | 88.96 | 89.34 | 89.82 | 90.02 |
| MuSAM | 83.44 | 86.61 | 87.57 | 89.10 | 89.49 | 89.60 | 89.91 |
Muon Optimizer
Muon optimizer uses momentum and matrix orthogonalization to shape neural-network updates, especially in large language-model training.
See all 150 papers