TL;DR
PassionNet is a new framework designed to automate the detection of duplicate and conflicting software requirements by combining the deep semantic "intuition" of Large Language Models (LLMs) with traditional statistical similarity metrics. By fusing these two worlds, the framework achieves a massive 13% improvement in F1-score over existing state-of-the-art methods across multiple benchmark datasets.
What Problem Does This Paper Address?
In software engineering, Requirements Engineering (RE) is the foundation of a successful project. However, as projects grow in complexity, human analysts often struggle to keep track of every requirement. This leads to two major headaches:
- Duplicate Requirements: The same functionality is described in different words (e.g., "The system shall process payments" vs. "The software must support online transactions"). This wastes resources as teams might accidentally build the same thing twice.
- Conflicting Requirements: Two requirements demand incompatible features (e.g., "process payments within 24 hours" vs. "process transactions instantly"). These lead to delays, increased costs, and potential system failure.
While researchers have tried using AI to spot these issues, previous models often lacked the precision needed for real-world software development. They struggled to capture the subtle semantic relationships between requirement pairs, especially in datasets where conflicts are rare (the "needle in a haystack" problem).
Methods
The authors introduce PassionNet, a framework that allows researchers to build and test 752 different predictive pipelines. The core innovation lies in how it categorizes and combines information:
- Type 1: LLM Context-Based: These are standalone, fine-tuned LLMs (like BERT or RoBERTa) that look at a pair of requirements and try to classify them directly.
- Type 2: Multi-Model Similarity Knowledge-Driven: This pipeline ignores the "context" and focuses on "similarity scores." It calculates scores using 10 traditional methods (like Vector Space Models and Latent Semantic Indexing) and 10 LLM-based similarity scores. These scores are then fed into 16 different machine learning classifiers (like Random Forests or Neural Networks).
- Type 3: The Hybrid (The Winner): This approach combines the best of both worlds. It takes the contextual "summary" of a requirement pair (the [CLS] token from an LLM), reduces its dimensionality using Principal Component Analysis (PCA), and concatenates it with the similarity scores from Type 2.
By testing 8 different LLMs—including ALBERT, BERT, DeBERTa, ELECTRA, GPT, Longformer, RoBERTa, and XLNet—the authors were able to identify exactly which architectures work best for this specific task.
Datasets
The framework was evaluated against six public benchmark datasets:
- Conflict Detection: UAV (Unmanned Aerial Vehicle requirements), WorldVista (healthcare management), PURE (various software documents), and OPENCOSS (safety-critical systems).
- Duplicate Detection: StackOverflow (programming questions) and Bugzilla (bug reports).
The authors noted that OPENCOSS was particularly challenging because it is highly imbalanced, containing only 10 conflict pairs out of nearly 6,800.
Key Insights and Ideas
- Context + Similarity = Success: The most significant finding is that LLMs are better at this task when they are supplemented with explicit similarity metrics. The "Hybrid" pipeline consistently outperformed standalone models.
- Not All LLMs are Created Equal: While GPT-3 and ELECTRA are famous, they actually failed completely on several datasets in this study. They were highly sensitive to data imbalance and struggled to capture the discriminative features needed to separate "neutral" requirements from "conflicts."
- Longformer and RoBERTa are the MVPs: Longformer excelled at conflict detection due to its ability to handle longer dependencies, while RoBERTa proved strongest for identifying duplicates.
- The Power of PCA: Reducing the high-dimensional LLM embeddings (the [CLS] tokens) to just 5 dimensions using PCA allowed standard machine learning classifiers to process the data more effectively without overfitting.
Key Results
- Performance Leap: The top-performing hybrid pipeline outperformed existing state-of-the-art predictors by an overall margin of 13% in terms of F1-score.
- Top Combinations: For conflict detection, the Longformer + Similarity Vectors + MLP (Multi-Layer Perceptron) combo was the peak performer. For duplicate detection, RoBERTa + Similarity Vectors + MLP took the lead.
- Robustness: Across the board, the hybrid models showed much more consistent performance across different types of datasets (medical, aerospace, etc.) compared to traditional methods.
Limitations and Future Work
The authors acknowledge that data imbalance remains a formidable foe. In datasets like OPENCOSS, where conflicts are extremely rare, even the best models saw a dip in performance.
Looking ahead, the researchers suggest that the PassionNet framework isn't just for software requirements. It could be adapted for:
- Legal and Healthcare: Detecting contradictions in complex legal contracts or medical records.
- Academic Integrity: Identifying sophisticated forms of plagiarism or redundant content in technical documentation.
- Refining Imbalance Strategies: Future work will likely focus on better data augmentation or specialized loss functions to help models spot those rare "needle in a haystack" conflicts more reliably.
Summary updated