NOMAD: A Multi-Agent LLM System for UML Class Diagram Generation from Natural Language Requirements

Polydoros Giannouris, Sophia Ananiadou · DOI

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 →

BenchmarkMethodMetricScoreProtocol / Evidence
Eight supplementary use casesBaseAverage F1 score0.6561Breadth evaluation; the table labels this model setting “Small models.”
Source quote
L216: Base │ 0.8185 │ 0.7084 │ 0.4617 │ 0.6358 │ 0.6561
Eight supplementary use casesNOMADAverage F1 score0.6958Breadth evaluation; the table labels this model setting “Small models.”
Source quote
L217: NOMAD │ 0.8573 │ 0.7711 │ 0.4955 │ 0.6592 │ 0.6958
Northwind case studyBaseAttributes F1 score0.5898GPT-4o comparison under direct prompting; attribute extraction.
Source quote
L220: Base │ 0.9545 │ 0.5898 │ 0.5211 │ 0.8777 │ 0.7360
Northwind case studyNOMADAttributes F1 score0.4412GPT-4o comparison using the multi-agent framework; attribute extraction.
Source quote
L221: NOMAD │ 1.0000 │ 0.4412 │ 0.9231 │ 0.9811 │ 0.8360
Northwind case studyNOMADAverage F1 score0.8360GPT-4o backbone; without the verifier agent.
Source quote
L295: 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},
}

Loading related content...

Figure