Domain Adaptation for Cross-Project Defect Prediction via Transfer-Contrastive Learning with Large Language Models

Cross-project defect prediction (CPDP) is a significant solution in software defect prediction (SDP) when historical data is unavailable. In CPDP, the defect data of another project (called the source project) is used to train the model. Different training and test projects may have different feature distributions. Divergence in data distribution between source and target projects adversely affects prediction performance, and the semantic information of the tokens cannot be captured adequately. However, most of the existing deep learning approaches assume that these two projects have a uniform distribution, so the features extracted from these deep learning models are not optimal. Moreover, these approaches neglected the information about the class to which the sample belonged and were unable to discriminate the samples according to the class information. To address this issue, we proposed a framework, TC3, that exploits the combination of contrastive and transfer learning integrated with the CNN-CodeBERT model to learn class-discriminative information and obtain more transferable features for the target project. The proposed model was evaluated on PROMISE datasets. The proposed model achieved an absolute F1-score improvement of 0.047 to 0.107, corresponding to a relative improvement of 7.89% to 19.96%, and an absolute AUC improvement of 0.014 to 0.148, corresponding to a relative improvement of 2.18% to 29.19% as compared to the baseline methods.

Authors

Institutions

Publication Details

Journal
Algorithms
Published
2026-10-30
DOI
https://doi.org/10.3390/a19110944
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Domain Adaptation for Cross-Project Defect Prediction via Transfer-Contrastive Learning with Large Language Models

Mohib Ullah, Sadia Sahar, Rafiullah Khan, Kashif Saleem et al.
1 links
Algorithms
Software Engineering Research
article

Domain Adaptation for Cross-Project Defect Prediction via Transfer-Contrastive Learning with Large Language Models

Mohib Ullah, Sadia Sahar, Rafiullah Khan, Kashif Saleem, Muhammad Umer Younas, Shazia Riaz
article en

Abstract

Cross-project defect prediction (CPDP) is a significant solution in software defect prediction (SDP) when historical data is unavailable. In CPDP, the defect data of another project (called the source project) is used to train the model. Different training and test projects may have different feature distributions. Divergence in data distribution between source and target projects adversely affects prediction performance, and the semantic information of the tokens cannot be captured adequately. However, most of the existing deep learning approaches assume that these two projects have a uniform distribution, so the features extracted from these deep learning models are not optimal. Moreover, these approaches neglected the information about the class to which the sample belonged and were unable to discriminate the samples according to the class information. To address this issue, we proposed a framework, TC3, that exploits the combination of contrastive and transfer learning integrated with the CNN-CodeBERT model to learn class-discriminative information and obtain more transferable features for the target project. The proposed model was evaluated on PROMISE datasets. The proposed model achieved an absolute F1-score improvement of 0.047 to 0.107, corresponding to a relative improvement of 7.89% to 19.96%, and an absolute AUC improvement of 0.014 to 0.148, corresponding to a relative improvement of 2.18% to 29.19% as compared to the baseline methods.

AlgorithmsVol. 19(11)
Government College University, Faisalabad (PK), The University of Agriculture, Peshawar (PK), Government College Women University Faisalabad (PK), Macquarie University (AU)
Openalex Percentile: Top 6%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Domain Adaptation for Cross-Project Defect Prediction via Transfer-Contrastive Learning with Large Language Models — Mohib Ullah, Sadia Sahar, et al. · Algorithms (2026) | TGRS Research Map | TGRS