ReqSeek: Transformer-Based Automatic Requirements Identification for Building Large Requirements Datasets

Mohammad Kasra Habib, Umm-e-Habiba, Daniel Graziotin, Stefan WagnerarXiv 2026

Imagine you’re a software engineer tasked with building a new system. Your starting point is a Software Requirement Specification (SRS)—a document that is supposed to be your North Star. But instead of a clean list of instructions, you’re handed a 200-page tome where actual requirements like "The system shall encrypt user data" are buried under mountains of "fluff": project history, diagrams, and helpful but non-binding explanations.

Manually digging out these "needles" from the "haystack" is the bane of Requirements Engineering (RE). It’s slow, it’s boring, and everyone does it differently. This paper introduces ReqSeek, a tool designed to do the digging for us using the power of transformer models.

TL;DR

ReqSeek is a transformer-based "scout" that automatically identifies high-quality software requirements within messy, heterogeneous documents. By achieving human-level precision while working thousands of times faster, it enables the creation of massive, diverse datasets that were previously too labor-intensive to build.

What Problem Does This Paper Address?

To build better AI for software engineering, we need data—lots of it. However, most existing datasets of software requirements are small and project-specific. The "holy grail" is a domain-agnostic model: one that can identify a requirement whether it’s written for a heart monitor or a flight simulator.

The challenge is that requirements aren't just "sentences." According to the ISO 29148 standard, a proper requirement must be a verifiable obligation. Most automated tools struggle to generalize across different industries because every company has its own "dialect" of technical writing. The authors set out to bridge this gap by creating a model that understands the structure and intent of a requirement, regardless of the subject matter.

Methods

The researchers built ReqSeek by fine-tuning RoBERTa, a robustly optimized version of the famous BERT transformer.

The process, as shown in the workflow below, is elegantly simple:

  1. Flattening: Convert complex documents (.pdf, .xml) into plain text.
  2. Segmentation: Break the text into individual sentences.
  3. Classification: Feed each sentence into ReqSeek.
Fig. 1. Automated Requirements Identification (ARI) with ReqSeek.

Unlike previous tools that just guess "Requirement or Not," ReqSeek uses a ternary (three-way) classification. It distinguishes between:

  • Requirements: Verifiable system obligations.
  • System-related auxiliary: Technical details (like architecture) that aren't specific requirements.
  • Contextual auxiliary: Background info and project fluff.

Datasets

The authors didn't just build a model; they built the "fuel" to run it.

  • ARID (Automatic Requirements Identification Dataset): A new "gold standard" dataset. They manually labeled 2,396 sentences from 23 diverse SRS documents (healthcare, aerospace, IoT, etc.).
  • SwaRD (Software Requirements Dataset): Using ReqSeek, they processed 231 industrial SRSs to create a massive library of 10,201 requirements. This is significantly larger and more diverse than previous human-curated benchmarks.

To find these sources, they used a systematic search strategy across major academic and data engines: The search strategy used to find the diverse SRS documents that form the backbone of the study.

Table 1. Search Engines and Keywords for Sourcing Requirements

Key Insights and Ideas

  • The "Shall" Trap: Many simple tools just look for the word "shall." ReqSeek is smarter. The authors found that while keywords are important, the model is robust enough to ignore minor typos or word-order swaps, yet "strict" enough to reject sentences that lack a clear system obligation.
  • Human-Level Performance: In a head-to-head "benchmarking" test, ReqSeek’s agreement with a consensus of experts (Cohen’s $\kappa = 0.81$) was right in line with how much the human experts agreed with each other.
  • The Speed Gap: This is the "aha" moment. While three human experts took between 31 and 50 minutes to label a small sample of 102 sentences, ReqSeek did it in 0.02 minutes. That’s a massive leap in productivity for researchers trying to build large-scale datasets.

Key Results

  • High Accuracy: ReqSeek achieved 95% precision, recall, and F1-score on held-out data.
  • Generalization: When tested on entirely new documents (Out-of-Distribution), it still performed strongly, even identifying valid requirements that the original human authors had missed or failed to ID properly.
  • Precision-Weighted: Because the goal is building high-quality datasets, the authors used a custom metric ($F_{.89}$) to favor precision. They’d rather miss a few requirements than accidentally include "garbage" in the final dataset.

Limitations and Future Work

While ReqSeek is a powerhouse for standard ISO-style requirements, it has its limits:

  • Atomic Focus: It looks at sentences one by one. It might struggle with "distributed" requirements that are spread across multiple sentences or paragraphs.
  • Scope: Currently, it’s tuned for traditional SRS documents. The authors want to expand it to handle Agile user stories and acceptance test cases in the future.
  • Binary vs. Ternary: In some real-world tests, they had to collapse their three categories back into two because the original documents didn't have enough structure to support the more nuanced "ternary" view.

In short, ReqSeek isn't just a classifier; it's an automated librarian for the messy world of software engineering, paving the way for the next generation of AI-driven development tools.

Summary updated

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.
BibTeX
@misc{habib2026reqseek,
  author = {Mohammad Kasra Habib and Umm-e-Habiba and Daniel Graziotin and Stefan Wagner},
  title = {{ReqSeek: Transformer-Based Automatic Requirements Identification for Building Large Requirements Datasets}},
  year = {2026},
  eprint = {2611.29722},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29722},
}
Figure