UML Sequence Diagram Generation: A Multi-Model, Multi-Domain Evaluation
The automation of Unified Modeling Language (UML) sequence diagram generation has posed a persistent challenge in software engineering, with existing approaches relying heavily on manual processes. Recent advancements in natural language processing (NLP), particularly through large language models (LLMs), offer promising solutions for automating this task. This paper investigates the use of LLMs in automating the generation of UML sequence diagrams from natural language requirements. We evaluate three state-of-the-art LLMs, GPT-4o, Mixtral 8x7B, and Llama 3.1 8B, across multiple datasets, including both public and proprietary requirements, to assess their performance in terms of correctness, completeness, clarity, and readability. The results indicate GPT-4o consistently outperforms the other models in most metrics. Our findings highlight the potential of LLMs to streamline requirements engineering by reducing manual effort, although further refinement is needed to enhance their performance in complex scenarios. This study provides key insights into the strengths and limitations of these models, and offers practical guidance for their application, advancing the understanding of how LLMs can support automation in software engineering tasks.
Authors
- Jan Bosch (ORCID: https://orcid.org/0000-0003-2854-722X)
- Daniel Ståhl (ORCID: https://orcid.org/0000-0003-1675-6884)
- Chi Xiao
Institutions
- Ericsson (Sweden) (SE)
- Chalmers University of Technology (SE)
Publication Details
- Published
- 2025-04-27
- DOI
- https://doi.org/10.1109/icse-seip66354.2025.00030
- Citations
- 1
- Primary Topic
- Model-Driven Software Engineering Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.31