arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.08472cs.LGcs.AI
收藏

在预算内预训练大语言模型:三种优化器的比较

Pre-Training LLMs on a budget: A comparison of three optimizers

Fraunhofer Institute for Integrated Circuits IIS(弗劳恩霍夫集成电路研究所)

Joel Schlotthauer, Christian Kroos, Chris Hinze, Viktor Hangya, Luzian Hahn, Fabian Küch

AI总结:

本文在固定预算下比较了 AdamW、Lion 和 Sophia 三种优化器在 LLM 预训练中的表现,发现 Sophia 损失最低、Lion 训练最快、AdamW 下游评估最优。

摘要:

优化器在缩短大语言模型(LLM)预训练时间并获得性能更优的模型方面起着决定性作用。在本研究中,我们比较了三种主要变体:事实上的标准优化器 AdamW、通过进化搜索开发出的更简单的 Lion,以及二阶优化器 Sophia。为了获得更好的泛化性,我们使用两种不同的基础架构进行训练,并在保持 token 数量不变的情况下采用单轮和多轮两种训练方式。利用最大更新参数化(Maximal Update Parametrization)和较小的代理模型,我们针对每种基础架构与优化器的组合分别调优了相关超参数。我们发现,虽然三种优化器的结果大致处于同一范围,但 Sophia 表现出最低的训练损失和验证损失,Lion 在训练 GPU 小时数方面最快,而 AdamW 带来了最好的下游评估结果。

英文摘要:

Optimizers play a decisive role in reducing pre-training times for LLMs and achieving better-performing models. In this study, we compare three major variants: the de-facto standard AdamW, the simpler Lion, developed through an evolutionary search, and the second-order optimizer Sophia. For better generalization, we train with two different base architectures and use a single- and a multiple-epoch approach while keeping the number of tokens constant. Using the Maximal Update Parametrization and smaller proxy models, we tune relevant hyperparameters separately for each combination of base architecture and optimizer. We found that while the results from all three optimizers were in approximately the same range, Sophia exhibited the lowest training and validation loss, Lion was fastest in terms of training GPU hours but AdamW led to the best downstream evaluation results.

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

↑