paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Boosting Code-line-level Defect Prediction with Spectrum Information and Causality Analysis

利用频谱信息与因果分析提升代码行级缺陷预测
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 2/10 · 该论文聚焦代码行级缺陷预测,使用历史缺陷标签的频谱信息与因果分析,属于软件工程/缺陷预测方向;与用户关注的 PL 与 AI/LLM/Agent 交叉、静态分析、浮点程序分析、贝叶斯程序分析等核心方向均无明显关联。引用 2 inbox
Shiyu Sun, Yanhui Li, Lin Chen, Yuming Zhou, Jianhua Zhao
crossref: 2026-09-12

AI 速览

一句话:提出 SOUND,结合历史缺陷行的频谱信息与因果分析进行代码行级缺陷预测,显著提升缺陷行排序效果。

代码行级缺陷预测(CLDP)用于在软件质量保障中定位含缺陷代码行。现有方法多依赖代码文本或文件级标签,未充分利用历史代码行级标签;而行数庞大且 token 稀疏,使这些标签难以直接利用。本文提出 SOUND,融合两种思想:一是引入频谱信息视角,利用历史缺陷行标签量化 token 对行级缺陷的贡献;二是应用因果分析,更系统全面地刻画 token 与缺陷之间的因果关系。在 19 个软件项目、142 个 release 上评估,SOUND 在 IFA、Recall@Top20%LOC 与 Effort@Top20%Recall 三个指标上显著优于 SOTA CLDP 基线;多数情况下 IFA 为 0,即排序首位即为真实缺陷行。

问题
现有代码行级缺陷预测方法未充分利用历史代码行级标签,且代码行数庞大、token 稀疏使历史标签难以有效利用。
方法
提出 SOUND,从频谱信息角度用历史缺陷行标签量化 token 对行级缺陷的贡献,并引入因果分析系统刻画 token 与缺陷之间的因果关系。
评估
在 19 个项目、142 个 release 上,以 IFA、Recall@Top20%LOC、Effort@Top20%Recall 对比 SOTA 基线;SOUND 显著更优,多数情况下 IFA 为 0。
原文摘要(Abstract)

Code-line-Ievel defect prediction (CLDP) is an effective technique to incorporate comprehensive measures for buggy line identification to optimize efforts in Software Quality Assurance activities. Most CLDP methods either consider the textual information of the code or rely merely on file-level label information, which have not fully leveraged the essential information in the CLDP context, with historical code-line-level labels being incredibly overlooked in their application. Due to the vast number of code lines and the sparsity of the tokens they contain, leveraging historical code-line-level label information remains a significant challenge. To address this issue, we propose a novel CLDP method, Spectrum infOrmation and caUsality aNalysis based coDe-line-level defect prediction (SOUND). SOUND incorporates two key ideas: (a) it introduces a spectrum information perspective, utilizing labels from historical defective lines to quantify the contribution of tokens to line-level defects, and (b) it applies causal analysis to obtain a more systematic and comprehensive understanding of the causal relationships between tokens and defects. After conducting a comprehensive study involving 142 releases across 19 software projects, the experimental results demonstrate that our method significantly outperforms existing state-of-the-art (SOTA) CLDP baseline methods in terms of its ability to rank defective lines under three indicators, IFA, Recall@Top20%LOC, and Effort@Top20%Recall. Notably, in terms of IFA, our method achieves a score of 0 in most cases, indicating that the first line in the ranking list generated by our method is actually defective, significantly enhancing its practicality.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8769,
  title = {Boosting Code-line-level Defect Prediction with Spectrum Information and Causality Analysis},
  author = {Shiyu Sun and Yanhui Li and Lin Chen and Yuming Zhou and Jianhua Zhao},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00240}
}