Evaluating Large Language Models for Security Bug Report Prediction

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Soltaniani, Farnaz, Razzaq, Shoaib, Ghafari, Mohammad
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917234898632704
author Soltaniani, Farnaz
Razzaq, Shoaib
Ghafari, Mohammad
author_facet Soltaniani, Farnaz
Razzaq, Shoaib
Ghafari, Mohammad
contents Early detection of security bug reports (SBRs) is critical for timely vulnerability mitigation. We present an evaluation of prompt-based engineering and fine-tuning approaches for predicting SBRs using Large Language Models (LLMs). Our findings reveal a distinct trade-off between the two approaches. Prompted proprietary models demonstrate the highest sensitivity to SBRs, achieving a G-measure of 77% and a recall of 74% on average across all the datasets, albeit at the cost of a higher false-positive rate, resulting in an average precision of only 22%. Fine-tuned models, by contrast, exhibit the opposite behavior, attaining a lower overall G-measure of 51% but substantially higher precision of 75% at the cost of reduced recall of 36%. Though a one-time investment in building fine-tuned models is necessary, the inference on the largest dataset is up to 50 times faster than that of proprietary models. These findings suggest that further investigations to harness the power of LLMs for SBR prediction are necessary.
format Preprint
id arxiv_https___arxiv_org_abs_2601_22921
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Evaluating Large Language Models for Security Bug Report Prediction
Soltaniani, Farnaz
Razzaq, Shoaib
Ghafari, Mohammad
Cryptography and Security
Artificial Intelligence
Machine Learning
Early detection of security bug reports (SBRs) is critical for timely vulnerability mitigation. We present an evaluation of prompt-based engineering and fine-tuning approaches for predicting SBRs using Large Language Models (LLMs). Our findings reveal a distinct trade-off between the two approaches. Prompted proprietary models demonstrate the highest sensitivity to SBRs, achieving a G-measure of 77% and a recall of 74% on average across all the datasets, albeit at the cost of a higher false-positive rate, resulting in an average precision of only 22%. Fine-tuned models, by contrast, exhibit the opposite behavior, attaining a lower overall G-measure of 51% but substantially higher precision of 75% at the cost of reduced recall of 36%. Though a one-time investment in building fine-tuned models is necessary, the inference on the largest dataset is up to 50 times faster than that of proprietary models. These findings suggest that further investigations to harness the power of LLMs for SBR prediction are necessary.
title Evaluating Large Language Models for Security Bug Report Prediction
topic Cryptography and Security
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2601.22921