2025-02-28 · 专家 · 机器学习 · 计算机视觉

SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuning

SoRFT通过将问题解决分解为结构化子任务,并利用基于规则的强化学习来提升LLMs的问题解决能力。

更新于 2025-02-28。作者:Zexiong Ma、Chao Peng、Pengfei Gao、Xiangxin Meng、Yanzhen Zou、Bing Xie。

中文摘要

主流的问题解决框架主要依赖商业模式,导致成本高昂且存在隐私担忧。现有的问题解决训练方法在泛化能力方面存在不足,且未能充分利用开源开发资源。我们提出了面向子任务的强化微调(Subtask-oriented Reinforced Fine-Tuning,简称SoRFT)这一新颖的训练方法,旨在提升大型语言模型(LLM)的问题解决能力。我们将问题解决分解为结构化的子任务:文件定位、功能定位、行定位和代码编辑生成。SoRFT包含两个训练阶段:(1)拒绝样本监督微调,在微调LLM之前,使用事实数据进行思维链(Chain of Thought,CoT)数据的过滤;(2)基于规则的强化学习,利用基于事实的奖励的PPO。我们在SWE-Bench Verified和SWE-Bench Lite上评估了SoRFT训练的模型,实现了开源模型中的最先进(State-of-the-Art,SOTA)性能(例如,使用SoRFT-Qwen-7B在SWE-Bench Verified上解决了21.4%的问题)。实验结果表明,SoRFT显著提升了问题解决性能,提高了模型的泛化能力,并为商业模型提供了一种成本效益高的替代方案。

英文摘要

Mainstream issue-resolving frameworks predominantly rely on commercial models, leading to high costs and privacy concerns. Existing training approaches for issue resolving struggle with poor generalization and fail to fully leverage open-source development resources. We propose Subtask-oriented Reinforced Fine-Tuning (SoRFT), a novel training approach to enhance the issue resolving capability of LLMs. We decomposes issue resolving into structured subtasks: file localization, function localization, line localization, and code edit generation. SoRFT consists of two training stages: (1) rejection-sampled supervised fine-tuning, Chain of Thought (CoT) data is filtered using ground-truth before fine-tuning the LLM, and (2) rule-based reinforcement learning, which leverages PPO with ground-truth based rewards. We evaluate the SoRFT-trained model on SWE-Bench Verified and SWE-Bench Lite, achieving state-of-the-art (SOTA) performance among open-source models (e.g., resolve 21.4% issues on SWE-Bench Verified with SoRFT-Qwen-7B). The experimental results demonstrate that SoRFT significantly enhances issue-resolving performance, improves model generalization, and provides a cost-efficient alternative to commercial models.

解读

一句话总结

SoRFT通过将问题解决分解为结构化子任务,并利用基于规则的强化学习来提升LLMs的问题解决能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt