Security Requirements Classification by Means of Explainable Transformer Models

Security requirements are important in the identity management domain since they help protect sensitive personal and organizational data from unauthorized access and breaches. However, manual classification of these requirements is time-consuming and error-prone. This paper proposes a domain-independent automated classification method of security requirements based on transformers. The proposed approach uses four pre-trained transformer models: BERT, RoBERTa, and two distilled versions called DistilBERT and DistilRoBERTa. Through a hyperparameter tuning phase, we identify the two best-performing models. Following, using the best hyperparameter configuration, we fine-tuned these models, achieving an accuracy value of 0.89 with BERT and an F1-Score of 0.92 with RoBERTa. Finally, we provided explainability of the fine-tuned transformers via SHAP analysis, which helps interpret the model predictions by assigning importance scores to words. This approach helps identify which terms impact the security classification more and provides a clearer insight into the reasoning behind the model's decisions.

Authors

Institutions

Publication Details

Published
2025-06-30
DOI
https://doi.org/10.1109/eurospw67616.2025.00064
Citations
1
Primary Topic
Information and Cyber Security
Type
article
Field-Weighted Citation Impact
3.25
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Security Requirements Classification by Means of Explainable Transformer Models

Antonella Santone, Francesco Mercaldo, Fabio Martinelli, Luca Petrillo
1 citations
Information and Cyber Security
3.25
article

Security Requirements Classification by Means of Explainable Transformer Models

Antonella Santone, Francesco Mercaldo, Fabio Martinelli, Luca Petrillo
article en
1 citations

Abstract

Security requirements are important in the identity management domain since they help protect sensitive personal and organizational data from unauthorized access and breaches. However, manual classification of these requirements is time-consuming and error-prone. This paper proposes a domain-independent automated classification method of security requirements based on transformers. The proposed approach uses four pre-trained transformer models: BERT, RoBERTa, and two distilled versions called DistilBERT and DistilRoBERTa. Through a hyperparameter tuning phase, we identify the two best-performing models. Following, using the best hyperparameter configuration, we fine-tuned these models, achieving an accuracy value of 0.89 with BERT and an F1-Score of 0.92 with RoBERTa. Finally, we provided explainability of the fine-tuned transformers via SHAP analysis, which helps interpret the model predictions by assigning importance scores to words. This approach helps identify which terms impact the security classification more and provides a clearer insight into the reasoning behind the model's decisions.

IMT School for Advanced Studies Lucca (IT), University of Molise (IT), Institute for High Performance Computing and Networking (IT)
Openalex Percentile: Top 7%
Information and Cyber Security
3.25
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.

Security Requirements Classification by Means of Explainable Transformer Models — Antonella Santone, Francesco Mercaldo, et al. · (2025) | TGRS Research Map | TGRS