NorMuon:使Muon更高效且可扩展
NorMuon: Making Muon more efficient and scalable
AI总结:
针对Muon优化器更新不均匀问题,提出NorMuon,结合正交化与神经元级自适应学习率,在1.1B模型上训练效率较Adam提升21.74%,较Muon提升11.31%。
摘要:
优化器的选择显著影响大型语言模型(LLM)的训练效率和计算成本。近期,Muon优化器通过对参数更新进行正交化,改善了优化几何条件,展现出有前景的结果。尽管Muon作为Adam继任者的候选出现,但联合利用两者优势的潜力尚未被系统探索。在本工作中,我们通过提出NorMuon(神经元级归一化Muon)来弥合这一差距,该优化器协同结合了正交化与神经元级自适应学习率。我们的分析揭示,虽然Muon有效降低了条件数,但产生的更新表现出高度非均匀的神经元范数,导致某些神经元主导优化过程。NorMuon通过为每个神经元维护二阶动量统计量,并在正交化后应用行级归一化来解决这种不平衡,确保参数利用均衡,同时保留Muon的条件改善优势。为实现在规模上的实际部署,我们在FSDP2框架下开发了一种高效的分布式实现,策略性地将正交化计算分布到各设备上。跨多个模型规模的实验表明,NorMuon始终优于Adam和Muon,在1.1B预训练设置下,训练效率比Adam提升21.74%,比Muon提升11.31%,同时保持与Muon相当的内存占用。我们的发现表明,正交化和自适应学习率是互补而非竞争的方法,为大规模深度学习中的优化器设计开辟了新途径。
英文摘要:
The choice of optimizer significantly impacts the training efficiency and computational costs of large language models (LLMs). Recently, the Muon optimizer has demonstrated promising results by orthogonalizing parameter updates, improving optimization geometry through better conditioning. Despite Muon's emergence as a candidate successor to Adam, the potential for jointly leveraging their strengths has not been systematically explored. In this work, we bridge this gap by proposing NorMuon (Neuron-wise Normalized Muon), an optimizer that synergistically combines orthogonalization with neuron-level adaptive learning rates. Our analysis reveals that while Muon effectively reduces condition numbers, the resulting updates exhibit highly non-uniform neuron norms, causing certain neurons to dominate the optimization process. NorMuon addresses this imbalance by maintaining second-order momentum statistics for each neuron and applying row-wise normalization after orthogonalization, ensuring balanced parameter utilization while preserving Muon's conditioning benefits. To enable practical deployment at scale, we develop an efficient distributed implementation under the FSDP2 framework that strategically distributes orthogonalization computations across devices. Experiments across multiple model scales demonstrate that NorMuon consistently outperforms both Adam and Muon, achieving 21.74% better training efficiency than Adam and 11.31% improvement over Muon on 1.1 B pretraining setting, while maintaining a comparable memory footprint to Muon. Our findings suggest that orthogonalization and adaptive learning rates are complementary rather than competing approaches, opening new avenues for optimizer design in large-scale deep learning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。