← Latest papers
🤖 AI

(How) Do Large Language Models Understand High-Level Message Sequence Charts?

This paper evaluates the ability of three large language models to understand the formal semantics of High-Level Message Sequence Charts (HMSCs), revealing that while they demonstrate a strong grasp of basic concepts, their overall accuracy is modest (approximately 52%) due to significant struggles with complex semantic reasoning involving abstraction, composition, and causal dependencies.

Original authors: Mohammad Reza Mousavi

Published 2026-05-14
📖 4 min read☕ Coffee break read

Original authors: Mohammad Reza Mousavi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart, well-read robot that has read almost every book, manual, and diagram ever written. You ask it to look at a specific type of blueprint called a High-Level Message Sequence Chart (HMSC). Think of these charts like a comic strip for software: they show different characters (computer programs) passing notes (messages) to each other in a specific order.

The big question this paper asks is: Does this robot actually understand the rules of the comic strip, or is it just guessing based on how the pictures look?

Here is a breakdown of what the researchers found, using simple analogies:

1. The Setup: The "Comic Strip" Test

The researchers took 129 different tasks involving these blueprints. They asked three different "super-brains" (AI models named Gemini, GPT, and Qwen) to do things like:

  • Spot the basics: "Who sent a note to whom?"
  • Follow the rules: "If Character A sends a note, can Character B receive it before it's sent?"
  • Edit the story: "What happens if we erase this note? Does the story still make sense?"
  • Rewrite the script: "Turn this comic strip into a list of every possible way the story could play out."

2. The Results: Good at Reading, Bad at Logic

The overall score for these AI models was about 52%. That's barely a passing grade. However, the score wasn't the same for every type of task.

🟢 The Easy Stuff: "I Can See the Dots" (88% Accuracy)

When the task was just to point out the characters and the notes they sent, the AIs were excellent.

  • Analogy: If you show a robot a picture of a cat and ask, "Is that a cat?", it says "Yes" almost perfectly.
  • Why: The AIs are great at recognizing visual patterns. They can see the lines and arrows and say, "Okay, this line goes from here to there."

🔴 The Hard Stuff: "The Logic Gap" (36–42% Accuracy)

When the researchers asked the AIs to do things that required understanding the rules of time and cause-and-effect, the AIs started to fail miserably.

  • The "Parallel Play" Problem (Co-regions):
    Imagine two kids playing in separate rooms. They are doing things at the same time, but neither is waiting for the other.
    • The AI Mistake: The AIs kept insisting that one kid must finish their action before the other started, even though the blueprint said they were happening simultaneously. They couldn't understand the concept of "doing things at the same time without interfering."
  • The "Edit" Problem (Abstraction):
    Imagine you take a note out of a story. If that note was the reason a character waited for another, removing it should change the waiting rules.
    • The AI Mistake: The AIs would delete the note but forget to update the waiting rules. They left "ghost" rules in place, making the story confusing or impossible.
  • The "Script" Problem (Traces & LTS):
    This is like asking the AI to write down every single possible way the comic strip could be read from start to finish.
    • The AI Mistake: They often missed entire branches of the story or invented new, fake paths that weren't allowed by the original rules.

3. The "Cheat Code" Discovery

Interestingly, when the AIs did get the hard logic questions right, they often didn't do it in their head.

  • The Analogy: Instead of trying to solve a complex math problem in their brain, they wrote a Python computer program to solve it for them, ran the code, and then read the answer.
  • The Takeaway: The AIs are better at writing the instructions for a calculator than they are at doing the calculation themselves.

4. The Conclusion

The paper concludes that while these AI models are very good at looking at architectural diagrams and recognizing the parts, they are currently not reliable at understanding the deep, formal logic behind them.

  • They can tell you what is in the picture.
  • They struggle to tell you why it works that way or how to change it without breaking the rules.

The researchers suggest that if we want to use these AIs for serious software design, we shouldn't just ask them to "think." Instead, we should make them write code that checks the rules for us, acting as a bridge between the AI's pattern recognition and a strict, logical computer program.

In short: The AI is a great art critic who can describe a painting perfectly, but if you ask it to fix the painting's perspective or change the timeline of the story, it will likely mess up the logic.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →