arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.17384cs.SE
收藏

WELL:通过弱监督学习将缺陷检测器应用于缺陷定位

WELL: Applying Bug Detectors to Bug Localization via Weakly Supervised Learning

Zhuo Li, Huangzhao Zhang, Zhi Jin, Ge Li

AI总结:

针对缺陷精确定位标注稀缺问题,本文提出 WELL,仅利用是否有缺陷的二元检测数据微调 CodeBERT,以弱监督方式实现缺陷定位,并在多个数据集上优于现有 SOTA。

摘要:

缺陷定位用于帮助程序员识别源代码中缺陷的位置,是软件开发中的一项重要任务。研究人员已经致力于利用强大的深度学习(DL)技术来实现该任务的自动化。然而,训练缺陷定位模型通常具有挑战性,因为它需要大量标注有缺陷确切位置的数据,而这些数据收集起来既困难又耗时。相比之下,获取带有源代码中是否存在缺陷这一二元标签的缺陷检测数据要简单得多。本文提出了一种弱监督缺陷定位(WEakly supervised bug LocaLization,WELL)方法,该方法仅使用带有二元标签的缺陷检测数据来训练缺陷定位模型。通过在“是否有缺陷”的二元标注数据上微调 CodeBERT,WELL 能够以弱监督方式处理缺陷定位任务。在三个方法级合成数据集和一个文件级真实世界数据集上的评估表明,在变量误用和其他编程缺陷等典型缺陷定位任务中,WELL 显著优于现有的 SOTA 模型。

英文摘要:

Bug localization, which is used to help programmers identify the location of bugs in source code, is an essential task in software development. Researchers have already made efforts to harness the powerful deep learning (DL) techniques to automate it. However, training bug localization model is usually challenging because it requires a large quantity of data labeled with the bug's exact location, which is difficult and time-consuming to collect. By contrast, obtaining bug detection data with binary labels of whether there is a bug in the source code is much simpler. This paper proposes a WEakly supervised bug LocaLization (WELL) method, which only uses the bug detection data with binary labels to train a bug localization model. With CodeBERT finetuned on the buggy-or-not binary labeled data, WELL can address bug localization in a weakly supervised manner. The evaluations on three method-level synthetic datasets and one file-level real-world dataset show that WELL is significantly better than the existing SOTA model in typical bug localization tasks such as variable misuse and other programming bugs.

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

↑