mlsanityData to 7 Oct 2026

RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Models

arXiv 2601.18044 ↗First posted 25 Jan 2026cs.SEcited by 5

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Fault Localization (FL) is a critical step in Automated Program Repair (APR), and its importance has increased with the rise of Large Language Model (LLM)-based repair agents. In realistic project-level repair scenarios, software repositories often span millions of tokens, far exceeding current LLM context limits. Consequently, models must first identify a small, relevant subset of code, making accurate FL essential for effective repair. We present a novel project-level FL approach that improves both file- and element-level localization. Our method introduces a hierarchical reasoning module that (i) generates structured, bug-specific explanations for candidate files and elements, and (ii) leverages these explanations in a two-stage ranking scheme combining LLM-based and embedding-based signals. We further propose a counterfactual upper-bound analysis to quantify the contribution of each localization stage to repair success. We evaluate our approach on Python and Java projects from SWE-bench Verified, Lite, and Java. Compared to state-of-the-art baselines, including Agentless and OpenHands, our method consistently improves localization accuracy. On SWE-bench Verified, file-level Hit@1 improves from 71.4% to 85%, and MRR from 81.8% to 88.8%. At the element level, Exact Match under top-3 files increases from 36% to 69%. Integrating our localization into Agentless yields a 12.8% end-to-end repair success improvement.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 20 of its 36 references that are in the map. First posted on arXiv 25 Jan 2026.

Builds on

20 of 36 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul

Other references · 19

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  5. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  6. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  7. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  8. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  9. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
  10. 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
  11. 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
  12. 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 82
7 more
  1. 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
  2. 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
  3. 2025OrcaLoca: An LLM Agent Framework for Software Issue Localizationcited by 43
  4. 2024SWE-bench-java: A GitHub Issue Resolving Benchmark for Javacited by 34
  5. 2025Enhancing repository-level software repair via repository-aware knowledge graphscited by 26
  6. 2024An Empirical Study on LLM-based Agents for Automated Bug Fixingcited by 23
  7. 2024BLAZE: Cross-Language and Cross-Project Bug Localization via Dynamic Chunking and Hard Example Learningcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Large Language Models for Fault Localization: An Empirical Study ↗
  2. 2026Rethinking Automated Program Repair: The Impact of Bug Complexity, Fault Localization, and LLM Cost-efficiency
  3. 2024Demystifying Faulty Code with LLM: Step-by-Step Reasoning for Explainable Fault Localization
  4. 2025Automated Repair of C Programs Using Large Language Models
  5. 2025Assessing the Impact of Code Changes on the Fault Localizability of Large Language Models
  6. 2026SHERLOC: Structured Diagnostic Localization for Code Repair Agents
  7. 2025Exploring the Potential and Limitations of Large Language Models for Novice Program Fault Localization ↗
  8. 2026BLAgent: Agentic RAG for File-Level Bug Localization