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

质量,而非仅结果:用于选择编码智能体轨迹进行监督微调的结构评分框架

Quality, Not Just Outcome: A Structural Scoring Framework for Selecting Coding-Agent Trajectories for Supervised Fine-Tuning

Peking University(北京大学);Huawei Technologies Co., Ltd.(华为技术有限公司)

Sida Li, Yuanxin Liu, Shicheng Li, Linli Yao, Xu Sun, Haoli Bai, Xiaohui Li

AI总结:

该研究提出无需LLM评判的结构评分框架TQS,通过155144条轨迹验证,基于TQS筛选的轨迹微调的编码智能体在SWE-Bench-Verified上性能优于随机或低排名子集训练的模型。

摘要:

开源编码智能体通常通过对交互轨迹进行监督微调来训练,这些轨迹的最终补丁通过基准测试套件。然而,这种结果级别的过滤标准忽略了过程质量:最终成功的轨迹仍可能包含低效的交互模式,如重复的文件检查、不稳定的工具使用或延迟的修改行为,所有这些都会成为模仿目标的一部分。我们提出TQS(Trajectory Quality Score,轨迹质量评分),这是一种用于编码智能体轨迹的结构评分框架,直接作用于轨迹结构,无需LLM评判,且以线性时间运行。TQS围绕结构化收敛组织的结构信号来表征轨迹质量:信息聚焦、意图-动作对齐和策略动态。使用来自公共开源语料库的155,144条成功轨迹,我们通过TQS对轨迹进行排名,并在过滤后的子集上微调编码智能体。在SWE-Bench-Verified上,基于排名靠前的轨迹训练的模型始终优于基于随机或排名靠后的子集训练的模型。我们的结果表明,过程级别的轨迹质量是编码智能体监督中的重要因素,而结构化轨迹过滤提供了一种有效且可扩展的替代方案,可替代基于LLM的数据选择。

英文摘要:

Open coding agents are commonly trained through supervised fine-tuning on interaction trajectories whose final patches pass the benchmark test suite. However, this outcome-level filtering criterion ignores process quality: trajectories that eventually succeed may still contain inefficient interaction patterns such as repetitive file inspection, unstable tool usage, or delayed modification behavior, all of which become part of the imitation target. We propose TQS (Trajectory Quality Score), a structural scoring framework for coding-agent trajectories that operates directly on trajectory structure, requires no LLM judge, and runs in linear time. TQS characterizes trajectory quality through structural signals organized around structured convergence: information focus, intent--action alignment, and policy dynamics. Using 155,144 successful trajectories from a public open-license corpus, we rank trajectories by TQS and fine-tune coding agents on filtered subsets. Models trained on top-ranked trajectories consistently outperform those trained on random or bottom-ranked subsets on SWE-Bench-Verified. Our results suggest that process-level trajectory quality is an important factor in coding-agent supervision and that structural trajectory filtering provides an effective and scalable alternative to LLM-based data selection.

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

↑