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] Reinforcement Learning with Auxiliary Localization Task for Mapless Navigation
    He, Cong
    Zhang, Wengang
    Wang, Teng
    2020 CHINESE AUTOMATION CONGRESS (CAC 2020), 2020, : 3069 - 3073
  • [32] Decentralized Scheduling for Cooperative Localization With Deep Reinforcement Learning
    Peng, Bile
    Seco-Granados, Gonzalo
    Steinmetz, Erik
    Frohle, Markus
    Wymeersch, Henk
    IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY, 2019, 68 (05) : 4295 - 4305
  • [33] Enhancing Bug Localization through Bug Report Summarization
    Zhang, Xia
    Zhu, Ziye
    Li, Yun
    23RD IEEE INTERNATIONAL CONFERENCE ON DATA MINING, ICDM 2023, 2023, : 1541 - 1546
  • [34] Augmented Bug Localization Using Past Bug Information
    Nichols, Brent D.
    PROCEEDINGS OF THE 48TH ANNUAL SOUTHEAST REGIONAL CONFERENCE (ACM SE 10), 2010, : 306 - 311
  • [35] BLoG: Post-Silicon Bug Localization in Processors using Bug Localization Graphs
    Park, Sung-Boem
    Bracy, Anne
    Wang, Hong
    Mitra, Subhasish
    PROCEEDINGS OF THE 47TH DESIGN AUTOMATION CONFERENCE, 2010, : 368 - 373
  • [36] Automatically Reproducing Android Bug Reports using Natural Language Processing and Reinforcement Learning
    Zhang, Zhaoxu
    Winn, Robert
    Zhao, Yu
    Yu, Tingting
    Halfond, William G. J.
    PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023, 2023, : 411 - 422
  • [37] Application of Machine Learning Techniques in Post-Silicon Debugging and Bug Localization
    El Mandouh, Eman
    Wassal, Amr G.
    JOURNAL OF ELECTRONIC TESTING-THEORY AND APPLICATIONS, 2018, 34 (02): : 163 - 181
  • [38] 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
  • [39] Feature assortment for deep learning-based bug localization with a program graph
    Kim, Youngkyoung
    Kim, Misoo
    Lee, Eunseok
    Proceedings of the ACM Symposium on Applied Computing, 2022, : 1536 - 1544
  • [40] COOBA: Cross-project Bug Localization via Adversarial Transfer Learning
    Zhu, Ziye
    Li, Yun
    Tong, Hanghang
    Wang, Yu
    PROCEEDINGS OF THE TWENTY-NINTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2020, : 3565 - 3571