arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.04465cs.LG
收藏

用于下一个token预测的Muon在Transformer上的理论分析

Theoretical Analysis of Muon on Transformers for Next-Token Prediction

School of Mathematical Sciences, Zhejiang University(浙江大学数学科学学院);Department of Mathematics, National University of Singapore(新加坡国立大学数学系)

Shengwei Wu, Yixuan Yang, Gao Huang, Song Li

AI总结:

本文针对Transformer中用于下一个token预测的Muon开展理论分析,明确其训练的两阶段动力学,建立收敛速率等理论结果,并用实验验证,为Muon在大语言模型训练中的性能提供解释。

摘要:

Muon近期在训练基于Transformer的大语言模型(LLM)时展现出强劲的经验性能,但其优化动力学从理论角度仍未被充分理解。本文分析了Muon在Transformer中用于下一个token预测(NTP)的训练动力学。训练过程包含两个阶段:预处理阶段学习输出值分量,主阶段学习键-查询分量。对于预处理阶段,我们精确刻画了优化轨迹,证明每次更新后归一化谱间隔达到最优;对于主阶段,我们在softmax注意力下建立了训练损失和归一化间隔差距的非渐近收敛速率。这些结果表明Muon的更新规则可帮助模型高效学习哪些token对预测重要,为其在大语言模型训练中的强劲性能提供了可能的解释,学习到的权重结构也为未见上下文提供了泛化保证。此外,我们通过下一个token预测任务的实验验证了这些理论见解。

英文摘要:

Muon has recently shown strong empirical performance in training Transformer-based large language models (LLMs), yet its optimization dynamics remain poorly understood from a theoretical perspective. In this paper, we analyze the training dynamics of Muon for next-token prediction (NTP) in Transformers. The training procedure consists of two phases: the preprocessing phase learns the output-value component, while the main phase learns the key-query component. For the preprocessing phase, we characterize the optimization trajectory exactly and show that the normalized spectral margin is optimal after each update. For the main phase, we establish nonasymptotic convergence rates for the training loss and the normalized margin gap under softmax attention. These results suggest that Muon's update rule can help models efficiently learn which tokens matter for prediction, offering a possible explanation for its strong performance in large language model training. The learned weight structure also yields a generalization guarantee for unseen contexts. Furthermore, we validate our theoretical insights with experiments on next-token prediction tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑