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

超越固定训练时长的缩放定律与计算最优训练

Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations

Hugging Face;EPFL(洛桑联邦理工学院)

Alexander Hägele, Elie Bakouch, Atli Kosson, Loubna Ben Allal, Leandro Von Werra, Martin Jaggi

AI总结:

本文指出 cosine schedule 导致训练研究复杂化,提出使用恒定学习率与 cooldowns 结合 stochastic weight averaging 的方案,在保证缩放可靠性的同时显著减少了缩放实验的计算量与 GPU 小时。

摘要:

规模已成为获得强大机器学习模型的关键要素。因此,理解模型的缩放特性对于有效设计合适的训练设置以及未来一代架构至关重要。在这项工作中,我们认为,由于对 cosine schedule 的依赖,规模和训练研究变得不必要地复杂,这阻碍了在同一模型规模下进行不同时长的训练。我们研究了一种直接替代方案——恒定学习率与 cooldowns——的训练行为,发现其缩放表现与 cosine 类似,具有可预测性和可靠性。此外,我们表明,stochastic weight averaging 在不同规模下均能沿训练轨迹提升性能,且无需额外训练成本。重要的是,基于这些发现,我们证明通过利用较少但可复用的训练运行,可以显著减少计算量和 GPU 小时来执行缩放实验。我们的代码可在 \url{https://github.com/epfml/schedules-and-scaling/} 获取。

英文摘要:

Scale has become a main ingredient in obtaining strong machine learning models. As a result, understanding a model's scaling properties is key to effectively designing both the right training setup as well as future generations of architectures. In this work, we argue that scale and training research has been needlessly complex due to reliance on the cosine schedule, which prevents training across different lengths for the same model size. We investigate the training behavior of a direct alternative -- constant learning rate and cooldowns -- and find that it scales predictably and reliably similar to cosine. Additionally, we show that stochastic weight averaging yields improved performance along the training trajectory, without additional training costs, across different scales. Importantly, with these findings we demonstrate that scaling experiments can be performed with significantly reduced compute and GPU hours by utilizing fewer but reusable training runs. Our code is available at \url{https://github.com/epfml/schedules-and-scaling/}.

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

↑