基于多源域适应和数据增强的跨项目开源软件缺陷预测
CSTR:
作者:
作者单位:

1.国防科技创新研究院协同创新项目部;2.北京邮电大学

作者简介:

通讯作者:

中图分类号:

基金项目:


Cross-project Open Source Software Defect Prediction Based on Multi-Source Domain Adaptation and Data Augmentation
Author:
Affiliation:

1.National Innovation Institute of Defense Technology;2.Beijing University of Posts and Telecommunications

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    通过挖掘软件代码仓库数据预测软件缺陷是提高软件质量和增强软件安全性的重要方法。人们提出了多种基于机器学习的方法挖掘软件代码仓缺陷数据预测软件缺陷。然而,由于从不同代码仓提取的软件缺陷数据具有异质性,因此机器学习的预测效果往往并不理想。为此,本文提出一种基于多源域适应和数据增强的缺陷预测方法。该方法通过挖掘各种源代码仓和目标代码仓之间的特征相似性提高预测的准确性:一方面利用带权重的最大平均方差使特征分布距离最小,另一方面利用注意力机制提高与目标代码仓高度相似的源代码仓权重。对比实验结果表明,本文所提方法在软件缺陷预测效果最佳。

    Abstract:

    Predicting defect through mining softwarerepositories(MSRs) is crucial for enhancing the security and quality of software. With an extensive collection of software defect data acquired by mining various repositories, numerous machine learning-based approaches have been proposed for defect detection. However, due to the heterogeneity of vulnerability data originating from different repositories, the robustness of the approach is significantly compromised. In light of this, a defect prediction approach was proposed, based on multi-source Domain Adaptation and Data Augmentation(DPDA).Our approach mined feature similarities between various source repositories and target repository. Specifically, it employed weighted maximum mean differences to minimize the distribution distance of their features. Meanwhile, different attention scores were assigned to weigh different sources to increase the weight of source repositories with high similarity to the target repository. This strategic weighting aims to focus on the source repository with high similarity in the model, reducing the impact of irrelevant repositories. The comparative experiments demonstrated that our approach can achieve the best performance in predicting software defect.

    参考文献
    相似文献
    引证文献
引用本文
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2023-12-13
  • 最后修改日期:2024-01-18
  • 录用日期:
  • 在线发布日期: 2024-03-27
  • 出版日期:
文章二维码