Discovering the Relation Between Architectural Models and Reference Architectures
Thi Dinh Tran, Maria Teresa Rossi, Ludovico Iovino, Leonardo Mariani
Abstract
Assessing whether concrete software architectures are consistent with their reference architecture (RA) is essential to ensure that architectural decisions scale coherently across projects, preserving the quality attributes the RA was designed to guarantee. In the absence of dedicated techniques, mapping the components of an architectural model onto a predefined RA can be addressed only with general-purpose model-comparison algorithms. Our experiments show that these algorithms are inaccurate when applied to RAs. To address this gap, we propose Reference Architecture Mapping Discovery (RAMD), an LLM-based workflow that combines model analysis with structured prompting, and refines results through an iterative RA compliance-checking mechanism. We evaluate RAMD on 64 open-source architectural models spanning three RAs from the IoT, self-driving, and smart parking domains. With domain knowledge and GPT-4o, RAMD reaches 85.8% mapping accuracy and outperforms the strongest baseline by 44.6 percentage points, while ensuring structural consistency with the RA.
Create a lesson
Metadata
- Comments
- Accepted at the 49th IEEE/ACM International Conference on Software Engineering (ICSE 2027). 13 pages, 5 figures, 4 tables. \c{opyright} 2027 IEEE
Related papers
Does the Agent's Map Match the Territory? Architectural Claims in AI Agent Context Files and Their Fit with the Code
Shared title terminologycs.SEBachan Ghimire, Daniela Damian
Metadata-Driven AI: An Architectural Pattern for Sustainable Data Analysis with LLMs
Shared title terminologycs.SERenaud Pawlak, Armen Sulejmani, Jordi Cabot
ForgeSystem: An Architecture for Demand-Specific Artefact Production with AI Agents
Shared title terminologycs.SEQingfeng He, Zhui Zhu, Yaojian Chen et al.
QAOA for Layered Architecture Recovery: Feasibility, Limits, and the Role of Decomposition
Shared title terminologycs.SEJulien Cardinal, Andrew Chedid, Imen Benzarti et al.
When Routine Operations Break Architectural Pattern Relationships in LLM Agent Harnesses
Shared title terminologycs.SEBoming Xia, Qinghua Lu, Dino Sejdinovic et al.
NINJA: A Navigator-Inspector Joint Architecture for Context-Efficient Issue Localization
Shared title terminologycs.SEWenkai Fang, Shunyu Liu, Wei Luo et al.