Lune

ASE2025Top-tier venue

Issue Localization via LLM-Driven Iterative Code Graph Searching

Zhonghao Jiang, Xiaoxue Ren, Meng Yan, Wei Jiang, Yong Li, Zhongxin Liu

Abstract

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%.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Pull Requests as a Training Signal for Repo-Level Code Editing cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • Pull Requests as a Training Signal for Repo-Level Code Editing cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
  • Pull Requests as a Training Signal for Repo-Level Code Editing cites AutoCodeRover: Autonomous Program Improvement
  • One Tool Is Enough: Reinforcement Learning of LLM Agents for Repository-Level Code Navigation cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • One Tool Is Enough: Reinforcement Learning of LLM Agents for Repository-Level Code Navigation cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
  • SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
  • SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution cites AutoCodeRover: Autonomous Program Improvement
  • SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
  • SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution cites Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study
  • SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution cites AutoCodeRover: Autonomous Program Improvement
  • SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites Reflexion: language agents with verbal reinforcement learning
  • Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
  • Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study cites AutoCodeRover: Autonomous Program Improvement
  • AutoCodeRover: Autonomous Program Improvement cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • AutoCodeRover: Autonomous Program Improvement cites SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. SWE-Debate: Competitive Multi-Agent Debate for Software Issue ResolutionHan Li, Yuling Shi, Shaoxin Lin, Xiaodong Gu et al.ICSE 2026 · 2 citations
  2. Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical StudyYou Wang, Michael Pradel, Zhongxin LiuICSE 2026 · 2 citations
  3. Pull Requests as a Training Signal for Repo-Level Code EditingQinglin Zhu, Tianyu Chen, Shuai Lu, Lei Ji et al.ICML 2026 · 1 citation
  4. XSearch: Explainable Code Search via Concept-to-Code AlignmentYiming Liu, Ruofan Liu, Yun Lin, Zicong Zhang et al.ISSTA 2026 · 1 citation
  5. One Tool Is Enough: Reinforcement Learning of LLM Agents for Repository-Level Code NavigationZhaoxi Zhang, Yitong Duan, Yanzhi Zhang, Yiming Xu et al.ICML 2026

Builds on22

  1. Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan et al.NeurIPS 2023 · 5,828 citations
  2. SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
  3. SWE-agent: Agent-Computer Interfaces Enable Automated Software EngineeringJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret et al.NeurIPS 2024 · 2,059 citations
  4. SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software EvolutionYuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneaux et al.NeurIPS 2025 · 291 citations
  5. AutoCodeRover: Autonomous Program ImprovementYuntong Zhang, Haifeng Ruan, Zhiyu Fan, Abhik RoychoudhuryISSTA 2024 · 96 citations

Related papers

  1. OrcaLoca: An LLM Agent Framework for Software Issue LocalizationZhongming Yu, Hejia Zhang, Yujie Zhao, Hanxian Huang et al.ICML 2025
  2. LocAgent: Graph-Guided LLM Agents for Code LocalizationZhaoling Chen, Robert Tang, Gangda Deng, Fang Wu et al.ACL 2025
  3. An LLM-Based Agent-Oriented Approach for Automated Code Design Issue LocalizationFraol Batole, David O'Brien, Tien N. Nguyen, Robert Dyer et al.ICSE 2025 · 7 citations
  4. Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering TasksHongyuan Tao, Ying Zhang, Zhenhao Tang, Hongen Peng et al.NeurIPS 2025 · 41 citations
  5. Enhancing Issue Localization Agent with Tool-Interactive TrainingZexiong Ma, Chao Peng, Qunhong Zeng, Pengfei Gao et al.ICSE 2026
Dusk over the sea between two cliffs drawn in fine vertical lines