Revisiting Vul-RAG: Reproducibility and Replicability of RAG-based Vulnerability Detection with Open-Weight Models

📅 2026-06-03
📈 Citations: 0
Influential: 0
📄 PDF

career value

200K/year
🤖 AI Summary
This study addresses the limited reproducibility and generalizability of existing large language model (LLM)-based vulnerability detection approaches, which often rely on closed-source models and proprietary APIs. The authors systematically reproduce the Vul-RAG framework in a fully local, open-weight setting and, for the first time, evaluate its feasibility across a diverse set of open-source LLMs—including code-specific, general-purpose, and reasoning-oriented models—using a standardized evaluation protocol. Experimental results reveal that all models converge to a performance plateau around 0.30 pairwise accuracy, indicating a saturation effect between model scale and vulnerability detection efficacy. This challenges the prevailing “bigger is better” assumption and suggests that merely increasing model capacity yields diminishing returns in improving detection performance.
📝 Abstract
Large language models (LLMs) have shown strong potential for automated software vulnerability detection, particularly in retrieval-augmented generation (RAG) settings. However, for approaches relying on proprietary models and APIs, reproducibility and replicability remain largely unexplored, raising the question of whether reported results generalize or depend primarily on specific model choices. In this work, we present a reproducibility study of Vul-RAG, a RAG-based framework for source code vulnerability detection that enhances LLMs with high-level vulnerability knowledge. We first replicate the results in a fully local and open-weights setting using the reported open-weight baseline models. We then extend the evaluation to a diverse set of recent open-weight LLMs, including code-specialized, general-purpose, and reasoning models of varying parameter sizes. The results confirm that the findings of Vul-RAG are reproducible under local deployment, but with minor deviations. Across all evaluated models, we observe a performance plateau at approximately 0.30 pairwise accuracy (code pairs for which both the vulnerable and the patched function are correctly classified). Notably, this plateau persists even for more recent and advanced models, indicating that improvements in model capacity alone do not substantially enhance performance. Finally, we discuss practical implications and trade-offs between detection effectiveness, model capabilities, and model scale. Implementation and evaluation artifacts are publicly available at https://github.com/hs-esslingen-it-security/revisiting-Vul-RAG.
Problem

Research questions and friction points this paper is trying to address.

reproducibility
replicability
vulnerability detection
RAG
open-weight models
Innovation

Methods, ideas, or system contributions that make the work stand out.

reproducibility
retrieval-augmented generation
vulnerability detection
open-weight LLMs
empirical evaluation
🔎 Similar Papers