mlsanityData to 7 Oct 2026

Model Generation with LLMs: From Requirements to UML Sequence Diagrams

arXiv 2404.06371 ↗First posted 9 Apr 2024cs.SE cs.CL cs.LGcited by 11

Not on the map. Why?

Abstract (arXiv)

Complementing natural language (NL) requirements with graphical models can improve stakeholders' communication and provide directions for system design. However, creating models from requirements involves manual effort. The advent of generative large language models (LLMs), ChatGPT being a notable example, offers promising avenues for automated assistance in model generation. This paper investigates the capability of ChatGPT to generate a specific type of model, i.e., UML sequence diagrams, from NL requirements. We conduct a qualitative study in which we examine the sequence diagrams generated by ChatGPT for 28 requirements documents of various types and from different domains. Observations from the analysis of the generated diagrams have systematically been captured through evaluation logs, and categorized through thematic analysis. Our results indicate that, although the models generally conform to the standard and exhibit a reasonable level of understandability, their completeness and correctness with respect to the specified requirements often present challenges. This issue is particularly pronounced in the presence of requirements smells, such as ambiguity and inconsistency. The insights derived from this study can influence the practical utilization of LLMs in the RE process, and open the door to novel RE-specific prompting strategies targeting effective model generation.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 10 of its 39 references that are in the map. First posted on arXiv 9 Apr 2024.

Builds on

10 of 39 references.

References · 10

  1. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
  2. 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
  3. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  4. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
  5. 2023ChatGPT Prompt Patterns for Improving Code Quality, Refactoring, Requirements Elicitation, and Software Designcited by 66
  6. 2023Advancing Requirements Engineering through Generative AI: Assessing the Role of LLMscited by 42
  7. 2023Investigating ChatGPT's Potential to Assist in Requirements Elicitation Processescited by 25
  8. 2023Prompts Matter: Insights and Strategies for Prompt Engineering in Automated Software Traceabilitycited by 15
  9. 2023Requirements Engineering using Generative AI: Prompts and Prompting Patternscited by 13
  10. 2022Automatic Transformation of Natural to Unified Modeling Language: A Systematic Reviewcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 8; 2026: 3.

11 papers.