arXiv:2605.11015cs.CRcs.AI2026-05

提出双通道融合模型,同时精准定位漏洞函数和具体出错行。

DCVD: Dual-Channel Cross-Modal Fusion for Joint Vulnerability Detection and Localization

论文配图:DCVD: Dual-Channel Cross-Modal Fusion for Joint Vulnerability Detection and Localization
图 1 · 摘自论文原文
  • 双分支并行提取控制依赖与语义特征,用对比对齐和双向交叉注意力融合
  • 在真实漏洞数据集上,函数检测与行级定位均超越现有最佳方法
  • 适合需要精准定位代码漏洞的开发与安全审计人员使用

软件漏洞检测对系统安全至关重要,实际审计不仅需判断函数是否含漏洞,还需精确定位具体出错代码行。现有方法或仅依赖单一信息源——序列、结构或语义——未能充分融合多模态优势,或仅将行级定位视为函数级检测的附带结果,缺乏显式行级监督。为此,我们提出DCVD(Dual-Channel Cross-Modal Vulnerability Detection)统一框架,实现函数级检测与语句级定位联合优化。该框架通过两条并行分支分别提取控制依赖与语义特征,并利用对比对齐与双向交叉注意力机制有效弥合跨模态表示差距。同时,在函数与语句两级引入显式监督信号,实现跨粒度协同优化。在大规模真实世界漏洞基准上的实验表明,DCVD在函数级检测与语句级定位任务上均持续优于当前最优方法。代码已开源:https://github.com/vinsontang1/DCVD。

原文摘要 · Abstract (English)

Software vulnerability detection plays a critical role in ensuring system security, where real-world auditing requires not only determining whether a function is vulnerable but also pinpointing the specific lines responsible. However, existing approaches either rely on a single information source -- sequential, structural, or semantic -- failing to jointly exploit the complementary strengths across modalities, or treat statement-level localization merely as a byproduct of function-level detection without explicit line-level supervision. To address these limitations, we propose DCVD (Dual-Channel Cross-Modal Vulnerability Detection), a unified framework that performs joint function-level detection and statement-level localization. DCVD extracts control-dependency and semantic features through two parallel branches and integrates them via contrastive alignment coupled with bidirectional cross-attention, effectively bridging the cross-modal representation gap. It further introduces explicit supervision signals at both the function and statement levels, enabling collaborative optimization across the two granularities. Extensive experiments on a large-scale real-world vulnerability benchmark demonstrate that DCVD consistently outperforms state-of-the-art methods on both function-level detection and statement-level localization. Our code is available at https://github.com/vinsontang1/DCVD.

漏洞检测代码分析多模态融合

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。