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

SWE-Debate: 面向软件问题解决的竞争性多智能体辩论

SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution

Shanghai Jiao Tong University(上海交通大学);Huawei(华为);Xidian University(西安电子科技大学)

Han Li, Yuling Shi, Shaoxin Lin, Xiaodong Gu, Heng Lian, Xin Wang, Yantao Jia, Tao Huang, Qianxiang Wang

AI总结:

针对现有软件问题解决智能体易陷局部解、难识别跨代码库问题模式的缺陷,提出多智能体辩论框架SWE-Debate,通过故障传播轨迹与三轮辩论收敛修复方案,在SWE-bench基准上取得开源智能体框架的最优结果。

摘要:

得益于大语言模型(LLM)的先进推理能力,问题解决领域已取得显著进展。近期,SWE-agent等基于智能体的框架通过支持自主使用工具的智能体处理复杂软件工程任务,进一步推动了这一进展。现有基于智能体的问题解决方法主要依赖智能体的独立探索,往往会陷入局部解,且无法识别跨代码库不同部分的问题模式。为解决这一局限,我们提出SWE-Debate——一种竞争性多智能体辩论框架,可促进多样化推理路径并实现更精准的问题定位。SWE-Debate首先通过遍历代码依赖图生成多条故障传播轨迹作为定位候选;随后组织专业智能体开展三轮辩论,每个智能体沿故障传播轨迹代表不同的推理视角。这种结构化竞争使智能体能够协同收敛至统一的修复方案。最后,该统一修复方案被集成到基于MCTS的代码修改智能体中以生成补丁。在SWE-bench基准上的实验表明,SWE-Debate在开源智能体框架中取得了新的state-of-the-art结果,且大幅优于基线方法。

英文摘要:

Issue resolution has made remarkable progress thanks to the advanced reasoning capabilities of large language models (LLMs). Recently, agent-based frameworks such as SWE-agent have further advanced this progress by enabling autonomous, tool-using agents to tackle complex software engineering tasks. While existing agent-based issue resolution approaches are primarily based on agents' independent explorations, they often get stuck in local solutions and fail to identify issue patterns that span across different parts of the codebase. To address this limitation, we propose SWE-Debate, a competitive multi-agent debate framework that encourages diverse reasoning paths and achieves more consolidated issue localization. SWE-Debate first creates multiple fault propagation traces as localization proposals by traversing a code dependency graph. Then, it organizes a three-round debate among specialized agents, each embodying distinct reasoning perspectives along the fault propagation trace. This structured competition enables agents to collaboratively converge on a consolidated fix plan. Finally, this consolidated fix plan is integrated into an MCTS-based code modification agent for patch generation. Experiments on the SWE-bench benchmark show that SWE-Debate achieves new state-of-the-art results in open-source agent frameworks and outperforms baselines by a large margin.

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

↑