arrow
Return

Learning-based models for vulnerability detection: an extensive study

delete2025-11-15
delete0
PRE
AI
C
Chao Ni *
X
Xin Yin
L
Liyu Shen
S
Shaohua Wang
DOI:10.1007/s10664-025-10734-xdelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
While deep learning-based models have achieved remarkable progress in vulnerability detection, our understanding of these models remains limited, which hinders further advancement in model capability, mechanistic understanding of detection processes, and efficient and safe practical deployment. This paper presents a comprehensive investigation of state-of-the-art learning-based models, including sequence-based models, graph-based models, and Large Language Models (LLMs), through extensive experiments conducted on MegaVul, a recently constructed large-scale vulnerability dataset. We systematically explore seven research questions across five critical dimensions: model capability, model interpretation, model robustness, ease of model deployment, and model economy. Our experimental findings reveal the superiority of sequence-based models over graph-based models and demonstrate the limited effectiveness of current LLMs (e.g., ChatGPT and CodeLlama) for vulnerability detection. We identify the specific vulnerability types that different learning-based models excel at detecting and reveal the instability of the models through subtle semantic equivalent changes in the input. Through interpretability analysis, we provide empirical insights into what these models actually learn and focus on during the detection process. Additionally, we systematically summarize the pre-processing requirements and deployment considerations necessary for practical model usage. Finally, our study provides essential guidelines for the economical and safe practical application of learning-based models, offering valuable insights for both researchers and practitioners.
Keywords:
Vulnerability detection
Empirical study
Deep learning

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
5.3K

Organization

C
Central University of Finance and Economics
Scholars:
560
Papers: 399
Citations: 2.8K
Cited Papers

Cited Papers

Graph neural networks: A review of methods and applications
err2020-01-01
err0
errOAAI
errJie Zhou; Ganqu Cui; Shengding Hu; Zhengyan Zhang; Cheng Yang; Zhiyuan Liu; Lifeng Wang; Changcheng Li; Maosong Sun
errShare
errSave
Deep neural-based vulnerability discovery demystified: data, model and performance
err2021-05-17
err0
PREAI
errGuanjun Lin; Wei Xiao; Leo Yu Zhang; Shang Gao; Yonghang Tai; Jun Zhang
errShare
errSave
Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing
err2023-01-16
err1.0K
errOAAI
errLiu, Pengfei; Yuan, Weizhe; Fu, Jinlan; Jiang, Zhengbao; Hayashi, Hiroaki; Neubig, Graham
errShare
errSave
Combining Graph-Based Learning With Automated Data Collection for Code Vulnerability Detection
err2021-01-01
err166
errOAAI
errWang, Huanting; Ye, Guixin; Tang, Zhanyong; Tan, Shin Hwei; Huang, Songfang; Fang, Dingyi; Feng, Yansong; Bian, Lizhong; Wang, Zheng
errShare
errSave
no more