Adversarial domain adaptation for cross-project defect prediction

被引:2
|
作者
Song, Hengjie [1 ]
Wu, Guobin [1 ]
Ma, Le [2 ]
Pan, Yufei [1 ]
Huang, Qingan [1 ]
Jiang, Siyu [3 ]
机构
[1] South China Univ Technol, Sch Software Engn, Guangzhou, Peoples R China
[2] Guangzhou City Univ Technol, Guangzhou, Peoples R China
[3] Guangdong Univ Foreign Studies, Sch Informat Sci & Technol, Guangzhou Key Lab Multilingual Intelligent Proc, Guangzhou, Peoples R China
关键词
Adversarial learning; Cross-project defect prediction; Domain adaptation; Software reliability; FEATURE-SELECTION; MACHINE; MODEL;
D O I
10.1007/s10664-023-10371-2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Cross-Project Defect Prediction (CPDP) is an attractive topic for locating defects in projects with little labeled data (target projects) by using the prediction model from other projects with sufficient data (source projects). However, previous models may not fully capture the semantic features of programs because of inappropriate feature extraction models. Besides, researchers may fail to consider the relationship between the decision boundary and target project data when matching two feature distributions by adopting transfer learning methods, which would lead to the misclassification of target samples that are near boundary. To handle these drawbacks, we propose a novel Adversarial Domain Adaptation (ADA) model for CPDP. Specifically, we leverage a Long Short-Term Memory network with attention mechanism to extract semantic features that better represent programs. Then, we train two classifiers to correctly categorize source samples and distinguish ambiguous target instances that influence prediction accuracy. Next, we treat the classifiers as a discriminator and feature extraction model as a generator, and train them based on adversarial learning methods to depict the desired relationship. As the classifiers know this relationship, they should attain better performance. Extensive experiments on two benchmark datasets are conducted to verify the effectiveness of the proposed ADA methods. Experimental and statistical results show that ADA significantly outperforms other state-of-the-art baseline methods.
引用
收藏
页数:44
相关论文
共 50 条
  • [1] Adversarial domain adaptation for cross-project defect prediction
    Hengjie Song
    Guobin Wu
    Le Ma
    Yufei Pan
    Qingan Huang
    Siyu Jiang
    Empirical Software Engineering, 2023, 28
  • [2] Cross-project defect prediction based on autoencoder with dynamic adversarial adaptation
    Zhang, Wen
    Zhao, Jiangpeng
    Qin, Guangjie
    Wang, Song
    APPLIED INTELLIGENCE, 2025, 55 (05)
  • [3] Domain Adaptation Approach for Cross-project Software Defect Prediction
    Chen S.
    Ye J.-M.
    Liu T.
    Ruan Jian Xue Bao/Journal of Software, 2020, 31 (02): : 266 - 281
  • [4] Cross-Project Defect Prediction Based on Domain Adaptation and LSTM Optimization
    Javed, Khadija
    Ren, Shengbing
    Asim, Muhammad
    Wani, Mudasir Ahmad
    ALGORITHMS, 2024, 17 (05)
  • [5] Cross-project software defect prediction based on domain adaptation learning and optimization
    Jin, Cong
    EXPERT SYSTEMS WITH APPLICATIONS, 2021, 171
  • [6] Balanced Adversarial Tight Matching for Cross-Project Defect Prediction
    Jiang, Siyu
    Zhang, Jiapeng
    Guo, Feng
    Ouyang, Teng
    Li, Jing
    IET SOFTWARE, 2024, 2024
  • [7] Cross-project Defect Prediction Method Using Adversarial Learning
    Xing Y.
    Qian X.-M.
    Guan Y.
    Zhang S.-H.
    Zhao M.-C.
    Lin W.-T.
    Ruan Jian Xue Bao/Journal of Software, 2022, 33 (06): : 2097 - 2112
  • [8] HDA: Cross-Project Defect Prediction via Heterogeneous Domain Adaptation With Dictionary Learning
    Xu, Zhou
    Yuan, Peipei
    Zhang, Tao
    Tang, Yutian
    Li, Shuai
    Xia, Zhen
    IEEE ACCESS, 2018, 6 : 57597 - 57613
  • [9] Unsupervised Domain Adaptation Based on Discriminative Subspace Learning for Cross-Project Defect Prediction
    Sun, Ying
    Sun, Yanfei
    Qi, Jin
    Wu, Fei
    Jing, Xiao-Yuan
    Xue, Yu
    Shen, Zixin
    CMC-COMPUTERS MATERIALS & CONTINUA, 2021, 68 (03): : 3373 - 3389
  • [10] Manifold embedded distribution adaptation for cross-project defect prediction
    Sun, Ying
    Jing, Xiao-Yuan
    Wu, Fei
    Sun, Yanfei
    IET SOFTWARE, 2020, 14 (07) : 825 - 838