DP‐GCN: Integrating GraphCodeBERT and GCN With Contrastive Learning for Software Defect Prediction.

Saved in:
Bibliographic Details
Title: DP‐GCN: Integrating GraphCodeBERT and GCN With Contrastive Learning for Software Defect Prediction.
Authors: Liu, Xueting1 (AUTHOR) 2193745755@qq.com, Jin, Haibo1 (AUTHOR)
Source: Journal of Software: Evolution & Process. Apr2026, Vol. 38 Issue 4, p1-17. 17p.
Subjects: Defect tracking (Computer software development), Graph neural networks, Machine learning, Generalization
Abstract: Software defect prediction identifies high‐risk code early, reducing development costs and improving software quality. Early studies primarily relied on handcrafted features, which struggled to capture semantic differences and structural information within programs. Later research fused semantic features extracted from abstract syntax trees (ASTs) or graph structures with handcrafted features, improving prediction performance. However, existing fusion methods still face challenges such as insufficient deep semantic mining, inadequate global dependency capture, and weak cross‐project generalization. To address these limitations, this paper proposes DP‐GCN, a defect prediction model integrating GraphCodeBERT, graph convolutional network (GCN), and contrastive learning. Specifically, GraphCodeBERT extracts semantic and structural code representations, GCN captures global dependencies among code elements, and contrastive learning optimizes the feature space distribution to enhance discriminability. The optimized deep features are then fused with handcrafted features and fed into a logistic regression classifier for defect prediction. Experiments on 10 projects from the PROMISE dataset show that DP‐GCN outperforms existing methods in both within‐project and cross‐project scenarios, validating its effectiveness and the synergistic advantages of the three integrated techniques. [ABSTRACT FROM AUTHOR]
Copyright of Journal of Software: Evolution & Process is the property of Wiley-Blackwell and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Database: Engineering Source
Be the first to leave a comment!
You must be logged in first