mlsanityData to 7 Oct 2026

DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection

arXiv 2304.00409 ↗First posted 1 Apr 2023cs.CR cs.AI cs.LGcited by 98

Not on the map. Why?

Abstract (arXiv)

We propose and release a new vulnerable source code dataset. We curate the dataset by crawling security issue websites, extracting vulnerability-fixing commits and source codes from the corresponding projects. Our new dataset contains 18,945 vulnerable functions spanning 150 CWEs and 330,492 non-vulnerable functions extracted from 7,514 commits. Our dataset covers 295 more projects than all previous datasets combined. Combining our new dataset with previous datasets, we present an analysis of the challenges and promising research directions of using deep learning for detecting software vulnerabilities. We study 11 model architectures belonging to 4 families. Our results show that deep learning is still not ready for vulnerability detection, due to high false positive rate, low F1 score, and difficulty of detecting hard CWEs. In particular, we demonstrate an important generalization challenge for the deployment of deep learning-based models. We show that increasing the volume of training data may not further improve the performance of deep learning models for vulnerability detection, but might be useful to improve the generalization ability to unseen projects. We also identify hopeful future research directions. We demonstrate that large language models (LLMs) are a promising research direction for ML-based vulnerability detection, outperforming Graph Neural Networks (GNNs) with code-structure features in our experiments. Moreover, developing source code specific pre-training objectives is a promising research direction to improve the vulnerability detection performance.

Key facts. Cited by 98 papers in the map (data through 7 Oct 2026). Builds on 20 of its 43 references that are in the map. First posted on arXiv 1 Apr 2023.

Builds on

20 of 43 references.

References · 20

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  5. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  6. 2015Gated Graph Sequence Neural Networkscited by 792
  7. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  8. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  9. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  10. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  11. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  12. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 142
8 more
  1. 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
  2. 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 91
  3. 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 89
  4. 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
  5. 2023Data Quality for Software Vulnerability Datasetscited by 49
  6. 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 48
  7. 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
  8. 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 10; 2024: 25; 2025: 42; 2026: 21.

98 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  2. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 133
  3. 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
  4. 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 67
  5. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  6. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
  7. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
  8. 2025RepoAudit: An Autonomous LLM-Agent for Repository-Level Code Auditingcited by 47
  9. 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
  10. 2023Revolutionizing Cyber Threat Detection with Large Language Models: A privacy-preserving BERT-based Lightweight Model for IoT/IIoT Devicescited by 38
  11. 2023The FormAI Dataset: Generative AI in Software Security Through the Lens of Formal Verificationcited by 32
  12. 2023Uncovering the Limits of Machine Learning for Automatic Vulnerability Detectioncited by 30
38 more
  1. 2024Generalization-Enhanced Code Vulnerability Detection via Multi-Task Instruction Fine-Tuningcited by 30
  2. 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositoriescited by 29
  3. 2023How Far Have We Gone in Vulnerability Detection Using Large Language Modelscited by 27
  4. 2024Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detectioncited by 27
  5. 2024How secure is AI-generated Code: A Large-Scale Comparison of Large Language Modelscited by 23
  6. 2023LLM for SoC Security: A Paradigm Shiftcited by 22
  7. 2024LLMs in Web Development: Evaluating LLM-Generated PHP Code Unveiling Vulnerabilities and Limitationscited by 21
  8. 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agentscited by 20
  9. 2024Comparison of Static Application Security Testing Tools and Large Language Models for Repo-level Vulnerability Detectioncited by 18
  10. 2025PurpCode: Reasoning for Safer Code Generationcited by 17
  11. 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEscited by 17
  12. 2025SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositoriescited by 14
  13. 2023SecureFalcon: Are We There Yet in Automated Software Vulnerability Detection with LLMs?cited by 13
  14. 2024VulDetectBench: Evaluating the Deep Capability of Vulnerability Detection with Large Language Modelscited by 11
  15. 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Studycited by 11
  16. 2025CASTLE: Benchmarking Dataset for Static Code Analyzers and LLMs towards CWE Detectioncited by 10
  17. 2026Defensive Refusal Bias: How Safety Alignment Fails Cyber Defenderscited by 10
  18. 2025Exploring the Security Threats of Knowledge Base Poisoning in Retrieval-Augmented Code Generationcited by 9
  19. 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
  20. 2023Using ChatGPT as a Static Application Security Testing Toolcited by 8
  21. 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
  22. 2026ARVO: Atlas of Reproducible Vulnerabilities for Open-Source Softwarecited by 8
  23. 2025Vulnerability Detection: From Formal Verification to Large Language Models and Hybrid Approaches: A Comprehensive Overviewcited by 7
  24. 2024Your Instructions Are Not Always Helpful: Assessing the Efficacy of Instruction Fine-tuning for Software Vulnerability Detectioncited by 6
  25. 2024eyeballvul: a future-proof benchmark for vulnerability detection in the wildcited by 6
  26. 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++cited by 6
  27. 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinementcited by 6
  28. 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"cited by 5
  29. 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 4
  30. 2025LPASS: Linear Probes as Stepping Stones for vulnerability detection using compressed LLMscited by 4
  31. 2025Improving LLM Reasoning for Vulnerability Detection via Group Relative Policy Optimizationcited by 4
  32. 2025LLM-based Vulnerability Discovery through the Lens of Code Metricscited by 4
  33. 2025A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detectioncited by 4
  34. 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detectioncited by 4
  35. 2023LIVABLE: Exploring Long-Tailed Classification of Software Vulnerability Typescited by 3
  36. 2024RealVul: Can We Detect Vulnerabilities in Web Applications with LLM?cited by 3
  37. 2025Evaluating LLaMA 3.2 for Software Vulnerability Detectioncited by 3
  38. 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3

50 most cited of 98 All 98 (JSON)