频谱分配:为何Muon优于Adam,以及如何改进Muon Spectral Allocation: Why Muon Outperforms Adam, and How to Improve Muon 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-26
👁️ 预览文献
💡 AI 中文简介
Muon等正交优化器在训练大语言模型时比Adam更快,但其机制尚不明确。我们通过谱分析探测Transformer损失景观,发现动量缓冲的奇异方向存在各向异性但稳定的谱分布:头部对步长敏感,体部容忍大步长。这解释了Muon为何优于Adam和SGD。基于此,我们提出频谱感知Muon(SAMuon),通过放大体部步长进一步提升性能。在124M至1B参数的模型中,SAMuon比Muon节省13.3%至24.0%的训练数据,且几乎不增加计算开销。
领域深度学习优化
适合谁读需要一定专业背景
核心贡献提出了谱分配理论统一解释Muon、Adam和SGD的性能差异;设计了SAMuon优化器,在几乎零额外开销下显著提升训练效率。
关键数据SAMuon比Muon节省13.3%-24.0%训练token;模型规模124M-1B;变体SAMuon-lite接近全增益且墙钟开销近零。
推荐理由想搞懂优化器为什么有效?这篇用谱分析揭示了Muon的秘密,还给出了改进方案,值得一读!
关键词["优化器", "谱分析", "大语言模型", "预训练", "Muon"]

原文摘要

查看英文原文摘要

Orthogonal optimisers such as Muon can substantially accelerate large language model pretraining relative to Adam, yet the mechanism remains incompletely understood. We investigate this through an out-of-sample spectral probing analysis of Transformer loss landscapes. At checkpoints along real training trajectories, we decompose each momentum buffer into its singular directions and estimate the loss-optimal step size along each direction on held-out data. The resulting spectral profile is anisotropic yet stable across batches and training stages, and consistent across the optimisers and model scales: a volatile head operating at the Edge-of-Stability supports a much smaller step size than the tolerant bulk, which permits substantially larger steps. This profile provides a unified spectral allocation account of why Muon outperforms Adam, which outperforms SGD. It also exposes a limitation of Muon's uniform scaling: it still underutilises the bulk. Guided by this finding, we introduce Spectral-Aware Muon (SAMuon), which holds the head at the Muon scale and amplifies the bulk using a static spectral prior. We provide two variants: the complete SAMuon follows the measured profile using a low-rank randomised SVD and the simplified SAMuon-lite uses a two-level approximation via rank-one power iteration. Neither method adds persistent optimiser state or notable extra FLOPs beyond Muon at scale, and the idealised exact-whitening versions of both retain Muon's asymptotic convergence rate under standard assumptions. Across "modded-nanogpt" models from 124M to 1B parameters, both variants outperform tuned AdamW and Muon (Scion implementation) baselines in all evaluated model-scale and batch-size configurations. SAMuon requires 13.3% to 24.0% fewer training tokens to reach the same validation loss as Muon, while SAMuon-lite retains most of this gain with near-zero wall-clock overhead.