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
- Antonella Santone (ORCID: https://orcid.org/0000-0002-2634-4456)
- Francesco Mercaldo (ORCID: https://orcid.org/0000-0002-9425-1657)
- Fabio Martinelli (ORCID: https://orcid.org/0000-0002-6721-9395)
- Luca Petrillo (ORCID: https://orcid.org/0009-0000-3616-9244)
Institutions
- IMT School for Advanced Studies Lucca (IT)
- University of Molise (IT)
- Institute for High Performance Computing and Networking (IT)
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