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 条
  • [21] Robotic Information Gathering With Reinforcement Learning Assisted by Domain Knowledge: An Application to Gas Source Localization
    Wiedemann, Thomas
    Vlaicu, Cosmin
    Josifovski, Josip
    Viseras, Alberto
    IEEE ACCESS, 2021, 9 (09): : 13159 - 13172
  • [22] Code Complexity and Version History for Enhancing Hybrid Bug Localization
    Seyam, Ahmed Ali
    Hamdy, Abeer
    Farhan, Marwa Salah
    IEEE ACCESS, 2021, 9 : 61101 - 61113
  • [23] Legion: Massively Composing Rankers for Improved Bug Localization at Adobe
    Jarman, Darryl
    Berry, Jeffrey
    Smith, Riley
    Thung, Ferdian
    Lo, David
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (08) : 3010 - 3024
  • [24] Duplicate Bug Report Detection and Classification System Based on Deep Learning Technique
    Kukkar, Ashima
    Mohana, Rajni
    Kumar, Yugal
    Nayyar, Anand
    Bilal, Muhammad
    Kwak, Kyung-Sup
    IEEE ACCESS, 2020, 8 (08): : 200749 - 200763
  • [25] Autonomous 3-D UAV Localization Using Cellular Networks: Deep Supervised Learning Versus Reinforcement Learning Approaches
    Afifi, Ghada
    Gadallah, Yasser
    IEEE ACCESS, 2021, 9 : 155234 - 155248
  • [26] Automated Skin Cancer Diagnosis and Localization Using Deep Reinforcement Learning
    Renith, G.
    Senthilselvi, A.
    IETE JOURNAL OF RESEARCH, 2024, 70 (04) : 3631 - 3645
  • [27] Increasing GPS Localization Accuracy With Reinforcement Learning
    Zhang, Ethan
    Masoud, Neda
    IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS, 2021, 22 (05) : 2615 - 2626
  • [28] Automatic bug localization using a combination of deep learning and model transformation through node classification
    Leila Yousofvand
    Seyfollah Soleimani
    Vahid Rafe
    Software Quality Journal, 2023, 31 : 1045 - 1063
  • [29] Automatic bug localization using a combination of deep learning and model transformation through node classification
    Yousofvand, Leila
    Soleimani, Seyfollah
    Rafe, Vahid
    SOFTWARE QUALITY JOURNAL, 2023, 31 (04) : 1045 - 1063
  • [30] Exploring Metadata in Bug Reports for Bug Localization
    Zhang, Xiaofei
    Yao, Yuan
    Wang, Yaojing
    Xu, Feng
    Lu, Jian
    2017 24TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2017), 2017, : 328 - 337