arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.22650cs.LG
收藏

在大语言模型训练阶段间切换优化器的短暂成本

The Ephemeral Cost of Switching Optimizers Across LLM Training Stages

MIT(麻省理工学院);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室)

Xinyu Zhao, Davis Wertheimer, Ashutosh Sharma, Rameswar Panda, Paul Pu Liang

AI总结:

该研究通过预训练12亿参数Llama-3模型等实验,发现大语言模型后训练阶段的优化器选择可独立于预训练阶段,未发现显著的优化器不匹配惩罚,Muon在通用任务SFT中与AdamW竞争力相当。

摘要:

近期研究表明,在预训练与后续训练阶段间切换优化器会产生性能成本,但对该现象的系统研究仍较为缺乏。我们通过从零开始预训练12亿参数的Llama-3模型,调整各优化器更新的比例,同时在持续预训练和监督微调(SFT)阶段对AdamW与Muon优化器进行插值,以研究二者的不匹配问题。令人惊讶的是,我们未发现存在显著优化器不匹配惩罚的证据:最终性能主要由预训练和后训练优化器的独立效应决定,且随着SFT阶段Muon更新比例的增加,下游性能通常会提升。尽管匹配预训练优化器可减少SFT阶段的遗忘,但这并未转化为最终基准性能的提升。我们进一步在Llama和Qwen系列(最大140亿参数)的开放权重模型的通用任务SFT中评估AdamW与Muon,结果显示,即便这些模型采用AdamW预训练,Muon仍与AdamW具有竞争力。综上,我们的结果表明,后训练阶段的优化器选择可在很大程度上独立于预训练阶段使用的优化器。

英文摘要:

Recent work suggests that switching optimizers between pretraining and subsequent training stages incurs a performance cost, but systematic investigation of this phenomenon is lacking. We study the mismatch between AdamW and Muon optimizers by pretraining 1.2B Llama-3 models from scratch while varying the proportion of updates taken with each optimizer, and similarly interpolating between the two optimizers during continued pretraining and supervised fine-tuning (SFT). Surprisingly, we find little evidence of a meaningful optimizer mismatch penalty: final performance is largely explained by the independent effects of the pretraining and post-training optimizers, with downstream performance generally improving as the proportion of Muon updates during SFT increases. Although matching the pretraining optimizer can reduce forgetting during SFT, this does not translate into improved final benchmark performance. We further evaluate AdamW and Muon for task-general SFT of open-weight models, across the Llama and Qwen families up to 14B parameters, where Muon remains competitive with AdamW, despite these models having been pretrained with AdamW. Finally, we investigate whether our findings extend to RL via experiments on our 1.2B models as well as Qwen3-1.7B and 4B, and find that AdamW and Muon achieve comparable final performance in math RLVR. Together, our results suggest that the choice of optimizer for post-training can be made largely independently of the optimizer used during pretraining.

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

↑