arXiv:2410.19550cs.SEcs.AI2024-10

通过多视图依赖图提升软件缺陷预测准确率

DeMuVGN: Effective Software Defect Prediction Model by Learning Multi-view Software Dependency via Graph Neural Networks

  • 构建包含数据、调用和开发者三类依赖的多视图图结构
  • 在8个开源项目中,F1分数提升最高达45.8%
  • 适用于成熟与新项目,尤其在后期版本表现更优

软件缺陷预测(SDP)旨在识别开发中高风险缺陷模块,优化资源分配。现有方法多聚焦代码依赖图,忽略开发者因素;传统手特征指标难以充分捕捉缺陷相关信息。为此,我们提出DeMuVGN模型,通过图神经网络学习多视图软件依赖。构建多视图软件依赖图(MSDG),融合数据、调用与开发者依赖。采用SMOTE处理类别不平衡,提升缺陷模块识别能力。在8个开源项目共20个版本的案例研究中,基于多视图图的模型相比单视图模型F1提升11.1%~12.1%;DeMuVGN在同项目场景下提升17.4%~45.8%,跨项目场景提升17.9%~41.0%。模型在软件演化后期版本中表现更优,跨项目泛化能力强。建议未来研究聚焦多视图依赖图在各类项目中的缺陷预测应用。

原文摘要 · Abstract (English)

Software defect prediction (SDP) aims to identify high-risk defect modules in software development, optimizing resource allocation. While previous studies show that dependency network metrics improve defect prediction, most methods focus on code-based dependency graphs, overlooking developer factors. Current metrics, based on handcrafted features like ego and global network metrics, fail to fully capture defect-related information. To address this, we propose DeMuVGN, a defect prediction model that learns multi-view software dependency via graph neural networks. We introduce a Multi-view Software Dependency Graph (MSDG) that integrates data, call, and developer dependencies. DeMuVGN also leverages the Synthetic Minority Oversampling Technique (SMOTE) to address class imbalance and enhance defect module identification. In a case study of eight open-source projects across 20 versions, DeMuVGN demonstrates significant improvements: i) models based on multi-view graphs improve F1 scores by 11.1% to 12.1% over single-view models; ii) DeMuVGN improves F1 scores by 17.4% to 45.8% in within-project contexts and by 17.9% to 41.0% in cross-project contexts. Additionally, DeMuVGN excels in software evolution, showing more improvement in later-stage software versions. Its strong performance across different projects highlights its generalizability. We recommend future research focus on multi-view dependency graphs for defect prediction in both mature and newly developed projects.

缺陷预测图神经网络多视图学习软件工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。