前置推理:预训练与后训练数据之间的协同作用
Front-Loading Reasoning: The Synergy between Pretraining and Post-Training Data
AI总结:
该研究首次系统探究不同训练阶段引入推理数据对大语言模型的影响,发现前置推理数据到预训练可带来显著性能提升,还揭示了预训练重多样性、监督微调重质量的不对称数据分配原则,为模型训练的数据策略提供了指导。
摘要:
当前提升大语言模型(LLM)推理能力的主流范式,是围绕在高质量、高推理密度数据上进行后训练展开的。尽管新兴研究表明,推理数据也越来越多地被融入中期训练阶段——这种做法相对更具专有性,公开特征也较少——但此类数据在预训练中的作用仍不明确。特别是,由于多数前沿模型的预训练语料库不透明,在预训练和/或后训练的不同阶段引入推理数据的效果在科学文献中报道相对较少。这引发了几个重要问题:在预训练阶段更早添加推理数据,是否比在后训练阶段引入效果更好?更早加入推理数据是否存在过拟合风险并损害泛化能力,还是反而能建立后期微调无法恢复的持久基础?我们首次系统研究了规模、多样性和质量各异的推理数据在训练不同阶段引入时,对大语言模型性能的影响。我们发现,将推理数据前置到预训练中至关重要(平均提升19%),它能建立基础能力,即便使用更多数据,后期的监督微调(SFT)也无法完全复制这些能力。我们揭示了最优数据分配的不对称原则:预训练最大程度受益于推理模式的广泛多样性(平均提升11%),而监督微调对数据质量更敏感(平均提升15%)。我们表明,高质量预训练数据具有潜在效应,仅在监督微调后才被激活,且单纯扩大监督微调数据规模可能有害,会抵消早期注入推理数据带来的益处。我们的研究结果挑战了语言建模与推理相互分离的传统认知,为在整个训练流程中战略性分配数据以构建能力更强的模型提供了原则性指导。
英文摘要:
The prevailing paradigm for enhancing the reasoning abilities of LLMs revolves around post-training on high-quality, reasoning-intensive data. While emerging literature suggests that reasoning data is increasingly incorporated also during the mid-training stage-a practice that is relatively more proprietary and less openly characterized-the role of such data in pretraining remains unclear. In particular, due to the opaqueness of pretraining corpora in most frontier models, the effect of reasoning data introduced at different phases of pre- and/or post-training is relatively less reported in the scientific literature. This raises several important questions: Is adding reasoning data earlier during pretraining any better than introducing it during post-training? Could earlier inclusion risk overfitting and harm generalization, or instead establish durable foundations that later fine-tuning cannot recover? We conduct the first systematic study of how reasoning data-varying in scale, diversity, and quality-affects LLM performance when introduced at different stages of training. We find that front-loading reasoning data into pretraining is critical (19% avg gain), establishing foundational capabilities that cannot be fully replicated by later-stage SFT, even with more data. We uncover an asymmetric principle for optimal data allocation: pretraining benefits most from broad diversity in reasoning patterns (11% avg gain), while SFT is more sensitive to data quality (15% avg gain). We show that high-quality pretraining data has latent effects, activated only after SFT, and that naively scaling SFT data can be detrimental, washing away the benefits of early reasoning injection. Our results challenge the conventional separation of language modeling and reasoning, providing a principled guide for strategically allocating data across the entire training pipeline to build more capable models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。