arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.26797cs.LG
收藏

推理质量早期涌现:推理模型的数据策展

Reasoning Quality Emerges Early: Data Curation for Reasoning Models

Hongyi Henry Jin, Wenhan Yang, Meysam Ghaffari, Carlos Morato, Baharan Mirzasoleiman

AI总结:

提出仅利用初始推理token即可识别多样且具挑战性的推理样本,通过扰动检查点评估前100个token的损失检测难题,并证明前1k token的损失模式可预测梯度相似性,在Qwen2.5-7B和Llama3.1-8B上验证,性能提升达1.7%,token效率提升91%。

摘要:

监督微调(SFT)在一小部分高质量的长推理轨迹上是激发大型语言模型(LLMs)强推理能力的有效方法。然而,现有的高质量SFT数据策展方法严重依赖强推理模型基于多样性和难度筛选样本,使得策展过程成本高昂且往往导致次优的数据质量。在这项工作中,我们表明仅利用初始推理token即可识别多样且具挑战性的推理样本。具体而言,我们证明基于预训练模型随机扰动检查点上前100个推理token的损失可以可靠地检测难题。我们进一步表明,在少量扰动检查点上,样本在其前1k推理token上的损失模式相似,且这些检查点沿微调轨迹外推,可证明地诱导出相似的梯度。我们通过在M23K医学推理和OpenThoughts-Math数据集上微调Qwen2.5-7B和Llama3.1-8B模型进行大量实验验证了我们的方法。我们的方法在性能上比现有基线高出1.7%,同时token效率提升91%。

英文摘要:

Supervised fine-tuning (SFT) on a small, high-quality set of long reasoning traces is an effective approach for eliciting strong reasoning capabilities in Large Language Models (LLMs). However, existing methods for curating high-quality SFT data rely heavily on strong reasoning models to filter examples based on diversity and difficulty, making the curation process costly while often yielding suboptimal data quality. In this work, we show that diverse and challenging reasoning examples can be identified using only the initial reasoning tokens. Specifically, we demonstrate that difficult problems can be reliably detected based on the loss of the first 100 reasoning tokens evaluated at a randomly perturbed checkpoint of the pretrained model. We further show that examples exhibiting similar loss patterns over their first 1k reasoning tokens across a small number of perturbed checkpoints extrapolating along the fine-tuning trajectory provably induce similar gradients. We validate our approach through extensive experiments on fine-tuning Qwen2.5-7B and Llama3.1-8B models on the M23K medical reasoning and OpenThoughts-Math datasets. Our method outperforms existing baselines by up to 1.7% while being 91% more token efficient.

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

↑