MAO: multi‑agent LLM pipeline that generates and repairs BPMN process models

August 4, 20247 min

Overview

Decision SnapshotNeeds Validation

MAO shows a practical way to generate BPMN text with GPT‑4 and automated checks; experiments use public datasets but rely on a closed model and limited BPMN elements, so adapt before broad production use.

Citations1

Evidence Strength0.70

Confidence0.85

Risk Signals11

Trust Signals

Findings with numeric evidence: 4/4

Findings with evidence refs: 4/4

Results with explicit delta: 1/3

Reproducibility

Status: Code + data available

Open source: Partial

At A Glance

Cost impact: 70%

Production readiness: 60%

Novelty: 60%

Authors

Leilei Lin, Yumeng Jin, Yingming Zhou, Wenlong Chen, Chen Qian

Links

Abstract / PDF / Code / Data

Why It Matters For Business

MAO automates BPMN drafting, reducing time and per‑model cost while producing models closer to reference designs than many human modelers on tested cases.

Who Should Care

Summary TLDR

MAO is a four‑phase framework that uses multiple LLM agents to turn textual requirements into BPMN process models. Phases: Generation (create initial BPMN text), Refinement (split activities/add gateways), Reviewing (fix semantic hallucinations via reviewer agents), and Testing (use external tools to fix format errors). Experiments with GPT‑4 on two public datasets (FG‑C, CG‑O) show MAO produces higher‑quality models than ProMoAI and outperforms most human modelers on the fine‑grained dataset. Code is publicly available.

Problem Statement

Manual BPMN modeling is slow and costly. LLMs can automate model creation but make logical (semantic) and formatting (syntax) errors. Existing LLM approaches either produce only simple sequences or require human fixes. The paper asks: can multi‑agent LLM orchestration generate usable BPMN models and automatically detect and repair hallucinations?

Main Contribution

MAO: a practical four‑phase multi‑agent pipeline (Generation, Refinement, Reviewing, Testing) to produce BPMN text from process requirements.

Prompt strategy that mixes knowledge injection (concise BPMN text format), few‑shot examples, and Chain‑of‑Thought to improve agent outputs.

Key Findings

MAO outperformed manual modelers on four FG‑C cases.

NumbersMAO surpassed 89%, 61%, 52%, 75% of human models (datasets 14)

Practical UseFor detailed text requirements, use MAO to get models closer to a reference BPMN than most human attempts on evaluated cases.

Evidence RefTable 4; FG‑C experiments

MAO is faster and cheaper than the compared LLM baseline (ProMoAI).

NumbersMAO: ~10 min, $0.12; ProMoAI: ~15 min, $0.40

Practical UseDeploying MAO can cut model build time and per‑model API cost compared to ProMoAI when using GPT‑4.

Evidence RefSection 4.3

Results

MetricValueBaselineDeltaSplit / DatasetEvidenceEvidence Ref
Percent of manual models surpassed (FG‑C)89%, 61%, 52%, 75% (datasets 14)Human-MeanFG‑C (Camunda)Table 4: proportion MAO > human modelsTable 4
Average generation time and costMAO: ~10 min, $0.12 per model; ProMoAI: ~15 min, $0.40ProMoAIMAO ~33% faster, ~70% cheaper per reported runCG-O (coarse cases)Section 4.3Section 4.3

What To Try In 7 Days

Run the MAO repo on one simple process spec using GPT‑4 to see end‑to‑end BPMN text output.

Convert a few internal process descriptions to the paper's BPMN text format and compare outputs with existing diagrams.

Enable the Reviewing and Testing steps and measure how format checks reduce manual rework times.

Agent Features

Memory
few-shot in-context examplesprompted knowledge injection
Planning
multi-round refinement dialogueschain-of-thought prompting
Tool Use
external API format checkerBPMN text encoder/decoder
Frameworks
MAO
Is Agentic

Yes

Architectures
LLM-based agentsrole-based leader/reviewer/expert
Collaboration
multi-agent orchestrationinstructor-assistant prompting

Reproducibility

Code AvailableYes
Data AvailableYes
Open Source StatusPartial
LicenseUnknown

Risks & Boundaries

Limitations

Supports only common BPMN elements; data and message flows are not fully handled.

Relies on GPT‑4 (closed model) and API costs can scale with usage.

When Not To Use

When full BPMN features (rich message/data flows) are required.

When offline or closed‑network operation is mandatory (requires GPT‑4 APIs).

Failure Modes

Semantic hallucinations: wrong activity order or irrelevant activities.

Format hallucinations: missing attributes or malformed BPMN text.

Core Entities

Models

GPT-4

Metrics

BPMN model distance (BPMNDiffViz)percent of human models surpassedgeneration time and API cost

Datasets

FG-C (Camunda fine-grained)CG-O (OMG coarse-grained)

Benchmarks

BPMNDiffViz GreedyBPMNDiffViz TabuSearchBPMNDiffViz AntsBPMNDiffViz SimulatedAnnealing