A Multi-Agent Approach to Fault Localization via Graph-Based Retrieval and Reflexion
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Identifying and resolving software faults remains a challenging and resource-intensive process. Traditional fault localization techniques, such as Spectrum-Based Fault Localization (SBFL), leverage statistical analysis of test coverage but often suffer from limited accuracy. While learning-based approaches improve fault localization, they demand extensive training datasets and high computational resources. Recent advances in Large Language Models (LLMs) offer new opportunities by enhancing code understanding and reasoning. However, existing LLM-based fault localization techniques face significant challenges, including token limitations, performance degradation with long inputs, and scalability issues in complex software systems. To overcome these obstacles, we propose LLM4FL, a multi-agent fault localization framework that utilizes three specialized LLM agents. First, the Context Extraction Agent applies an order-sensitive segmentation strategy to partition large coverage data within the LLM's token limit, analyze failure context, and prioritize failure-related methods. The Debugger Agent then processes the extracted data, which employs graph-based retrieval-augmented code navigation to reason about failure causes and rank suspicious methods. Finally, the Reviewer Agent re-evaluates the identified faulty methods using verbal reinforcement learning, engaging in self-criticism and iterative refinement. Evaluated on the Defects4J (V2.0.0) benchmark, which includes 675 faults from 14 Java projects, LLM4FL achieves an 18.55% improvement in Top-1 accuracy over AutoFL and 4.82% over SoapFL. It outperforms supervised techniques such as DeepFL and Grace, all without requiring task-specific training. Furthermore, its coverage segmentation and prompt chaining strategies enhance performance, increasing Top-1 accuracy by up to 22%.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 21 of its 81 references that are in the map. First posted on arXiv 20 Sep 2024.
Builds on
21 of 81 references.
Closest ancestors · 3
Same direction, newest first
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debugging26 Apr
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents23 Mar
Other references · 18
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020Learning to summarize from human feedbackcited by 2,562
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2015Gated Graph Sequence Neural Networkscited by 792
- 2023Character-LLM: A Trainable Agent for Role-Playingcited by 335
- 2024Hallucination is Inevitable: An Innate Limitation of Large Language Modelscited by 329
- 2023Exploring Large Language Models for Communication Games: An Empirical Study on Werewolfcited by 238
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
- 2023RecurrentGPT: Interactive Generation of (Arbitrarily) Long Textcited by 84
- 2023Large Language Models for Test-Free Fault Localizationcited by 67
- 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
6 more
- 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
- 2023Large Language Models in Fault Localisationcited by 28
- 2024Strategic Chain-of-Thought: Guiding Accurate Reasoning in LLMs through Strategy Elicitationcited by 19
- 2021Fault Localization with Code Coverage Representation Learningcited by 16
- 2018An Empirical Study of Fault Localization Families and Their Combinationscited by 13
- 2021An Exploratory Study of Debugging Episodescited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 1.
8 papers.
- 2024Defining and Detecting the Defects of the Large Language Model-based Autonomous Agentscited by 14
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localizationcited by 4
- 2025HAFixAgent: History-Aware Program Repair Agentcited by 2
- 2025CAMB: A comprehensive industrial LLM benchmark on civil aviation maintenancecited by 1
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Loggingcited by 0
- 2025Reformulate, Retrieve, Localize: Agents for Repository-Level Bug Localizationcited by 0
- 2026Hierarchical Fault Detection and Diagnosis for Transformer Architecturescited by 0
- 2026Hierarchical Fault Detection and Diagnosis for Transformer Architectures30 Apr 2026
- 2025Reformulate, Retrieve, Localize: Agents for Repository-Level Bug Localization7 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Logging23 Nov 2025
- 2025HAFixAgent: History-Aware Program Repair Agent2 Nov 2025
- 2025From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localization30 Sep 2025
- 2025CAMB: A comprehensive industrial LLM benchmark on civil aviation maintenance28 Aug 2025
- 2024Defining and Detecting the Defects of the Large Language Model-based Autonomous Agents24 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2025Enhancing LLM-based Fault Localization with a Functionality-Aware Retrieval-Augmented Generation Framework ↗
- 2024Demystifying Faulty Code with LLM: Step-by-Step Reasoning for Explainable Fault Localization
- 2026Similar Pattern Annotation via Retrieval Knowledge for LLM-Based Test Code Fault Localization ↗
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code
- 2026LIDL: LLM Integration Defect Localization via Knowledge Graph-Enhanced Multi-Agent Analysis
- 2025Exploring the Potential and Limitations of Large Language Models for Novice Program Fault Localization ↗
- 2026BLAgent: Agentic RAG for File-Level Bug Localization
- 2025LocAgent: Graph-Guided LLM Agents for Code Localization