mlsanityData to 7 Oct 2026

Evaluating LLaMA 3.2 for Software Vulnerability Detection

arXiv 2503.07770 ↗First posted 10 Mar 2025cs.LG cs.AI cs.CRcited by 3

Not on the map. Why?

Abstract (arXiv)

Deep Learning (DL) has emerged as a powerful tool for vulnerability detection, often outperforming traditional solutions. However, developing effective DL models requires large amounts of real-world data, which can be difficult to obtain in sufficient quantities. To address this challenge, DiverseVul dataset has been curated as the largest dataset of vulnerable and non-vulnerable C/C++ functions extracted exclusively from real-world projects. Its goal is to provide high-quality, large-scale samples for training DL models. However, during our study several inconsistencies were identified in the raw dataset while applying pre-processing techniques, highlighting the need for a refined version. In this work, we present a refined version of DiverseVul dataset, which is used to fine-tune a large language model, LLaMA 3.2, for vulnerability detection. Experimental results show that the use of pre-processing techniques led to an improvement in performance, with the model achieving an F1-Score of 66%, a competitive result when compared to our baseline, which achieved a 47% F1-Score in software vulnerability detection.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 13 of its 36 references that are in the map. First posted on arXiv 10 Mar 2025.

Builds on

13 of 36 references.

References · 13

  1. 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
  2. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  3. 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
  4. 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
  5. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 98
  6. 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 91
  7. 2022Natural Attack for Pre-trained Models of Codecited by 72
  8. 2023Understanding the Effectiveness of Large Language Models in Detecting Security Vulnerabilitiescited by 58
  9. 2023Prompt-Enhanced Software Vulnerability Detection Using ChatGPTcited by 51
  10. 2024Hierarchical Context Merging: Better Long Context Understanding for Pre-trained LLMscited by 30
  11. 2024LLMs in Web Development: Evaluating LLM-Generated PHP Code Unveiling Vulnerabilities and Limitationscited by 21
  12. 2024Extending LLMs' Context Window with 100 Samplescited by 20
1 more
  1. 2023Comparison between parameter-efficient techniques and full fine-tuning: A case study on multilingual news article classificationcited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.