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

扩展重复数据预训练:批量大小、正则化与GPU时间的权衡

Scaling Repeated-Data Pretraining: Batch Size, Regularization, and GPU-Time Tradeoffs

UC Berkeley(加州大学伯克利分校);Allen Institute for AI(艾伦人工智能研究所)

Sewon Min

AI总结:

该研究针对计算充足但数据有限的重复数据预训练,发现批量大小与轮次的U型关系、小批量的隐式正则化作用,还明确了训练方案调整方向及GPU与时间的资源权衡规则,为预训练资源分配提供了新指导。

摘要:

我们研究当计算资源充足但唯一训练数据有限、需对相同数据重复训练时的预训练问题。首先重新审视无限计算预训练(Kim等人2026年提出),发现其性能前沿高度依赖此前被固定或仅孤立研究的选择。具体而言,联合优化批量大小与轮次数量时,验证损失与批量大小呈U型关系,倾向于采用比典型预训练更小的批量,这可能是因为小批量梯度噪声提供了隐式正则化。我们还发现,此前在单遍假设下优化的训练方案可进行调整,例如每轮将文档重新打包为新序列、权重绑定以及正嵌入权重衰减。随后我们放宽无限计算假设,发现小于典型值的批量大小可能需要过长的顺序训练,因此需将GPU与时间视为独立资源:更严格的截止期限倾向于采用更大的批量,面向延迟的并行化可通过增加GPU数量换取更短的训练时间。不过,即使在固定时间预算下,使用更少GPU的小批量也能比使用更多GPU的大批量实现更低的验证损失,这挑战了在截止期限下通过增加数据并行性最大化GPU利用率的常见做法。综上,我们的研究确定了重复数据训练中未被充分探索的因素,并为训练方案与资源分配如何从单遍预训练调整提供了具体指导。

英文摘要:

We study pretraining when compute is abundant but unique training data are finite, requiring repeated training on the same data. We first revisit infinite-compute pretraining (Kim et al. 2026) and show that its frontier depends critically on choices previously fixed or studied only in isolation. In particular, optimizing batch size together with epoch counts reveals a U-shaped relationship between validation loss and batch size, favoring smaller batches than typical pretraining, likely because small-batch gradient noise provides implicit regularization. We further find that training recipes, previously optimized under a single-pass assumption, can be tuned, e.g., repacking documents into new sequences every epoch, weight tying, and positive embedding weight decay. We then relax the infinite-compute assumption. In particular, smaller-than-typical batch sizes can require prohibitively long sequential training, motivating to treat GPUs and time as separate resources. Tighter deadlines favor larger batches, and latency-oriented parallelism can trade additional GPUs for shorter training. Nevertheless, even under a fixed time budget, a smaller batch with fewer GPUs can achieve lower validation loss than a larger batch with more GPUs, challenging the common practice of increasing data parallelism to maximize GPU utilization under a deadline. Together, our results identify underexplored factors in repeated-data training and provide concrete guidance on how training recipes and resource allocation should change from single-pass pretraining.

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

↑