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

时间至关重要:适用于任意预算的缩放定律

Time Matters: Scaling Laws for Any Budget

Google DeepMind(谷歌DeepMind)

Itay Inbar, Luke Sernau

AI总结:

本文提出基于内存拷贝的训练时间代理指标,结合 Chinchilla 缩放定律预测模型损失,并据此给出更宽而非更深的架构建议。

摘要:

训练大型模型的主要成本驱动因素是挂钟训练时间。我们表明,流行的基于 FLOPs 的时间估计效果很差,并构建了一个基于内存拷贝的更准确的代理指标。这使我们能够根据 transformer 模型的超参数准确估计其训练速度。结合 Chinchilla 等缩放定律曲线,这使我们能够通过一个简单方程准确预测模型的最终损失。我们表明,该表达式在广泛的模型超参数取值范围内都是准确的,从而使我们能够以解析方式做出架构决策并更高效地训练模型。关键在于,该分析预测,与现有文献相反,模型应当更宽而非更深,因为速度带来的收益超过了深度带来的收益。

英文摘要:

A primary cost driver for training large models is wall-clock training time. We show that popular time estimates based on FLOPs are poor estimates, and construct a more accurate proxy based on memory copies. This allows us to accurately estimate the training speed of a transformer model from its hyperparameters. Combined with a scaling law curve like Chinchilla, this allows us to accurately predict the final loss of a model from a simple equation. We show that this expression is accurate across a wide range of model hyperparameter values, enabling us to analytically make architectural decisions and train models more efficiently. Crucially, this analysis predicts that in contrast to existing literature, models should be wider rather than deeper, as the benefits of speed outweigh the benefits of depth.

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

↑