arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.20177cs.LGcs.AIcs.CLstat.ML
收藏

AutoScale:面向大语言模型预训练的规模感知数据混合方法

AutoScale: Scale-Aware Data Mixing for Pre-Training LLMs

Virginia Tech(弗吉尼亚理工大学);UIUC(伊利诺伊大学香槟分校);University of Washington(华盛顿大学);UC Berkeley(加州大学伯克利分校);University of Ottawa(渥太华大学);NVIDIA(英伟达)

Feiyang Kang, Yifan Sun, Bingbing Wen, Si Chen, Dawn Song, Rafid Mahmood, Ruoxi Jia

AI总结:

针对LLM预训练中小规模最优数据混合方案难适配大规模场景的问题,提出两阶段规模感知框架AutoScale,可外推最优数据组合,加快收敛并提升下游性能。

摘要:

域重加权是一个新兴研究方向,旨在调整不同数据源的相对权重,以提升大语言模型(LLM)预训练的效果与效率。我们发现,在较小规模下表现优异的数据混合方案,在更大规模下可能无法保持其优势,这对当前“在小规模实验中确定最优混合方案并直接应用于超大规模场景”的通行做法提出了挑战。为解决这一问题,我们提出了AutoScale——一个两阶段的规模感知数据组合框架。首先,AutoScale拟合一个参数化模型,用于预测不同数据组合下的模型损失,再借助该模型在更小、更易管控的计算预算下找到近似最优分配方案。随后,基于对最优组合如何随规模演变的全新理论分析,AutoScale无需额外重新训练,即可将该组合方案外推至更大的计算预算场景。实验结果表明,AutoScale能够加快收敛速度并提升下游任务性能。例如,在预训练GPT-2 Large时,其困惑度下降速度比基线方法快28%,相比无加权训练最高可实现38%的加速,同时在各类下游任务上取得了最优平均结果。总体而言,我们的研究揭示了域重要性会随训练规模发生变化,凸显了LLM训练中开展规模依赖数据治理的必要性。我们的代码已开源。

英文摘要:

Domain reweighting is an emerging research area aimed at adjusting the relative weights of different data sources to improve the effectiveness and efficiency of LLM pre-training. We show that data mixtures that perform well at smaller scales may not retain their advantage at larger scales, challenging the existing practice of determining competitive mixtures in small-scale experiments and directly applying them at much larger scales. To address this, we propose AutoScale, a two-stage, scale-aware data composition framework. First, AutoScale fits a parametric model that predicts the model's loss under different data compositions, then uses it to find an approximate best allocation at smaller, more manageable budgets. Next, leveraging a novel theoretical analysis of how optimal compositions evolve with scale, AutoScale extrapolates that composition to larger budgets without further retraining. Empirically, AutoScale accelerates convergence and improves downstream performance. For instance, when pre-training GPT-2 Large, it achieves a 28% faster perplexity reduction than baselines and up to a 38% speed-up over unweighted training, while yielding best-average results on various downstream tasks. Overall, our findings illustrate how domain importance shifts with training scale, underscoring the need for scale-dependent data curation in LLM training. Our code is open-sourced.

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

↑