Three Heads Are Better Than One: A Multi-perspective Reasoning Framework for Enhanced Vulnerability Detection
Xin Peng, Bo Lin, Jing Wang, Xiaoling Li, Jun Ma, Jie Yu, Xiaoguang Mao, and Shangwen Wang

TL;DR
This paper introduces ReasonVul, a multi-agent LLM framework that uses diverse reasoning modes and collaborative debate to improve vulnerability detection accuracy in software security.
Contribution
It proposes a novel multi-perspective reasoning framework with three specialized LLM agents and a debate mechanism, significantly enhancing vulnerability detection performance.
Findings
ReasonVul achieves 72.52% F1-score on PrimeVul, surpassing baselines by 81.24%.
The framework correctly resolves 389 out of 542 conflict cases, uncovering hidden vulnerabilities.
Generalizes well with 28.67% PairAcc on JITVUL dataset.
Abstract
Automated vulnerability detection is crucial for enhancing software security by identifying potential flaws that attackers could exploit, thereby reducing the reliance on labor-intensive manual code audits. Recent advancements have shifted towards leveraging large language models (LLMs) for vulnerability detection, with techniques like Vul-RAG and VulnSage demonstrating progress through structured prompting and external knowledge integration. However, these approaches typically rely on a single reasoning paradigm, limiting their ability to address the complex and diverse nature of real-world vulnerabilities. To overcome these limitations, we propose ReasonVul, a novel multi-perspective reasoning framework that harnesses cognitive synergy among three specialized LLM agents, each embodying a distinct reasoning mode. The framework begins with independent analyses of the source code,…
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.
