NOMAD: A Multi-Agent LLM System for UML Class Diagram Generation from Natural Language Requirements
Abstract
Large Language Models (LLMs) are increasingly utilised in software engineering, yet their ability to generate structured artefacts such as UML diagrams remains underexplored. In this work we present NOMAD, a cognitively inspired, modular multi-agent framework that decomposes UML generation into a series of role-specialised subtasks. Each agent handles a distinct modelling activity, such as entity extraction, relationship classification, and diagram synthesis, mirroring the goal-directed reasoning processes of an engineer. This decomposition improves interpretability and allows for targeted verification strategies. We evaluate NOMAD through a mixed design: a large case study (Northwind) for in-depth probing and error analysis, and human-authored UML exercises for breadth and realism. NOMAD outperforms all selected baselines, while revealing persistent challenges in fine-grained attribute extraction. Building on these observations, we introduce the first systematic taxonomy of errors in LLM-generated UML diagrams, categorising structural, relationship, and semantic/logical. Finally, we examine verification as a design probe, showing its mixed effects and outlining adaptive strategies as promising directions. Together, these contributions position NOMAD as both an effective framework for UML class diagram generation and a lens onto the broader research challenges of reliable language-to-model workflows.
Empirical ResultsBrowse all benchmarks →
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| Eight supplementary use cases | Base | Average F1 score | 0.6561 | Breadth evaluation; the table labels this model setting “Small models.”Source quoteL216: Base │ 0.8185 │ 0.7084 │ 0.4617 │ 0.6358 │ 0.6561 |
| Eight supplementary use cases | NOMAD | Average F1 score | 0.6958 | Breadth evaluation; the table labels this model setting “Small models.”Source quoteL217: NOMAD │ 0.8573 │ 0.7711 │ 0.4955 │ 0.6592 │ 0.6958 |
| Northwind case study | Base | Attributes F1 score | 0.5898 | GPT-4o comparison under direct prompting; attribute extraction.Source quoteL220: Base │ 0.9545 │ 0.5898 │ 0.5211 │ 0.8777 │ 0.7360 |
| Northwind case study | NOMAD | Attributes F1 score | 0.4412 | GPT-4o comparison using the multi-agent framework; attribute extraction.Source quoteL221: NOMAD │ 1.0000 │ 0.4412 │ 0.9231 │ 0.9811 │ 0.8360 |
| Northwind case study | NOMAD | Average F1 score | 0.8360 | GPT-4o backbone; without the verifier agent.Source quoteL295: NOMAD │ 1.0000 │ 0.4412 │ 0.9231 │ 0.9811 │ 0.8360 |
BibTeX
@inproceedings{giannouris2026nomad,
author = {Polydoros Giannouris and Sophia Ananiadou},
title = {{NOMAD: A Multi-Agent LLM System for UML Class Diagram Generation from Natural Language Requirements}},
booktitle = {MODELSWARD},
year = {2026},
doi = {10.5220/0014301900004058},
}Ask Althea to put this paper to the test.
Loading related content...