ReqSeek: Transformer-Based Automatic Requirements Identification for Building Large Requirements Datasets
Organizations: Technical University of Munich, Germany · University of Hohenheim, Germany
Abstract
Large, diverse, and high-quality datasets are significant for advancing AI in requirements engineering, yet automated identification of requirements from Software Requirement Specifications (SRS) remains a challenge. Automatic Requirements Identification (ARI) methods demonstrate limited generalization to unseen documents across heterogeneous SRSs. This work presents ReqSeek, a transformer-based, domain-agnostic ARI model for recognizing ISO 29148-style requirements in SRS documents, supporting dataset construction. We curated the Automatic Requirements Identification Dataset (ARID), comprising 2,396 training instances from 23 heterogeneous SRSs, and fine-tuned four transformer architectures. RoBERTa was selected as the base model for ReqSeek and achieved 95% precision, recall, F1, and F0.89 on the held-out evaluation set. Exploratory human-model benchmarking showed performance comparable to humans while requiring substantially less prediction time than manual annotation. Post-hoc evaluation on out-of-domain (OoD) SRSs provided evidence of requirement identification beyond ARID. Robustness analysis demonstrated ReqSeek's insensitivity to minor linguistic variations while maintaining sensitivity to major ISO 29148-style violations. We applied ReqSeek to construct the Software Requirements Dataset (SwaRD), identifying 10,201 ISO 29148-style requirements from 231 industrial SRSs. SwaRD aligns with textual and semantic properties of human-curated datasets while exceeding them in scale and domain diversity. Our results suggest that transformer-based ARI can provide precise and generalizable requirements identification.
Figures & tables
| Search Engine | Queries Keywords | Filter |
| Dataset Search | Software Requirements, Functional Requirements, | |
| Non-functional Requirements, Requirements Traceability | Results with the actual dataset were considered. | |
| Zenodo | ||
| Google Scholar | Software Requirements Dataset | Datasets linked to research papers |
| Google Search | Software Requirements Specification | Filetype: pdf, docx, doc, xlsx |
| Model | Architecture | Tokenization | Training Data | Optimization | Size | Rationale |
|---|---|---|---|---|---|---|
| all-MiniLM-L6-v2 | Encoder-only | WordPiece | 1B sentence pairs from multiple datasets | Contrastive sentence-level learning | 22.7M | Lightweight sentence-level baseline suitable for initial benchmarking. |
| BERT-base-cased | Encoder-only | WordPiece | BooksCorpus + Wikipedia | Masked language modeling + next-sentence prediction | 110M | Ivanov et al. (2022) and Bashir et al. (2023) report strong ARI performance with this model. |
| RoBERTa-base | Encoder-only | Byte Pair Encoding | BookCorpus, CC-News, OpenWebText | Dynamic masked language modeling | 125M | Wang et al. (2024) and van Can and Dalpiaz (2025) report strong ARI performance with this model. |
| GPT-2 | Decoder-only | Byte Pair Encoding | WebText | Autoregressive language modeling | 117M | Included to test whether ARID benefits decoder-only architectures reported to be less suitable for ARI by ( van Can and Dalpiaz, 2025 ) . |
| ID | Severity | Transformation | Description |
| T1 | Minor | Add Minor Details | Random extra details are added |
| T2 | Minor | Re-order Words | Random words positions are swapped |
| T3 | Minor | Remove Minor Details | Random details are removed |
| T4 | Major | Signaling | |
| Keywords Removed | ISO 29148 signaling keywords are removed | ||
| T5 | Major | ISO Syntax Violation |
| Model | Precision | Recall | ||
|---|---|---|---|---|
| BERT | 0.94 0.008 | 0.93 0.011 | 0.94 0.009 | 0.93 0.010 |
| GPT-2 | 0.92 0.013 | 0.90 0.015 | 0.91 0.014 | 0.91 0.014 |
| all-MiniLM-L6-v2 | 0.94 0.011 | 0.93 0.018 | 0.94 0.015 | 0.93 0.015 |
| RoBERTa | 0.94 0.008 | 0.93 0.010 | 0.94 0.008 | 0.93 0.008 |
| Model 1 | Model 2 | MRD | p-adj | Reject |
|---|---|---|---|---|
| GPT-2 | all-MiniLM-L6-v2 | 2.0 | 0.003 | True |
| GPT-2 | RoBERTa | 2.0 | 0.003 | True |
| GPT-2 | BERT | 2.0 | 0.003 | True |
| all-MiniLM-L6-v2 | RoBERTa | 0.0 | 1.000 | False |
| all-MiniLM-L6-v2 | BERT | 0.0 | 1.000 | False |
| RoBERTa | BERT | 0.0 | 1.000 | False |
| Class | Precision | Recall | Support | ||
|---|---|---|---|---|---|
| Contextual auxiliary | 0.97 | 0.97 | 0.97 | 0.97 | 120 |
| Requirement | 0.95 | 0.96 | 0.95 | 0.96 | 210 |
| System-related auxiliary | 0.94 | 0.93 | 0.93 | 0.93 | 150 |
| Average | 0.95 | 0.95 | 0.95 | 0.95 | 480 |
| Study | Model | Domain/Artifact/Size | Evaluation Setting | P | R | |
| Winkler and Vogelsang (2016) | CNN | Automotive; 90 specs † | 90/10 split + 1 unseen spec | 0.73 | 0.89 | N/R |
| Falkner et al. (2019) | Naïve Bayes | Railway; 10 RFPs † | 10 - fold CV + 4 held-out RFPs | N/R | 0.85 | N/R |
| Abualhaija et al. (2019) | Random Forest | Industrial; 33 specs † | 10 - fold CV + unseen-specs eval. | 0.81 | 0.95 | N/R |
| Ivanov et al. (2022) | BERT | PURE 30 SRSs | Train/val/test | 0.92 | 0.80 | 0.86 |
| Bashir et al. (2023) | BERT | Railway; 5 tenders docs † | 5 - fold CV | N/R | N/R | 0.87 |
| Wang et al. (2024) | DeBERTa | PURE 30 SRSs + Dronology | 5 - fold CV + 70/30 TT | N/R | N/R | 0.83 |
| Source | Compared Instances | Cohen’s vs. Consensus | Fleiss’ |
|---|---|---|---|
| First-author Labels | 101 | 0.84 | – |
| ReqSeek Predictions | 101 | 0.81 | – |
| Annotator A1 | 101 | 0.85 | – |
| Annotator A2 | 101 | 0.86 | – |
| Annotator A3 | 101 | 0.80 | – |
| Annotators A1–A3 | 101 | – | 0.67 |
| Source | P | R | PRV | OF | TP Time | FP Time | Total Time | ||
|---|---|---|---|---|---|---|---|---|---|
| First-author Labels | 0.92 | 0.89 | 0.90 | 0.90 | 0.37 | 0.34 | – | – | – |
| ReqSeek Predictions | 0.90 | 0.87 | 0.88 | 0.88 | 0.37 | 0.32 | 0.01 (sec) | 0.01 (sec) | 0.02 (min) |
| Annotator A1 | 0.90 | 0.90 | 0.90 | 0.90 | 0.37 | 0.37 | 17.2 (sec) | 33.9 (sec) | 31.7 (min) |
| Annotator A2 | 0.91 | 0.91 | 0.91 | 0.91 | 0.37 | 0.35 | 18.2 (sec) | 20.3 (sec) | 31.0 (min) |
| Annotator A3 | 0.89 | 0.87 | 0.87 | 0.88 | 0.37 | 0.30 | 30.4 (sec) | 23.9 (sec) | 49.7 (min) |
| Test | Statistic | -value |
|---|---|---|
| Shapiro–Wilk (0% Noise) | 0.9934 | |
| Shapiro–Wilk (10% Noise) | 0.8685 | |
| Shapiro–Wilk (20% Noise) | 0.3506 | |
| Shapiro–Wilk (30% Noise) | 0.6520 | |
| Shapiro–Wilk (40% Noise) | 0.8168 | |
| Levene’s Test | 0.1321 |
| Group 1 | Group 2 | Mean Diff | p-adj | Lower | Upper | Reject |
| 0% | 10% | -0.0060 | 0.9722 | -0.0356 | 0.0236 | False |
| 0% | 20% | -0.0244 | 0.1384 | -0.0539 | 0.0052 | False |
| 0% | 30% | -0.0603 | 0.0001 | -0.0899 | -0.0308 | True |
| 0% | 40% | -0.0810 | 0.0001 | -0.1106 | -0.0515 | True |
| 10% | 20% | -0.0184 | 0.3696 | -0.0479 | 0.0112 | False |
| 10% | 30% | -0.0543 | 0.0002 | -0.0839 | -0.0248 | True |
| T0 | T1 | T2 | T3 | T4 | T5 | T6 | |
| Severity | - | Minor | Minor | Minor | Major | Major | Major |
|---|---|---|---|---|---|---|---|
| Precision | 0.95 | 0.94 | 0.92 | 0.92 | 0.79 | 0.90 | 0.78 |
| Recall | 0.95 | 0.94 | 0.92 | 0.93 | 0.65 | 0.90 | 0.62 |
| 0.95 | 0.94 | 0.92 | 0.93 | 0.53 | 0.90 | 0.50 |
| Comparison | Severity | Adj. | 95% | Significant | |||
| T0 T1: Add Minor Details | Minor | 0.115 | [0.108, 0.122] | No | 6.3444 | ||
| T0 T2: Re-order Words | Minor | 0.117 | [0.110, 0.124] | No | 6.5647 | ||
| T0 T3: Remove Minor Details | Minor | 0.079 | [0.074, 0.084] | No | 2.9897 | ||
| T0 T4: Signaling Keywords Removed | Major | 0.658 | [0.616, 0.699] | Yes | 207.6714 | ||
| T0 T5: ISO Syntax Violation | |||||||
| (+Signaling Keywords) | Major | 0.189 | [0.177, 0.201] | Yes | 17.2177 |
| SRS | Input | Gold req. | Pred. req. | TP | FP | FN | Prev. | OF | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NTP | 1065 | 172 | 194 | 171 | 23 | 1 | 0.88 | 0.99 | 0.93 | 0.16 | 0.18 |
| RMOS | 724 | 70 | 117 | 69 | 48 | 1 | 0.59 | 0.99 | 0.74 | 0.10 | 0.16 |
| KIB 3 | 296 | 35 | 34 | 32 | 2 | 3 | 0.94 | 0.91 | 0.93 | 0.12 | 0.11 |
| SRS | FP | Omitted Req. | False Req. Pred. | FN | Missed Req. | Prep. Issues | |||
|---|---|---|---|---|---|---|---|---|---|
| NTP | 23 | 13 | 10 | 1 | 0 | 1 | 0.95 | 1.00 | 0.97 |
| RMOS | 48 | 32 | 16 | 1 | 0 | 1 | 0.86 | 1.00 | 0.93 |
| KIB 3 | 2 | 1 | 1 | 3 | 3 | 0 | 0.97 | 0.92 | 0.94 |
| Class | Count | Percentage |
|---|---|---|
| Requirement | 10,201 | 25.2% |
| System-related Auxiliary | 25,746 | 63.5% |
| Contextual Auxiliary | 4,575 | 11.3% |
| Total instances | 40,522 | 100% |
| Metric | UOCSSR-ISO | SwaRD | PROMISE | NLP4RE |
|---|---|---|---|---|
| Dataset Size | 12,080 | 10,201 | 969 | 212 |
| Avg. Words/Requirement | 83.93 | 20.19 | 19.31 | 32.68 |
| Avg. Sentences/Requirement | 3.30 | 1.00 | 1.18 | 1.00 |
| Vocabulary Size | 11,170 | 8,148 | 2,010 | 1,120 |
| Lexical Diversity | 0.87 | 0.83 | 0.79 | 0.80 |
| Semantic Domain Diversity | 0.56 | 0.64 | 0.57 | 0.30 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Char. | SRS | Err. | Sentence-level Unit | Gold | Pred. | Insp. | Insp. Note |
|---|---|---|---|---|---|---|---|
| OR | KIB 3 | FP | For the search functionality to work, a PDF file with (almost) the same name as the Moodle book must be present in the course, with each PDF page aligning one-to-one with the book pages. | AUX | REQ | REQ | Specifies a precondition/constraint for search functionality: a matching PDF file must be present and aligned. |
| OR | NTP | FP | The NPT should enable the Node Managers to customize the way GBIF-compliant data are served to their own community or to a specific group of data users. | AUX | REQ | REQ | States that NPT should enable node managers to customize how data are served; this is a system capability with modal force. |
| OR | NTP | FP | A user may only initiate the use cases in this section if he is logged into the system using a user account with administrator role. | AUX | REQ | REQ | Defines an access-control precondition for initiating use cases; this is a verifiable system constraint. |
| OR | NTP | FP | Post conditions The distribution map will use the projection and default extent the administrator chose. | AUX | REQ | REQ | Post-condition states how the distribution map will use selected projection and extent; this is expected system behavior. |
| OR | RMOS | FP | The payment system should be operable such that it can return information to the RMOS system as to whether payment was successful or failed. | AUX | REQ | REQ | Specifies that the payment system should return success/failure information to RMOS; this is an interface behavior. |
| OR | RMOS | FP | Users will summon their restaurant menu, which is combined with a system/command menu, using an easy touch gesture, a double-tap on the touch surface, and dismiss it with a similar gesture or by tapping a close button. | AUX | REQ | REQ | Describes the menu interaction gesture and dismissal behavior expected by users; this is a UI capability. |
| Column Name | Description |
|---|---|
| REQID | Internal identifier assigned by the authors; may contain duplicate values. |
| REQID_expanded | Unique identifier for each requirement in ARID. |
| Project Name | Name of the project from which the requirement originates. |
| Subproject Name | Name of a subproject within the larger project. |
| Requirement Sentences | Requirement text. |
| signal_keyword | Manually labeled signal keyword in the sentence, e.g., shall , should , will , may , must . |
| ID | Project Name | Requirement Sentence | First Author Annotated Class |
|---|---|---|---|
| 35741 | ReqExp | Fastest lap in Italics. | contextual_auxiliary |
| 27567 | Crowd-Annotation Results: Identifying and Classifying User Requirements in Online Feedback | They will not be able to make good decisions. | contextual_auxiliary |
| 4024 | Dronology | In this case, consumers will replace one good with the other. | contextual_auxiliary |
| 4236 | Dronology | Marshall Herff “Do” Applewhite Jr.May 17, 1931 – March 26, 1997) was an American cult leader. | contextual_auxiliary |
| 4096 | Dronology | The European Union has made a few symbols that warn of dangers and that should be easy to understand. | contextual_auxiliary |
| 5342 | NLP4RE ReqEval | Where network services are chargeable, it should be possible for the network to provide information about call rates and on-going call charges. | requirement |
| Column Name | Description |
|---|---|
| REQID | Internal identifier assigned by the authors; may contain duplicate values. |
| REQID_expanded | Unique identifier for each instance in SwaRD. |
| Project Name | Name of the project from which the sentence originates. |
| Subproject Name | Name of a subproject within the larger project. |
| Requirement Sentences | Requirement text. |
| ∗ F/NF Classes | Placeholder for functional (F) versus non-functional (NF) requirement classification. |
| ID | Project Name | Requirement Sentence | ReqSeek Identified Class |
|---|---|---|---|
| 38560 | A Dataset of Crowdsourced Smarthome Requirements with Creativity Ratings | It is the middle of the afternoon on a bright day. | contextual_auxiliary |
| 36735 | A Dataset of Crowdsourced Smarthome Requirements with Creativity Ratings | However, it was just Daylights Saving Time so all the clocks changed by an hour. | contextual_auxiliary |
| 24717 | IlmSeven | How do we tell which jobs failed and which didn’t? | contextual_auxiliary |
| 21655 | IlmSeven | The original idea of toolchains was to have the same tool being used by different plugins within the same project. | contextual_auxiliary |
| 36837 | A Dataset of Crowdsourced Smarthome Requirements with Creativity Ratings | I get out of bed and walk toward the door. | contextual_auxiliary |
| 14365 | IlmSeven | The OpenFile dialog should show these files by default. | requirement |
Requirements Engineering
Requirements engineering studies how stakeholder needs are elicited, specified, analyzed, validated, and traced into dependable systems.
See all 66 papers