mlsanityData to 13 Oct 2026

From Lab to Reality: A Practical Evaluation of Deep Learning Models and LLMs for Vulnerability Detection

arXiv 2512.10485 ↗First posted 11 Dec 2025cs.CR cs.LG cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Vulnerability detection methods based on deep learning (DL) have shown strong performance on benchmark datasets, yet their real-world effectiveness remains underexplored. Recent work suggests that graph neural network-based and transformer-based models, including large language models (LLMs), yield promising results when evaluated on curated benchmark datasets. These datasets are typically characterized by similar data distributions and may contain synthetic samples, heuristic labels, or labeling noise. In this study, we systematically evaluate four representative DL models---Devign, ReVeal, LineVul, and VulBERTa---across four representative datasets: Juliet, Devign, BigVul, and ICVul. Each model is trained independently on each dataset, and the graph-based and CodeBERT representations adopted by these models are analyzed using t-SNE and centroid distance to examine vulnerability-related patterns. To assess realistic applicability, we further evaluate trained ReVeal and LineVul models, along with four open-weight LLMs, on VentiVul, our newly constructed temporally separated out-of-distribution (OOD) dataset comprising 200 recent vulnerabilities from Linux and Chromium. Our experiments reveal that current representation methods struggle to distinguish vulnerable from non-vulnerable code and that trained models generalize poorly across datasets with differing distributions and characteristics. When evaluated on VentiVul, performance drops sharply, with most models failing to detect vulnerabilities reliably or distinguish vulnerable functions from their patched counterparts. These results expose a persistent gap between academic benchmarks and real-world deployment, emphasizing the value of our deployment-oriented evaluation framework and the need for more robust code representations, higher-quality datasets, and evaluation methods that account for vulnerability-fixing changes.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 27 of its 53 references that are in the map. First posted on arXiv 11 Dec 2025.

Builds on

27 of 53 references.

References · 27

  1. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,467
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,304
  3. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  4. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 328
  5. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 144
  6. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 136
  7. 2020Dos and Don'ts of Machine Learning in Computer Securitycited by 102
  8. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 101
  9. 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 91
  10. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  11. 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
  12. 2022VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detectioncited by 51
15 more
  1. 2023Data Quality for Software Vulnerability Datasetscited by 50
  2. 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 49
  3. 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 45
  4. 2024Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Aheadcited by 41
  5. 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39
  6. 2024MegaVul: A C/C++ Vulnerability Dataset with Comprehensive Code Representationcited by 27
  7. 2023Vulnerability Detection with Graph Simplification and Enhanced Graph Representation Learningcited by 8
  8. 2021Shallow or Deep? An Empirical Study on Detecting Vulnerabilities using Deep Learningcited by 7
  9. 2022Noisy Label Learning for Security Defectscited by 7
  10. 2024Revisiting the Performance of Deep Learning-Based Vulnerability Detection on Realistic Datasetscited by 6
  11. 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 5
  12. 2023LIVABLE: Exploring Long-Tailed Classification of Software Vulnerability Typescited by 3
  13. 2021A comparative study of neural network techniques for automatic software vulnerability detectioncited by 2
  14. 2025ICVul: A Well-labeled C/C++ Vulnerability Dataset with Comprehensive Metadata and VCCscited by 2
  15. 2024The Illusion of Randomness: An Empirical Analysis of Address Space Layout Randomization Implementationscited by 1

Built on by

Not cited yet.