用大模型将自然语言需求自动转为可定制的架构方案
ARLO: A Tailorable Approach for Transforming Natural Language Software Requirements into Architecture using LLMs
- 基于大模型识别与架构相关的需求,生成可配置的架构选择矩阵
- 通过整数规划求解最优架构,支持多方案对比与评估
- 可追溯架构决策来源,适合需求分析与系统设计人员使用
以自然语言表达的软件需求常存在冗长、模糊和不一致问题,导致系统架构选型困难且难以评估。依赖人工进行需求到架构的映射耗时且易出错。本文提出ARLO,利用(1)一组系统自然语言需求,(2)一个定义关键质量属性的标准,以及(3)现成的大语言模型,实现自动化转换。ARLO首先识别与架构相关的自然语言需求子集,并将其映射到可定制的架构选择矩阵中;随后通过整数线性规划求解当前需求下的最优架构。我们在真实案例中验证了ARLO的有效性,结果表明其能(1)将选定的架构决策追溯至原始需求,(2)识别对架构有显著影响的需求。该方法支持基于需求与约束条件的架构对比、评估与探索。
原文摘要 · Abstract (English)
Software requirements expressed in natural language (NL) frequently suffer from verbosity, ambiguity, and inconsistency. This creates a range of challenges, including selecting an appropriate architecture for a system and assessing different architectural alternatives. Relying on human expertise to accomplish the task of mapping NL requirements to architecture is time-consuming and error-prone. This paper proposes ARLO, an approach that automates this task by leveraging (1) a set of NL requirements for a system, (2) an existing standard that specifies architecturally relevant software quality attributes, and (3) a readily available Large Language Model (LLM). Specifically, ARLO determines the subset of NL requirements for a given system that is architecturally relevant and maps that subset to a tailorable matrix of architectural choices. ARLO applies integer linear programming on the architectural-choice matrix to determine the optimal architecture for the current requirements. We demonstrate ARLO's efficacy using a set of real-world examples. We highlight ARLO's ability (1) to trace the selected architectural choices to the requirements and (2) to isolate NL requirements that exert a particular influence on a system's architecture. This allows the identification, comparative assessment, and exploration of alternative architectural choices based on the requirements and constraints expressed therein.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。