arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.04739cs.SEcs.AI
收藏

重新审视Vul-RAG:基于RAG的漏洞检测的可复现性与可复制性——使用开放权重模型

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

Institute for Secure Networked Systems, Esslingen University(安全网络系统研究所,埃斯林根大学);Institute for Intelligent Systems, Esslingen University(智能系统研究所,埃斯林根大学)

Sabrina Kaniewski, Fabian Schmidt, Tobias Heer

AI总结:

本研究通过本地部署和多种开放权重模型,复现并扩展了Vul-RAG框架,发现其性能存在约0.30成对准确率的上限,且模型能力提升无法显著改善性能。

摘要:

大型语言模型(LLMs)在自动化软件漏洞检测方面展现出强大潜力,尤其是在检索增强生成(RAG)设置中。然而,对于依赖专有模型和API的方法,可复现性和可复制性在很大程度上仍未得到探索,这引发了一个问题:报告的结果是否具有普遍性,还是主要依赖于特定的模型选择。在这项工作中,我们对Vul-RAG进行了可复现性研究,Vul-RAG是一个基于RAG的源代码漏洞检测框架,它利用高级漏洞知识增强LLMs。我们首先使用报告中的开放权重基线模型,在完全本地和开放权重的设置下复现了结果。然后,我们将评估扩展到一组多样化的最新开放权重LLMs,包括代码专用、通用和推理模型,参数规模各异。结果证实,Vul-RAG的发现可以在本地部署下复现,但存在微小偏差。在所有评估的模型中,我们观察到性能在约0.30成对准确率(即漏洞函数和修补函数都被正确分类的代码对)处达到平台期。值得注意的是,即使对于更新更先进的模型,这一平台期仍然存在,表明仅凭模型能力的提升并不能显著提高性能。最后,我们讨论了检测效果、模型能力和模型规模之间的实际影响和权衡。实现和评估工件可在 https://github.com/hs-esslingen-it-security/revisiting-Vul-RAG 公开获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑