Issue Localization via LLM-Driven Iterative Code Graph Searching
Zhonghao Jiang, Xiaoxue Ren, Meng Yan, Wei Jiang, Yong Li, Zhongxin Liu
摘要
Issue solving aims to generate patches to fix re-ported issues in real-world code repositories according to issue descriptions. Issue localization forms the basis for accurate issue solving. Recently, large language model (LLM) based issue localization methods have demonstrated state-of-the-art performance. However, these methods either search from files mentioned in issue descriptions or in the whole repository and struggle to balance the breadth and depth of the search space to converge on the target efficiently. Moreover, they allow LLM to explore whole repositories freely, making it challenging to control the search direction to prevent the LLM from searching for incorrect targets. Meanwhile, because LLMs may not correctly produce the required interaction formats with the environment, they suffer from search failures.This paper introduces COSIL, an LLM-driven, powerful function-level issue localization method without training or indexing. To balance search breadth and depth, COSIL employs a two-phase code graph search strategy. It first conducts broad exploration at the file level using dynamically constructed module call graphs, and then performs in-depth analysis at the function level by expanding the module call graph into a function call graph and executing iterative searches. To precisely control the search direction, COSIL designs a pruner to filter unrelated directions and irrelevant contexts. To avoid incorrect interaction formats in long contexts, COSIL introduces a reflection mechanism that uses additional independent queries in short contexts to enhance formatted abilities. Experiment results demonstrate that COSIL achieves a Top-1 localization accuracy of 43.3% and 44.6% on SWE-bench Lite and SWE-bench Verified, respectively, with Qwen2.5-Coder-32B, average outperforming the state-of-the-art methods by 96.04%. When COSIL is integrated into an issue-solving method, Agentless, the issue resolution rate improves by 2.98%–30.5%.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Pull Requests as a Training Signal for Repo-Level Code Editing 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- Pull Requests as a Training Signal for Repo-Level Code Editing 引用了 SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
- Pull Requests as a Training Signal for Repo-Level Code Editing 引用了 AutoCodeRover: Autonomous Program Improvement
- One Tool Is Enough: Reinforcement Learning of LLM Agents for Repository-Level Code Navigation 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- One Tool Is Enough: Reinforcement Learning of LLM Agents for Repository-Level Code Navigation 引用了 SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
- SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution 引用了 SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
- SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution 引用了 AutoCodeRover: Autonomous Program Improvement
- SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution 引用了 SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
- SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution 引用了 Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study
- SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution 引用了 AutoCodeRover: Autonomous Program Improvement
- SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering 引用了 Reflexion: language agents with verbal reinforcement learning
- Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study 引用了 SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
- Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study 引用了 AutoCodeRover: Autonomous Program Improvement
- AutoCodeRover: Autonomous Program Improvement 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- AutoCodeRover: Autonomous Program Improvement 引用了 SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
引用它的顶会 Paper8
- SWE-Debate: Competitive Multi-Agent Debate for Software Issue ResolutionHan Li, Yuling Shi, Shaoxin Lin, Xiaodong Gu 等ICSE 2026 · 2 次引用
- Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical StudyYou Wang, Michael Pradel, Zhongxin LiuICSE 2026 · 2 次引用
- Pull Requests as a Training Signal for Repo-Level Code EditingQinglin Zhu, Tianyu Chen, Shuai Lu, Lei Ji 等ICML 2026 · 1 次引用
- XSearch: Explainable Code Search via Concept-to-Code AlignmentYiming Liu, Ruofan Liu, Yun Lin, Zicong Zhang 等ISSTA 2026 · 1 次引用
- One Tool Is Enough: Reinforcement Learning of LLM Agents for Repository-Level Code NavigationZhaoxi Zhang, Yitong Duan, Yanzhi Zhang, Yiming Xu 等ICML 2026
它引用的 Paper22
- Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan 等NeurIPS 2023 · 5,828 次引用
- SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao 等ICLR 2024 · 2,082 次引用
- SWE-agent: Agent-Computer Interfaces Enable Automated Software EngineeringJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret 等NeurIPS 2024 · 2,059 次引用
- SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software EvolutionYuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneaux 等NeurIPS 2025 · 291 次引用
- AutoCodeRover: Autonomous Program ImprovementYuntong Zhang, Haifeng Ruan, Zhiyu Fan, Abhik RoychoudhuryISSTA 2024 · 96 次引用
相关 Paper
- OrcaLoca: An LLM Agent Framework for Software Issue LocalizationZhongming Yu, Hejia Zhang, Yujie Zhao, Hanxian Huang 等ICML 2025
- LocAgent: Graph-Guided LLM Agents for Code LocalizationZhaoling Chen, Robert Tang, Gangda Deng, Fang Wu 等ACL 2025
- An LLM-Based Agent-Oriented Approach for Automated Code Design Issue LocalizationFraol Batole, David O'Brien, Tien N. Nguyen, Robert Dyer 等ICSE 2025 · 7 次引用
- Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering TasksHongyuan Tao, Ying Zhang, Zhenhao Tang, Hongen Peng 等NeurIPS 2025 · 41 次引用
- Enhancing Issue Localization Agent with Tool-Interactive TrainingZexiong Ma, Chao Peng, Qunhong Zeng, Pengfei Gao 等ICSE 2026
