Skip to content
Conference

From Use Cases to Sequence Diagrams: Schema-Constrained Generation with Large Language Models

Aug 2026 · IEEE International Requirements Engineering Conference · pp. 286-297 · 0 citations · 36 references

Abstract

Sequence diagrams are widely used to model interactions among system components and external actors by explicitly describing how operations are executed over time. However, constructing sequence diagrams manually is tedious and time-consuming in practice, and their automated generation remains largely unresolved. In this work, we study LLM-based sequence diagram generation from use cases. We first construct a high-quality dataset of industrial-scale use cases paired with corresponding sequence diagrams, supporting reproducible and extensible future research. We then investigate structured generation under schema constraints using both workflow and chainof-thought (CoT) prompting strategies, enabling the generation of complex sequence diagrams with nested combined fragments. In addition, we propose an evaluation framework that measures not only the correctness of sequential messages but also the structural validity of nested control structures. Experimental results demonstrate that schema constraints together with CoT/workflow guidance substantially improve generation quality over a basic LLM-only approach.

View source

Similar papers

#software testing Preprint Sep 2026

Relationally Guided Use Case Modeling with LLMs

The proposed FlowGen uses LLM-based Semantic Information Processing (SIP) to extract semantic elements, constructs a Semantic Relational Graph (SRG) encoded by an enhanced R-GAT for basic flow generation (BFGen), and further supports branch point prediction through BPP and branch-conditioned alternative flow generation...

Guang-Yu Wang, Bangqi Li, Ji Wu et al. · 0 citations
Book Open access Oct 2026

Specializing Large-Language Models for Collaboration Workflow Generation in Software Engineering

Automated problem solving through teams of Large Language Model (LLM)-based agents has recently made remarkable progress, demonstrating the potential of collaborative approaches for software engineering tasks. Existing approaches generally follow one of two paradigms: they either solve tasks directly without generating...

Yassine Elmouhi · 0 citations
Open access Sep 2026

Generating UML class diagrams as conceptual models through large language models

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 modelin...

Marco Calamo, Massimo Mecella, Monique Snoeck · 0 citations
Book Open access Oct 2026

From Informal to Conformant Models: Benchmarking Vision--Language Models for UML Generation

Software teams routinely sketch and draw informal diagrams to capture design intent, yet these artifacts rarely evolve into conformant models that automated tooling can process or that can support later stages of development. This tension motivates flexible modeling, which aims to bridge free-form sketching and canonic...

Cecilia Eklund, Tom Jonsson, Riccardo Rubei et al. · 0 citations
Open access Oct 2026

Context engineering frames prompt engineering within system level orchestration for large language model applications

By moving from isolated instruction crafting to system-level contextual orchestration, context engineering reframes how large language model (LLM) applications are designed for complex, multi-source workflows. Prompt engineering can deliver strong results for narrow, single-turn tasks, yet it often becomes brittle and...

Attila Kovari · 0 citations
Open access Oct 2026

A Model-Driven Metamodel for the Systematic Design of Configurable NLP Pipelines

Natural Language Processing systems are increasingly built as configurable pipelines combining heterogeneous components, including data sources, task specifications, linguistic preprocessing, representation methods, learning models, training settings, evaluation protocols, explainability requirements, and deployment co...

Kamal Walji, Allae Erraissi, Abdelali Zakrani et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.