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] 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
  • [2] An Imbalanced Deep Learning Model for Bug Localization
    Bui Thi Mai Anh
    Nguyen Viet Luyen
    2021 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE WORKSHOPS (APSECW 2021), 2021, : 32 - 40
  • [3] Object Localization with Reinforcement Learning
    Halici, Eren
    Alatan, A. Aydin
    2018 26TH SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE (SIU), 2018,
  • [4] Fault Localization for Reinforcement Learning
    Moran, Jesus
    Bertolino, Antonia
    de la Riva, Claudio
    Tuya, Javier
    2023 IEEE INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE TESTING, AITEST, 2023, : 49 - 50
  • [5] Reinforcement Learning for RFID Localization
    Chen, Weitung
    Boroushaki, Tara
    Perper, Isaac
    Adib, Fadel
    2024 IEEE INTERNATIONAL CONFERENCE ON RFID, RFID 2024, 2024, : 47 - 52
  • [6] Automatic Bug Triaging via Deep Reinforcement Learning
    Liu, Yong
    Qi, Xuexin
    Zhang, Jiali
    Li, Hui
    Ge, Xin
    Ai, Jun
    APPLIED SCIENCES-BASEL, 2022, 12 (07):
  • [7] WELL: Applying bug detectors to bug localization via weakly supervised learning
    Zhang, Huangzhao
    Li, Zhuo
    Li, Jia
    Jin, Zhi
    Li, Ge
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (09)
  • [8] 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
  • [9] Improving Bug Localization With Effective Contrastive Learning Representation
    Luo, Zhengmao
    Wang, Wenyao
    Cen, Caichun
    IEEE ACCESS, 2023, 11 : 32523 - 32533
  • [10] Comparing learning to rank techniques in hybrid bug localization
    Shi, Zhendong
    Keung, Jacky
    Bennin, Kwabena Ebo
    Zhang, Xingjun
    APPLIED SOFT COMPUTING, 2018, 62 : 636 - 648