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

揭秘大语言模型预训练中的合成数据:缩放定律、优势与陷阱的系统性研究

Demystifying Synthetic Data in LLM Pre-training: A Systematic Study of Scaling Laws, Benefits, and Pitfalls

FAIR at Meta(Meta 的 FAIR)

Feiyang Kang, Newsha Ardalani, Michael Kuchnik, Youssef Emad, Mostafa Elhoushi, Shubhabrata Sengupta, Shang-Wen Li, Ramya Raghavendra, Ruoxi Jia, Carole-Jean Wu

AI总结:

该研究通过大规模实验系统探究合成数据在LLM预训练中的作用,明确不同类型合成数据、混合比例、模型规模等对训练效果的影响,为合成数据的合理应用提供实践指导。

摘要:

训练数据在大语言模型(LLM)的规模扩展中起着关键作用,但高质量数据的供应有限。合成数据技术为规避这些限制提供了潜在途径。我们采用统一协议和缩放定律开展了大规模实证研究(涉及1000余个LLM,消耗超10万GPU小时),对比了自然网页数据、多种合成数据类型(改写文本、生成教科书)以及自然与合成数据的混合数据。具体而言,我们发现仅使用改写合成数据进行预训练的速度并不快于使用自然网页文本的预训练;而在数据预算较大时,使用1/3改写合成数据与2/3自然网页文本的混合数据进行预训练,(达到相同验证损失时)速度可提升5-10倍。仅使用教科书式合成数据进行预训练,会在许多下游领域导致显著更高的损失,尤其是在数据预算较小时。训练数据混合中合成数据的“最佳”比例取决于模型规模和数据预算,经实证,改写合成数据的最优比例收敛至约30%。更大的生成器模型不一定比参数量约8B的模型生成更好的预训练数据。这些结果为大规模单轮(n=1)合成数据模型训练中的“模型坍缩”问题提供了混合证据:在可预见的规模下,使用改写合成数据训练未出现性能下降,而使用教科书式纯生成合成数据的混合数据训练则呈现出“模型坍缩”所预测的模式。我们的工作揭开了预训练中合成数据的神秘面纱,验证了其有条件的优势,并提供了实用指导。

英文摘要:

Training data plays a crucial role in Large Language Models (LLM) scaling, yet high quality data is of limited supply. Synthetic data techniques offer a potential path toward sidestepping these limitations. We conduct a large-scale empirical investigation (>1000 LLMs with >100k GPU hours) using a unified protocol and scaling laws, comparing natural web data, diverse synthetic types (rephrased text, generated textbooks), and mixtures of natural and synthetic data. Specifically, we found pre-training on rephrased synthetic data \textit{alone} is not faster than pre-training on natural web texts; while pre-training on 1/3 rephrased synthetic data mixed with 2/3 natural web texts can speed up 5-10x (to reach the same validation loss) at larger data budgets. Pre-training on textbook-style synthetic data \textit{alone} results in notably higher loss on many downstream domains especially at small data budgets. "Good" ratios of synthetic data in training data mixtures depend on the model size and data budget, empirically converging to ~30% for rephrased synthetic data. Larger generator models do not necessarily yield better pre-training data than ~8B-param models. These results contribute mixed evidence on "model collapse" during large-scale single-round (n=1) model training on synthetic data--training on rephrased synthetic data shows no degradation in performance in foreseeable scales whereas training on mixtures of textbook-style pure-generated synthetic data shows patterns predicted by "model collapse". Our work demystifies synthetic data in pre-training, validates its conditional benefits, and offers practical guidance.

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

↑