paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Neural SZZ Algorithm

神经 SZZ 算法
ASE 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)2023匹配度 2/10 · 该论文将深度学习用于 SZZ 缺陷引入提交识别,属于机器学习在软件工程/缺陷修复中的应用,但未涉及用户核心关注的静态分析、形式化验证、LLM/Agent、浮点程序分析或贝叶斯程序分析。其问题与方法更偏向软件仓库挖掘和缺陷定位,与“PL→AI”或“AI→PL”的研究画像交叉有限。引用 10 inbox
Lingxiao Tang, Lingfeng Bao, Xin Xia, Zhongdong Huang
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 NEURALSZZ,用异构图注意力与学习排序识别修复提交中的根因删除行,提升 SZZ 精度。

SZZ 算法广泛用于识别引入缺陷的提交,但因 bug 修复提交中并非所有删除行都与修复相关,导致精度低。已有静态方法过滤注释、重构等噪声,但难以穷举模式,且未必提升性能。本文提出 NEURALSZZ,一种深度学习方法,先构建异构图注意力网络,建模每个删除行与其他删除/添加行之间的语义关系;再用学习排序对提交内所有删除行排序,定位根因删除行,并作为 SZZ 输入。作者在三个高质量 bug-fixing/bug-inducing 提交数据集上评估,结果显示 NEURALSZZ 优于传统机器学习和 Bi-LSTM 等基线;使用排序靠前的删除行后,SZZ 的精度和 F1 优于已有 SZZ 算法。

问题
SZZ 算法在识别 bug-inducing commits 时精度较低,因为 bug-fixing commit 中的删除行不全是根因相关行。
方法
提出 NEURALSZZ,使用异构图注意力网络捕获删除行与其他增删行间的语义关系,并用 learning-to-rank 对删除行排序以定位根因。
评估
在三个高质量 bug-fixing/bug-inducing 提交数据集上,与多种基线(传统机器学习方法、Bi-LSTM 等)比较,并评估排序后 SZZ 的精度与 F1。
原文摘要(Abstract)

The SZZ algorithm has been widely used for identifying bug-inducing commits. However, it suffers from low precision, as not all deletion lines in the bug-fixing commit are related to the bug fix. Previous studies have attempted to address this issue by using static methods to filter out noise, e.g., comments and refactoring operations in the bug-fixing commit. However, these methods have two limitations. First, it is challenging to include all refactoring and non-essential change patterns in a tool, leading to the potential exclusion of relevant lines and the inclusion of irrelevant lines. Second, applying these tools might not always improve performance. In this paper, to address the aforementioned challenges, we propose NEURALSZZ, a deep learning approach for detecting the root cause deletion lines in a bug-fixing commit and using them as input for the SZZ algorithm. NEURALSZZ first constructs a heterogeneous graph attention network model that captures the semantic relationships between each deletion line and the other deletion and addition lines. To pinpoint the root cause of a bug, Neuralszz uses a learning-to-rank technique to rank all deletion lines in the commit. To evaluate the effectiveness of NEURALSZZ, we utilize three datasets containing high-quality bug-fixing and bug-inducing commits. The experiment results show that NEURALSZZ outperforms various baseline methods, e.g., traditional machine learning-based approaches and BI-LSTM in identifying the root cause of bugs. Moreover, by utilizing the top-ranked deletion lines and applying the SZZ algorithm, Neuralszz demonstrates better precision and F1-score compared to previous SZZ algorithms.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{TangBXH23,
  title = {Neural SZZ Algorithm},
  author = {Lingxiao Tang and Lingfeng Bao and Xin Xia and Zhongdong Huang},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00037}
}