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

协作式LLM智能体用于C4软件架构设计自动化

Collaborative LLM Agents for C4 Software Architecture Design Automation

Warsaw University of Technology(华沙技术大学)

Kamil Szczepanik, Jarosław A. Chudziak

AI总结:

本研究提出基于LLM的多智能体系统,通过模拟专家对话自动生成C4架构模型,结合混合评估框架,在五个系统简报上实现快速创建、高编译成功率和语义保真度,并比较了四种LLM的优劣。

摘要:

软件架构设计是创建每个软件系统的基础部分。尽管其重要性不言而喻,但生成C4软件架构模型(此类架构的首选表示法)仍然是一项手动且耗时的任务。我们引入了一个基于LLM的多智能体系统,通过模拟角色特定专家之间的对话来自动化此任务,这些专家分析需求并生成C4模型的上下文、容器和组件视图。质量通过混合评估框架进行评估:用于结构、语法完整性和C4规则一致性的确定性检查,以及通过LLM作为评判方法进行的语义和定性评分。在五个典型系统简报上进行测试,该工作流展示了快速的C4模型创建,保持了高编译成功率,并提供了语义保真度。对四种最先进的LLM的比较显示了与架构设计相关的不同优势。这项研究有助于自动化软件架构设计及其评估方法。

英文摘要:

Software architecture design is a fundamental part of creating every software system. Despite its importance, producing a C4 software architecture model, the preferred notation for such architecture, remains manual and time-consuming. We introduce an LLM-based multi-agent system that automates this task by simulating a dialogue between role-specific experts who analyze requirements and generate the Context, Container, and Component views of the C4 model. Quality is assessed with a hybrid evaluation framework: deterministic checks for structural and syntactic integrity and C4 rule consistency, plus semantic and qualitative scoring via an LLM-as-a-Judge approach. Tested on five canonical system briefs, the workflow demonstrates fast C4 model creation, sustains high compilation success, and delivers semantic fidelity. A comparison of four state-of-the-art LLMs shows different strengths relevant to architectural design. This study contributes to automated software architecture design and its evaluation methods.

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

↑