Skip to main content
QUICK REVIEW

[论文解读] Investigating ChatGPT's Potential to Assist in Requirements Elicitation Processes

Krishna Ronanki, Christian Berger|arXiv (Cornell University)|Jul 14, 2023
Software Engineering Techniques and PracticesComputer Science被引用 3
一句话总结

本研究通过将ChatGPT的输出与五名专家需求工程师的输出进行比较,评估其在生成可信人工智能系统高质量需求方面的能力。ChatGPT在抽象性、原子性、一致性、正确性和可理解性方面表现优于人类专家,但在模糊性和可行性方面得分较低,表明其在人类监督下具有支持需求获取的强大潜力。

ABSTRACT

Natural Language Processing (NLP) for Requirements Engineering (RE) (NLP4RE) seeks to apply NLP tools, techniques, and resources to the RE process to increase the quality of the requirements. There is little research involving the utilization of Generative AI-based NLP tools and techniques for requirements elicitation. In recent times, Large Language Models (LLM) like ChatGPT have gained significant recognition due to their notably improved performance in NLP tasks. To explore the potential of ChatGPT to assist in requirements elicitation processes, we formulated six questions to elicit requirements using ChatGPT. Using the same six questions, we conducted interview-based surveys with five RE experts from academia and industry and collected 30 responses containing requirements. The quality of these 36 responses (human-formulated + ChatGPT-generated) was evaluated over seven different requirements quality attributes by another five RE experts through a second round of interview-based surveys. In comparing the quality of requirements generated by ChatGPT with those formulated by human experts, we found that ChatGPT-generated requirements are highly Abstract, Atomic, Consistent, Correct, and Understandable. Based on these results, we present the most pressing issues related to LLMs and what future research should focus on to leverage the emergent behaviour of LLMs more effectively in natural language-based RE activities.

研究动机与目标

  • 评估ChatGPT生成的需求质量,并与人类需求工程专家制定的需求进行比较。
  • 识别ChatGPT在生成可信人工智能系统需求方面的优势与局限性。
  • 探索类似ChatGPT的大语言模型(LLMs)在提升基于自然语言的需求工程流程方面的潜力。
  • 为如何在适当的人类监督下有效利用大语言模型进行需求获取提供洞见。
  • 为未来研究提供指导,推动大语言模型在需求工程中更优的上下文管理与事实依据整合。

提出的方法

  • 针对可信人工智能主题设计六个标准化问题,用于从ChatGPT(基于GPT-3.5)和五名人类RE专家处获取需求。
  • 通过基于访谈的调查,从产业界和学术界的RE专家处收集30份人类生成的需求。
  • 利用第二轮专家访谈,对36份综合响应(30份人类 + 6份ChatGPT)在七个质量属性上进行评估。
  • 采用基于IEEE需求规范标准的定性评估框架,评估包括抽象性、原子性、一致性、正确性、可理解性、模糊性和可行性在内的属性。
  • 通过五名专家评估者的平均分,比较ChatGPT生成的需求与人类生成的需求。
  • 使用标准差(HR-STDEV)表示专家意见的差异,确保主观评估的透明性。
Figure 1: Overview of the methodology used.
Figure 1: Overview of the methodology used.

实验结果

研究问题

  • RQ1ChatGPT生成的需求在哪些质量属性上得分最高?
  • RQ2ChatGPT在生成需求方面存在哪些已识别的不足?
  • RQ3ChatGPT生成的需求在质量属性得分上与人类RE专家制定的需求相比如何?
  • RQ4上下文管理和提示工程如何影响大语言模型生成需求的质量?
  • RQ5知识图谱在提升大语言模型生成需求的事实准确性和可靠性方面可发挥何种作用?

主要发现

  • ChatGPT生成的需求在抽象性、原子性、一致性、正确性和可理解性方面得分最高,优于人类专家。
  • ChatGPT输出在正确性和可理解性方面的平均得分显著高于人类生成的需求。
  • ChatGPT在模糊性和可行性方面得分最低,表明其在生成无歧义且可实际实施的需求方面存在挑战。
  • 尽管在可行性和模糊性方面得分较低,ChatGPT的输出在正确性和可理解性方面始终被评价为优于人类生成的输出。
  • 研究发现,上下文管理和提示工程可提升大语言模型输出质量,表明结构化提示可增强结果的可靠性。
  • 未来研究应探索将知识图谱与大语言模型结合,以提升事实依据的准确性,减少需求生成过程中的幻觉现象。
Figure 2: Context Prompt
Figure 2: Context Prompt

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。