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

·

研究论文 · 2026/10/14

我们研究了在计算资源充足但唯一训练数据有限、需要对同一数据进行重复训练时的预训练。首先重新审视无限计算预训练(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.

阅读原文

参与讨论