Abstract
Requirements guide the entire software development life-cycle by ensuring alignment between stakeholder expectations and the final product. However, manual extraction from unstructured documents is error-prone, costly, and time-consuming. This study presents ReqNet, a computational framework that combines the contextual power of Large Language Models (LLMs) with the sequential pattern-matching capabilities of Deep Learning (DL) architectures like LSTM and GRU. Through extensive experimentation with 48 predictive pipelines across three datasets, we demonstrate that hybrid architectures—specifically an ensemble of ALBERT, BERT, and XLNet with an LSTM classifier—achieve state-of-the-art performance, outperforming standalone LLMs and traditional machine learning approaches.
Introduction
In Requirements Engineering, the elicitation process often results in a heterogeneous collection of unstructured text, such as meeting minutes and interview transcripts. Identifying formal software requirements within this "noise" is a significant bottleneck. While automated solutions exist, traditional machine learning requires manual feature engineering, and standalone LLMs often miss the fine-grained linguistic cues necessary for precise classification. ReqNet addresses these gaps by leveraging a hybrid pipeline that captures both global semantic context and local syntactic structures.
The ReqNet Framework
The ReqNet framework facilitates the development of three distinct types of predictive pipelines:
- Baseline LLMs: Fine-tuning 16 variants of 7 popular pre-trained models (e.g., BERT, RoBERTa, XLNet).
- Augmented LLMs: Feeding LLM-generated feature representations into sequential DL architectures (LSTM or GRU) for end-to-end training.
- Ensemble Augmented LLMs: Concatenating outputs from multiple LLMs (ALBERT, BERT, XLNet) into a single context-rich representation for a downstream classifier.
The framework also evaluates Generative Language Models (GLMs) like ChatGPT and Gemini under various prompting strategies to compare their zero-shot and fine-tuned performance against the hybrid pipelines.
Experimental Setup and Datasets
ReqNet was evaluated using three primary datasets:
- PURE: A benchmark of 7,745 sentences from 79 Software Requirement Specification (SRS) documents.
- Dronology: 379 samples focused on Unmanned Aerial Vehicle (UAV) systems.
- RFI (Independent Test Set): 380 sentences from Request for Information documents, used to assess cross-domain generalization.
Key Results and Insights
The experimental results highlight several critical findings:
- Hybrid Superiority: Combining LLMs with LSTMs/GRUs consistently outperformed standalone LLMs. The LLM provides broad semantic understanding, while the sequential DL layer captures the strict dependencies of technical language.
- State-of-the-Art Performance: The ensemble of ALBERT, BERT, and XLNet with an LSTM classifier achieved an F1-score of 0.89 on PURE (3% improvement over previous SOTA), 0.98 on Dronology (10% improvement), and 0.83 on the RFI test set.
- LSTM vs. GRU: LSTMs generally outperformed GRUs when used as external classifiers, likely due to their better handling of long-term dependencies in complex technical sentences.
- Prompt Sensitivity: Generative models like Gemini showed significant performance gains after fine-tuning (F1-score rising from 0.75 to 0.87), but were highly sensitive to prompt design; excessive context sometimes degraded classification accuracy.
Conclusion
ReqNet demonstrates that the most effective path toward automated requirements extraction lies in the fusion of LLM representations with specialized deep learning classifiers. While proprietary GLMs show promise, they currently suffer from prompt instability and hallucination risks. Future work will focus on refining fusion strategies, implementing confidence scoring, and exploring larger open-weight models to provide transparent, local alternatives to proprietary APIs.
Summary updated