arrow
Return

Attention-Based Code Summarization for Multi-label Vulnerability Detection

delete2026-01-01
delete0
PRE
AI
M
Maksuda Bilkis Baby
A
Atabuzzaman, Md.
S
Shajalal, Md. *
G
Gunnar Stevens
DOI:10.1007/978-981-95-4434-9_20delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Vulnerabilities in source code can lead to a wide range of issues, such as privacy and security breaches, system crashes, data leaks, and unpredictable application behavior. These problems typically arise from improper handling of inputs, memory, or access control mechanisms. To address these challenges, we propose a novel Attention-based Code Summarization (ACS) approach for multi-label vulnerability detection in source code. Unlike traditional methods that are limited to binary or multi-class classification, our approach is designed to identify multiple types of vulnerabilities within a single code snippet-an essential capability, as real-world software often contains more than one vulnerability. Our method introduces a specialized, security-focused attention mechanism that utilizes vulnerability-specific queries to generate targeted representations for each vulnerability type. By extending pre-trained code models with a hierarchical summarization framework, we enable the creation of specialized representations tailored to different vulnerability categories. This design ensures a balance between general code understanding and precise vulnerability detection. Extensive evaluations on a multi-label vulnerability dataset show that our model outperforms existing baselines, especially for buffer-related vulnerabilities (e.g., CWE-119, CWE-120) and other complex security issues. Through comprehensive ablation studies, we validate the individual contributions of each architectural component, demonstrating the synergistic effects of our vulnerability-specific attention, security-focused summarization, and adaptive gating mechanisms. Furthermore, the attention visualization component of our model provides explainable outputs, helping security teams identify and understand the root causes of detected vulnerabilities. By enabling efficient and simultaneous detection of multiple vulnerability types, our approach significantly reduces the effort and time required to analyze and secure software systems.
Keywords:
Multi-label Vulnerability Detection
Attention
Code Summarization
Security-focused Attention

Journal

C
CRYPTOLOGY AND NETWORK SECURITY, CANS 2025
IF:
0
Papers:
31
Citations:
0

Organization

V
virginia polytechnic institute & state university
Scholars:
1.2K
Papers: 523
Citations: 0
U
university of maryland baltimore county
Scholars:
3.5K
Papers: 2.6K
Citations: 2
University System of Maryland cover
University System of Maryland
Scholars:
6.5W
Papers: 5.6W
Citations: 113
researcher View more organizations
Cited Papers

Cited Papers

errShare
errSave
errShare
errSave
errShare
errSave
POSTER
err2017-10-30
err0
PREAI
errGuanjun Lin; Jun Zhang; Wei Luo; Lei Pan; Yang Xiang
errShare
errSave
VulDeePecker: A Deep Learning-Based System for Vulnerability Detection
err2018-01-01
err0
errOAAI
errZhen Li; Deqing Zou; Shouhuai Xu; Xinyu Ou; Hai Jin; Sujuan Wang; Zhijun Deng; Yuyi Zhong
errShare
errSave
Deep Learning Based Vulnerability Detection: Are We There Yet?
err2022-09-01
err232
errOAAI
errChakraborty, Saikat; Krishna, Rahul; Ding, Yangruibo; Ray, Baishakhi
errShare
errSave
CodeBERT: A Pre-Trained Model for Programming and Natural Languages
err2020-01-01
err0
errOAAI
errZhangyin Feng; Daya Guo; Duyu Tang; Nan Duan; Xiaocheng Feng; Ming Gong; Linjun Shou; Bing Qin; Ting Liu; Daxin Jiang; Ming Zhou
errShare
errSave
researcher View more