Vulnerability prediction using pre-trained models: An empirical evaluation

The rise of Large Language Models (LLMs) has provided new directions for addressing downstream text classification tasks, such as vulnerability prediction, where segments of the source code are classified as vulnerable or not. Several recent studies have employed transfer learning in order to enhance vulnerability prediction taking advantage of the prior knowledge of the pre-trained LLMs. In the current study, different Transformer-based pre-trained LLMs are examined and evaluated with respect to their capacity to predict vulnerable software components. In particular, we fine-tune BERT, GPT-2, and T5 models, as well as their code-oriented variants namely CodeBERT, CodeGPT, and CodeT5 respectively. Subsequently, we assess their performance and we conduct an empirical comparison between them to identify the models that are the most accurate ones in vulnerability prediction.

Authors

Institutions

Publication Details

Published
2024-10-21
DOI
https://doi.org/10.1109/mascots64422.2024.10786510
Citations
3
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
1.05

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Vulnerability prediction using pre-trained models: An empirical evaluation

Ilias Kalouptsoglou, Alexander Chatzigeorgiou, Apostolos Ampatzoglou, Dionysios Kehagias et al.
3 citations
Network Security and Intrusion Detection
1.05
article

Vulnerability prediction using pre-trained models: An empirical evaluation

Ilias Kalouptsoglou, Alexander Chatzigeorgiou, Apostolos Ampatzoglou, Dionysios Kehagias, Miltiadis Siavvas
article en
3 citations

Abstract

The rise of Large Language Models (LLMs) has provided new directions for addressing downstream text classification tasks, such as vulnerability prediction, where segments of the source code are classified as vulnerable or not. Several recent studies have employed transfer learning in order to enhance vulnerability prediction taking advantage of the prior knowledge of the pre-trained LLMs. In the current study, different Transformer-based pre-trained LLMs are examined and evaluated with respect to their capacity to predict vulnerable software components. In particular, we fine-tune BERT, GPT-2, and T5 models, as well as their code-oriented variants namely CodeBERT, CodeGPT, and CodeT5 respectively. Subsequently, we assess their performance and we conduct an empirical comparison between them to identify the models that are the most accurate ones in vulnerability prediction.

University of Macedonia (GR), Information Technologies Institute (GR), Centre for Research and Technology Hellas (GR)
HORIZON EUROPE Framework Programme
Openalex Percentile: Top 20%
Network Security and Intrusion Detection
1.05
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.