← Latest papers
💻 computer science

NOMAD: A Multi-Agent LLM System for UML Class Diagram Generation from Natural Language Requirements

The paper introduces NOMAD, a modular multi-agent framework that outperforms existing baselines in generating UML class diagrams from natural language by decomposing the task into specialized subtasks, while also establishing the first systematic taxonomy of errors in this domain and evaluating verification strategies.

Original authors: Polydoros Giannouris, Sophia Ananiadou

Published 2026-05-04
📖 5 min read🧠 Deep dive

Original authors: Polydoros Giannouris, Sophia Ananiadou

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 are trying to build a complex Lego castle based only on a written description from a friend. If you ask a single, very smart robot to read the description and build the whole castle at once, it might get overwhelmed. It might forget a specific brick, mix up two similar towers, or build a bridge where a wall should be.

This is the problem the researchers at the University of Manchester faced when trying to use Artificial Intelligence (AI) to turn written software requirements into UML Class Diagrams. These diagrams are like blueprints for software, showing how different parts (classes) connect to each other.

Here is how they solved it with their new system, NOMAD, using simple analogies:

1. The Problem: The "Overworked General"

Previously, researchers asked a single AI (a "General") to do everything: read the text, find the nouns, figure out the relationships, and draw the final diagram.

  • The Issue: Just like a tired general trying to manage a whole army alone, the AI would make mistakes. It often got the big picture right (the main buildings) but messed up the details (the windows and doors) or the connections between them.

2. The Solution: The "Specialized Construction Crew" (NOMAD)

Instead of one robot doing everything, NOMAD acts like a construction crew where every worker has a specific job. They pass the work down a line, like an assembly line in a factory.

  • Worker 1: The Concept Extractor (The Scout)
    • Job: Reads the text and just lists the main "things" (like "Customer," "Order," "Product").
    • Analogy: Like a scout walking through a forest and saying, "I see a tree, a rock, and a river." They don't worry about how they connect yet; they just identify what exists.
  • Worker 2: The Relationship Comprehender (The Connector)
    • Job: Takes the list of "things" and figures out how they talk to each other.
    • Analogy: Like a social planner who says, "The Customer buys the Order," or "The Order contains Products." They draw the lines between the items.
  • Worker 3: The Model Integrator (The Architect)
    • Job: Takes the list and the connections and organizes them into a strict, clean format (like a digital blueprint).
    • Analogy: Like an architect who takes the rough ideas and turns them into a precise, standardized plan that no one can misunderstand.
  • Worker 4: The Code Articulator (The Translator)
    • Job: Turns that clean plan into the actual code (PlantUML) that computers can read to draw the diagram.
    • Analogy: Like a translator who takes the architect's plan and writes it in the specific language the construction crew speaks.
  • Worker 5: The Validator (The Inspector)
    • Job: Looks at the final diagram and checks it against the original text to see if anything is wrong.
    • Analogy: Like a building inspector who walks through the finished house to make sure the doors open and the roof isn't leaking. If they find a mistake, they suggest a fix.

3. What They Found (The Results)

The researchers tested this "Crew" (NOMAD) against the "Overworked General" (a single AI) using two types of tests:

  1. The Northwind Test: A massive, complex database scenario (like a huge, detailed city plan).
  2. The Exercise Test: Eight smaller, human-written scenarios (like small house plans).

The Good News:

  • Better Connections: The Crew was much better at figuring out how things connect. The single AI often missed connections or drew the wrong ones. The Crew got this right almost every time.
  • Fewer Mistakes: The Crew made far fewer "structural" errors (like building a wall where a door should be).

The Bad News (The "Fine Print"):

  • The "Attribute" Struggle: The Crew still struggled with the tiny details, specifically attributes (the small data fields inside a class, like "Date of Birth" or "Price").
    • Why? The text descriptions were often vague. Sometimes the text said "keep track of the customer," but didn't explicitly list "email" or "phone number." The AI had to guess, and it often guessed wrong or missed them.
    • Analogy: The crew was great at building the house structure, but they sometimes forgot to install the specific light switches because the instructions didn't say exactly which ones to use.

4. The "Error Taxonomy" (The Mistake Dictionary)

The researchers realized that when AI makes mistakes, they aren't all the same. They created the first-ever "Mistake Dictionary" for these diagrams. They categorized errors into three buckets:

  • Structural: Missing a whole building or adding a fake one.
  • Relationship: Connecting two buildings with a bridge when they should be connected by a road.
  • Semantic/Logical: Putting a "Kitchen" inside a "Garage" (it makes sense grammatically, but it's logically wrong).

5. The Verdict

The paper concludes that NOMAD is a better way to build these software blueprints because it breaks the hard job into smaller, manageable pieces.

  • It works best when the instructions are clear and the project is big.
  • It still needs help with the tiny details (attributes) because human language is naturally fuzzy.
  • Adding an "Inspector" (the Validator) helps clean up the final product, making it even more accurate.

In short: Don't ask one super-smart robot to do everything. Instead, give a team of specialized robots a clear assembly line, and you'll get a much better blueprint.

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 →