paperbot · PL 论文追踪

全部论文 待读 收藏

P2 BugPecker

BugPecker:面向缺陷方法定位的修订图深度学习
ASE Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering2020匹配度 3/10 · 该论文属于机器学习与程序语言交叉中的缺陷定位任务,与软件工程/PL 相邻,但核心方法是基于修订图的深度学习,并非用户重点关注的静态分析、LLM/Agent 程序分析、浮点程序分析或贝叶斯程序分析。其问题设置更偏传统 fault localization,与当前研究画像的核心交叉方向距离较远。引用 12 inbox
Junming Cao, Shouliang Yang, Wenhui Jiang, Hushuang Zeng, Beijun Shen, Hao Zhong
crossref: 2026-09-12

AI 速览

一句话:BugPecker 通过在修订图上深度学习,利用历史修复细节来定位缺陷方法,显著优于现有方法。

缺陷定位旨在根据缺陷报告找出项目中出错的位置。已有方法在定位缺陷文件上表现良好,但定位到具体缺陷方法仍然困难,因为方法体往往很短、信息不足。本文提出 BugPecker,一种基于修订图(revision graph)深度学习的方法级缺陷定位技术。其核心思想是:(1) 构建修订图,尽可能捕获过往修复的细节信息;(2) 挖掘修订图内部的关系以扩展方法相关细节,并计算多种特征用于排序。作者实现了 BugPecker,并在三个开源项目上进行评估。结果表明,BugPecker 取得 0.263 的平均精度均值(MAP)和 0.291 的平均倒数排名(MRR),显著优于先前方法:例如相比 DNNLoc-m 和 BLIA 1.5 等两种近期方法,其在三个项目上的 MAP 值均提升约五倍。

问题
在缺陷报告中定位出错的文件已有不少有效方法,但定位到具体方法仍很困难,因为很多方法代码短、缺乏足够细节来判断其是否有缺陷。
方法
构建修订图以尽可能捕获历史修复的细节,并在修订图上发现方法之间的关系来扩展方法信息,再计算多种特征用于对候选方法排序。
评估
在三个开源项目上实现并评估 BugPecker,使用 MAP 与 MRR 作为指标,并与 DNNLoc-m、BLIA 1.5 等近期方法进行对比。
原文摘要(Abstract)

Given a bug report of a project, the task of locating the faults of the bug report is called fault localization. To help programmers in the fault localization process, many approaches have been proposed, and have achieved promising results to locate faulty files. However, it is still challenging to locate faulty methods, because many methods are short and do not have sufficient details to determine whether they are faulty. In this paper, we present BugPecker, a novel approach to locate faulty methods based on its deep learning on revision graphs. Its key idea includes (1) building revision graphs and capturing the details of past fixes as much as possible, and (2) discovering relations inside our revision graphs to expand the details for methods and calculating various features to assist our ranking. We have implemented BugPecker, and evaluated it on three open source projects. The early results show that BugPecker achieves a mean average precision (MAP) of 0.263 and mean reciprocal rank (MRR) of 0.291, which improve the prior approaches significantly. For example, BugPecker improves the MAP values of all three projects by five times, compared with two recent approaches such as DNNLoc-m and BLIA 1.5.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5979,
  title = {BugPecker},
  author = {Junming Cao and Shouliang Yang and Wenhui Jiang and Hushuang Zeng and Beijun Shen and Hao Zhong},
  booktitle = {ASE},
  year = {2020},
  doi = {10.1145/3324884.3418934}
}