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] On the classification of bug reports to improve bug localization
    Fan Fang
    John Wu
    Yanyan Li
    Xin Ye
    Wajdi Aljedaani
    Mohamed Wiem Mkaouer
    Soft Computing, 2021, 25 : 7307 - 7323
  • [22] Software bug localization based on optimized and ensembled deep learning models
    Ali, Waqas
    Bo, Lili
    Sun, Xiaobing
    Wu, Xiaoxue
    Ali, Aakash
    Wei, Ying
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (08)
  • [23] On Usefulness of the Deep-Learning-Based Bug Localization Models to Practitioners
    Polisetty, Sravya
    Miranskyy, Andriy
    Basar, Ayse
    15TH INTERNATIONAL CONFERENCE ON PREDICTIVE MODELS AND DATA ANALYTICS IN SOFTWARE ENGINEERING (PROMISE'19), 2019, : 16 - 25
  • [24] LSTM Attention-Driven Similarity Learning for Effective Bug Localization
    Yang, Geunseok
    Ji, Jinfeng
    Kim, Eontae
    APPLIED SCIENCES-BASEL, 2025, 15 (03):
  • [25] Hierarchical extreme learning machine based reinforcement learning for goal localization
    AlDahoul, Nouar
    Htike, Zaw Zaw
    Akmeliawati, Rini
    3RD INTERNATIONAL CONFERENCE ON MECHANICAL, AUTOMOTIVE AND AEROSPACE ENGINEERING 2016, 2017, 184
  • [26] 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
  • [27] Using Localization and Factorization to Reduce the Complexity of Reinforcement Learning
    Sunehag, Peter
    Hutter, Marcus
    ARTIFICIAL GENERAL INTELLIGENCE (AGI 2015), 2015, 9205 : 177 - 186
  • [28] Reinforcement Learning for Simplified Training in Fingerprinting Radio Localization
    Novello, Nicola
    Tonello, Andrea M.
    2023 INTERNATIONAL BALKAN CONFERENCE ON COMMUNICATIONS AND NETWORKING, BALKANCOM, 2023,
  • [29] Deep reinforcement learning based lane detection and localization
    Zhao, Zhiyuan
    Wang, Qi
    Li, Xuelong
    NEUROCOMPUTING, 2020, 413 : 328 - 338
  • [30] Deep Reinforcement Learning for Weak Human Activity Localization
    Xu, Wanru
    Miao, Zhenjiang
    Yu, Jian
    Ji, Qiang
    IEEE TRANSACTIONS ON IMAGE PROCESSING, 2020, 29 : 1522 - 1535