From Spark to Fire: Modeling and Mitigating Error Cascades in LLM-Based Multi-Agent Collaboration
Organizations: Faculty of Data Science, City University of Macau · Minzu University of China
Abstract
Large Language Model-based Multi-Agent Systems (LLM-MAS) are increasingly applied to complex collaborative scenarios. However, their collaborative mechanisms may cause minor inaccuracies to gradually solidify into system-level false consensus through iteration. Such risks are difficult to trace since errors can propagate and amplify through message dependencies. Existing protections often rely on single-agent validation or require modifications to the collaboration architecture, which can weaken effective information flow and may not align with natural collaboration processes in real tasks. To address this, we propose a propagation dynamics model tailored for LLM-MAS that abstracts collaboration as a directed dependency graph and provides an early-stage risk criterion to characterize amplification risk. Through experiments on six mainstream frameworks, we identify three vulnerability classes: cascade amplification, topological sensitivity, and consensus inertia. We further instantiate an attack where injecting just a single atomic error seed leads to widespread failure. In response, we introduce a genealogy-graph-based governance layer, implemented as a message-layer plugin, that suppresses both endogenous and exogenous error amplification without altering the collaboration architecture. Experiments show that this approach prevents final infection in at least 89% of runs across operating modes and significantly mitigates the cascading spread of minor errors.
Figures & tables
| Topology | Function | MSE | |||
|---|---|---|---|---|---|
| Centralized | Product | 0.670 | 0.000 | 1.000 | |
| Poisson | 1.000 | 0.000 | 1.000 | ||
| Layered | Product | 0.920 | 0.005 | 0.920 | |
| Poisson | 1.000 | 0.000 | 0.920 | ||
| Layered (Horizontal) | Product | 0.850 | 0.020 | 0.823 | |
| Poisson | 1.000 | 0.000 | 0.823 |
| Framework | Hub Inf. | Leaf Inf. | Impact Factor |
|---|---|---|---|
| CrewAI | 100.0% | 15.9% | 6.29 |
| LangGraph | 100.0% | 9.7% | 10.31 |
| Timing ( ) | Target Role | Polluted Rounds |
|---|---|---|
| Architect | 1.0 | |
| QA Engineer | 2.9 | |
| Architect | 3.9 |
| Topology | Framework | Baseline | Compliance | Security FUD | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| M | Q | R | M | Q | R | M | Q | R | ||
| Chain | LangChain | 3.3 | 0.0 | 0.0 | 95.0 | 96.7 | 85.0 | 100.0 | 100.0 | 100.0 |
| MetaGPT | 5.0 | 11.7 | 46.7 | 100.0 | 98.3 | 100.0 | 96.7 | 76.7 | 95.0 | |
| Mesh | AutoGen | 0.0 | 5.0 | 0.0 | 100.0 | 100.0 | 95.0 | 98.3 | 100.0 | 98.3 |
| CAMEL | 0.0 | 0.0 | 0.0 | 100.0 | 100.0 | 100.0 | 100.0 | 98.3 | 100.0 | |
| Star | CrewAI | 0.0 | 0.0 | 3.3 | 46.7 | 51.7 | 31.7 | 46.7 | 43.3 | 33.3 |
| Framework | Defense | BICR (%) | Safe Completion (%) | Token / Safe ( ) | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Base. | Comp. | Sec. | Base. | Comp. | Sec. | Base. | Comp. | Sec. | ||
| MetaGPT | Strict | 100.0 | 95.0 | 100.0 | 95.0 | 89.2 | 97.5 | 52.9 | 49.6 | 52.0 |
| Balanced | 97.5 | 88.3 | 100.0 | 93.3 | 88.3 | 92.5 | 24.3 | 23.2 | 24.0 | |
| Speed | 95.8 | 85.0 | 100.0 | 91.7 | 79.2 | 97.5 | 17.1 | 16.0 | 16.5 | |
| Reflection | 82.5 | 5.0 | 19.2 | 80.0 | 5.0 | 19.2 | 9.7 | 9.3 | 8.7 | |
| AGrail | 96.7 | 36.7 | 42.5 | 40.8 | 0.8 | 2.5 | 14.2 | 14.3 | 15.2 | |
| Variant | BICR (%) | Tokens | Time (s) |
|---|---|---|---|
| w/o Atomization | 11,663 | ||
| w/o Detection | 14,708 | ||
| w/o Blocking | 34,991 | ||
| None | 7,365 |
| Mode | BICR | Safe Comp. | Tok./Safe | Lat./Safe (s) |
|---|---|---|---|---|
| Reflection | 0.32 | 0.32 | 12,749 | |
| Speed | 0.89 | 0.88 | 21,227 | |
| Balanced | 0.93 | 0.91 | 30,844 | |
| Strict | 0.94 | 0.93 | 57,610 | |
| AGrail | 0.79 | 0.11 | 19,902 | |
| CFG | 0.76 | 0.16 | 13,323 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Framework | Topology | MSE | Final ASR | ||
|---|---|---|---|---|---|
| AutoGen | Mesh | 0.363 | 0.002 | 0.0274 | 0.986 |
| CAMEL | Mesh | 0.270 | 0.010 | 0.0216 | 0.997 |
| CrewAI | Star | 0.220 | 0.020 | 0.0471 | 0.422 |
| LangChain | Chain | 0.985 | 0.002 | 0.0001 | 0.961 |
| LangGraph | Star | 0.470 | 0.000 | 0.0310 | 0.997 |
| MetaGPT | Chain | 0.593 | 0.000 | 0.0468 | 0.944 |
| Setting | Defense | Margin | Obs. | ||
|---|---|---|---|---|---|
| LangGraph-Star | None | 0.42 | 0.08 | 0.65 | 0.80 |
| LangGraph-Star | Speed | 0.07 | 0.00 | 0.12 | 0.18 |
| LangGraph-Star | Strict | 0.04 | 0.00 | 0.07 | 0.04 |
| AutoGen-Mesh | None | 0.26 | 0.10 | 0.68 | 0.76 |
| AutoGen-Mesh | Speed | 0.05 | 0.00 | 0.15 | 0.17 |
| AutoGen-Mesh | Strict | 0.05 | 0.00 | 0.15 | 0.08 |
| Framework | Topology | Agents | Final Rate | Std |
|---|---|---|---|---|
| MetaGPT | Chain | 4 | 100.0% | 0.0% |
| LangChain | Chain | 4 | 89.2% | 22.1% |
| LangGraph | Star | 4 | 100.0% | 0.0% |
| CrewAI | Star | 4 | 100.0% | 0.0% |
| AutoGen | Mesh | 3 | 100.0% | 0.0% |
| CAMEL | Mesh | 3 | 100.0% | 0.0% |
| Framework | Topology | Agents |
|---|---|---|
| LangChain | chain | 4 |
| MetaGPT | chain | 4 |
| AutoGen | mesh | 4 |
| CAMEL | mesh | 4 |
| CrewAI | star | 4 |
| LangGraph | star | 4 |
| Method | Acc. | FGR | G-Prec. | Time | Tok. |
|---|---|---|---|---|---|
| gpt-4o-mini | 78.8% | 20.5% | 43.8% | 684.4ms | 3993 |
| deberta-v3-small | 71.2% | 2.3% | 80.0% | 148.2ms | 0 |
| deberta-v3-large | 82.7% | 0.0% | 100.0% | 91.1ms | 0 |
| similarity (Jaccard) | 11.5% | 0.0% | N/A | 0.0ms | 0 |
| Defense | BICR (%) | Safe Completion (%) | Tok./Safe ( ) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| M | Q | R | M | Q | R | M | Q | R | |
| Strict | 89.4 | 98.9 | 94.4 | 88.3 | 98.9 | 90.6 | 54.9 | 63.2 | 50.9 |
| Balanced | 87.2 | 97.5 | 93.9 | 84.2 | 97.2 | 92.2 | 29.2 | 36.1 | 27.0 |
| Speed | 92.8 | 83.1 | 92.5 | 91.1 | 83.1 | 89.7 | 20.1 | 23.4 | 18.7 |
| Reflection | 35.3 | 29.7 | 31.9 | 35.0 | 29.7 | 30.3 | 12.8 | 12.9 | 12.4 |
| AGrail | 82.5 | 75.3 | 78.6 | 20.8 | 7.2 | 5.3 | 23.5 | 21.8 | 21.2 |
Multi-Agent LLM Systems
Multi-agent large language model systems coordinate multiple AI agents to solve tasks through communication, specialization, shared tools, and memory.
See all 1,001 papers