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 条
  • [1] Improving Bug Localization With Effective Contrastive Learning Representation
    Luo, Zhengmao
    Wang, Wenyao
    Cen, Caichun
    IEEE ACCESS, 2023, 11 : 32523 - 32533
  • [2] Noisy Token Removal for Bug Localization: The Impact of Semantically Confusing Misguiding Terms
    Kim, Youngkyoung
    Kim, Misoo
    Lee, Eunseok
    IEEE ACCESS, 2024, 12 : 172396 - 172409
  • [3] Bug Localization with Combination of Deep Learning and Information Retrieval
    An Ngoc Lam
    Anh Tuan Nguyen
    Hoan Anh Nguyen
    Nguyen, Tien N.
    2017 IEEE/ACM 25TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2017, : 218 - 229
  • [4] A deep reinforcement learning technique for bug detection in video games
    Rani G.
    Pandey U.
    Wagde A.A.
    Dhaka V.S.
    International Journal of Information Technology, 2023, 15 (1) : 355 - 367
  • [5] Deep Transfer Bug Localization
    Huo, Xuan
    Thung, Ferdian
    Li, Ming
    Lo, David
    Shi, Shu-Ting
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (07) : 1368 - 1380
  • [6] Bug Localization by Learning to Rank and Represent Bug Inducing Changes
    Loyola, Pablo
    Gajananan, Kugamoorthy
    Satoh, Fumiko
    CIKM'18: PROCEEDINGS OF THE 27TH ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, 2018, : 657 - 665
  • [7] Multi-Dimension Convolutional Neural Network for Bug Localization
    Wang, Bei
    Xu, Ling
    Yan, Meng
    Liu, Chao
    Liu, Ling
    IEEE TRANSACTIONS ON SERVICES COMPUTING, 2022, 15 (03) : 1649 - 1663
  • [8] Enhancing Bug Localization Using Phase-Based Approach
    Mohsen, Amr Mansour
    Hassan, Hesham A.
    Wassif, Khaled T.
    Moawad, Ramadan
    Makady, Soha H.
    IEEE ACCESS, 2023, 11 : 35901 - 35913
  • [9] Bug localization based on syntactical and semantic information of source code
    Yan, Xuefeng
    Cheng, Shasha
    Guo, Liqin
    JOURNAL OF SYSTEMS ENGINEERING AND ELECTRONICS, 2023, 34 (01) : 236 - 246
  • [10] Deep Learning With Customized Abstract Syntax Tree for Bug Localization
    Liang, Hongliang
    Sun, Lu
    Wang, Meilin
    Yang, Yuxing
    IEEE ACCESS, 2019, 7 : 116309 - 116320