arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.01709cs.SEcs.AIcs.LG
收藏

LLM 能否生成架构设计决策?——一项探索性实证研究

Can LLMs Generate Architectural Design Decisions? -An Exploratory Empirical study

Software Engineering Research Centre IIIT Hyderabad(印度理工学院海得拉巴分校软件工程研究中心);Language Technologies Research Centre IIIT Hyderabad(印度理工学院海得拉巴分校语言技术研究中心)

Rudra Dhar, Karthik Vaidhyanathan, Vasudeva Varma

AI总结:

本文实证评估 GPT 与 T5 类 LLM 基于决策背景生成 ADR 决策的能力,发现零样本、少样本和微调方案均有效但尚未达到人类水平。

摘要:

架构知识管理(Architectural Knowledge Management,AKM)涉及对项目或组织内与架构决策和设计相关的信息进行有组织的处理。AKM 的一个关键制品是架构决策记录(Architecture Decision Records,ADR),用于记录关键设计决策。ADR 是一类捕获决策背景、所做决策以及与设计决策相关各方面内容的文档,从而促进透明度、协作和理解。尽管 ADR 具有这些益处,但由于时间限制和采用情况不一致等挑战,其在软件开发中的采纳一直较为缓慢。大型语言模型(Large Language Models,LLM)的最新进展或许能够通过辅助 ADR 生成来弥合这一采纳差距。然而,LLM 在 ADR 生成或理解方面的有效性尚未得到探索。为此,本研究开展了一项探索性研究,旨在调查在给定决策背景的情况下使用 LLM 生成 ADR 的可行性。在探索性研究中,我们利用基于 GPT 和 T5 的模型,采用零样本、少样本和微调方法,在给定 ADR 的 Context(背景)的情况下生成其中的 Decision(决策)。结果表明,在零样本设置下,GPT-4 等最先进模型能够生成相关且准确的设计决策,尽管仍未达到人类水平的性能。此外,我们观察到,GPT-3.5 等更具成本效益的模型在少样本设置下可以取得相似结果,而 Flan-T5 等较小模型在微调后也能产生可比结果。总之,这项探索性研究表明 LLM 可以生成设计决策,但仍需进一步研究,以实现人类水平的生成并建立标准化的广泛采纳。

英文摘要:

Architectural Knowledge Management (AKM) involves the organized handling of information related to architectural decisions and design within a project or organization. An essential artifact of AKM is the Architecture Decision Records (ADR), which documents key design decisions. ADRs are documents that capture decision context, decision made and various aspects related to a design decision, thereby promoting transparency, collaboration, and understanding. Despite their benefits, ADR adoption in software development has been slow due to challenges like time constraints and inconsistent uptake. Recent advancements in Large Language Models (LLMs) may help bridge this adoption gap by facilitating ADR generation. However, the effectiveness of LLM for ADR generation or understanding is something that has not been explored. To this end, in this work, we perform an exploratory study that aims to investigate the feasibility of using LLM for the generation of ADRs given the decision context. In our exploratory study, we utilize GPT and T5-based models with 0-shot, few-shot, and fine-tuning approaches to generate the Decision of an ADR given its Context. Our results indicate that in a 0-shot setting, state-of-the-art models such as GPT-4 generate relevant and accurate Design Decisions, although they fall short of human-level performance. Additionally, we observe that more cost-effective models like GPT-3.5 can achieve similar outcomes in a few-shot setting, and smaller models such as Flan-T5 can yield comparable results after fine-tuning. To conclude, this exploratory study suggests that LLM can generate Design Decisions, but further research is required to attain human-level generation and establish standardized widespread adoption.

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

↑