arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.11840cs.LGcs.AIcs.CL
收藏

规模化法则估计的漫游指南

A Hitchhiker's Guide to Scaling Law Estimation

MIT(麻省理工学院);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);IBM Research(IBM研究院)

Leshem Choshen, Yang Zhang, Jacob Andreas

AI总结:

本文通过收集485个预训练模型数据并估计超1000条规模化法则,提出了一套规模化法则估计的最佳实践,发现利用中间检查点和相似规模模型可显著提升预测准确性。

摘要:

规模化法则通过从参数更少或训练集更小的、更易于训练的模型进行外推,来预测目标机器学习模型的损失。这为从业者和研究人员比较涉及优化器、数据集和模型架构的预训练决策提供了一种高效方式。尽管规模化法则被广泛用于建模语言模型训练的动力学过程,但关于如何最好地估计和解释它们的研究却很少。我们收集(并发布)了一个大规模数据集,其中包含485个先前已发布的预训练模型的损失和下游评估结果。我们利用这些数据估计了超过1000条规模化法则,然后推导出一套用于在新模型家族中估计规模化法则的最佳实践。我们发现,将规模化法则拟合到训练运行的中间检查点(而不仅仅是其最终损失)能显著提高准确性,并且——在其他条件相同的情况下——当性能估计来自规模相近的其他模型时,通常最为准确。然而,由于不同模型随机种子之间存在显著程度的变异性,有时训练多个小模型比训练单个大模型更有用。此外,虽然不同模型家族表现出不同的规模化行为,但它们往往足够相似,以至于目标模型的行为可以通过一个具有相同架构的单一模型,以及从其他模型家族推导出的规模化参数估计来预测。

英文摘要:

Scaling laws predict the loss of a target machine learning model by extrapolating from easier-to-train models with fewer parameters or smaller training sets. This provides an efficient way for practitioners and researchers alike to compare pretraining decisions involving optimizers, datasets, and model architectures. Despite the widespread use of scaling laws to model the dynamics of language model training, there has been little work on understanding how to best estimate and interpret them. We collect (and release) a large-scale dataset containing losses and downstream evaluations for 485 previously published pretrained models. We use these to estimate more than 1000 scaling laws, then derive a set of best practices for estimating scaling laws in new model families. We find that fitting scaling laws to intermediate checkpoints of training runs (and not just their final losses) substantially improves accuracy, and that -- all else equal -- estimates of performance are generally most accurate when derived from other models of similar sizes. However, because there is a significant degree of variability across model seeds, training multiple small models is sometimes more useful than training a single large one. Moreover, while different model families differ scaling behavior, they are often similar enough that a target model's behavior can be predicted from a single model with the same architecture, along with scaling parameter estimates derived from other model families.

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

↑