Large Language Models for Software Engineering Diagrams: A Systematic Review of UML and ER modelling
Mojdeh Rahmanian, Ashkan Sami, Yanchao Yu
Abstract
Large language models (LLMs) are increasingly applied to diagram-based software and data modelling. Among various modelling notations, UML and entity-relationship (ER) diagrams are the most widely adopted for software modelling and data modelling, respectively. Recent literature has investigated various applications of LLMs in diagram modelling; however, their effectiveness and limitations have not been extensively discussed. This systematic literature review analyses 64 studies published between 2023 and 2025, examining diagram coverage, modelling tasks, technical approaches, evaluation practices, and limitations. Our findings reveal significant concentration patterns and gaps. UML-based software modelling strongly dominates, with class diagrams receiving the most attention whilst behavioural diagrams and data modelling remain underrepresented. Diagram construction from natural language is the primary focus, with limited work on transformation, quality assurance, and consistency checking. GPT-based models are heavily prevalent, raising concerns about reproducibility and vendor dependence. Evaluation practices are heterogeneous, employing diverse metrics and custom datasets with limited benchmark reuse and inconsistent reporting of robustness and statistical significance. Common limitations include semantic inaccuracies, hallucinated diagram elements, sensitivity to prompt formulation, and reproducibility constraints. This survey provides the first systematic synthesis of LLM-based diagram modelling research, highlighting needs for standardised benchmarks, stronger evaluation protocols, broader diagram coverage, and techniques for improving semantic reliability and multi-view consistency.
Create a lesson
Related papers
Formal Modeling in Software Engineering with LLMs: A Systematic Literature Review
Shared title terminology · Alexandra Newcomb, Omar Ochoa
Towards Energy-Efficient Large Language Model Inference: A Systematic Literature Review
Shared title terminology · Sabiya Banu Masthan Ali, Syed Muhammad Danish, Rupinder Kaur et al.
Systematic Mapping Protocol. Generative AI-Augmented Requirements Engineering: A Systematic Mapping Study of Practices, Specifications, and Reuse in Software Development
Shared title terminology · Fernando Pinciroli
The Impact of LLM-Assistants on Software Developer Productivity: A Systematic Review and Mapping Study
Shared title terminology · Amr Mohamed, Maram Assi, Mariam Guizani
MindForge: Teaching Small Language Models Whole-Life-Cycle Software Engineering via Source-Free Program Synthesis
Shared title terminology · Yihao Chen, Shi Chang, Khaled Chawa et al.
A Preliminary Search for Evidence on Government Software Engineering Practices: Results from Three Rapid Reviews
Shared title terminology · Sebastián Pizard, Matías Porro, Andrea Muñoz et al.