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

解决语言模型计算最优缩放中的差异

Resolving Discrepancies in Compute-Optimal Scaling of Language Models

Tel Aviv University(特拉维夫大学);University of Washington(华盛顿大学);Jülich Supercomputing Centre (JSC)(于利希超级计算中心);LAION

Tomer Porian, Mitchell Wortsman, Jenia Jitsev, Ludwig Schmidt, Yair Carmon

AI总结:

本研究通过重现Kaplan缩放定律,识别出导致其与Chinchilla定律差异的三个因素,修正后两者一致,并发现学习率衰减非必需,同时推导了最优学习率与批大小缩放定律,强调小批大小下调整AdamW的β2参数的重要性。

摘要:

Kaplan等人和Hoffmann等人提出了关于最优模型大小随计算预算变化的具有影响力的缩放定律,但这些定律产生了显著不同的预测。我们通过在两个数据集(OpenWebText2和RefinedWeb)上重现Kaplan缩放定律,并识别出导致差异的三个因素:最后一层的计算成本、预热时长以及依赖于规模的优化器调参,来解释这一差异。在修正这些因素后,我们获得了与Hoffmann等人(即“Chinchilla”)缩放定律极好的一致性。与Hoffmann等人的一个假设相反,我们发现仔细的学习率衰减对于其缩放定律的有效性并非必需。作为次要结果,我们推导了最优学习率和批大小的缩放定律,发现在较小的批大小下,调整AdamW的$\eta_2$参数至关重要。

英文摘要:

Kaplan et al. and Hoffmann et al. developed influential scaling laws for the optimal model size as a function of the compute budget, but these laws yield substantially different predictions. We explain the discrepancy by reproducing the Kaplan scaling law on two datasets (OpenWebText2 and RefinedWeb) and identifying three factors causing the difference: last layer computational cost, warmup duration, and scale-dependent optimizer tuning. With these factors corrected, we obtain excellent agreement with the Hoffmann et al. (i.e., "Chinchilla") scaling law. Counter to a hypothesis of Hoffmann et al., we find that careful learning rate decay is not essential for the validity of their scaling law. As a secondary result, we derive scaling laws for the optimal learning rate and batch size, finding that tuning the AdamW $β_2$ parameter is essential at lower batch sizes.

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

↑