VDPST: Enhancing Line-Level Vulnerability Detection with Patch Slicing and Transformers

Vulnerability detection is essential for ensuring software security. In recent years, deep learning has seen widespread adoption in this domain due to its capacity to automatically extract features from vulnerable code, showcasing significant potential. However, existing approaches still struggle to accurately focus on vulnerability-relevant portions within vulnerable functions, and most solutions typically offering coarse-grained localization, usually at the function level. In this paper, we propose VDPST, a novel deep learning-based approach that achieves effective vulnerability detection through program slicing and an enhanced Transformer model. VDPST introduces a patch-based denoising strategy to eliminate irrelevant code information, improving detection accuracy. Additionally, the model integrates a Transformer architecture with residual inputs and cross-attention mechanisms to preserve the contextual integrity of code snippets and enhance the detection of vulnerability-specific features. Experimental results demonstrate that VDPST outper-forms existing state-of-the-art methods on public benchmark datasets, offering superior detection accuracy and fine-grained vulnerability localization capabilities.

Authors

Institutions

Publication Details

Published
2025-05-05
DOI
https://doi.org/10.1109/cscwd64889.2025.11033604
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

VDPST: Enhancing Line-Level Vulnerability Detection with Patch Slicing and Transformers

Shirun Liu, Lixin Zhao, Aimin Yu, Z. H. Qin et al.
Advanced Malware Detection Techniques
article

VDPST: Enhancing Line-Level Vulnerability Detection with Patch Slicing and Transformers

Shirun Liu, Lixin Zhao, Aimin Yu, Z. H. Qin, Haihua Gao
article en

Abstract

Vulnerability detection is essential for ensuring software security. In recent years, deep learning has seen widespread adoption in this domain due to its capacity to automatically extract features from vulnerable code, showcasing significant potential. However, existing approaches still struggle to accurately focus on vulnerability-relevant portions within vulnerable functions, and most solutions typically offering coarse-grained localization, usually at the function level. In this paper, we propose VDPST, a novel deep learning-based approach that achieves effective vulnerability detection through program slicing and an enhanced Transformer model. VDPST introduces a patch-based denoising strategy to eliminate irrelevant code information, improving detection accuracy. Additionally, the model integrates a Transformer architecture with residual inputs and cross-attention mechanisms to preserve the contextual integrity of code snippets and enhance the detection of vulnerability-specific features. Experimental results demonstrate that VDPST outper-forms existing state-of-the-art methods on public benchmark datasets, offering superior detection accuracy and fine-grained vulnerability localization capabilities.

Chinese Academy of Sciences (CN), Institute of Information Engineering (CN)
Climate action
Openalex Percentile: Top 83%
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

VDPST: Enhancing Line-Level Vulnerability Detection with Patch Slicing and Transformers — Shirun Liu, Lixin Zhao, et al. · (2025) | TGRS Research Map | TGRS