paper-with-me

홈 › Papers

An Empirical Evaluation of LLM-Based Approaches for Code Vulnerability Detection: RAG, SFT, and Dual-Agent Systems

2026-01-01 · Md Hasan Saju, Maher Muhtadi, Akramul Azim arxiv

The rapid advancement of Large Language Models (LLMs) presents new opportunities for automated software vulnerability detection, a crucial task in securing modern codebases. This paper presents a comparative study on the effectiveness of LLM-based techniques for detecting software vulnerabilities. The study evaluates three approaches, Retrieval-Augmented Generation (RAG), Supervised Fine-Tuning (SFT), and a Dual-Agent LLM framework, against a baseline LLM model. A curated dataset was compiled from Big-Vul and real-world code repositories from GitHub, focusing on five critical Common Weakness Enumeration (CWE) categories: CWE-119, CWE-399, CWE-264, CWE-20, and CWE-200. Our RAG approach, which integrated external domain knowledge from the internet and the MITRE CWE database, achieved the highest overall accuracy (0.86) and F1 score (0.85), highlighting the value of contextual augmentation. Our SFT approach, implemented using parameter-efficient QLoRA adapters, also demonstrated strong performance. Our Dual-Agent system, an architecture in which a secondary agent audits and refines the output of the first, showed promise in improving reasoning transparency and error mitigation, with reduced resource overhead. These results emphasize that incorporating a domain expertise mechanism significantly strengthens the practical applicability of LLMs in real-world vulnerability detection tasks.

📄 PDF Abstract BibTeX arXiv:2601.00254

Code (0)

등록된 구현이 없습니다.

Tasks

Vulnerability Detection

Similar Papers 제목 키워드 기반

Code-Centric Detection of Vulnerability-Fixing Commits: A Unified Benchmark and Empirical Study

2026-05-13 · Nils Loose, Joseph Bienhüls, Kristoffer Hempel, Felix Mächtle 외 arxiv

Automated detection of vulnerability-fixing commits (VFCs) is critical for timely security patch deployment, as advisory databases lag patch releases by a median of 25 days and many fixes never receive advisories. We pre…

Transformer-based Vulnerability Detection in Code at EditTime: Zero-shot, Few-shot, or Fine-tuning?

2023-05-23 · Aaron Chan, Anant Kharkar, Roshanak Zilouchian Moghaddam, Yevhen Mohylevskyy 외

Software vulnerabilities bear enterprises significant costs. Despite extensive efforts in research and development of software vulnerability detection methods, uncaught vulnerabilities continue to put software owners and…

Vulnerability Detection

An Empirical Study of the Imbalance Issue in Software Vulnerability Detection

2026-02-12 · Yuejun Guo, Qiang Hu, Qiang Tang, Yves Le Traon arxiv

Vulnerability detection is crucial to protect software security. Nowadays, deep learning (DL) is the most promising technique to automate this detection task, leveraging its superior ability to extract patterns and repre…

Vulnerability Detection

Revisiting the Performance of Deep Learning-Based Vulnerability Detection on Realistic Datasets

2024-07-03 · Partha Chakraborty, Krishna Kanth Arumugam, Mahmoud Alfadel, Meiyappan Nagappan 외

The impact of software vulnerabilities on everyday software systems is significant. Despite deep learning models being proposed for vulnerability detection, their reliability is questionable. Prior evaluations show high …

Deep LearningVulnerability Detection

VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detection

2022-05-25 · Hazim Hanif, Sergio Maffeis

This paper presents VulBERTa, a deep learning approach to detect security vulnerabilities in source code. Our approach pre-trains a RoBERTa model with a custom tokenisation pipeline on real-world code from open-source C/…

Vulnerability Detection