Req2Vec: Learning Distributed Representation of Non-Functional Software Requirements

IEEE Access, 2025

Full text Open access: Gold Metadata (CSL-JSON)
DOI 10.1109/access.2025.3637025
Data confidence 70 medium
How this score is calculated

It is built from checkable properties of the record itself: whether the article has a DOI, how many independent sources confirmed its data, whether the required fields are filled in, and how recent the latest confirmation is. Disagreement between sources and a missing identifier lower it. A value of 80 or above means the record was published without further checking; 60 to 79 means it is published at reduced confidence, with a manual check advisable. A record verified by an editor by hand is never pushed below 90 by a recalculation. This scores our data about the article, not the article itself.

Abstract

Past studies have proposed machine learning-based solutions for classifying software requirements, helping analysts, software architects, and developers efficiently and effectively identify the types of requirements. A common step performed by these solutions is to represent requirements as meaningful vectors. These vectors are used to identify and classify software requirements. The quality of the vector representations of software requirements determines the effectiveness, efficiency, and performance of the proposed solution. This study introduced a domain-specific pretrained model, Req2Vec, that extracts a distributed representation of non-functional software requirements (NFRs). Req2Vec is an unsupervised, domain-specific pre-trained model trained on thirty million samples of functional and non-functional requirements (FR and NFR). Req2Vec is aware of various requirements, including both functional and non-functional requirements, and seamlessly integrates them to learn representations of requirements. Using a limited supervised dataset, Req2Vec was investigated for various requirement classification tasks, including binary classification, reduced sets of NFR classifications, and all NFR classifications. In binary classification, the Req2Vec model achieved precision, recall, and F1 scores of 0.91, 0.87, and 0.89, respectively. For the reduced set of NFR classification, the average scores are 0.89, 0.85, and 0.87. For all classes, the average scores are 0.83, 0.77, and 0.80. A comparative analysis revealed that Req2Vec yields promising results in advancing technologies, demonstrating its effectiveness in accurately classifying NFRs.