arXiv:2606.01385cs.SEcs.AI2026-06

用多智能体自动设计软件架构,提升完整性和可追溯性。

Bridging Requirements and Architecture: Multi-Agent Orchestration with External Knowledge and Hierarchical Memory

论文配图:Bridging Requirements and Architecture: Multi-Agent Orchestration with External Knowledge and Hierarchical Memory
图 1 · 摘自论文原文
  • 四类智能体协同工作,结合外部知识与分层记忆进行架构设计。
  • 在10个案例中生成的架构更完整、模块化,质量评估报告自动生成。
  • 适合需要快速迭代的敏捷开发团队,尤其依赖大模型推理能力。

软件架构设计是关键但复杂且知识密集的阶段,需平衡多种质量属性并适应变化的需求。传统方法耗时费力,高度依赖架构师,难以探索多种架构分解与风格,尤其在敏捷开发压力下。尽管基于大模型的智能体在软件工程中表现良好,但在架构设计中的应用仍较少且缺乏系统探索。为此,我们提出MAAD(多智能体架构设计)框架,通过四个专业智能体(分析师、建模者、设计者、评估者)协作,将需求规范自动转化为包含多视图的架构蓝图并进行质量属性评估。MAAD引入RAG机制注入已知架构标准与模式,并采用分层记忆机制记录设计历史以支持迭代优化。我们在10个案例上对比MetaGPT,通过量化架构指标和来自行业架构师的10份真实需求反馈进行评估。结果表明,MAAD生成的架构更完整、模块化、可追溯,其评估智能体可自动生成结构化质量报告,显著减少人工验证成本。此外,生成架构质量高度依赖底层大模型的推理能力,GPT-5.2与Qwen3.5在多数场景中表现最优。

原文摘要 · Abstract (English)

Software architecture design is a critical yet inherently complex and knowledge-intensive phase that requires balancing competing quality attributes and adapting to evolving requirements. Traditionally, this process has been time-consuming, labor-intensive, and heavily reliant on architects, often resulting in limited exploration of alternative architectural decompositions and styles, especially under the pressures of agile development. While LLM-based agents have shown promising performance across various software engineering tasks, their application to architecture design remains relatively scarce and requires systematic exploration. To address these challenges, we proposed MAAD (Multi-Agent Architecture Design), a knowledge-driven framework that orchestrates four specialized agents (i.e., Analyst, Modeler, Designer and Evaluator) to autonomously and collaboratively transform requirements specifications into comprehensive, multi-view architectural blueprints with quality attribute assessments. MAAD incorporates RAG to inject recognized architectural standards and patterns into the workflow and leverages a hierarchical memory mechanism that captures design history for iterative refinement. We evaluated MAAD through comparative experiments against MetaGPT, using quantitative architecture-level metrics across 10 case studies and qualitative feedback from industry architects on 10 real-world specifications. Results show that MAAD generates more complete, modular, and traceable architectures than the baseline, and its dedicated Evaluator agent autonomously produces structured quality evaluation reports that significantly reduce manual validation efforts. Furthermore, we found that the quality of the generated architecture heavily depends on the underlying LLM's reasoning capacity, with GPT-5.2 and Qwen3.5 outperforming other models across most evaluation settings.

软件架构多智能体大模型应用RAG

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。