BERT Fine-Tuning for Software Requirements Classification: Impact of Model Components and Dataset Size
Preprint
- 20 October 2025
- preprint
- Published by MDPI AG in Preprints.org
Abstract
Recent advances in natural language processing (NLP) have enabled the automation of Software Requirements Classification (SRC), particularly through fine-tuning models such as Bidirectional Encoder Representations from Transformers (BERT). While BERT-based models have shown promising results, the impact of hyperparameter sensitivity and dataset size on SRC performance remains underexplored. To address this gap, we present three main contributions: (1) the development and evaluation of BERT fine-tuning for SRC, with emphasis on the effects of key hyperparameters and dataset size; (2) comprehensive experiments to analyze the influence of individual hyperparameters to identify optimal configurations for robust and efficient performance; and (3) controlled experiments highlighting the critical factors that affect the fine-tuning outcomes in SRC, particularly dataset size and hyperparameter sensitivity. Our approach was assessed on two datasets: the PROMISE NFR dataset and FR_NFR, a tailored dataset for the SRC task. The proposed method outperformed baseline models, achieving an average F1-score of 0.99 on PROMISE and 0.97 on FR_NFR. These findings provide empirical evidence on optimization strategies for BERT-based requirements classification and offer practical guidance to software engineering practitioners.Keywords
All Related Versions
- Version 1, 2025-10-20, Preprints
- Published version: Information, 16 (11), 981.
This publication has 21 references indexed in Scilit:
- Aspect-based sentiment analysis for software requirements elicitation using fine-tuned Bidirectional Encoder Representations from Transformers and Explainable Artificial IntelligenceEngineering Applications of Artificial Intelligence, 2025
- BERT applications in natural language processing: a reviewArtificial Intelligence Review, 2025
- The application of AI techniques in requirements classification: a systematic mappingArtificial Intelligence Review, 2024
- BERT-CNN: Improving BERT for Requirements Classification using CNNProcedia Computer Science, 2023
- Automatic Requirements Classification Based on Graph Attention NetworkIEEE Access, 2022
- Automatically Classifying Non-functional Requirements with Feature Extraction and Supervised Machine Learning Techniques: A Research Preview2021
- Identifying Non-Functional Requirements From Unconstrained Documents Using Natural Language Processing and Machine Learning ApproachesIEEE Access, 2021
- Automatic Multi-class Non-Functional Software Requirements Classification Using Neural Networks2019
- Non-Functional Requirements Classification with Feature Extraction and Machine Learning: An Empirical Study2019
- Towards Supporting Software Engineering Using Deep Learning: A Case of Software Requirements Classification2017