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

桥接需求与架构:基于外部知识和分层记忆的多智能体编排

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

School of Computer Science, Wuhan University(武汉大学计算机学院);Nanyang Technological University(南洋理工大学)

Ruiyin Li, Yiran Zhang, Xiyu Zhou, Yangxiao Cai, Peng Liang, Weisong Sun, Jifeng Xuan, Zhi Jin, Yang Liu

AI总结:

提出MAAD框架,通过编排四个专业智能体(分析师、建模师、设计师、评估师),结合RAG注入架构标准与分层记忆机制,自动将需求规格转化为多视图架构蓝图并评估质量属性。

摘要:

软件架构设计是一个关键但本质上复杂且知识密集的阶段,需要平衡相互竞争的质量属性并适应不断变化的需求。传统上,这一过程耗时、劳动密集且严重依赖架构师,通常导致对替代架构分解和风格的探索有限,尤其是在敏捷开发的压力下。虽然基于LLM的智能体在各种软件工程任务中表现出色,但它们在架构设计中的应用仍然相对稀少,需要系统性的探索。为应对这些挑战,我们提出了MAAD(多智能体架构设计),这是一个知识驱动的框架,编排四个专业智能体(即分析师、建模师、设计师和评估师),自主协作地将需求规格转化为全面、多视图的架构蓝图,并附带质量属性评估。MAAD引入RAG将公认的架构标准和模式注入工作流,并利用分层记忆机制捕获设计历史以进行迭代优化。我们通过对比实验评估了MAAD与MetaGPT,使用10个案例研究中的定量架构级指标以及来自行业架构师对10个真实世界规格的定性反馈。结果表明,MAAD生成的架构比基线更完整、模块化和可追溯,其专用的评估智能体自主生成结构化质量评估报告,显著减少了手动验证工作。此外,我们发现生成架构的质量高度依赖于底层LLM的推理能力,其中GPT-5.2和Qwen3.5在大多数评估设置中优于其他模型。

英文摘要:

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.

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

↑