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

损失到损失预测:适用于所有数据集的缩放定律

Loss-to-Loss Prediction: Scaling Laws for All Datasets

Kempner Institute, Harvard University(哈佛大学肯普纳研究所);SEAS, Harvard University(哈佛大学工程与应用科学学院)

David Brandfonbrener, Nikhil Anand, Nikhil Vyas, Eran Malach, Sham Kakade

AI总结:

本文提出损失到损失预测策略,通过平移幂律关系在不同数据集间及训练到下游任务间进行损失预测,并在多个预训练数据集和下游任务上验证其外推准确性优于单一数据集缩放定律。

摘要:

虽然缩放定律为单一数据分布在计算规模上预测训练损失提供了可靠方法,但关于当我们改变数据分布时这些预测应如何变化,目前知之甚少。本文推导了一种从一个损失预测另一个损失的策略,并将其应用于跨不同预训练数据集以及从预训练数据到下游任务数据的预测。我们的预测即使在用于拟合曲线的最大FLOP预算的20倍处也能很好地外推。更准确地说,我们发现以下两者之间存在简单的平移幂律关系:(1)两个模型分别在不同数据集上训练时,按训练计算量配对的两个模型的训练损失之间(训练到训练);(2)单一模型在任意下游分布上的训练损失与测试损失之间(训练到测试);(3)两个模型分别在不同训练数据集上训练后的测试损失之间(测试到测试)。这些结果对于差异很大的预训练数据集(有些完全由代码组成,而另一些则完全不含代码)以及各种下游任务都成立。最后,我们发现在某些设置中,这些平移幂律关系可以比外推单一数据集的缩放定律产生更准确的预测。

英文摘要:

While scaling laws provide a reliable methodology for predicting train loss across compute scales for a single data distribution, less is known about how these predictions should change as we change the distribution. In this paper, we derive a strategy for predicting one loss from another and apply it to predict across different pre-training datasets and from pre-training data to downstream task data. Our predictions extrapolate well even at 20x the largest FLOP budget used to fit the curves. More precisely, we find that there are simple shifted power law relationships between (1) the train losses of two models trained on two separate datasets when the models are paired by training compute (train-to-train), (2) the train loss and the test loss on any downstream distribution for a single model (train-to-test), and (3) the test losses of two models trained on two separate train datasets (test-to-test). The results hold up for pre-training datasets that differ substantially (some are entirely code and others have no code at all) and across a variety of downstream tasks. Finally, we find that in some settings these shifted power law relationships can yield more accurate predictions than extrapolating single-dataset scaling laws.

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

↑