arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.19568cs.AIcs.SE
收藏

学习适应性并行执行以实现高效的代码定位

Learning Adaptive Parallel Execution for Efficient Code Localization

Ant Group(蚂蚁集团);Peking University(北京大学);Beijing Jiaotong University(北京交通大学)

Ke Xu, Siyang Xiao, Ming Liang, Yichen Yu, Zhixiang Wang, Jingxuan Xu, Dajun Chen, Wei Jiang, Yong Li

AI总结:

本文提出FuseSearch,通过将并行代码定位重新表述为联合质量-效率优化任务,采用两阶段SFT和RL训练方法学习适应性并行策略,以提高代码定位的效率和性能。

摘要:

代码定位是自动化软件开发流水线中的关键瓶颈。尽管并发工具执行可以提高发现速度,但当前代理表现出34.9%的冗余调用率,抵消了并行优势。我们提出FuseSearch,将并行代码定位重新表述为联合质量-效率优化任务。通过定义工具效率——唯一信息增益与调用次数的比率——我们采用两阶段SFT和RL训练方法来学习适应性并行策略。与固定广度方法不同,FuseSearch根据任务上下文动态调节搜索广度,从探索阶段演变为细化阶段。在SWE-bench Verified上评估,FuseSearch-4B实现了SOTA级性能(84.7%的文件级和56.4%的功能级F1分数),速度提升达93.6%,使用67.7%更少的轮次和68.9%更少的token。结果表明,效率感知的训练通过消除嘈杂的冗余信号自然提高质量,使高绩效的低成本定位代理成为可能。

英文摘要:

Code localization constitutes a key bottleneck in automated software development pipelines. While concurrent tool execution can enhance discovery speed, current agents demonstrate a 34.9% redundant invocation rate, which negates parallelism benefits. We propose FuseSearch, reformulating parallel code localization as a joint quality-efficiency optimization} task. Through defining tool efficiency -- the ratio of unique information gain to invocation count -- we utilize a two-phase SFT and RL training approach for learning adaptive parallel strategies. Different from fixed-breadth approaches, FuseSearch dynamically modulates search breadth according to task context, evolving from exploration phases to refinement stages. Evaluated on SWE-bench Verified, FuseSearch-4B achieves SOTA-level performance (84.7% file-level and 56.4% function-level F1 scores) with 93.6% speedup, utilizing 67.7% fewer turns and 68.9% fewer tokens. Results indicate that efficiency-aware training naturally improves quality through eliminating noisy redundant signals, enabling high-performance cost-effective localization agents.

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

↑