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

用于扩展语言模型的预热启动

Warmstarting for Scaling Language Models

University of Freiburg(弗莱堡大学);University of Technology Nuremberg(纽伦堡工业大学);ScaDS.AI Leipzig(莱比锡数据科学与人工智能中心);ELLIS Institute Tübingen(埃利斯研究所蒂宾根分所)

Neeratyoy Mallik, Maciej Janowski, Johannes Hog, Herilalaina Rakotoarison, Aaron Klein, Josif Grabocka, Frank Hutter

AI总结:

本文研究语言模型扩展中的预热启动,探讨利用 μTransfer 进行最优超参数零样本迁移,通过缩小权重、零填充和 μP 缩放初始化等操作,实现大模型的有效预热启动并保持稳定训练动态。

摘要:

扩大模型规模以提升性能在当前大型语言模型范式中效果显著。各种扩展研究的实证发现催生了指导后续研究的新颖扩展结果与规律。当代数据与模型规模的高昂训练成本,导致对如何调优并达到此类训练设置缺乏透彻理解。缓解预训练大模型成本的一个方向是从较易调优的小模型预热启动大规模训练。在这项工作中,我们试图理解最优超参数的行为是否能在扩展的预热启动中得以保留。我们探索了简单操作,这些操作允许应用基于理论动机的、使用 μTransfer 的最优超参数零样本迁移方法。我们研究了在 μTransfer 预热启动下,促成收敛加速和保持稳定训练动态的因素。我们发现,缩小小模型权重、零填充,以及使用来自 μP 的缩放初始化对生成的大模型进行扰动,能够实现 $\mut{}$ 的有效预热启动。

英文摘要:

Scaling model sizes to scale performance has worked remarkably well for the current large language models paradigm. The research and empirical findings of various scaling studies led to novel scaling results and laws that guides subsequent research. High training costs for contemporary scales of data and models result in a lack of thorough understanding of how to tune and arrive at such training setups. One direction to ameliorate the cost of pretraining large models is to warmstart the large-scale training from smaller models that are cheaper to tune. In this work, we attempt to understand if the behavior of optimal hyperparameters can be retained under warmstarting for scaling. We explore simple operations that allow the application of theoretically motivated methods of zero-shot transfer of optimal hyperparameters using μTransfer. We investigate the aspects that contribute to the speedup in convergence and the preservation of stable training dynamics under warmstarting with μTransfer. We find that shrinking smaller model weights, zero-padding, and perturbing the resulting larger model with scaled initialization from μP enables effective warmstarting of $\mut{}$.

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

↑