Adversarial domain adaptation for cross-project defect prediction

被引:4
作者
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 条
[31]   An Empirical Study on the Effectiveness of Feature Selection for Cross-Project Defect Prediction [J].
Yu, Qiao ;
Qian, Junyan ;
Jiang, Shujuan ;
Wu, Zhenhua ;
Zhang, Gongjie .
IEEE ACCESS, 2019, 7 :35710-35718
[32]   Joint distribution matching model for distribution-adaptation-based cross-project defect prediction [J].
Qiu, Shaojian ;
Lu, Lu ;
Jiang, Siyu .
IET SOFTWARE, 2019, 13 (05) :393-402
[33]   Improving Relevancy Filter Methods for Cross-Project Defect Prediction [J].
Kawata, Kazuya ;
Amasaki, Sousuke ;
Yokogawa, Tomoyuki .
APPLIED COMPUTING & INFORMATION TECHNOLOGY, 2016, 619 :1-12
[34]   Improving transfer learning for software cross-project defect prediction [J].
Omondiagbe, Osayande P. ;
Licorish, Sherlock A. ;
Macdonell, Stephen G. .
APPLIED INTELLIGENCE, 2024, 54 (07) :5593-5616
[35]   Cross-Version Defect Prediction using Cross-Project Defect Prediction Approaches: Does it work? [J].
Amasaki, Sousuke .
PROMISE'18: PROCEEDINGS OF THE 14TH INTERNATIONAL CONFERENCE ON PREDICTIVE MODELS AND DATA ANALYTICS IN SOFTWARE ENGINEERING, 2018, :32-41
[36]   Comprehensive Feature Extraction for Cross-Project Software Defect Prediction [J].
Reddy, Jagan Mohan ;
Muthukumaran, K. ;
Shahriar, Hossain ;
Clincy, Victor ;
Sakib, Nazmus .
2022 IEEE 46TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE (COMPSAC 2022), 2022, :450-451
[37]   Heterogeneous Cross-Project Defect Prediction via Optimal Transport [J].
Zong, Xing ;
Li, Guiyu ;
Zheng, Shang ;
Zou, Haitao ;
Yu, Hualong ;
Gao, Shang .
IEEE ACCESS, 2023, 11 :12015-12030
[38]   HYDRA: Massively Compositional Model for Cross-Project Defect Prediction [J].
Xia, Xin ;
Lo, David ;
Pan, Sinno Jialin ;
Nagappan, Nachiappan ;
Wang, Xinyu .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2016, 42 (10) :977-998
[39]   Cross-Project Transfer Learning on Lightweight Code Semantic Graphs for Defect Prediction [J].
Fang, Dingbang ;
Liu, Shaoying ;
Li, Yang .
INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2023, 33 (07) :1095-1117
[40]   Cross-project software defect prediction based on the reduction and hybridization of software metrics [J].
Abdu, Ahmed ;
Zhai, Zhengjun ;
Abdo, Hakim A. ;
Lee, Sungon ;
Al-masni, Mohammed A. ;
Gu, Yeong Hyeon ;
Algabri, Redhwan .
ALEXANDRIA ENGINEERING JOURNAL, 2025, 112 :161-176