arXiv:2607.18859cs.AI2026-07被引 2

通过多位置采样与迭代反思,提升代码修复策略探索能力。

PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agents

论文配图:PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agents
图 1 · 摘自论文原文
  • 多代理框架并行探索多个修改位置,结合图信息定位难点。
  • 迭代反思优化补丁生成,最终轮次融合历史经验提升效果。
  • 在SWE-bench上达76.0%通过率,修复策略搜索更全面。

尽管大语言模型推动了自动化问题修复的发展,现有基于智能体的方法在修复策略探索上仍存在明显不足:一是对多个潜在修改位置的探索有限,二是对每个位置的修复尝试次数不足。为解决这一问题,本文提出PhoenixRepair,一种多智能体框架,系统性地探索多个候选修改位置,并通过迭代反思与优化生成更优补丁,从而扩展修复策略的搜索空间。该框架首先进行多位置采样,复杂任务可选地引入基于图的定位信息;随后通过迭代反思不断改进补丁生成,最终以所有历史尝试提炼出的洞察指导最后一轮生成。在SWE-bench-Verified上的实验表明,PhoenixRepair相较于SWE-agent,在DeepSeek-V3.1下实现最大7.8%的相对提升,且在MiniMax-M2.5下达到76.0%的最高Pass@1通过率,同时显著提升故障定位准确率。代码已开源。

原文摘要 · Abstract (English)

While Large Language Models have greatly advanced automated issue resolution, existing agent-based methods exhibit a fundamental limitation in their insufficient exploration of repair strategies. This insufficiency manifests in two key aspects. First, the exploration of multiple potential edit locations is limited. Second, the exploration of repair attempts at each location is also insufficient. To address these challenges, we present PhoenixRepair, a multi-agent framework that systematically explores multiple candidate edit locations and performs iterative reflection and refinement on patch generation, thereby expanding the search space of repair strategies. Our framework begins with multi-location sampling, optionally augmented with graph-based localization information for difficult tasks, followed by iterative reflection and refinement to generate better patches, culminating in final-round generation guided by distilled insights from all historical attempts. Experiments on SWE-bench-Verified demonstrate that PhoenixRepair achieves the largest relative improvement of 7.8\% over SWE-agent under DeepSeek-V3.1, and attains the highest resolved rate of 76.0\% Pass@1 under MiniMax-M2.5. Meanwhile, it achieves higher fault localization accuracy than existing approaches. Our code is available at https://github.com/DeepSoftwareAnalytics/PhoenixRepair.

代码修复多智能体反思机制SWE-bench

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。