Enhancing Issue Localization Agent with Tool-Interactive Training
Open Access
- 12 April 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 692-703
Abstract
Issue localization, the process of identifying code locations that need modification to resolve software issues, is a critical yet challenging task in software development. The semantic gap between natural language issue descriptions and faulty code requires complex multi-hop reasoning through code dependencies. Existing LLM-based agents attempt to address this by integrating repository retrieval tools, which poses a higher demand for LLMs to effectively utilize various tools during multi-step reasoning for issue localization. To tackle this challenge, we present ToolTrain, a two-stage tool-interactive training framework combining rejection-sampled supervised fine-tuning and tool-interactive reinforcement learning to enhance LLMs’ ability to use retrieval tools for issue localization. Experimental results show that ToolTrain-trained models achieve state-of-the-art performance among same-size LLMs, with our 32B model even surpassing Claude-3.7-Sonnet on function-level localization. The results also show that improved localization performance translates to better end-to-end issue resolution performance. This further demonstrates that training for issue localization is a viable and effective strategy for improving automated software development.Keywords
Funding Information
- National Key Research and Development Program of China (2023YFB4503803)
This publication has 21 references indexed in Scilit:
- SoapFL: A Standard Operating Procedure for LLM-Based Method-Level Fault LocalizationIEEE Transactions on Software Engineering, 2025
- Competition-level code generation with AlphaCodeScience, 2022
- Monte Carlo Tree Search: a review of recent modifications and applicationsArtificial Intelligence Review, 2022
- Enhancing bug localization with bug report decomposition and code hierarchical networkKnowledge-Based Systems, 2022
- Practical Root Cause Localization for Microservice Systems via Trace Analysis2021
- A Survey of Convolutional Neural Networks: Analysis, Applications, and ProspectsIEEE Transactions on Neural Networks and Learning Systems, 2021
- Fault Localization with Code Coverage Representation Learning2021
- Historical Spectrum Based Fault LocalizationIEEE Transactions on Software Engineering, 2019
- Improved bug localization based on code change histories and bug reportsInformation and Software Technology, 2017
- Spectrum-Based Multiple Fault Localization2009