Generating UML class diagrams as conceptual models through large language models
Marco Calamo, Massimo Mecella, Monique Snoeck
Key points
From the paper's conclusion- The dataset and the experimental source code are made available through GitHub( https://github.com/IlKaiser/text2uml ).
Abstract
The breakthrough of Large Language Models (LLMs) has changed how different kinds of complex tasks are approached, including the ones that require a higher level of abstraction and critical thinking together with advanced domain-specific knowledge, like Conceptual Modeling. Several experiments on testing the modeling capabilities of LLMs have already been conducted, but the literature still lacks a structured analysis of how different LLMs and prompting techniques impact the extraction of conceptual models, as UML class diagrams, from textual specifications. In this paper, we present a comprehensive comparison of open-source and closed-source LLMs used in conjunction with the most effective and accessible prompting techniques, on a newly crafted high-quality dataset of case specifications, implementing an automated evaluation on generated UML class diagrams. Finally, we assess how factors like model size or case complexity impact the quality of the generated models and what LLM and what prompting technique to choose for which task. The dataset and the experimental source code are made available through GitHub( https://github.com/IlKaiser/text2uml ).
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Tracing Hallucinations in LLM Reasoning for UML Class Diagram Generation: An Empirical Taxonomy and Mitigation StudyarXiv · 2026
- A data collection of UML diagrams in PlantUML notation mined from open-source software.Data in brief · 2026
- LLMs for Model-driven Engineering: A Systematic Literature ReviewACM Transactions on Software Engineering and Methodology · 2026
- UML Class Diagram Evaluation and Repair Strategies based on LLMsarXiv · 2026
- LLM ‐Based Domain Model Extraction From Requirements: A Case Study on Smart Tourism ApplicationsExpert Systems · 2026
- [Experiment, Analysis, and Benchmark] How well do LLMs comprehend and design relational database schemata?arXiv · 2026