Fine-Tuning Bert-Based Transformers for Detecting Security Requirements

31 Pages Posted: 17 Dec 2022

See all articles by Francesco Casillo

Francesco Casillo

University of Salerno

Vincenzo Deufemia

University of Salerno

Carmine Gravino

University of Salerno

Multiple version iconThere are 5 versions of this paper

Abstract

ContextThe identification of security requirements in the early phases of system development ensures integrating necessary aspects into the IT network infrastructure and saving time and costs in the software development life cycle.AimsIn this work, we explore the impact of transformer language models on the task of detecting security-related requirements from text documents.MethodThe proposed approach adopts recent Natural Language Processing techniques for implementing sentence-level classifications of security requirements. We leverage three different BERT-based transformers, each combined with a sentence classification model, to determine whether a requirement is security-related. Our proposal is evaluated using three datasets of specificationsfromdifferentindustrydomains,andconsideringpredictionmodelstrained and validated on requirements of the same dataset (i.e., intra-domain) and of different datasets (i.e., inter-domain).ResultsThe analysis reveals that our approach achieves high performances with all the considered models. The best model outperforms existing approaches with F1-score improved of about 8% for intra-domain experiments (0.95 vs. 0.88) and of about 11% for inter-domain experiments (0.70 vs. 0.63).ConclusionThe results of our study should inspire software engineering researchers and practitioners to consider opportunities to automate security detection in the early stages of the software development process by taking advantage of recent transformer-based models.

Keywords: Security Requirements Classification, natural language processing, Deep Learning, Transformers

undefined

Suggested Citation

Casillo, Francesco and Deufemia, Vincenzo and Gravino, Carmine, Fine-Tuning Bert-Based Transformers for Detecting Security Requirements. Available at SSRN: https://ssrn.com/abstract=4305411 or http://dx.doi.org/10.2139/ssrn.4305411

Francesco Casillo (Contact Author)

University of Salerno ( email )

Via Giovanni Paolo II, 132
Fisciano, 84084
Italy

Vincenzo Deufemia

University of Salerno ( email )

Via Giovanni Paolo II, 132
Fisciano, 84084
Italy

Carmine Gravino

University of Salerno ( email )

0 References

0 Citations

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
33
Abstract Views
252
PlumX Metrics