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 条
  • [41] Reinforcement Learning Based Energy Efficient Underwater Localization
    You, Xudong
    Lv, Zefang
    Ding, Yuzhen
    Su, Wei
    Xiao, Liang
    2020 12TH INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS AND SIGNAL PROCESSING (WCSP), 2020, : 927 - 932
  • [42] Augmented Bug Localization Using Past Bug Information
    Nichols, Brent D.
    PROCEEDINGS OF THE 48TH ANNUAL SOUTHEAST REGIONAL CONFERENCE (ACM SE 10), 2010, : 306 - 311
  • [43] Using Localization and Factorization to Reduce the Complexity of Reinforcement Learning
    Sunehag, Peter
    Hutter, Marcus
    ARTIFICIAL GENERAL INTELLIGENCE (AGI 2015), 2015, 9205 : 177 - 186
  • [44] From Reinforcement Learning to Deep Reinforcement Learning: An Overview
    Agostinelli, Forest
    Hocquet, Guillaume
    Singh, Sameer
    Baldi, Pierre
    BRAVERMAN READINGS IN MACHINE LEARNING: KEY IDEAS FROM INCEPTION TO CURRENT STATE, 2018, 11100 : 298 - 328
  • [45] Stroke lesion localization in 3D MRI datasets with deep reinforcement learning
    Robertson, Samuel
    Tuladhar, Anup
    Rajashekar, Deepthi
    Forkert, Nils D.
    MEDICAL IMAGING 2022: COMPUTER-AIDED DIAGNOSIS, 2022, 12033
  • [46] Reinforcement Learning Based Vocal Fold Localization in Preoperative Neck CT for Injection Laryngoplasty
    Al, Walid Abdullah
    Cha, Wonjae
    Yun, Il Dong
    APPLIED SCIENCES-BASEL, 2023, 13 (01):
  • [47] OBJECT LOCALIZATION WITHOUT BOUNDING BOX INFORMATION USING GENERATIVE ADVERSARIAL REINFORCEMENT LEARNING
    Halici, Eren
    Alatan, A. Aydin
    2018 25TH IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING (ICIP), 2018, : 3728 - 3732
  • [48] Feature Assortment for Deep Learning-based Bug Localization with a Program Graph
    Kim, Youngkyoung
    Kim, Misoo
    Lee, Eunseok
    37TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, 2022, : 1536 - 1544
  • [49] Analyzing Requirements and Traceability Information to Improve Bug Localization
    Rath, Michael
    Lo, David
    Maeder, Patrick
    2018 IEEE/ACM 15TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR), 2018, : 442 - 453
  • [50] CGMBL: Combining GAN and Method Name for Bug Localization
    Chen, Hao
    Yang, Haiyang
    Yan, Zilun
    Kuang, Li
    Zhang, Lingyan
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY, QRS, 2022, : 231 - 241