MultiVer: Zero-Shot Multi-Agent Vulnerability Detection
Organizations: Harvard College, Cambridge, MA, USA
Abstract
We present MultiVer, a zero-shot multi-agent system for vulnerability detection that achieves state-of-the-art recall without fine-tuning. A four-agent ensemble (security, correctness, performance, style) with union voting achieves 82.7% recall on PyVul, exceeding fine-tuned GPT-3.5 (81.3%) by 1.4 percentage points -- the first zeroshot system to surpass fine-tuned performance on this benchmark. On SecurityEval, the same architecture achieves 91.7% detection rate, matching specialized systems. The recall improvement comes at a precision cost: 48.8% precision versus 63.9% for fine-tuned baselines, yielding 61.4% F1. Ablation experiments isolate component contributions: the multi-agent ensemble adds 17 percentage points recall over single-agent security analysis. These results demonstrate that for security applications where false negatives are costlier than false positives, zero-shot multi-agent ensembles can match and exceed fine-tuned models on the metric that matters most.
Figures & tables
| System | Type | Recall | Prec. | F1 |
|---|---|---|---|---|
| CodeQL | Rule | 10.8% | – | – |
| Bandit | Rule | 5.3% | – | – |
| GPT-4 zero-shot | Zero | 33.3% | 65.8% | 44.3% |
| GPT-3.5 zero-shot | Zero | 61.1% | 50.8% | 55.5% |
| CodeQwen zero-shot | Zero | 66.9% | 57.4% | 61.8% |
| CodeQwen fine-tuned | FT | 75.3% | 60.1% | 66.9% |
| Configuration | TPR | FPR | TPR |
|---|---|---|---|
| Full System (RAG + 4 agents) | 82.7% | 85.0% | – |
| No-RAG | 92.0% | 94.1% | +9.3pp |
| Security-only | 65.7% | – | 17.0pp |
| No-Correctness | 71.7% | – | 11.0pp |
| Weighted Voting | 37.7% | 35.3% | 45.0pp |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Category (CWE) | Det. | Tot. | Rate |
| Injection (078, 089, 094) | 8 | 8 | 100% |
| XSS (079, 080) | 4 | 4 | 100% |
| Path Traversal (022) | 4 | 4 | 100% |
| Auth (287, 306, 798) | 3 | 3 | 100% |
| Info Disclosure (200, 209) | 2 | 2 | 100% |
| Deserialization (502) | 4 | 4 | 100% |
Software Vulnerability Detection
Software vulnerability detection identifies insecure code, pinpoints weaknesses, and helps developers validate or prevent exploitable bugs.
See all 139 papers