RLocator: Reinforcement Learning for Bug Localization
Not on the map. Why?
Abstract (arXiv)
Software developers spend a significant portion of time fixing bugs in their projects. To streamline this process, bug localization approaches have been proposed to identify the source code files that are likely responsible for a particular bug. Prior work proposed several similarity-based machine-learning techniques for bug localization. Despite significant advances in these techniques, they do not directly optimize the evaluation measures. We argue that directly optimizing evaluation measures can positively contribute to the performance of bug localization approaches. Therefore, In this paper, we utilize Reinforcement Learning (RL) techniques to directly optimize the ranking metrics. We propose RLocator, a Reinforcement Learning-based bug localization approach. We formulate RLocator using a Markov Decision Process (MDP) to optimize the evaluation measures directly. We present the technique and experimentally evaluate it based on a benchmark dataset of 8,316 bug reports from six highly popular Apache projects. The results of our evaluation reveal that RLocator achieves a Mean Reciprocal Rank (MRR) of 0.62, a Mean Average Precision (MAP) of 0.59, and a Top 1 score of 0.46. We compare RLocator with two state-of-the-art bug localization tools, FLIM and BugLocator. Our evaluation reveals that RLocator outperforms both approaches by a substantial margin, with improvements of 38.3% in MAP, 36.73% in MRR, and 23.68% in the Top K metric. These findings highlight that directly optimizing evaluation measures considerably contributes to performance improvement of the bug localization problem.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 25 of its 90 references that are in the map. First posted on arXiv 9 May 2023.
Builds on
25 of 90 references.
References · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,635
- 2018Deep contextualized word representationscited by 2,285
- 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,218
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2018Off-Policy Deep Reinforcement Learning without Explorationcited by 1,227
- 2017Neural Collaborative Filteringcited by 1,108
- 2016Neural Combinatorial Optimization with Reinforcement Learningcited by 600
- 2015Deep Recurrent Q-Learning for Partially Observable MDPscited by 457
- 2019Reinforcement Learning in Healthcare: A Surveycited by 308
- 2018Top-K Off-Policy Correction for a REINFORCE Recommender Systemcited by 181
- 2018Understanding the impact of entropy on policy optimizationcited by 171
13 more
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2019Deep Reinforcement Learning for Cyber Securitycited by 92
- 2018Evolutionary Generative Adversarial Networkscited by 42
- 2021Fast Changeset-based Bug Localization with BERTcited by 13
- 2020Reinforcement Learning for Test Case Prioritizationcited by 12
- 2018Improving IR-Based Bug Localization with Context-Aware Query Reformulationcited by 11
- 2023Optimizing Audio Recommendations for the Long-Term: A Reinforcement Learning Perspectivecited by 8
- 2021GDI: Rethinking What Makes Reinforcement Learning Different From Supervised Learningcited by 7
- 2020CodeMatcher: Searching Code Based on Sequential Semantics of Important Query Wordscited by 5
- 2021The Forgotten Role of Search Queries in IR-based Bug Localization: An Empirical Studycited by 5
- 2020Balancing Reinforcement Learning Training Experiences in Interactive Information Retrievalcited by 4
- 2021GloBug: Using Global Data in Fault Localizationcited by 2
- 2021Entropy-Aware Model Initialization for Effective Exploration in Deep Reinforcement Learningcited by 1
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 1.
7 papers.
- 2024BLAZE: Cross-Language and Cross-Project Bug Localization via Dynamic Chunking and Hard Example Learningcited by 7
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detectioncited by 7
- 2024Revisiting the Performance of Deep Learning-Based Vulnerability Detection on Realistic Datasetscited by 6
- 2025Improved IR-based Bug Localization with Intelligent Relevance Feedbackcited by 5
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
- 2025From Benchmark Data To Applicable Program Repair: An Experience Reportcited by 0
- 2026From Codebase to Culprit (C2C): Reducing the Search Space for Bugs with Semantic Retrieval and Hierarchical Reinforcement Learningcited by 0
- 2026From Codebase to Culprit (C2C): Reducing the Search Space for Bugs with Semantic Retrieval and Hierarchical Reinforcement Learning29 Sep 2026
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
- 2025From Benchmark Data To Applicable Program Repair: An Experience Report22 Aug 2025
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detection23 Jun 2025
- 2025Improved IR-based Bug Localization with Intelligent Relevance Feedback17 Jan 2025
- 2024BLAZE: Cross-Language and Cross-Project Bug Localization via Dynamic Chunking and Hard Example Learning24 Jul 2024
- 2024Revisiting the Performance of Deep Learning-Based Vulnerability Detection on Realistic Datasets3 Jul 2024