From Image to UML: First Results of Image Based UML Diagram Generation Using LLMs (2404.11376v2)
Abstract: In software engineering processes, systems are first specified using a modeling language such as UML. These initial designs are often collaboratively created, many times in meetings where different domain experts use whiteboards, paper or other types of quick supports to create drawings and blueprints that then will need to be formalized. These proper, machine-readable, models are key to ensure models can be part of automated processes (e.g. input of a low-code generation pipeline, a model-based testing system, ...). But going from hand-drawn diagrams to actual models is a time-consuming process that sometimes ends up with such drawings just added as informal images to the software documentation, reducing their value a lot. To avoid this tedious task, we explore the usage of LLMs (LLM) to generate the formal representation of (UML) models from a given drawing. More specifically, we have evaluated the capabilities of different LLMs to convert images of UML class diagrams into the actual models represented in the images. While the results are good enough to use such an approach as part of a model-driven engineering pipeline we also highlight some of their current limitations and the need to keep the human in the loop to overcome those limitations.
- A survey of large language models, 2023.
- Grounded copilot: How programmers interact with code-generating models, 2022.
- How novices use llm-based code generators to solve cs1 coding tasks in a self-paced learning environment. In Proceedings of the 23rd Koli Calling International Conference on Computing Education Research, Koli Calling ’23, New York, NY, USA, 2024. Association for Computing Machinery.
- Conceptual modeling and large language models: Impressions from first experiments with chatgpt. Enterprise Modelling and Information Systems Architectures, 18:1–15, 01 2023.
- On the assessment of generative ai in modeling tasks: an experience report with chatgpt and uml. Softw. Syst. Model., 22(3):781–793, may 2023.
- Cogvlm: Visual expert for pretrained language models, 2023.
- Design2code: How far are we from automating front-end engineering?, 2024.
- Human factors in the adoption of model-driven engineering: An educator’s perspective. In Sebastian Link and Juan C. Trujillo, editors, Advances in Conceptual Modeling, pages 207–217, Cham, 2016. Springer International Publishing.
- How are uml class diagrams built in practice? a usability study of two uml tools: Magicdraw and papyrus. Computer Standards & Interfaces, 67:103363, 06 2019.
- New development platforms emerge for customer-facing applications. Forrester: Cambridge, MA, USA 15, 2014.
- Jordi Cabot. Low-modeling of software systems, 2024.
- Img2uml: A system for extracting uml models from images. In 2013 39th Euromicro Conference on Software Engineering and Advanced Applications, pages 134–137, 2013.
- Automatically recognizing the semantic elements from uml class diagram images. Journal of Systems and Software, 193:111431, 07 2022.
- Exploring the applicability of low-shot learning in mining software repositories. Journal Of Big Data, 6:35, 05 2019.
- Exploring the efficacy of transfer learning in mining image-based software artifacts, 2020.
- Multiclass classification of uml diagrams from images using deep learning. International Journal of Software Engineering, 31, 10 2021.
- Automatic classification of uml class diagrams using deep learning technique: Convolutional neural network. Applied Sciences, 11(9), 2021.
- On-line recognition of uml diagrams. In Proceedings of Sixth International Conference on Document Analysis and Recognition, pages 356–360, 2001.
- Tahuti: A geometrical sketch recognition system for uml class diagrams. AAAI Press, 02 2002.
- What are the used uml diagrams? a preliminary survey. CEUR Workshop Proceedings, 1078, 10 2013.
- Uml diagrams in software engineering research: A systematic literature review. Proceedings, 74(1), 2021.
- Aaron Conrardy (6 papers)
- Jordi Cabot (32 papers)