(How) Do Large Language Models Understand High-Level Message Sequence Charts?
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are being employed widely to automate tasks across the software development life-cycle. It is, however, unclear whether these tasks are performed consistently with respect to the semantics of the artefacts being handled. This question is particularly under-researched concerning architectural design specification. In this paper, we address this question for High-Level Message Sequence Charts (HMSCs). These are visual models with a rigorous formal semantics that have been used for various purposes, including as a foundation for Sequence Diagrams in the Unified Modelling Language (UML). We examine whether LLMs "understand" the semantics of HMSCs by examining three LLMs (Gemini-3, GPT-5.4, and Qwen-3.6) on how they perform 129 semantic tasks ranging from querying basic semantic constructs in HMSCs (i.e., events and their ordering) to semantic-preserving abstractions and compositions, and calculating the set of traces and trace-equivalent labelled transition systems. The results show that LLMs only have a modest understanding of the formal semantics of HMSCs (ca. 52% overall accuracy), with great variability across different semantic concepts: while LLMs seem to understand the basic semantic concepts of MSCs (ca. 88% accuracy), they struggle with semantic reasoning in tasks involving abstraction and composition (ca. 36% accuracy) and traces and LTSs (ca. 42% accuracy). In particular, all three LLMs struggle with the notions of co-region and explicit causal dependencies and never employed them in semantic-preserving transformations.
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 12 of its 25 references that are in the map. First posted on arXiv 13 May 2026.
Builds on
12 of 25 references.
References · 12
- 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checkingcited by 24
- 2023Exploring Code Analysis: Zero-Shot Insights on Syntax and Semantics with LLMscited by 19
- 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicatescited by 14
- 2025Software Architecture Meets LLMs: A Systematic Literature Reviewcited by 11
- 2025The Code Barrier: What LLMs Actually Understand?cited by 5
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisionscited by 4
- 2025Comparative Analysis of Carbon Footprint in Manual vs. LLM-Assisted Code Developmentcited by 4
- 2025The Future of Generative AI in Software Engineering: A Vision from Industry and Academia in the European GENIUS Projectcited by 4
- 2025Assessing LLMs for Front-end Software Architecture Knowledgecited by 2
- 2026Benchmarking and Evaluating VLMs for Software Architecture Diagram Understandingcited by 2
- 2026How Robustly do LLMs Understand Execution Semantics?cited by 2
- 2026Using LLMs to Evaluate Architecture Documents: Results from a Digital Marketplace Environmentcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.