Skip to main content
QUICK REVIEW

[Paper Review] Empirical Evaluation of ChatGPT on Requirements Information Retrieval Under Zero-Shot Setting

Jianzhang Zhang, Yiyang Chen|ArXiv.org|Apr 25, 2023
Software Engineering ResearchComputer Science5 citations
TL;DR

This paper evaluates ChatGPT's zero-shot performance on requirements information retrieval (IR) tasks, including feature and non-functional requirement (NFR) classification and domain term extraction. Using four benchmark datasets across two artifact types (app reviews and app descriptions), results show high recall but low precision, indicating strong relevance detection but limited specificity in retrieval.

ABSTRACT

Recently, various illustrative examples have shown the impressive ability of generative large language models (LLMs) to perform NLP related tasks. ChatGPT undoubtedly is the most representative model. We empirically evaluate ChatGPT's performance on requirements information retrieval (IR) tasks to derive insights into designing or developing more effective requirements retrieval methods or tools based on generative LLMs. We design an evaluation framework considering four different combinations of two popular IR tasks and two common artifact types. Under zero-shot setting, evaluation results reveal ChatGPT's promising ability to retrieve requirements relevant information (high recall) and limited ability to retrieve more specific requirements information (low precision). Our evaluation of ChatGPT on requirements IR under zero-shot setting provides preliminary evidence for designing or developing more effective requirements IR methods or tools based on LLMs.

Motivation & Objective

  • To evaluate the effectiveness of ChatGPT in retrieving requirements-related information without fine-tuning under a zero-shot setting.
  • To investigate how well generative LLMs like ChatGPT can perform multiple requirements IR tasks using only natural language prompts.
  • To provide empirical evidence for designing more effective LLM-based tools in requirements engineering (RE).
  • To identify strengths and limitations of current LLMs in handling domain-specific requirements artifacts such as app reviews and descriptions.
  • To guide future research in prompt engineering, domain-specific LLM adaptation, and benchmark development for NLP4RE.

Proposed method

  • The study employs a zero-shot evaluation framework using four publicly available requirements IR benchmark datasets.
  • Four IR tasks are evaluated: feature requirement classification, non-functional requirement (NFR) classification, and domain term extraction from app reviews and app descriptions.
  • Each task is evaluated using standardized prompts designed to elicit specific responses from ChatGPT, simulating real user queries.
  • Evaluation metrics include precision, recall, and F1-score to quantitatively assess retrieval performance.
  • Qualitative analysis is conducted to examine the nature of retrieved results, especially false positives and reasoning patterns.
  • The evaluation is conducted across two artifact types: user-generated app reviews and official app descriptions.
Figure 1: The Framework for Evaluating ChatGPT on Requirements IR Tasks
Figure 1: The Framework for Evaluating ChatGPT on Requirements IR Tasks

Experimental results

Research questions

  • RQ1How well does ChatGPT perform in retrieving feature requirements from app reviews and app descriptions under a zero-shot setting?
  • RQ2What is the performance of ChatGPT in identifying non-functional requirements (NFRs) from the same artifact types?
  • RQ3How effective is ChatGPT at extracting domain-specific terms from requirements-related text without fine-tuning?
  • RQ4What are the strengths and limitations of ChatGPT in terms of precision and recall across different IR tasks?
  • RQ5How do the results inform the design of future LLM-based tools for requirements engineering?

Key findings

  • ChatGPT demonstrates high recall across all tasks, indicating strong ability to retrieve relevant requirements information.
  • However, precision remains low, especially in feature and NFR classification, suggesting a high rate of irrelevant or incorrect results.
  • The model shows better performance on domain term extraction compared to classification tasks, though still with notable error rates.
  • Qualitative analysis reveals that ChatGPT often generates plausible but incorrect classifications, particularly in distinguishing between functional and non-functional requirements.
  • The model struggles with context-specific nuances in app reviews, often misclassifying user opinions as requirements.
  • Despite limitations, the results indicate that ChatGPT can serve as a promising foundation for developing end-to-end, chat-based requirements retrieval tools in RE.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.