arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.17842cs.SEcs.AI
收藏

在软件需求规格说明中使用LLM:一项实证评估

Using LLMs in Software Requirements Specifications: An Empirical Evaluation

IIIT Delhi(德里印度信息技术学院);Wadhwani AI(瓦德瓦尼人工智能机构)

Madhava Krishna, Bhagesh Gaur, Arsh Verma, Pankaj Jalote

AI总结:

本研究评估了GPT-4和CodeLlama在生成和验证软件需求规格说明(SRS)中的表现,发现LLM能匹配初级工程师的输出质量并显著节省开发时间,从而提高生产力。

摘要:

创建软件需求规格说明(SRS)文档对于任何软件开发项目都很重要。鉴于大型语言模型(LLM)在回答自然语言查询和生成复杂文本输出方面的最新能力,我们的研究探索了它们生成准确、连贯且结构化的文档草稿的能力,以加速软件开发生命周期。我们评估了 GPT-4 和 CodeLlama 在为大学社团管理系统起草 SRS 时的表现,并使用八个不同的标准将其与人类基准进行了比较。我们的结果表明,LLM 的输出质量可以匹配初级软件工程师以生成 SRS,提供完整且一致的草稿。我们还评估了 LLM 识别和纠正给定需求文档中问题的能力。我们的实验表明,GPT-4 能够识别问题并给出建设性反馈以进行纠正,而 CodeLlama 的验证结果则不那么令人鼓舞。我们针对四个不同的用例重复了生成练习,以研究使用 LLM 生成 SRS 所节省的时间。实验表明,LLM 可能会显著减少初级软件工程师的开发时间。因此,我们得出结论,软件工程师可以有效地使用 LLM,通过节省生成、验证和纠正软件需求的时间和精力来提高生产力。

英文摘要:

The creation of a Software Requirements Specification (SRS) document is important for any software development project. Given the recent prowess of Large Language Models (LLMs) in answering natural language queries and generating sophisticated textual outputs, our study explores their capability to produce accurate, coherent, and structured drafts of these documents to accelerate the software development lifecycle. We assess the performance of GPT-4 and CodeLlama in drafting an SRS for a university club management system and compare it against human benchmarks using eight distinct criteria. Our results suggest that LLMs can match the output quality of an entry-level software engineer to generate an SRS, delivering complete and consistent drafts. We also evaluate the capabilities of LLMs to identify and rectify problems in a given requirements document. Our experiments indicate that GPT-4 is capable of identifying issues and giving constructive feedback for rectifying them, while CodeLlama's results for validation were not as encouraging. We repeated the generation exercise for four distinct use cases to study the time saved by employing LLMs for SRS generation. The experiment demonstrates that LLMs may facilitate a significant reduction in development time for entry-level software engineers. Hence, we conclude that the LLMs can be gainfully used by software engineers to increase productivity by saving time and effort in generating, validating and rectifying software requirements.

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

↑