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

双阶段LLM推理:自演化数学框架

Dual-Phase LLM Reasoning: Self-Evolved Mathematical Frameworks

ShaoZhen Liu, Xinting Huang, Houwen Peng, Xin Chen, Xinyang Song, Qi Li, Zhenan Sun

AI总结:

本文提出双阶段训练框架,通过自动生成的长链式思考数据增强模型自我纠正能力,提升数学问题解决性能。

摘要:

近年来,大型语言模型(LLM)在复杂推理任务如数学问题解决中展现出了显著的潜力。然而,现有研究大多依赖于强化学习(RL)框架,而忽视了监督微调(SFT)方法。本文提出了一种新的两阶段训练框架,通过自动生成的长链式思考(CoT)数据增强模型的自我纠正能力。在第一阶段,多轮对话策略引导模型生成包含验证、回溯、子目标分解和逆向推理的CoT数据,预定义规则筛选高质量样本用于监督微调。第二阶段采用难度感知的拒绝采样机制动态优化数据分布,增强模型处理复杂问题的能力。该方法生成的推理链长度超过4倍,同时保持强大的可扩展性,证明SFT有效激活了模型的内在推理能力,并为复杂任务优化提供了资源高效的路径。实验结果表明在数学基准测试(包括GSM8K和MATH500)上实现了性能提升,微调后的模型在竞赛级问题如AIME24上取得了显著提升。代码将开源。

英文摘要:

In recent years, large language models (LLMs) have demonstrated significant potential in complex reasoning tasks like mathematical problem-solving. However, existing research predominantly relies on reinforcement learning (RL) frameworks while overlooking supervised fine-tuning (SFT) methods. This paper proposes a new two-stage training framework that enhances models' self-correction capabilities through self-generated long chain-of-thought (CoT) data. During the first stage, a multi-turn dialogue strategy guides the model to generate CoT data incorporating verification, backtracking, subgoal decomposition, and backward reasoning, with predefined rules filtering high-quality samples for supervised fine-tuning. The second stage employs a difficulty-aware rejection sampling mechanism to dynamically optimize data distribution, strengthening the model's ability to handle complex problems. The approach generates reasoning chains extended over 4 times longer while maintaining strong scalability, proving that SFT effectively activates models' intrinsic reasoning capabilities and provides a resource-efficient pathway for complex task optimization. Experimental results demonstrate performance improvements on mathematical benchmarks including GSM8K and MATH500, with the fine-tuned model achieving a substantial improvement on competition-level problems like AIME24. Code will be open-sourced.

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

↑