arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.05586cs.SEcs.AI
收藏

RLocator:基于强化学习的缺陷定位

RLocator: Reinforcement Learning for Bug Localization

University of Waterloo(滑铁卢大学);University of Calgary(卡尔加里大学)

Partha Chakraborty, Mahmoud Alfadel, Meiyappan Nagappan

AI总结:

本文提出基于强化学习的缺陷定位方法RLocator,通过马尔可夫决策过程直接优化排序指标,在Apache项目数据集上显著优于FLIM和BugLocator。

摘要:

软件开发人员在项目中花费大量时间修复缺陷。为了简化这一过程,人们提出了缺陷定位方法来识别可能负责特定缺陷的源代码文件。先前的工作提出了几种基于相似度的机器学习技术用于缺陷定位。尽管这些技术取得了显著进展,但它们并未直接优化评估指标。我们认为,直接优化评估指标可以积极促进缺陷定位方法的性能。因此,在本文中,我们利用强化学习(RL)技术直接优化排序指标。我们提出了RLocator,一种基于强化学习的缺陷定位方法。我们使用马尔可夫决策过程(MDP)来形式化RLocator,以直接优化评估指标。我们介绍了该技术,并基于来自六个非常流行的Apache项目的8,316个缺陷报告的基准数据集对其进行了实验评估。我们的评估结果表明,RLocator实现了0.62的平均倒数排名(MRR)、0.59的平均精度均值(MAP)和0.46的Top 1得分。我们将RLocator与两个最先进的缺陷定位工具FLIM和BugLocator进行了比较。我们的评估表明,RLocator以显著优势优于这两种方法,在MAP上提高了38.3%,在MRR上提高了36.73%,在Top K指标上提高了23.68%。这些发现强调,直接优化评估指标对缺陷定位问题的性能提升有显著贡献。

英文摘要:

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 two state-of-the-art bug localization tools, FLIM and BugLocator. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑