Outside the Comfort Zone: Analysing LLM Capabilities in Software Vulnerability Detection
Yuejun Guo, Constantinos Patsakis, Qiang Hu, Qiang Tang, and Fran, Casino

TL;DR
This paper evaluates the ability of various large language models to detect software vulnerabilities in source code, revealing the importance of fine-tuning and dataset quality in improving detection accuracy.
Contribution
It provides a comprehensive analysis of LLMs' performance in vulnerability detection, highlighting the effects of fine-tuning and dataset issues, and suggests strategies for future improvements.
Findings
Fine-tuning small LLMs can outperform larger models in specific scenarios.
Benchmark datasets often contain mislabeling issues affecting model performance.
Dataset quality and proper training are crucial for effective vulnerability detection.
Abstract
The significant increase in software production driven by automation and faster development lifecycles has resulted in a corresponding surge in software vulnerabilities. In parallel, the evolving landscape of software vulnerability detection, highlighting the shift from traditional methods to machine learning and large language models (LLMs), provides massive opportunities at the cost of resource-demanding computations. This paper thoroughly analyses LLMs' capabilities in detecting vulnerabilities within source code by testing models beyond their usual applications to study their potential in cybersecurity tasks. We evaluate the performance of six open-source models that are specifically trained for vulnerability detection against six general-purpose LLMs, three of which were further fine-tuned on a dataset that we compiled. Our dataset, alongside five state-of-the-art benchmark…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Reliability and Analysis Research · Software Engineering Research · Web Application Security Vulnerabilities
