Advancing Software Vulnerability Detection with Reasoning LLMs: DeepSeek-R1′s Performance and Insights
The increasing complexity of software systems has heightened the need for efficient and accurate vulnerability detection. Large Language Models have emerged as promising tools in this domain; however, their reasoning capabilities and limitations remain insufficiently explored. This study presents a systematic evaluation of different Large Language Models with and without explicit reasoning mechanisms, including Claude-3.5-Haiku, GPT-4o-Mini, DeepSeek-V3, O3-Mini, and DeepSeek-R1. Experimental results demonstrate that reasoning-enabled models, particularly DeepSeek-R1, outperform their non-reasoning counterparts by leveraging structured step-by-step inference strategies and valuable reasoning traces. With proposed data processing and prompt design in the interaction, DeepSeek-R1 achieves an accuracy of 0.9507 and an F1-score of 0.9659 on the Software Assurance Reference Dataset. These findings highlight the potential of integrating reasoning-enabled Large Language Models into vulnerability detection frameworks to simultaneously improve detection performance and interpretability.
Authors
- Qin Wan (ORCID: https://orcid.org/0000-0002-8684-6888)
- Liangchen Li (ORCID: https://orcid.org/0000-0003-2234-0244)
- Fan Yang (ORCID: https://orcid.org/0000-0003-2648-6857)
- Lijie Suo
Institutions
- Nanjing Tech University (CN)
- Luoyang Normal University (CN)
Publication Details
- Journal
- Applied Sciences
- Published
- 2025-06-13
- DOI
- https://doi.org/10.3390/app15126651
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China