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

Power Scheduler:一种与批量大小和Token数量无关的学习率调度器

Power Scheduler: A Batch Size and Token Number Agnostic Learning Rate Scheduler

IBM(国际商业机器公司)

Yikang Shen, Matthew Stallone, Mayank Mishra, Gaoyuan Zhang, Shawn Tan, Aditya Prasad, Adriana Meza Soria, David D. Cox, Rameswar Panda

AI总结:

针对大语言模型预训练超参数搜索成本高的问题,研究发现WSD调度器相关变量间的幂律关系,提出与批量大小、token数无关的Power调度器,结合muP可跨多维度稳定取得优异性能。

摘要:

为语言模型预训练找到最优学习率是一项具有挑战性的任务。这不仅是因为学习率、批量大小、训练token数量、模型规模和其他超参数之间存在复杂的关联,还因为对具有数十亿或数万亿参数的大语言模型进行超参数搜索的成本高得令人望而却步。近期研究提出使用小型代理模型和小型语料库进行超参数搜索,并将最优参数迁移到大模型和大语料库中。虽然与模型规模相关的超参数(如深度和宽度)的零样本可迁移性已在理论和实证上得到验证,但从小语料库到大语料库的零样本迁移仍未得到充分研究。在本文中,我们针对近期提出的WSD调度器,研究了最优学习率、批量大小和训练token数量之间的关联。经过数千次小型实验,我们发现变量之间存在幂律关系,并证明了其在不同模型规模间的可迁移性。基于这一观察,我们提出了一种新的学习率调度器——Power调度器,它与训练token数量和批量大小无关。实验表明,将Power调度器与Maximum Update Parameterization (muP,最大更新参数化)相结合,无论训练token数量、批量大小、模型规模甚至模型架构如何,仅用一组超参数就能持续取得出色的性能。我们使用Power调度器训练的3B稠密模型和MoE模型,取得了与当前最先进的小语言模型相当的性能。我们在https://ibm.biz/BdKhLa上开源了这些预训练模型。

英文摘要:

Finding the optimal learning rate for language model pretraining is a challenging task. This is not only because there is a complicated correlation between learning rate, batch size, number of training tokens, model size, and other hyperparameters but also because it is prohibitively expensive to perform a hyperparameter search for large language models with Billions or Trillions of parameters. Recent studies propose using small proxy models and small corpus to perform hyperparameter searches and transposing the optimal parameters to large models and large corpus. While the zero-shot transferability is theoretically and empirically proven for model size related hyperparameters, like depth and width, the zero-shot transfer from small corpus to large corpus is underexplored. In this paper, we study the correlation between optimal learning rate, batch size, and number of training tokens for the recently proposed WSD scheduler. After thousands of small experiments, we found a power-law relationship between variables and demonstrated its transferability across model sizes. Based on the observation, we propose a new learning rate scheduler, Power scheduler, that is agnostic about the number of training tokens and batch size. The experiment shows that combining the Power scheduler with Maximum Update Parameterization (muP) can consistently achieve impressive performance with one set of hyperparameters regardless of the number of training tokens, batch size, model size, and even model architecture. Our 3B dense and MoE models trained with the Power scheduler achieve comparable performance as state-of-the-art small language models. We open-source these pretrained models at https://ibm.biz/BdKhLa.

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

↑