Benchmarking Large Language Models for Multi-Language Software Vulnerability Detection
Not on the map. Why?
Abstract (arXiv)
Recent advancements in generative AI have led to the widespread adoption of large language models (LLMs) in software engineering, addressing numerous long-standing challenges. However, a comprehensive study examining the capabilities of LLMs in software vulnerability detection (SVD), a crucial aspect of software security, is currently lacking. Existing research primarily focuses on evaluating LLMs using C/C++ datasets. It typically explores only one or two strategies among prompt engineering, instruction tuning, and sequence classification fine-tuning for open-source LLMs. Consequently, there is a significant knowledge gap regarding the effectiveness of diverse LLMs in detecting vulnerabilities across various programming languages. To address this knowledge gap, we present a comprehensive empirical study evaluating the performance of LLMs on the SVD task. We have compiled a comprehensive dataset comprising 8,260 vulnerable functions in Python, 7,505 in Java, and 28,983 in JavaScript. We assess five open-source LLMs using multiple approaches, including prompt engineering, instruction tuning, and sequence classification fine-tuning. These LLMs are benchmarked against five fine-tuned small language models and two open-source static application security testing tools. Furthermore, we explore two avenues to improve LLM performance on SVD: a) Data perspective: Retraining models using downsampled balanced datasets. b) Model perspective: Investigating ensemble learning methods that combine predictions from multiple LLMs. Our comprehensive experiments demonstrate that SVD remains a challenging task for LLMs. This study provides a thorough understanding of the role of LLMs in SVD and offers practical insights for future advancements in leveraging generative AI to enhance software security practices.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 3 Mar 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 4; 2026: 1.
5 papers.
- 2025Revisiting Pre-trained Language Models for Vulnerability Detectioncited by 3
- 2025Can LLMs Find Bugs in Code? An Evaluation from Beginner Errors to Security Vulnerabilities in Python and C++cited by 3
- 2025Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoningcited by 0
- 2025ReDef: Do Code Language Models Truly Understand Code Changes for Just-in-Time Software Defect Prediction?cited by 0
- 2026Retrieve, Reproduce, Reveal: Dissecting Retrieval-Augmented Software Vulnerability Detectioncited by 0
- 2026Retrieve, Reproduce, Reveal: Dissecting Retrieval-Augmented Software Vulnerability Detection29 Sep 2026
- 2025ReDef: Do Code Language Models Truly Understand Code Changes for Just-in-Time Software Defect Prediction?11 Sep 2025
- 2025Can LLMs Find Bugs in Code? An Evaluation from Beginner Errors to Security Vulnerabilities in Python and C++22 Aug 2025
- 2025Revisiting Pre-trained Language Models for Vulnerability Detection22 Jul 2025
- 2025Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoning19 Mar 2025