研究:LLM训练阶段切换优化器(AdamW与Muon)的代价
The Ephemeral Cost of Switching Optimizers Across LLM Training Stages
研究用1.2B Llama-3模型从零预训练并调整AdamW与Muon更新比例,未发现明显的优化器不匹配惩罚,最终性能主要由预训练与后训练优化器各自独立效果决定。在Llama与Qwen系列最高14B模型的通用SFT中,Muon与AdamW表现相当;在1.2B模型及Qwen3-1.7B、4B的数学RLVR实验中两者最终性能也可比。结果表明后训练优化器的选择可基本独立于预训练所用优化器。
arXiv:2610.22650v2 Announce Type: replace Abstract: 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org