EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

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

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

Algorithms · 30.10.2026 · 19 (11) · 944

DOI: 10.3390/a19110944 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Algorithms, online erschienen am 30.10.2026. Verfasst von Sadia Sahar und 5 weiteren Autor:innen. Die Arbeit nennt 102 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

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.

Zitieren

APA

Sahar, S., Younas, M., Riaz, S., Khan, R., Ullah, M., & Saleem, K. (2026). Domain Adaptation for Cross-Project Defect Prediction via Transfer-Contrastive Learning with Large Language Models. Algorithms, 19(11), 944. https://doi.org/10.3390/a19110944

Vancouver

Sahar S, Younas M, Riaz S, Khan R, Ullah M, Saleem K. Domain Adaptation for Cross-Project Defect Prediction via Transfer-Contrastive Learning with Large Language Models. Algorithms. 2026;19(11):944. doi:10.3390/a19110944

BibTeX
@article{Sahar2026,
  author = {Sahar, Sadia and Younas, Muhammad and Riaz, Shazia and Khan, Rafiullah and Ullah, Mohib and Saleem, Kashif},
  title = {Domain Adaptation for Cross-Project Defect Prediction via Transfer-Contrastive Learning with Large Language Models},
  journal = {Algorithms},
  year = {2026},
  volume = {19},
  number = {11},
  pages = {944},
  doi = {10.3390/a19110944}
}
Kostenlos starten →