TLDR: This study replicates and extends a previous NLP research on classifying user requirements from online feedback. It found varying reproducibility levels across models (Naive Bayes perfectly reproducible, BERT mixed), confirmed deep learning models (ELMo, BERT) generalize better to new datasets, and showed GPT-4o performs comparably to traditional machine learning models in a zero-shot setting but not as well as fine-tuned deep learning models. The study also assessed the replication readiness of the baseline and its own work.
In the rapidly evolving field of software engineering, understanding and classifying user feedback is crucial for developing and improving applications. User reviews often contain valuable insights, but manually sifting through them can be time-consuming and inefficient. This is where Natural Language Processing (NLP) techniques come into play, offering automated solutions for tasks like classifying user requirements.
A recent study, “Automatic Classification of User Requirements from Online Feedback – A Replication Study,” delves into the reproducibility and generalizability of NLP models for this very purpose. Conducted by researchers from the University of Calgary, this work not only replicates a previous study but also extends it by evaluating models on new datasets and comparing them against advanced AI like GPT-4o.
The Importance of Replication in Research
Replication is a cornerstone of empirical research, ensuring that scientific findings are robust and reliable. In software engineering, and particularly in NLP for Requirements Engineering (NLP4RE), external replication—where independent researchers repeat an experiment—is vital for validating principles and guidelines. Despite its importance, external replication remains relatively rare in this domain. This study directly addresses this gap by undertaking an external replication of a 2021 baseline study by Mekala et al., which focused on classifying user requirements from online feedback using deep learning.
Revisiting the Baseline: Reproducibility and Challenges
The primary goal of the replication was to see if the original results could be reproduced using the publicly available source code and dataset. The researchers evaluated various deep learning models, including FastText, ELMo, and BERT, alongside traditional machine learning models like TF-IDF with Support Vector Machine (SVM) and Naive Bayes. The findings on reproducibility were mixed. Naive Bayes, a simpler model, showed perfect reproducibility across all metrics. However, more complex models like BERT exhibited varying degrees of consistency, with perfect reproducibility for sentence-level classification (P2) but notable differences for review-level classification (P1). SVM and FastText also showed significant variations, particularly in sentence-level tasks.
The replication process itself was not without its hurdles. The team faced challenges with outdated software libraries, missing environment setup files (like a requirements.txt file), and runtime instability on cloud GPUs. These practical issues highlight that successful replication isn’t just about the code; it also depends heavily on a well-documented and easily reproducible experimental environment.
Testing Generalizability: Beyond the Original Data
A key extension of this study was to assess how well the trained models generalized to an entirely new dataset. This external dataset combined reviews from different sources, regrouped into “Helpful” and “Useless” categories to align with the binary classification task of the baseline study. The results showed that deep learning models, particularly ELMo and BERT, demonstrated better generalization capabilities compared to traditional machine learning approaches. ELMo, for instance, showed balanced performance across both “Useless” and “Helpful” classes, suggesting its robustness. BERT achieved high performance on the “Useless” class but saw a drop for the “Helpful” class, indicating a potential overfitting to the majority class in the new dataset.
The Rise of Large Language Models: GPT-4o in Zero-Shot Classification
In a significant extension, the study explored the performance of a state-of-the-art large language model, GPT-4o, as a zero-shot classifier. Zero-shot classification means the model classifies data without any specific fine-tuning on the target dataset, relying solely on its pre-trained knowledge and a carefully crafted prompt. The researchers designed a concise prompt to guide GPT-4o to classify reviews as “Helpful” or “Useless.”
While GPT-4o did not outperform the fine-tuned deep learning models like BERT, it showed competitive performance when compared to traditional machine learning models such as SVM and Naive Bayes. This suggests that while powerful, off-the-shelf LLMs might still benefit from domain-specific fine-tuning to achieve peak performance in specialized tasks like requirements classification. The study’s findings on GPT-4o underscore the potential of these models for tasks with limited or no labeled data, reducing the need for extensive manual annotation efforts.
Also Read:
- Automating GitHub README Classification with Large Language Models
- Bridging Language Gaps: How AI Models Learn to Spot Cross-Language Software Flaws
Ensuring Future Reproducibility: The Replication Readiness ID-Card
Finally, the study assessed the “replication readiness” of both the baseline study and their own work using a detailed ID-card template. This template, comprising 47 questions, evaluates various aspects crucial for replication, from data details to implementation specifics. The assessment concluded that the baseline study was largely replication-ready, though the absence of environment configuration files was a notable shortcoming. The authors of this replication study have addressed this by including such information in their own replication package, aiming to further encourage and support future replications of their work.
This comprehensive replication and extension study provides valuable insights into the reliability and applicability of NLP techniques for classifying user requirements. It highlights the varying reproducibility of different models, the generalizability of deep learning approaches, and the promising, albeit not yet superior, capabilities of zero-shot LLMs. For more detailed information, you can access the full research paper here.


