2024-12-07 · 专家 · 机器学习 · 自然语言处理

Establishing Task Scaling Laws via Compute-Efficient Model Ladders

该论文提出了通过计算效率高的模型级联来预测预训练语言模型在过度训练设置下的个体任务性能的方法。

更新于 2024-12-07。作者:Akshita Bhagia、Jiacheng Liu、Alexander Wettig、David Heineman、Oyvind Tafjord、Ananya Harsh Jha、Luca Soldaini、Noah A. Smith、Dirk Groeneveld、Pang Wei Koh、Jesse Dodge、Hannaneh Hajishirzi。

中文摘要

我们开发了任务缩放定律和模型阶梯,以预测在过训练设置下预训练语言模型(LMs)的个体任务性能。标准的语言建模损失幂律无法准确模拟任务性能。因此,我们采用两步预测方法:首先使用模型和数据大小预测特定任务的损失,然后使用这个任务损失来预测任务性能。我们训练了一系列小型“阶梯”模型,收集数据点以拟合两步预测的参数化函数,并对两个目标模型进行预测:一个训练到4T标记的70亿参数模型和一个训练到5T标记的130亿参数模型。训练阶梯模型仅花费目标模型计算量的1%。在四个以排名分类格式编写的多项选择题任务中,我们可以在2个绝对误差点内预测两个目标模型的准确率。在其他四个任务上,我们的预测误差更高(平均绝对误差为6.9),我们发现这些任务的任务指标变异性通常更高。我们还发现,使用更少的计算量来训练更少的阶梯模型往往会导致预测效果下降。最后,我们通过实证研究表明,我们的设计选择和两步方法在建立缩放定律方面具有优越性能。

英文摘要

We develop task scaling laws and model ladders to predict the individual task performance of pretrained language models (LMs) in the overtrained setting. Standard power laws for language modeling loss cannot accurately model task performance. Therefore, we leverage a two-step prediction approach: first use model and data size to predict a task-specific loss, and then use this task loss to predict task performance. We train a set of small-scale "ladder" models, collect data points to fit the parameterized functions of the two prediction steps, and make predictions for two target models: a 7B model trained to 4T tokens and a 13B model trained to 5T tokens. Training the ladder models only costs 1% of the compute used for the target models. On four multiple-choice tasks written in ranked classification format, we can predict the accuracy of both target models within 2 points of absolute error. We have higher prediction error on four other tasks (average absolute error 6.9) and find that these are often tasks with higher variance in task metrics. We also find that using less compute to train fewer ladder models tends to deteriorate predictions. Finally, we empirically show that our design choices and the two-step approach lead to superior performance in establishing scaling laws.

解读

一句话总结

该论文提出了通过计算效率高的模型级联来预测预训练语言模型在过度训练设置下的个体任务性能的方法。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:在时间、计算资源有限的情况下,预测大型语言模型在特定任务上的性能,以实现更有效的资源分配和更广泛的实验。 • 现有方案不足:标准幂律无法准确模拟任务性能,现有方法需要至少5%的训练目标模型的计算量。 • 研究目标:开发一种计算效率高的方法,使用1%的训练目标模型的计算量来预测7B和13B模型的任务性能。

问题2:论文的核心创新点是什么?

• 技术创新:提出了任务缩放定律和模型级联方法,通过两步预测过程来预测任务性能。 • 方法改进:使用模型和数据大小来预测特定任务的损失,然后使用该损失来预测任务性能。 • 优势:预测误差低于2个绝对误差点,计算效率高,适用于过度训练设置。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在四个多选题任务上进行了实验,预测了7B和13B模型的准确率。 • 性能提升:预测误差低于2个绝对误差点,平均绝对误差为6.9个点,这些任务通常具有更高的任务指标变化。 • 对比结果:与基线方法相比,该方法在预测任务性能方面表现出色。

问题4:这个研究的实际应用价值是什么?

• 应用场景:可以用于预测大型语言模型在特定任务上的性能,以实现更有效的资源分配和更广泛的实验。 • 实施建议:在训练大型语言模型之前,可以使用该方法来预测其性能,从而优化资源分配。 • 局限与展望:该方法在预测某些任务的性能时可能不如其他方法,未来可以探索使用更复杂的模型和中间特征来提高预测精度。

来源

机器可读索引:llms.txt