arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.08540cs.CLcs.LG
收藏

语言模型在过度训练和下游任务上可靠地遵循规模法则

Language models scale reliably with over-training and on downstream tasks

Columbia University(哥伦比亚大学);UT Austin(德克萨斯大学奥斯汀分校);Apple(苹果公司);University of Washington(华盛顿大学);Juelich Supercomputing Center, Research Center Juelich(于利希超级计算中心,于利希研究中心);LAION;Allen Institute for AI(艾伦人工智能研究所);Stanford University(斯坦福大学);Tel Aviv University(特拉维夫大学);TU Munich(慕尼黑工业大学);Contextual AI
Samir Yitzhak Gadre, Georgios Smyrnis, Vaishaal Shankar, Suchin Gururangan, Mitchell Wortsman, Rulin Shao, Jean Mercat, Alex Fang, Jeffrey Li, Sedrick Keh, Rui … 展开作者

Samir Yitzhak Gadre, Georgios Smyrnis, Vaishaal Shankar, Suchin Gururangan, Mitchell Wortsman, Rulin Shao, Jean Mercat, Alex Fang, Jeffrey Li, Sedrick Keh, Rui Xin, Marianna Nezhurina, Igor Vasiljevic, Jenia Jitsev, Luca Soldaini, Alexandros G. Dimakis, Gabriel Ilharco, Pang Wei Koh, Shuran Song, Thomas Kollar, Yair Carmon, Achal Dave, Reinhard Heckel, Niklas Muennighoff, Ludwig Schmidt

AI总结:

本文通过104个不同参数和训练词元数的模型,提出可同时外推过度训练程度和参数规模的规模法则,并用幂律连接困惑度与下游任务性能,从而以更低计算成本预测大模型的验证损失和任务表现。

摘要:

规模法则是有用的指南,可用于降低昂贵训练运行的风险,因为它们利用更便宜的小规模实验来预测大型模型的性能。然而,当前的规模研究与语言模型最终被训练和评估的方式之间仍然存在差距。例如,规模通常是在计算最优训练机制(即“Chinchilla最优”机制)下研究的。相比之下,模型通常被过度训练以降低推理成本。此外,规模法则大多预测下一词预测的损失,但模型通常在下游任务性能上进行比较。为了解决这两个不足,我们创建了一个包含104个模型的测试平台,这些模型具有0.011B到6.9B的参数,并在三种数据分布上使用不同数量的词元进行训练。首先,我们拟合了在过度训练量和模型参数数量两个维度上进行外推的规模法则。这使我们能够预测一个1.4B参数、900B词元运行(即32倍过度训练)和一个6.9B参数、138B词元运行(即计算最优运行)的验证损失——每个预测都来自计算量少300倍的实验。其次,我们通过提出一个幂律,将语言模型的困惑度与其下游任务性能联系起来。我们使用该定律来预测上述两个模型在下游任务上平均的top-1错误率,使用的实验计算量少20倍。我们的实验可在 https://github.com/mlfoundations/scaling 获取。

英文摘要:

Scaling laws are useful guides for derisking expensive training runs, as they predict performance of large models using cheaper, small-scale experiments. However, there remain gaps between current scaling studies and how language models are ultimately trained and evaluated. For instance, scaling is usually studied in the compute-optimal training regime (i.e., "Chinchilla optimal" regime). In contrast, models are often over-trained to reduce inference costs. Moreover, scaling laws mostly predict loss on next-token prediction, but models are usually compared on downstream task performance. To address both shortcomings, we create a testbed of 104 models with 0.011B to 6.9B parameters trained with various numbers of tokens on three data distributions. First, we fit scaling laws that extrapolate in both the amount of over-training and the number of model parameters. This enables us to predict the validation loss of a 1.4B parameter, 900B token run (i.e., 32$\times$ over-trained) and a 6.9B parameter, 138B token run (i.e., a compute-optimal run)$\unicode{x2014}$each from experiments that take 300$\times$ less compute. Second, we relate the perplexity of a language model to its downstream task performance by proposing a power law. We use this law to predict top-1 error averaged over downstream tasks for the two aforementioned models, using experiments that take 20$\times$ less compute. Our experiments are available at https://github.com/mlfoundations/scaling.

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

↑