这篇论文把七种识别安全漏洞报告的方法拉到一起比了比,结果SetFit最猛,GPT-5.2反而拉胯。做漏洞管理的人可以参考。
该论文在基准数据集上比较了七种安全漏洞报告识别技术,涵盖传统机器学习与大型语言模型。SetFit取得最佳综合表现,F1分数达0.80,在四个数据集中的三个上领先。RoBERTa表现接近,在部分项目中与SetFit相当。传统方法如Logistic回归在特定场景下仍有优势。GPT-5.2在零样本和少样本设置下均表现不佳。
A comparative analysis of automated techniques for security bug report identification
Timely identification of security-related bug reports is essential to minimize the window of vulnerabilities in software systems. Manually screening incoming bug reports to identify security-related issues is time-consuming, error-prone, and non-scalable for large-scale software systems. Thus, a variety of automatic techniques, including traditional machine learning (ML) techniques and large language models, have been proposed to facilitate this task. However, the literature remains fragmented. Most studies introduce or optimize a particular technique and evaluate it against a limited set of baselines, often under different experimental setups. As a result, it is difficult to compare their results and draw reliable conclusions about the effectiveness of existing approaches, leaving researchers and practitioners without clear guidance on which techniques are most suitable for the task. To address this gap, we conducted a comparative analysis of several promising automated techniques to identify security-related bug reports using benchmark datasets. We evaluated Logistic Regression, Support Vector Machines, Random Forest, OpenAI's GPT-5.2, BERT-base, RoBERTa, and SetFit (a state-of-the-art few-shot learning framework). Our results indicate that SetFit achieves the best overall performance, achieving an F1-score of 0.80 and outperforming other techniques on three of the four datasets. RoBERTa performs competitively and approaches SetFit in some projects, while traditional ML techniques, particularly Logistic Regression, remain a strong baseline in certain contexts. In contrast, GPT-5.2 performs poorly in both zero-shot and few-shot settings. In addition, cross-project experiments demonstrate that transfer learning can improve performance for projects with limited data, but may degrade results for projects with strong project-specific characteristics.