Evaluating Large Language Models for Multilingual Vulnerability Detection at Dual Granularities
Honglin Shu, Michael Fu, Junji Yu, Dong Wang, Chakkrit Tantithamthavorn, Junjie Chen, Yasutaka Kamei

TL;DR
This study empirically evaluates large language models for multilingual vulnerability detection at different granularities, demonstrating GPT-4o's superior performance and highlighting the potential of LLMs in real-world security applications.
Contribution
It provides a comprehensive, fine-grained comparison of PLMs and LLMs across multiple programming languages and detection granularities, revealing LLMs' advantages in security tasks.
Findings
GPT-4o outperforms other models including CodeT5P.
LLMs excel in detecting multilingual and high-severity vulnerabilities.
Multilingual LLM-based vulnerability detection shows significant promise.
Abstract
Various deep learning-based approaches utilizing pre-trained language models (PLMs) have been proposed for automated vulnerability detection. With recent advancements in large language models (LLMs), several studies have begun exploring their application to vulnerability detection tasks. However, existing studies primarily focus on specific programming languages (e.g., C/C++) and function-level detection, leaving the strengths and weaknesses of PLMs and LLMs in multilingual and multi-granularity scenarios largely unexplored. To bridge this gap, we conduct a comprehensive fine-grained empirical study evaluating the effectiveness of state-of-the-art PLMs and LLMs for multilingual vulnerability detection. Using over 30,000 real-world vulnerability-fixing patches across seven programming languages, we systematically assess model performance at both the function-level and line-level. Our key…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsInformation and Cyber Security · Web Application Security Vulnerabilities · Software Engineering Research
