arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00038cs.SE
收藏

基于AI的多智能体方法用于需求获取与分析

AI based Multiagent Approach for Requirements Elicitation and Analysis

Malik Abdul Sami, Muhammad Waseem, Zheying Zhang, Zeeshan Rasheed, Kari Systä, Pekka Abrahamsson

AI总结:

本文提出基于多智能体的大语言模型方法,通过GPT-3.5、GPT-4 Omni、LLaMA3-70和Mixtral-8B自动生成、评估和优先级排序用户故事,并在四个真实项目中验证其在需求获取与分析中的有效性。

摘要:

需求工程(RE)在软件开发中发挥着关键作用,涵盖需求获取、分析、规格说明和变更管理等任务。尽管其重要性极为关键,需求工程仍面临诸多挑战,包括沟通复杂性、早期阶段的不确定性以及准确的资源估算。本研究实证考察了利用大语言模型(LLMs)自动化需求分析任务的有效性。我们实现了一个多智能体系统,将AI模型部署为智能体,从初始需求生成用户故事,评估并改进其质量,并使用选定技术对它们进行优先级排序。在我们的实现中,我们部署了四个模型,即GPT-3.5、GPT-4 Omni、LLaMA3-70和Mixtral-8B,并开展实验以分析四个真实世界项目的需求。我们通过分析不同模型的语义相似度和API性能,以及它们在需求分析中的有效性和效率来评估结果,并收集用户对其体验的反馈。初步结果表明,各模型在任务完成方面存在显著差异。Mixtral-8B提供了最快的响应,而GPT-3.5在处理复杂用户故事时表现尤为出色,获得了更高的相似度分数,展示了其从项目描述中推导出准确用户故事的能力。来自四个项目成员的反馈和建议进一步证实了LLMs在改进和精简需求工程各阶段方面的有效性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑