RLocator: Reinforcement Learning for Bug Localization

被引:0
|
作者
Chakraborty, Partha [1 ]
Alfadel, Mahmoud [2 ]
Nagappan, Meiyappan [1 ]
机构
[1] Univ Waterloo, David R Cheriton Sch Comp Sci, Waterloo, ON N2L 3G1, Canada
[2] Univ Calgary, Dept Comp Sci, Calgary, AB T2N 1N4, Canada
关键词
Computer bugs; Source coding; Location awareness; Measurement; Feature extraction; Reinforcement learning; Software; bug localization; deep learning; SOURCE CODE;
D O I
10.1109/TSE.2024.3452595
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 three state-of-the-art bug localization tools, FLIM, BugLocator, and BL-GAN. 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.
引用
收藏
页码:2695 / 2708
页数:14
相关论文
共 50 条
  • [31] Tracking Buggy Files: New Efficient Adaptive Bug Localization Algorithm
    Fejzer, Mikolaj
    Narebski, Jakub
    Przymus, Piotr
    Stencel, Krzysztof
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 48 (07) : 2557 - 2569
  • [32] On the classification of bug reports to improve bug localization
    Fang, Fan
    Wu, John
    Li, Yanyan
    Ye, Xin
    Aljedaani, Wajdi
    Mkaouer, Mohamed Wiem
    SOFT COMPUTING, 2021, 25 (11) : 7307 - 7323
  • [33] On the classification of bug reports to improve bug localization
    Fan Fang
    John Wu
    Yanyan Li
    Xin Ye
    Wajdi Aljedaani
    Mohamed Wiem Mkaouer
    Soft Computing, 2021, 25 : 7307 - 7323
  • [34] Cooperative Localization for Multi-Agents Based on Reinforcement Learning Compensated Filter
    Wang, Ran
    Xu, Cheng
    Sun, Jing
    Duan, Shihong
    Zhang, Xiaotong
    IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS, 2024, 42 (10) : 2820 - 2831
  • [35] CaPBug-A Framework for Automatic Bug Categorization and Prioritization Using NLP and Machine Learning Algorithms
    Ahmed, Hafiza Anisa
    Bawany, Narmeen Zakaria
    Shamsi, Jawwad Ahmed
    IEEE ACCESS, 2021, 9 (09): : 50496 - 50512
  • [36] LSTM Attention-Driven Similarity Learning for Effective Bug Localization
    Yang, Geunseok
    Ji, Jinfeng
    Kim, Eontae
    APPLIED SCIENCES-BASEL, 2025, 15 (03):
  • [37] Multitask radiological modality invariant landmark localization using deep reinforcement learning
    Parekh, Vishwa S.
    Bocchieri, Alex E.
    Braverman, Vladimir
    Jacobs, Michael A.
    MEDICAL IMAGING WITH DEEP LEARNING, VOL 121, 2020, 121 : 588 - 600
  • [38] Efficient Beacon-Aided AUV Localization: A Reinforcement Learning Based Approach
    Liu, Chuhuan
    Lv, Zefang
    Xiao, Liang
    Su, Wei
    Ye, Liqing
    Yang, Helin
    You, Xudong
    Han, Shuai
    IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY, 2024, 73 (06) : 7799 - 7811
  • [39] On the relationship between bug reports and queries for text retrieval-based bug localization
    Mills, Chris
    Parra, Esteban
    Pantiuchina, Jevgenija
    Bavota, Gabriele
    Haiduc, Sonia
    EMPIRICAL SOFTWARE ENGINEERING, 2020, 25 (05) : 3086 - 3127
  • [40] The Advance of Reinforcement Learning and Deep Reinforcement Learning
    Lyu, Le
    Shen, Yang
    Zhang, Sicheng
    2022 IEEE INTERNATIONAL CONFERENCE ON ELECTRICAL ENGINEERING, BIG DATA AND ALGORITHMS (EEBDA), 2022, : 644 - 648