arrow
返回

CEVD: Cluster-Based Ensemble Learning for Cross-Project Vulnerability Detection

delete2026-02-05
delete0
delete
OA
AI
Y
Yang Cao
Y
Yunwei Dong *
J
Jie Liu
DOI:10.3390/fi18020085delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Deep learning has become an important approach for automated software vulnerability detection. However, due to domain shift, existing models often suffer from significant performance degradation when applied to unseen projects. To address this issue, prior studies have widely adopted Domain Adaptation (DA) techniques to improve cross-project generalization. Nevertheless, these methods typically rely on the implicit “project-as-domain” assumption and require access to target project data during training, which limits their applicability in practice. To overcome these limitations, this paper proposes a vulnerability detection framework that combines semantic clustering with ensemble-based Domain Generalization (DG), termed Cluster-based Ensemble Learning for Vulnerability Detection (CEVD). CEVD first performs unsupervised clustering on code semantic embeddings to automatically automatically identify latent semantic structures that transcend project boundaries, constructing pseudo-domains with intra-domain homogeneity. A soft domain labeling strategy is further introduced to model the membership of samples in multiple pseudo-domains, preserving semantic overlap across boundaries. Building upon this, CEVD employs an ensemble learning framework that jointly trains multiple expert models and a domain classifier. The predictions of these experts are dynamically fused based on the weights generated by the domain classifier, enabling effective vulnerability detection on unseen projects without requiring access to target data. Extensive experiments on real-world datasets demonstrate that CEVD consistently outperforms state-of-the-art baselines across different pre-trained backbone models. This work demonstrates the effectiveness of semantic structure mining in capturing latent domains and offers a practical solution for improving generalization in cross-project vulnerability detection.
Keyword:
vulnerability detection
cross-project
ensemble learning
domain generalization
code semantic clustering

期刊

Future Internet 封面图
Future Internet
IF:
3.6
论文数:
1.3K
被引数:
6.5K

机构

N
northwestern polytechnical university
学者数:
1.3W
论文数: 4.6K
被引数: 0
引用论文

引用论文

CD-VulD: Cross-Domain Vulnerability Discovery Based on Deep Domain Adaptation
err2022-01-01
err46
PREAI
errLiu, Shigang; Lin, Guanjun; Qu, Lizhen; Zhang, Jun; De Vel, Olivier; Montague, Paul; Xiang, Yang
err分享
err收藏
Deep Domain Adaptation for Vulnerable Code Function Identification
err2019-07-01
err0
PREAI
errVan Nguyen; Trung Le; Tue Le; Khanh Nguyen; Olivier DeVel; Paul Montague; Lizhen Qu; Dinh Phung
err分享
err收藏
Beyond heuristics
err2010-07-25
err0
PREAI
errMehran Bozorgi; Lawrence K. Saul; Stefan Savage; Geoffrey M. Voelker
err分享
err收藏
Domain-Adversarial Training of Neural Networks
err2017-09-13
err0
PREAI
errYaroslav Ganin; Evgeniya Ustinova; Hana Ajakan; Pascal Germain; Hugo Larochelle; François Laviolette; Mario Marchand; Victor Lempitsky
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Cluster Analysis
err2012-01-01
err0
PREAI
errJiawei Han; Micheline Kamber; Jian Pei
err分享
err收藏
学者 查看更多内容