Revisiting Pre-trained Language Models for Vulnerability Detection

Read full text
Authors: Youpeng Li, Wen Qi, Xuyu Wang, Fuxun Yu, Xinda Wang
Cited by: 0

Abstract

The rapid advancement of pre-trained language models (PLMs) has demonstrated promising results for various code-related tasks. However, their effectiveness in detecting real-world vulnerabilities remains a critical challenge. While existing empirical studies evaluate PLMs for vulnerability detection (VD), they suffer from data leakage, limited scope, and superficial analysis, hindering the accuracy and comprehensiveness of evaluations. This paper begins by revisiting the common issues in existing research on PLMs for VD through the evaluation pipeline. It then proceeds with an accurate and extensive evaluation of 18 PLMs, spanning model parameters from millions to billions, on high-quality datasets that feature accurate labeling, diverse vulnerability types, and various projects. Specifically, we compare the performance of PLMs under both fine-tuning and prompt engineering, assess their effectiveness and generalizability across various training and testing settings, and analyze their robustness to perturbations such as code normalization, abstraction, and semantic-preserving transformations.

Fields of Study & Subjects

Network Security and Intrusion Detection

Publication details

Pages
1540–1554
Publication date
1 June 2026
Language
EN