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

*Wenxin Tang, Wenbin Li, Junliang Liu, Jingyu Xiao, Xi Xiao, Mingzhe liu, Jinlong Yang, Xuan Liu, Yuehe Ma, Wang Luo, Qing Li, Lei Wang, Peng Xiangli*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152806) · [OpenReview](https://openreview.net/forum?id=QFBbFDJdtz) · [alphaXiv](https://www.alphaxiv.org/abs/2605.11015) · [Open on the map](../papers.html#p152806)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Multi-Agent Security Evaluation](../pgroup/474.md) · Type: new method · Keywords: vulnerability detection, statement localization, cross-modal fusion, control dependency, semantic analysis

Areas: [Safety & Security](../areas/safety.md) › Cybersecurity › Vulnerability Detection

## Summary
DCVD introduces a unified dual-channel cross-modal framework that jointly detects vulnerable functions and localizes vulnerable statements by integrating control-dependency and semantic features.

## Explained to a 5-year-old
Computers have rules called code that tell them what to do. Sometimes these rules have mistakes, called bugs, that can be taken advantage of. Finding bugs is important because it keeps our devices and online services safe. Usually, people look for bugs in big parts of the code, like whole functions. But it's also very helpful to know exactly which tiny lines of code are the problem.

## Explained to a 5-year-old, longer
Computers have rules called code that tell them what to do. Sometimes these rules have mistakes, called bugs, that can be taken advantage of. Finding bugs is important because it keeps our devices and online services safe. Usually, people look for bugs in big parts of the code, like whole functions. But it's also very helpful to know exactly which tiny lines of code are the problem. Existing methods only look at one kind of information, like how the code is written or what it says, and miss out on other clues. The new system combines two kinds of information: how the code is connected and what it means. By putting these two views together, it can see the bugs more clearly. It also learns from examples that show both big and small bugs, so it gets better at finding them. The system is trained to spot bugs at two levels: the whole function and the exact line. This helps security experts fix the right part of the code quickly. Overall, it makes software more secure and easier to maintain.

## For a technical reader
The paper addresses the need for precise vulnerability localization by jointly detecting vulnerable functions and identifying the exact statements responsible. It processes control-dependency graphs and semantic code features in parallel, aligning them through contrastive learning and bidirectional cross-attention to bridge representation gaps. Explicit multi-granularity supervision is applied, allowing the model to optimize both function-level and line-level predictions simultaneously. Experiments on a large-scale benchmark show consistent gains over existing single-source approaches for both detection accuracy and localization precision. The design offers a unified pipeline that can be integrated into existing static analysis or automated testing workflows to improve security auditing.

## Problem
Existing vulnerability detection methods focus on either function-level detection or statement-level localization, using only a single source of information, which limits their ability to accurately identify both the vulnerable function and the exact lines of code.

## Method
The approach uses two parallel branches to extract control-dependency and semantic features, aligns them via contrastive learning and bidirectional cross-attention, and provides explicit supervision at both function and statement levels for collaborative optimization.

## Results
The approach shows consistent improvements over state-of-the-art methods on both detection and localization tasks.

## Contributions
The paper presents a unified framework that jointly performs function-level detection and statement-level localization by integrating control-dependency and semantic features via contrastive alignment and cross-attention, and provides explicit multi-granularity supervision.

## Practical relevance
This work enables more precise vulnerability auditing by pinpointing exact vulnerable lines, aiding security analysts in focusing remediation efforts.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152806)
