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

利用大语言模型从软件需求生成用例模型

Leveraging Large Language Models for Use Case Model Generation from Software Requirements

School of Computation, Information and Technology(计算、信息与技术学院);Technical University of Munich(慕尼黑技术大学)

Tobias Eisenreich, Nicholas Friedlaender, Stefan Wagner

AI总结:

针对手工构建软件用例模型耗时易被省略的问题,提出结合提示工程的开源权重LLM用例生成方法,实验证明其可缩短60%建模时间且质量不逊于人工,还能提供过程指导。

摘要:

用例建模采用以用户为中心的场景来梳理系统需求,可帮助相关利益方达成共识。由于手工创建用例模型工作量大、耗时久,实践中该环节常被省略。本研究探究了大语言模型(LLM)辅助完成这一繁琐流程的潜力,所提出的方法结合开源权重LLM与先进提示工程技术,从软件需求中系统性提取参与者与用例。研究通过5名专业软件工程师参与的探索性实验评估该方法,将传统手工建模与所提基于LLM的方法进行对比。结果显示该方法可大幅提速,将建模时间缩短60%,同时模型质量与手工建模持平。除提升建模效率外,参与者还表示该方法在建模过程中提供了有价值的指导。

英文摘要:

Use case modeling employs user-centered scenarios to outline system requirements. These help to achieve consensus among relevant stakeholders. Because the manual creation of use case models is demanding and time-consuming, it is often skipped in practice. This study explores the potential of Large Language Models (LLMs) to assist in this tedious process. The proposed method integrates an open-weight LLM to systematically extract actors and use cases from software requirements with advanced prompt engineering techniques. The method is evaluated using an exploratory study conducted with five professional software engineers, which compares traditional manual modeling to the proposed LLM-based approach. The results show a substantial acceleration, reducing the modeling time by 60\%. At the same time, the model quality remains on par. Besides improving the modeling efficiency, the participants indicated that the method provided valuable guidance in the process.

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

↑