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

Han Li †, Yuling Shi †, Shaoxin Lin, Xiaodong Gu ‡ {\ddagger}, Heng Lian, Xin Wang, Yantao Jia, Tao Huang, Qianxiang Wang · 2025

Read SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution by Han Li †, Yuling Shi †, Shaoxin Lin, Xiaodong Gu ‡ {\ddagger}, Heng Lian, Xin Wang, Yantao Jia, Tao Huang, Qianxiang Wang (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-23348.txt.

Introduction

Han Li and co-authors fix software bugs by staging a debate among AI agents, in a paper from two thousand twenty-five. Solo agents often get stuck in local fixes and miss fault patterns that span a codebase. Their frame first traces how a fault may spread through linked code, giving several starting proposals.

Agents with unlike viewpoints then debate the traces over three rounds. The debate settles on one shared fix plan. A search-based coding agent turns that plan into a patch. On a standard bug-fix benchmark, the frame set a new top score among open agent systems.

Catalog record

CREATORHan Li †, Yuling Shi †, Shaoxin Lin, Xiaodong Gu ‡ {\ddagger}, Heng Lian, Xin Wang, Yantao Jia, Tao Huang, Qianxiang Wang
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE77 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2507-23348

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution Han Li †, Yuling Shi †, Shaoxin Lin, Xiaodong Gu ‡ {\ddagger}, Heng Lian, Xin Wang, Yantao Jia, Tao Huang, Qianxiang Wang Abstract . † † †Equal contribution. † † ‡ {\ddagger} Xiaodong Gu is the corresponding author. 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 1 1 1 Our code and data are available at https://github.com/YerbaPage/SWE-Debate . 1. Introduction Automated repository-level issue resolution has emerged as a critical challenge in software engineering. The task aims to automatically localize and fix the defective code snippets, based on reported issues. In software development, developers spend a majority of their debugging efforts in understanding code and making changes ( Jimenez et al. 2024 ; Zhang et al. 2024 ) . Meanwhile, automated tools often struggle with the same challenge ( Chen et al. 2024b ; Wang et al. 2025 ; Shao et al. 2025 ) . Inadequate code understanding leads to incomplete fixes, introduces new bugs, and significantly extends development cycles ( Chen et al. 2025a ; Cuadron et al. 2025 ) . The key challenge in effective issue resolution is fault localization, namely, identifying the code snippets triggering the specific issue ( Xia et al. 2024 ) . Unlike conventional code retrieval, fault localization requires a deeper connection between natural language issue descriptions and programming language structures. This process requires reasoning over the structural and semantic properties of code, often across complex dependency graphs ( Liu et al. 2024 ; Chen et al. 2025b ; Jiang et al. 2025a ) , and entails a comprehensive understanding of software architecture as well as strategic decision-making. The emergence of LLMs has significantly advanced this area by leveraging code understanding and reasoning capabilities ( Yang et al. 2024b ; Wu et al. 2023b ; Shi et al. 2024b ) . More recently, agent-based methods ( Yang et al. 2024a ; Zhang et al. 2024 ; Antoniades et al. 2024 ; Wang et al. 2024b ; Chen et al. 2024a ) have emerged, simulating autonomous agents capable of tool use and high-level decision-making. These approaches use iterative exploration and planning to enable systematic codebase traversal, representing a shift toward structured and interactive issue resolution processes ( Ma and Liu 2025 ; Xia et al. 2024 ) . While agent-based approaches have shown notable progress on standard benchmarks such as SWE-bench ( Jimenez et al. 2024 ) , they mainly rely on agents’ independent exploration, that is, the agents individually understand code repository and propose their modification plans. As a result, they often get stuck in local solutions and fail to identify issue patterns that span across large, complex codebases ( Chen et al. 2025a ; Cuadron et al. 2025 ) . This fundamental limitation stems from a core challenge we term limited observation scope ( Qin et al. 2025 ; Yu et al. 2025 ) : when multiple code locations appear relevant to the issue description, correct resolution often depends on a deep understanding of code structure and component relationships. However, independent exploring agents lack the diverse analytical perspectives needed to systematically compare and rank these competing alternatives. This limitation becomes more pronounced when agents are faced with multiple plausible fix strategies or modification points, each with different implications for maintainability, compatibility, and architectural soundness ( Chen et al. 2025b ; Jiang et al. 2025a ; Zhang et al. 2024 ; Liu et al. 2024 ) . Without sufficient reasoning capacity to evaluate these trade-offs holistically, independent exploring agents often fail to directly identify the correct fix location and strategy, relying instead on repeated trial-and-error that is both inefficient and error-prone ( Antoniades et al. 2024 ; Ehrlich et al. 2025 ) . Figure 1. Motivating example of multi-agent debate. To address these challenges, we propose SWE-Debate, a competitive multi-agent debate framework that promotes diverse reasoning paths and achieves more consolidated fault localization. SWE-Debate reframes issue resolution through graph-guided localization and structured debate mechanisms. The framework operates through a three-stage pipeline. First, it creates multiple fault propagation traces as localization proposals by dependency analysis across the codebase. Specifically, a static dependency graph is built to represent relationships among code entities—such as function calls, class inheritance, module imports, and variable references. Using language model-based semantic matching, SWE-Debate identifies entities that are most relevant to the issue description, which serve as high-confidence entry points for chain construction. SWE-Debate traverses the graph from each entry point, yielding a set of candidate localization chains. Each chain captures a potential fault propagation path, reflecting different structural viewpoints, i.e., alternative code organization contexts in which the issue may appear, such as along a call hierarchy, inheritance structure, or shared data flow. Next, the algorithm creates a consensus fix plan through a structured three-round debate process. In the first round, multiple agents engage in competitive ranking to select the most promising fault propagation trace. Based on the selected trace, agents independently propose candidate modification plans based on different reasoning perspectives, then engage in competitive refinement to defend their proposals while critiquing alternatives. A discriminator selects the most promising plan, synthesizing insights from the debate to produce a coherent and actionable modification plan. In the final stage, the modification plan is used to initialize a Monte Carlo Tree Search (MCTS) framework ( Antoniades et al. 2024 ) for patch generation. Our experimental evaluation on the SWE-Bench-Verified dataset systematically compares SWE-Debate against state-of-the-art baselines. SWE-Debate achieves new state-of-the-art results under open-source agent frameworks and outperforms baseline methods by a large margin. Ablation studies show that the multiple chain generation mechanism provides the largest contribution to overall performance, validating our hypothesis that the fault propagation traces proposal enables more accurate fault localization and issue resolution. Our main contributions include: • A novel method to generate multiple candidate fault propagation traces. The method captures diverse potential fault propagation paths through code dependencies and structural relationships. • A competitive multi-agent debate framework for precise fault localization through diverse reasoning perspectives and structured argumentation. • Extensive experiments show that our competitive debate paradigms achieve 6.7% improvement in issue resolution rate and 5.1% improvement in fault localization accuracy. 2. Motivation Repository-level issue resolution reveals the fundamental

Read the complete text