信息安全研究 ›› 2026, Vol. 12 ›› Issue (11): 984-992.DOI: 10.12379/j.issn.2096-1057.2026.11.02

• • 上一篇    

基于大模型的多模态特征融合漏洞检测方法

赵新建,陶驰宇,陈石,况博裕,吴子成,付安民   

  • 发布日期:2026-11-11

A Multimodal Feature Fusion Approach for Vulnerability Detection Based on Large Models

Zhao Xinjian, Tao Chiyu, Chen Shi, Kuang Boyu, Wu Zicheng, Fu Anmin   

  • Published:2026-11-11

摘要: 随着开源软件的广泛应用,漏洞数量急剧增加,传统检测方法存在误报率高、难以捕捉复杂依赖关系等问题。为此,本文提出一种基于大模型的多模态特征融合漏洞检测方法(Multi-modal Feature Fusion Code Vulnerability Detection,MMFVD)。该方法首先构建多功能代码属性图(Multifunctional Code Property Graph,M-CPG),通过程序切片与剪枝保留关键结构信息;其次,利用预训练序列模型和图模型分别提取代码语义特征与结构特征,并通过在线知识蒸馏优化表征;最后,采用动态注意力机制实现特征的自适应融合,并通过分类器完成漏洞检测。在四个公开数据集上,对MMFVD与10种基线方法进行对比实验,验证了MMFVD在检测精度、鲁棒性和泛化能力方面的显著优势。

关键词: 漏洞检测;大模型;多模态特征融合;代码属性图

Abstract: With the widespread adoption of open-source software, the number of vulnerabilities has increased sharply. The traditional detection methods suffer from high false positive rates and difficulty in capturing complex dependencies. To address these issues, this paper proposes a large model-based multi-modal feature fusion vulnerability detection method named MMFVD. The method first constructs a Multi-functional Code Property Graph (M-CPG), which retains key structural information through program slicing and pruning. Next, pre-trained sequence models and graph models are used to extract semantic features and structural features of the code respectively, with online knowledge distillation applied to optimize feature representation. Finally, a dynamic attention mechanism is adopted to achieve adaptive fusion of the features, and a classifier is employed to complete vulnerability prediction. On four public datasets, MMFVD is compared with 10 baseline methods, which verifies the significant advantages of MMFVD in detection accuracy, robustness, and generalization.

Key words: vulnerability detection; large models; multimodal feature fusion; code property graph

中图分类号: