Benchmarking Requirement-to-Architecture Generation with Hybrid Evaluation
Summary
R2ABench, a novel benchmark, has been introduced to evaluate Large Language Models' (LLMs) capability in generating software architecture diagrams directly from unstructured Product Requirements Documents (PRDs). Comprising 17 real-world software projects (9 Python, 8 Java) with comprehensive PRDs and expert-curated PlantUML reference diagrams, R2ABench also features a multi-dimensional, hybrid evaluation framework. This framework assesses generated diagrams across Structural Graph Metrics, Multi-dimensional Scoring, and Architecture Anti-pattern Detection. An empirical study using this benchmark revealed that LLMs achieve strong syntactic validity and entity extraction (Node F1 around 0.5) but fundamentally struggle with relational reasoning (Edge F1 below 0.2), resulting in fragmented architectures. Code-specialized models like Qwen3-coder-480b (Edge F1 0.1760) partially mitigate this, while agent frameworks often introduce instability rather than consistent improvements.
Key takeaway
For AI Architects evaluating LLM-driven software architecture generation, recognize that current models excel at component identification but severely underperform in establishing correct inter-component relationships. While code-specialized models offer slight improvements, agentic frameworks introduce significant instability. You should prioritize solutions that explicitly address relational modeling failures and topological coherence, rather than relying solely on entity extraction or general-purpose agents, to avoid fragmented and unmaintainable designs.
Key insights
LLMs excel at extracting architectural entities but fail at relational modeling, leading to fragmented software designs.
Principles
- LLMs over-abstract PRD functions to architectural nodes.
- LLMs struggle to infer dynamic behaviors from static requirements.
- Task ambiguity causes LLMs to conflate business logic with implementation.
Method
The R2ABench methodology involves dataset construction from real-world projects, context gradation testing (Full, -Arch, Min), and a multi-dimensional evaluation framework.
In practice
- Use R2ABench to benchmark LLM architecture generation.
- Employ hybrid evaluation for structural and semantic correctness.
- Detect anti-patterns like isolated or "God" components.
Topics
- Large Language Models
- Software Architecture
- Architectural Benchmarking
- PlantUML Diagrams
- Software Requirements
- Architectural Anti-patterns
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Architect
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.