arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.14717cs.LGcs.AImath.OCstat.ML
收藏

跷跷板:通过平衡学习率和批量调度加速训练

Seesaw: Accelerating Training by Balancing Learning Rate and Batch Size Scheduling

Harvard University(哈佛大学);Kempner Institute at Harvard University(哈佛大学 Kempner 机构);University of California, Berkeley(加州大学伯克利分校)

Alexandru Meterez, Depen Morwani, Jingfeng Wu, Costin-Andrei Oncescu, Cengiz Pehlevan, Sham Kakade

AI总结:

研究如何加速大语言模型预训练,提出Seesaw框架,通过平衡学习率和批量调度,在保留损失动态时减少串行步骤。理论上给出相关等效性证明并扩展,实验表明该框架能在相同浮点运算量下减少时钟时间,接近理论极限。

摘要:

在训练期间增加批量(即“批量增长”)是加速大语言模型预训练的一种很有前景的策略。对于随机梯度下降(SGD),批量翻倍相当于学习率减半,但对于像Adam这样的自适应优化器,最佳策略尚不清楚。本文提出了一个有原则的批量调度框架Seesaw,每当标准调度器将学习率减半时,Seesaw将其乘以$1/\sqrt{2}$并将批量翻倍,在保留损失动态的同时减少串行步骤。理论上,首次给出了噪声线性回归中SGD的学习率衰减和批量增长等效性的有限样本证明,并将其扩展到归一化SGD。实验上,在使用恒定(临界)批量训练的150M/300M/600M参数模型上,Seesaw在相同浮点运算量下与余弦衰减匹配,同时将时钟时间减少约36%,接近理论极限。

英文摘要:

Increasing the batch size during training -- a ''batch ramp'' -- is a promising strategy to accelerate large language model pretraining. While for SGD, doubling the batch size can be equivalent to halving the learning rate, the optimal strategy for adaptive optimizers like Adam is less clear. As a result, any batch-ramp scheduling, if used at all, is typically tuned heuristically. This work develops a principled framework for batch-size scheduling and introduces Seesaw: whenever a standard scheduler would halve the learning rate, Seesaw instead multiplies it by $1/\sqrt{2}$ and doubles the batch size, preserving loss dynamics while reducing serial steps. Theoretically, we provide, to our knowledge, the first finite-sample proof of equivalence between learning-rate decay and batch-size ramp-up for SGD on noisy linear regression, and we extend this equivalence to normalized SGD, a tractable proxy for Adam, under a variance-dominated regime observed in practice. Empirically, on 150M/300M/600M-parameter models trained at Chinchilla scale using a constant (critical) batch size, Seesaw matches cosine decay at equal FLOPs while reducing wall-clock time by $\approx 36\%$, approaching the theoretical limit implied by our analysis.

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

↑