WELL: Applying bug detectors to bug localization via weakly supervised learning

JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS(2024)

引用 0|浏览1
暂无评分
摘要
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 state-of-the-art model in typical bug localization tasks such as variable misuse and other bugs. Researchers have already made efforts to harness the powerful deep learning techniques to automate bug localization and further fixing. However, training bug localization model 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 buggy-or-not labels is much simpler. We propose a weakly supervised bug localization (WELL) method, using the bug detection data with binary labels to train a bug localization model. image
更多
查看译文
关键词
bug detection,bug localization,weakly supervised learning
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要