A comparative analysis on using GPT and BERT for automated vulnerability scoring

Large language models and transformers such as GPT and BERT have shown great improvements in many domains including cybersecurity. A constantly increasing number of vulnerabilities necessitate automated vulnerability scoring systems. Therefore, a deeper understanding of GPT and BERT compatibility with the requirements of the cybersecurity domain seems inevitable for system designers. The BERT model’s family is known to be optimized in understanding the contextual relationships with a bidirectional approach, while the GPT models perform unidirectional processing with generative capabilities. Automated vulnerability scoring systems require both the features to analyze the vulnerability and to augment the vulnerability descriptions. On the other hand, powerful GPT models are often more “resource-intensive in comparison with the BERT family. This paper presents a comprehensive comparison analysis of GPT and BERT in terms of their text classification performance, utilizing the vulnerability description classification task. We outline a thorough theoretical and experimental comparison of the models, regarding their architectures, training objectives, and fine-tuning, as well as their text classification performance. We evaluate these models on the vulnerability description classification task and employ rigorous evaluation metrics to shed light on their relative strengths and shortcomings. We also evaluate the hybrid architectures that benefit from combining GPT and BERT at the same time. Our experiment results show that they can effectively leverage the complementary strengths of both GPT and BERT, namely generative and comprehension, leading to further improvements in classification performance. • A comparison of GPT and BERT models was conducted in automated vulnerability scoring. • Fine-tuning GPT-3.5 Turbo outperformed GPT-4 in classifying vulnerabilities. • A GPT-BERT hybrid boosts accuracy by fusing generative and comprehension strengths. • MediumBERT and SmallBERT surpass other BERT variants in vulnerability scoring.

Authors

Institutions

Publication Details

Journal
Intelligent Systems with Applications
Published
2025-04-12
DOI
https://doi.org/10.1016/j.iswa.2025.200515
Citations
9
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
13.38
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A comparative analysis on using GPT and BERT for automated vulnerability scoring

Reza Shahbazian, Andrea Pugliese, Seyedeh Leili Mirtaheri, Narges Movahed
9 citations
Intelligent Systems with Applications
Network Security and Intrusion Detection
13.38
article

A comparative analysis on using GPT and BERT for automated vulnerability scoring

Reza Shahbazian, Andrea Pugliese, Seyedeh Leili Mirtaheri, Narges Movahed
article en
9 citations

Abstract

Large language models and transformers such as GPT and BERT have shown great improvements in many domains including cybersecurity. A constantly increasing number of vulnerabilities necessitate automated vulnerability scoring systems. Therefore, a deeper understanding of GPT and BERT compatibility with the requirements of the cybersecurity domain seems inevitable for system designers. The BERT model’s family is known to be optimized in understanding the contextual relationships with a bidirectional approach, while the GPT models perform unidirectional processing with generative capabilities. Automated vulnerability scoring systems require both the features to analyze the vulnerability and to augment the vulnerability descriptions. On the other hand, powerful GPT models are often more “resource-intensive in comparison with the BERT family. This paper presents a comprehensive comparison analysis of GPT and BERT in terms of their text classification performance, utilizing the vulnerability description classification task. We outline a thorough theoretical and experimental comparison of the models, regarding their architectures, training objectives, and fine-tuning, as well as their text classification performance. We evaluate these models on the vulnerability description classification task and employ rigorous evaluation metrics to shed light on their relative strengths and shortcomings. We also evaluate the hybrid architectures that benefit from combining GPT and BERT at the same time. Our experiment results show that they can effectively leverage the complementary strengths of both GPT and BERT, namely generative and comprehension, leading to further improvements in classification performance. • A comparison of GPT and BERT models was conducted in automated vulnerability scoring. • Fine-tuning GPT-3.5 Turbo outperformed GPT-4 in classifying vulnerabilities. • A GPT-BERT hybrid boosts accuracy by fusing generative and comprehension strengths. • MediumBERT and SmallBERT surpass other BERT variants in vulnerability scoring.

Intelligent Systems with ApplicationsVol. 26
University of Calabria (IT)
Openalex Percentile: Top 1%
Network Security and Intrusion Detection
13.38
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.