KDSA ‐ VD : Optimizing Cross‐Project Vulnerability Detection Through Dual‐Driven Fusion of Knowledge Distillation and Structural Alignment
Authors:
- 8 June 2026
- journal article
- Published by Wiley in Expert Systems
- Vol. 43 (7)
Abstract
Supervised deep learning techniques have demonstrated potential for software vulnerability detection, yet their practical deployment is often constrained by the limited availability of high‐quality labelled data. Cross‐project vulnerability detection seeks to overcome this constraint by enabling knowledge transfer from labelled source projects to target projects with insufficient labels. Nevertheless, existing studies fail to fully leverage the discriminative knowledge of source‐domain models and overlook cross‐project local semantic inconsistencies. To tackle these issues, we propose KDSA‐VD, a cross‐project vulnerability detection approach that employs a dual‐driven fusion of knowledge distillation and structural alignment. Built on CodeBERT for code representation learning, the proposed method first acquires discriminative features through supervised training on source projects. It then enhances cross‐domain adaptation by integrating soft‐label distillation, consistency regularization, and structural alignment to better exploit unlabelled target‐project data. Experimental results on 12 cross‐project vulnerability detection tasks indicate that KDSA‐VD outperforms existing baseline methods in most settings and exhibits stable performance under varying target‐domain labelling conditions.Keywords
Funding Information
- Natural Science Foundation of Guangdong Province (2024A1515010204)
This publication has 37 references indexed in Scilit:
- Multi-source cross-domain vulnerability detection based on code pre-trained modelInformation and Software Technology, 2025
- XGV-BERT: Leveraging contextualized language model and graph neural network for efficient software vulnerability detectionThe Journal of Supercomputing, 2025
- SIFT: enhance the performance of vulnerability detection by incorporating structural knowledge and multi-task learningAutomated Software Engineering, 2025
- The receiver operating characteristic curve accurately assesses imbalanced datasetsPatterns, 2024
- CSVD-TF: Cross-project software vulnerability detection with TrAdaBoost by fusing expert metrics and semantic metricsJournal of Systems and Software, 2024
- Large-scale Multi-modal Pre-trained Models: A Comprehensive SurveyMachine Intelligence Research, 2023
- Batch normalization embeddings for deep domain generalizationPattern Recognition, 2022
- Datasets are not enough: Challenges in labeling network trafficComputers & Security, 2022
- CD-VulD: Cross-Domain Vulnerability Discovery Based on Deep Domain AdaptationIEEE Transactions on Dependable and Secure Computing, 2020
- Negative samples reduction in cross-company software defects predictionInformation and Software Technology, 2015