NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Knowledge-Based Multi-Agent Framework for Automated Software Architecture Design

Yiran Zhang, Ruiyin Li, Peng Liang, Weisong Sun, Yang Liu · DOI

Abstract

Software architecture design is a high-stakes, manual process that requires significant human expertise to balance functional requirements with non-functional constraints like scalability and security. While Large Language Models (LLMs) excel at code generation, they often fail at high-level architectural reasoning. This paper presents the Multi-Agent Architecture Design (MAAD) framework, a vision for automating system design through a collaborative pipeline of specialized agents: the Analyst, Modeler, Designer, and Evaluator. By grounding these agents in a multi-source Knowledge Base, MAAD aims to produce consistent, high-quality architectural blueprints that surpass the capabilities of zero-shot LLM prompting.

Introduction

Software architecture serves as the fundamental blueprint of a system, dictating its long-term maintainability and performance. Traditionally, this phase of development is human-intensive and prone to errors that can be costly to rectify later. Although LLMs have shown promise in software engineering, they frequently "hallucinate" inconsistent components or overlook critical non-functional requirements when tasked with full-system design. The MAAD framework addresses this gap by decomposing the architectural process into discrete, manageable tasks performed by specialized agents, mirroring the organizational structure of human engineering teams.

The MAAD Framework

The core of the MAAD framework is a collaborative pipeline of four specialized LLM-based agents, each supported by an external Knowledge Base.

The MAAD framework architecture, illustrating the flow from knowledge sources to specialized architecture agents and artifacts.

Specialized Agents

  1. The Analyst: Responsible for parsing Software Requirements Specifications (SRS) to identify Architecture-Significant Requirements (ASRs) and potential risks.
  2. The Modeler: Handles strategic decision-making, such as technology stack selection and defining high-level architectural styles (e.g., Microservices).
  3. The Designer: Translates conceptual models into detailed UML diagrams, including class, sequence, and deployment diagrams.
  4. The Evaluator: Provides quality control by verifying artifacts against requirements and triggering refinement loops when mismatches are detected.

Knowledge Integration

To prevent hallucinations and ensure industry-standard compliance, the agents draw from a Knowledge Base composed of:

  • Existing Practices: Recovered from open-source project architectures.
  • Authoritative Literature: Extracted from textbooks and standards (e.g., ISO/IEC).
  • Expert Knowledge: Captured through structured elicitation methods like the Delphi method.

Case Study: Online Bookstore

The authors demonstrate the framework's utility through a qualitative walkthrough of an online bookstore design. This example highlights the iterative nature of the MAAD pipeline.

A qualitative walkthrough of the MAAD framework applied to an online bookstore system.

In this scenario, the Analyst identifies a performance requirement for 2-second search response times. The Modeler responds by selecting a Microservices architecture and MongoDB for scalability. The Designer then generates the necessary sequence diagrams for the BookCatalog service. Finally, the Evaluator detects a missing "search by category" feature, prompting the Analyst to refine the requirements and restart the loop, ensuring the final design is comprehensive.

Discussion and Future Work

While the MAAD framework offers a robust vision for automated design, several challenges remain. Key areas for future research include improving the explainability of LLM-driven decisions, managing the complexity of inter-agent coordination, and scaling the framework to handle massive enterprise systems. The authors suggest that techniques like Retrieval-Augmented Generation (RAG) and fine-tuning on specialized architectural datasets will be essential for building trust and reliability in automated architectural systems.

Summary updated

BibTeX
@inproceedings{zhang2025knowledge,
  author = {Yiran Zhang and Ruiyin Li and Peng Liang and Weisong Sun and Yang Liu},
  title = {{Knowledge-Based Multi-Agent Framework for Automated Software Architecture Design}},
  booktitle = {SIGSOFT FSE Companion},
  year = {2025},
  doi = {10.1145/3696630.3728493},
}
Figure