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

Han Li, Yuling Shi, Shaoxin Lin, Xiaodong Gu, Heng Lian +4 more
7/31/2025
cs.SEcs.CLcs.LG

No official code found. Best implementation: YerbaPage/SWE-Debate (34 stars, Apache-2.0, last commit 2025-11-11).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

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

343Jinja, PythonJul 19, 202511 months agoApache-2.0
code-generationlarge-language-modelsllmsoftware-engineering

Similar Papers

Cite this paper

@article{li2025swedebate,
  title  = {SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution},
  author = {Han Li and Yuling Shi and Shaoxin Lin and Xiaodong Gu and Heng Lian and Xin Wang and Yantao Jia and Tao Huang and Qianxiang Wang},
  year   = {2025},
  eprint = {2507.23348},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.23348v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.23348.svg)](https://codeofpaper.com/paper/2507.23348)

Discussion