Muon比Adam更擅长处理数据分布不均的长尾学习任务
Muon Outperforms Adam in Tail-End Associative Memory Learning
- 从关联记忆视角解析优化器差异,发现值注意力和前馈网络是关键
- 在长尾数据上,Muon使各类别学习更均衡,尾部类别误差降低40%以上
- 适合关注长尾分布、模型泛化性与优化器设计的研究者
Muon优化器在训练大语言模型时始终快于Adam,但其原理尚不清晰。本文从关联记忆角度揭示其机制:大语言模型中的值(Value)和输出(Output)注意力权重及前馈网络(FFN)是其优势主因。基于此,我们解释了其在真实世界长尾语料上的表现——少数类别出现频率极低。关键在于:(i) Muon的更新规则产生更各向同性的奇异谱;(ii) 在长尾数据下,它对尾部类别的优化效果优于Adam。通过单层关联记忆模型的理论分析,我们证明:无论特征嵌入如何,Muon能保持类别间学习平衡,而Adam则可能因嵌入特性导致学习误差巨大差异。综上,穆子的核心优势在于其更新规则契合线性关联记忆的外积结构,使长尾分布下的尾部类别学习更均衡高效。
原文摘要 · Abstract (English)
The Muon optimizer is consistently faster than Adam in training Large Language Models (LLMs), yet the mechanism underlying its success remains unclear. This paper demystifies this mechanism through the lens of associative memory. By ablating the transformer components optimized by Muon, we reveal that the associative memory parameters of LLMs, namely the Value and Output (VO) attention weights and Feed-Forward Networks (FFNs), are the primary contributors to Muon's superiority. Motivated by this associative memory view, we then explain Muon's superiority on real-world corpora, which are intrinsically heavy-tailed: a few classes (tail classes) appear far less frequently than others. The superiority is explained through two key properties: (i) its update rule consistently yields a more isotropic singular spectrum than Adam; and as a result, (ii) on heavy-tailed data, it optimizes tail classes more effectively than Adam. Beyond empirical evidence, we theoretically confirm these findings by analyzing a one-layer associative memory model under class-imbalanced data. We prove that Muon consistently achieves balanced learning across classes regardless of feature embeddings, whereas Adam can induce large disparities in learning errors depending on embedding properties. In summary, our empirical observations and theoretical analyses reveal Muon's core advantage: its update rule aligns with the outer-product structure of linear associative memories, enabling more balanced and effective learning of tail classes in heavy-tailed distributions than Adam.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。