Large Language Model for Requirements Classification: An Ensemble Approach

Requirements engineering (RE) plays a vital role in the software development process, determining the software’s requirements. These requirements are usually classified into functional (FNs) and non-functional (NFRs) requirements. Proper classification of requirements is essential for ensuring the successful development of high-quality software. However, few studies have investigated the adoption of large language models (LLMs) for RE classification tasks. Most previous research applied machine learning or deep learning approaches, which often lacked generalization. In this study, we evaluated the performance of seven LLMs, including BERT, DistilBERT, DistilRoBERTa, ELECTRA, DeBERTaV3, RoBERTa, and XLNet for binary requirements classification, using a newly collected dataset. We then applied ensemble learning strategies on and evaluated its performance in the same dataset. The results showed that the ensemble model outperformed all individual models, achieving an F1-score of 92.48%, demonstrating the effectiveness of combining multiple models. DistilBERT achieved the highest individual model with an F1-score of 91.11%. This research contributes to advancing the use of LLMs for requirement classification in RE, offering a novel approach that combines several LLMs to enhance generalization and performance.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.09.490
Primary Topic
Software Engineering Techniques and Practices
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Large Language Model for Requirements Classification: An Ensemble Approach

Tawfeeq Alsanoosy
Procedia Computer Science
Software Engineering Techniques and Practices
article

Large Language Model for Requirements Classification: An Ensemble Approach

Tawfeeq Alsanoosy
article en

Abstract

Requirements engineering (RE) plays a vital role in the software development process, determining the software’s requirements. These requirements are usually classified into functional (FNs) and non-functional (NFRs) requirements. Proper classification of requirements is essential for ensuring the successful development of high-quality software. However, few studies have investigated the adoption of large language models (LLMs) for RE classification tasks. Most previous research applied machine learning or deep learning approaches, which often lacked generalization. In this study, we evaluated the performance of seven LLMs, including BERT, DistilBERT, DistilRoBERTa, ELECTRA, DeBERTaV3, RoBERTa, and XLNet for binary requirements classification, using a newly collected dataset. We then applied ensemble learning strategies on and evaluated its performance in the same dataset. The results showed that the ensemble model outperformed all individual models, achieving an F1-score of 92.48%, demonstrating the effectiveness of combining multiple models. DistilBERT achieved the highest individual model with an F1-score of 91.11%. This research contributes to advancing the use of LLMs for requirement classification in RE, offering a novel approach that combines several LLMs to enhance generalization and performance.

Procedia Computer ScienceVol. 270
Taibah University (SA)
Openalex Percentile: Top 53%
Software Engineering Techniques and Practices
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.