面向使用LLM工具支持质量架构评估
Towards Supporting Quality Architecture Evaluation with LLM Tools
AI总结:
本文探讨利用LLM工具自动化架构评估,通过对比学生建议的质量场景与经验架构师及LLM工具的结果,发现LLM在风险分析和权衡分析中表现更优,显著降低评估工作量。
摘要:
架构评估方法已被广泛用于评估软件设计。已有多种方法用于分析不同质量属性之间的权衡。然而,当存在相互竞争的质量属性时,选择最合适的质量属性场景会引发冲突。因此,利益相关者的场景需求必须优先排序并分析潜在风险。目前,架构质量评估仍主要由人工完成,通常需要长时间的头脑风暴来决定最合适的质量属性场景。为了减少这种努力并提高评估和选择场景的效率,本文提出利用LLM工具部分自动化评估活动。作为验证假设的第一步,本文研究了MS Copilot作为LLM工具,分析由学生建议并由经验丰富的架构师审查的质量属性场景。具体而言,本文比较了软件架构课程中进行的架构权衡分析方法(ATAM)练习的结果,与经验软件架构师和LLM工具输出的结果。初步发现,LLM在大多数情况下生成更优且更准确的结果,涉及风险、敏感点和质量场景的权衡分析,同时显著减少了任务所需的工作量。因此,我们认为生成式AI有潜力部分自动化和支持架构评估任务,通过建议更多需要评估的质量场景,并推荐最适合给定情境的场景。
英文摘要:
Architecture evaluation methods have been extensively used to evaluate software designs. Several evaluation methods have been proposed to analyze tradeoffs between different quality attributes. Also, having competing qualities leads to conflicts when selecting which quality-attribute scenarios are the most suitable ones for an architecture to tackle. Consequently, the scenarios required by the stakeholders must be prioritized and also analyzed for potential risks. Today, architecture quality evaluation is still carried out manually, often involving long brainstorming sessions to decide on the most adequate quality-attribute scenarios for the architecture. To reduce this effort and make the assessment and selection of scenarios more efficient, in this research we propose the use of LLMs to partially automate the evaluation activities. As a first step in validating this hypothesis, this paper investigates MS Copilot as an LLM tool to analyze quality-attribute scenarios suggested by students and reviewed by experienced architects. Specifically, our study compares the results of an Architecture Tradeoff Analysis Method (ATAM) exercise conducted in a software architecture course with the results of experienced software architects and with the output produced by the LLM tool. Our initial findings reveal that the LLM produces in most cases better and more accurate results regarding risks, sensitivity points and tradeoff analysis of the quality scenarios generated manually, as well as it significantly reduces the effort required for the task. Thus, we argue that the use of generative AI has the potential to partially automate and support architecture evaluation tasks by suggesting more qualitative scenarios to be evaluated and recommending the most suitable ones for a given context.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。