Skip to main content
QUICK REVIEW

[论文解读] AI based Multiagent Approach for Requirements Elicitation and Analysis

M. Sami, Muhammad Waseem|arXiv (Cornell University)|Aug 18, 2024
Software Engineering Techniques and PracticesComputer Science被引用 3
一句话总结

本文提出了一种基于大语言模型(LLMs)的多智能体AI系统,用于自动化软件工程中的需求获取与分析。该系统采用四个专业智能体——产品负责人、质量保证、高级开发人员和LLM管理器——利用GPT-3.5、GPT-4 Omni、LLaMA3-70B和Mixtral-8B生成、评估并优先排序用户故事。GPT-3.5在语义相似度评分上表现最佳,而Mixtral在API响应时间上最快,表明模型选择对需求工程中的效率与质量具有显著影响。

ABSTRACT

Requirements Engineering (RE) plays a pivotal role in software development, encompassing tasks such as requirements elicitation, analysis, specification, and change management. Despite its critical importance, RE faces challenges including communication complexities, early-stage uncertainties, and accurate resource estimation. This study empirically investigates the effectiveness of utilizing Large Language Models (LLMs) to automate requirements analysis tasks. We implemented a multi-agent system that deploys AI models as agents to generate user stories from initial requirements, assess and improve their quality, and prioritize them using a selected technique. In our implementation, we deployed four models, namely GPT-3.5, GPT-4 Omni, LLaMA3-70, and Mixtral-8B, and conducted experiments to analyze requirements on four real-world projects. We evaluated the results by analyzing the semantic similarity and API performance of different models, as well as their effectiveness and efficiency in requirements analysis, gathering users' feedback on their experiences. Preliminary results indicate notable variations in task completion among the models. Mixtral-8B provided the quickest responses, while GPT-3.5 performed exceptionally well when processing complex user stories with a higher similarity score, demonstrating its capability in deriving accurate user stories from project descriptions. Feedback and suggestions from the four project members further corroborate the effectiveness of LLMs in improving and streamlining RE phases.

研究动机与目标

  • 通过利用人工智能解决需求工程中的挑战,如沟通复杂性、不确定性以及资源估算问题。
  • 探究人工智能智能体如何支持并简化敏捷开发中的需求获取、分析与优先级排序。
  • 评估不同LLM在真实项目中生成和优先排序高质量用户故事时的有效性与效率。
  • 开发一种多智能体框架,模拟利益相关者角色,提升需求分析中的协作效率。

提出的方法

  • 设计了包含四个专业LLM智能体的多智能体架构:产品负责人、质量保证与合规、高级开发人员和LLM管理器。
  • 使用四种LLM——GPT-3.5、GPT-4 Omni、LLaMA3-70B和Mixtral-8B——从初始项目描述中生成用户故事。
  • 应用两种用户故事质量框架,以评估并提升生成故事的完整性和清晰度。
  • 实施三种优先级排序技术——100美元分配法、WSJF和AHP——基于业务价值与工作量对用户故事进行排序。
  • 通过语义相似度评分、API响应时间、史诗数量与用户故事数量、词数等指标评估性能。
  • 在四个真实项目描述上进行了实证评估,并收集项目成员的反馈以验证系统的可用性与有效性。

实验结果

研究问题

  • RQ1AI智能体如何协助完成需求分析任务,如用户故事生成、质量评估与优先级排序?
  • RQ2不同大型语言模型在生成与优先排序用户故事方面的有效性与效率表现如何?
  • RQ3哪种优先级排序技术在不同LLM与项目背景下能产生最一致且可操作的结果?
  • RQ4每种LLM在处理复杂、模糊或歧义性需求时的优势与局限性是什么?

主要发现

  • GPT-3.5在所有项目中均取得最高的语义相似度评分,表明其在从初始需求中推导出上下文相关用户故事方面具有更高的准确性。
  • Mixtral-8B提供了最快的API响应时间,因此最适合时间敏感的需求分析任务。
  • GPT-4 Omni生成的用户故事数量最多,但API响应时间最长,表明其在数量与速度之间存在权衡。
  • 100美元分配法在所有模型中均持续产生稳定且可操作的结果,在稳定性与实用性上优于WSJF与AHP。
  • LLaMA3-70B与Mixtral-8B表现出稳定且适中的相似度评分,表明其在上下文感知响应生成方面具有可靠性能。
  • 项目成员的反馈证实,该多智能体系统提升了需求分析的清晰度,减少了歧义,并优化了利益相关者之间的对齐。

阅读本论文

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

在 Nubint 中阅读本论文

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