TL;DR Multi-agent systems (MAS) built on large language models (LLMs) distribute reasoning across specialized agents that must exchange messages and invoke tools reliably. Existing evaluations typically couple communication with open domain tasks, making it difficult to determine whether a failure arises...
Authors: Danil Kostromin, Andrey Sakhovskiy, Semen Budennyy
Published: 2026-11-27
Categories: cs.MA, cs.AI, cs.CL
arXiv: 2611.33242
License: cc-by-4.0
PDF: download · download markdown
:material-format-quote: Cite this paper
CypherMAS: Benchmarking Routing Reliability in LLM-Based Multi-Agent Systems¶
Danil Kostromin1, 2, Andrey Sakhovskiy1 , Semen Budennyy1,3 1 Sber AI 2 RTU MIREA 3 AIRI
Correspondence: [email protected]
Abstract¶
Multi-agent systems (MAS) built on large language models (LLMs) distribute reasoning across specialized agents that must exchange messages and invoke tools reliably. Existing evaluations typically couple communication with open domain tasks, making it difficult to determine whether a failure arises from reasoning, malformed tool use, lost messages, or forgotten requests. Prior benchmarks do not isolate communication execution or measure routing redundancy against a known optimal path. We introduce CypherMAS, a synthetic benchmark that isolates communication and routing in fixed multi-agent graphs. Agents in chain, star, bipartite, or ring graphs route cyphered messages to remote peers holding the matching decoders; since the optimal route is known, redundant LLM calls can be measured and routing failures may be easily tracked. Across eleven open-weight models from 4B to 753B, small models fail at routing and tool use, dense models above 27B degrade with diameter, and successful runs exceed minimum LLM calls. These findings identify communication reliability as a distinct scaling bottleneck for multi-agent systems and provide a controlled diagnostic for complex multi-agent systems. The source code is freely available1 .
1 Introduction¶
LLM-based multi-agent systems (MAS) distribute reasoning across specialized agents that exchange messages, invoke tools, and track pending requests Du et al., 2024; Kim et al., 2024; Zhou et al., 2025; Zuo et al., 2025; Qiang et al., 2025; Su et al., 2025; Tan et al., 2026. Scaling to dozens of agents introduces failure points absent from singleagent inference: e.g., tool call hallucinations and pending requests loss. Recent work constructs taskspecific MAS pipelines or automates their topologies Li et al., 2023a; Wu et al., 2023; Hong et al., 2024; Kim et al., 2024; Zhuge et al., 2024; Zhang et al., 2025c; Zhou et al., 2025. Recent failure attribution research reduces MAS failure to a binary outcome Cemri et al., 2025; Zhang et al., 2025a,d; Chen et al., 2026: a MAS run either produces the correct final answer or fails. This formulation neglects communication overhead. A system may succeed while routing messages through redundant loops, masking malformed tool calls with exception handlers, or issuing several times the minimum number of transmissions, thus increasing inference cost. Quantifying this overhead requires a known minimum communication bound per agent. However, the existing benchmarks evaluate on openended tasks, providing no theoretical redundancy estimates Du et al., 2024; Wu et al., 2023; Hong et al., 2024; Kim et al., 2024; Zuo et al., 2025; Zhuge et al., 2024; Qiang et al., 2025; Zhou et al., 2025; Su et al., 2025; Tan et al., 2026. A communication reduction may merely reflect that a task lacks genuine multi-agent necessity, rather than demonstrating improved routing efficiency.
We introduce CypherMAS, a synthetic benchmark that provides exact lower-bound routing diagnostics at the level of individual agents. The benchmark replaces a shared group goal with individual objectives that require cooperation. As seen in Figure 1, each agent receives an encrypted message and a decryption table for another agent's message. The table required to decrypt its own message is held by a peer. An agent succeeds only if its encrypted message reaches the correct peer, that peer decrypts it, and the decrypted text returns to the owner and is verified. All agents pursue this objective concurrently over a fixed, fully observable graph. Agents communicate only with direct neighbours, and message delivery, decryption, and verification occur through tool calls. As the graph and the location of each required decryption table are known, the shortest request and response path is known. The benchmark therefore provides a
1 https://github.com/Andoree/CypherMAS

Figure 1: Overview of CypherMAS. Left: agents operate on one of four fixed topologies and communicate through typed messages (Strict Mode) or free-form natural language (Free Text Mode). Right: Alice routes her ciphertext along the shortest path to Dave, who holds the matching decoder three hops away (dashed arrows); the plaintext returns along the reverse path (solid arrows) and is verified with check_decryption. All agents pursue the same objective concurrently while forwarding and decrypting for peers. As the graph and decoder placement are known, the shortest request–response path defines the minimum number of LLM calls, and any additional call measures routing redundancy.
ground-truth lower bound on the number of LLM calls required by each configuration. Additional calls measure routing redundancy. Failed calls can be attributed to execution rather than task reasoning. CypherMAS evaluates two communication regimes. i. Strict Mode uses structured tool calls with fixed fields, isolating routing and tool execution from free-form natural language requests. ii. Free Text Mode uses unrestricted natural language messages, testing request formulation, forwarding, and response parsing. Through CypherMAS design, we explore three research questions:
- RQ1. Can current LLMs route messages and invoke tools reliably in fixed graphs depending on model scale and architecture?
- RQ2. How much communication overhead do models incur beyond the theoretical minimum as graph size and diameter increase?
- RQ3. Does strict tool-based communication produce fewer routing and tool errors?
Our contributions are:
- CYPHERMAS, a multi-agent benchmark that provides exact routing lower bounds, allowing deterministic classification of every message as on-path, misrouted, dropped, or duplicated.
- A taxonomy of communication failures, including dropped requests, loops, and malformed calls, analyzed by graph size, diameter, and model architecture.
- An empirical study of eleven open-weight
models ranging from 4B to 753B parameters that identifies where routing and tool execution break down as graphs grow.
2 Related Work¶
LLM-based Multi-Agent Systems. Existing research on MAS construction automation has focused primarily on three key directions. Handcrafted systems fix roles and communication protocols a priori Li et al., 2023a; Wu et al., 2023; Hong et al., 2024; Kim et al., 2024; Zuo et al., 2025; Tan et al., 2026; Su et al., 2025; Boateng et al., 2026, as seen in MetaGPT Hong et al., 2024, AutoGen Wu et al., 2023, and CAMEL Li et al., 2023a. Partially automated systems optimize individual components, such as agent selection Liu et al., 2024b; Zhou et al., 2025; Wang et al., 2026, prompt design Fernando et al., 2024; Guo et al., 2024; Chu et al., 2025, or inter-agent topology Zhuge et al., 2024; Zhang et al., 2025c, 2026.
While prior research explores communication redundancy and topology optimisation (e.g., Agent-Prune Zhang et al., 2025b or G-Designer Zhang et al., 2025c), these methods typically evaluate procedural tasks where the theoretical minimum communication is unknown. Consequently, they measure redundancy indirectly via changes in a shared final outcome. CypherMAS complements this by providing a ground-truth lower bound, enabling exact per-hop analysis.
| LLM | Chain | Star | Bipartite Graph | Ring | |||||
|---|---|---|---|---|---|---|---|---|---|
| SR | LLM Calls | SR | LLM Calls | SR | LLM Calls | SR | LLM Calls | ||
| Strict (Tool-Based) Communication | |||||||||
| Qwen3.5-4B | 0.03±0.02 | 1692±619 | 0.12±0.00 | 174±70 | 0.05±0.06 | 172±36 | 0.00±0.00 | 2049±1 | |
| Qwen3.5-9B | 0.01±0.02 | 874±258 | 0.01±0.02 | 39±24 | 0.04±0.04 | 95±42 | 0.00±0.00 | 471±124 | |
| Qwen3.6-27B | 0.36±0.04 | 549±38 | 1.00±0.00 | 96±0 | 0.99±0.02 | 99±1 | 0.57±0.10 | 624±66 | |
| Qwen3.6-35B-A3B | 0.07±0.02 | 362±29 | 0.27±0.29 | 78±45 | 0.64±0.32 | 110±11 | 0.00±0.00 | 487±140 | |
| Qwen3.8-27B | 0.55±0.08 | 553±51 | 1.00±0.00 | 96±0 | 1.00±0.00 | 120±34 | 0.75±0.12 | 702±86 | |
| Gemma4-31B | 0.85±0.02 | 601±4 | 1.00±0.00 | 96±0 | 1.00±0.00 | 100±0 | 0.89±0.08 | 597±28 | |
| Devstral-2-24B | 0.01±0.02 | 177±31 | 0.39±0.31 | 105±30 | 0.27±0.18 | 214±85 | 0.00±0.00 | 218±37 | |
| gpt-oss-20b | 0.01±0.02 | 105±21 | 0.04±0.00 | 26±1 | 0.01±0.02 | 28±1 | 0.00±0.00 | 110±18 | |
| gpt-oss-120b | 0.05±0.02 | 159±5 | 0.08±0.04 | 30±4 | 0.09±0.05 | 33±3 | 0.00±0.00 | 142±4 | |
| DeepSeek-V4-Flash 0.87±0.06 | 581±8 | 1.00±0.00 | 96±0 | 1.00±0.00 | 100±0 | 0.69±0.21 | 600±60 | ||
| GLM-5.2 | 0.91±0.08 | 1248±719 | 1.00±0.00 | 96±0 | 1.00±0.00 | 100±0 | 0.97±0.02 | 729±66 | |
| Free Form Communication | |||||||||
| Qwen3.5-4B | 0.04±0.00 | 1739±271 | 0.40±0.42 | 761±506 | 0.36±0.08 | 637±669 | 0.00±0.00 | 2061±1 | |
| Qwen3.5-9B | 0.05±0.05 | 1480±1001 | 0.48±0.42 | 175±188 | 0.33±0.26 | 124±36 | 0.00±0.00 | 2074±11 | |
| Qwen3.6-27B | 0.37±0.12 | 1156±829 | 0.85±0.14 | 88±7 | 0.97±0.02 | 99±1 | 0.47±0.22 | 1073±858 | |
| Qwen3.6-35B-A3B | 0.13±0.09 | 628±378 | 0.39±0.53 | 50±40 | 0.96±0.00 | 135±43 | 0.01±0.02 | 1885±300 | |
| Qwen3.8-27B | 0.96±0.04 | 646±5 | 1.00±0.00 | 98±3 | 1.00±0.00 | 112±14 | 0.93±0.06 | 720±58 | |
| Gemma4-31B | 0.87±0.14 | 835±408 | 0.99±0.02 | 95±1 | 0.83±0.30 | 97±5 | 0.77±0.15 | 1078±191 | |
| Devstral-2-24B | 0.01±0.02 | 710±1162 | 0.53±0.39 | 66±38 | 0.45±0.42 | 100±49 | 0.00±0.00 | 713±1158 | |
| gpt-oss-20b | 0.00±0.00 | 81±3 | 0.00±0.00 | 26±1 | 0.00±0.00 | 25±2 | 0.00±0.00 | 77±5 | |
| gpt-oss-120b | 0.00±0.00 | 174±23 | 0.04±0.00 | 28±2 | 0.03±0.02 | 33±6 | 0.00±0.00 | 169±34 | |
| DeepSeek-V4-Flash 0.95±0.02 | 1139±789 | 1.00±0.00 | 96±0 | 1.00±0.00 | 104±5 | 0.99±0.02 | 691±28 | ||
| GLM-5.2 | 0.96±0.00 | 573±9 | 1.00±0.00 | 96±1 | 1.00±0.00 | 246±5 | 1.00±0.00 | 947±21 |
Table 1: Performance evaluation of supported LLMs across various graph topologies with 25 agents. SR stands for success rate. Each metric value is averaged across 3 independent MAS runs and ± denotes standard deviation. The theoretical minimum of LLM calls is: Chain - 624, Star - 96, Bipartite - 100, Ring - 600.
Benchmarks for LLM Agents. Current MAS are frequently evaluated on general-purpose tasks, e.g., mathematics or code generation Zhang et al., 2025c; Zhuge et al., 2024; Li et al., 2026. Dedicated agent benchmarks address tool use and reasoning in complex environments Liu et al., 2024a; Zhou et al., 2024; Yang et al., 2024; Wang et al., 2024; Li et al., 2023b. They primarily focus on single agents operating within complex execution pipelines. These benchmarks couple tool execution with semantic reasoning, which prevents the isolation of mechanical execution errors from opendomain reasoning capabilities. Multi-agent benchmarks extend to collaborative settings Zhu et al., 2025; Lu et al., 2026. All these datasets lack agentic specificity and typically provide no theoretical guarantees on whether the multi-agent approach must be preferred over a single LLM and enable no algorithmic analysis of routing overhead.
Failure attribution and MAS resilience. One line of MAS reliability attributes failures to spe-
cific agents and steps. MAST Cemri et al., 2025, Who&When Zhang et al., 2025d, and Agent-Tracer Zhang et al., 2025a localise failures to specific agents and steps. Alternatively, Huang et al. 2025 and Miao et al. 2026 evaluate topology degradation under faulty agents. ResMAS Zhou et al., 2026 optimizes topologies and prompts to increase resilience. However, existing research reduces system quality to a binary task outcome: all agents solve a single shared task collaboratively. Redundant routing loops, silently handled tool errors, and unnecessary LLM invocations do not alter the final answer and therefore go undetected.
3 CypherMAS Benchmark¶
CypherMAS replaces open-ended collaboration with a deterministic routing task. The task is analogous to a set of distributed locked boxes: each agent holds a locked box and a key for another agent's box. No agent can open its own box. To obtain the plaintext, an agent must route its ciphertext through the communication graph to the peer that holds the

Figure 2: Representative scaling behaviors as graph size N grows from 3 to 25. From left to right: LLM calls on Chain in Strict mode, where GLM-5.2 issues roughly twice the theoretical minimum due to duplicated messages; LLM calls on Chain in Free Text mode, where the same model stays near the baseline; LLM calls on Ring in Strict mode, where small models hit the 2,048-call cap; success rate on Star in Strict mode, where bounded diameter removes the scaling effect for capable models. Dashed horizontal lines mark the theoretical minimum call count (baseline). Full plots for all topologies and metrics are provided in Appendix A.
matching decoder, and the plaintext must then return along the reverse path. Because the graph is fully observable and each agent knows the peer that holds its decoder, the shortest agent—decoder path is computable in advance. Therefore, errors can be studied as failures in message handling, tool invocation, and protocol execution rather than as failures in planning under semantic uncertainty.
3.1 Task Formulation¶
Environment. The environment is a fixed undirected graph \(\mathcal{G}=(\mathcal{V},\mathcal{E})\) , where \(\mathcal{V}=\{A_1,A_2,\ldots,A_N\}\) is the set of agents; \(\mathcal{E}\) is the set of edges that define the agentic topology: if two agents are connected to an edge, they may send each other queries directly. Agent \(A_i\) can exchange messages only with direct neighbors \(\mathcal{N}(A_i)\) . Decoder assignment is a fixed derangement \(\pi\) over
\(\{1,\ldots,N\}\) : agent \(A_{\pi(i)}\) holds the decoder for ciphertext \(C_i\) of agent \(A_i\) , and \(\pi(i) \neq i\) .
The benchmark enforces five rules:
-
- G is fixed and visible to all agents.
-
- Each agent receives a ciphertext and a decoder. No agent can decrypt its own ciphertext.
-
- Each agent knows \(A_{\pi(i)}\) , the holder of the decoder for its own ciphertext.
-
- Agents communicate only with direct neighbors. Global broadcasting is not allowed.
-
- Decryption and verification are performed only through the provided tools.
Initialization. Each agent \(A_i\) receives: (i) a unique identifier and the graph \(\mathcal{G}\) ; (ii) its ciphertext \(C_i\) ; (iii) a decoder for \(C_{\pi(i)}\) ; (iv) routing metadata identifying \(A_{\pi(i)}\) , the decoder holder for \(C_i\) .
| Topology | Model | Misrouted Msgs | Dropped Request | Duplicate Msg | Total Msgs |
|---|---|---|---|---|---|
| Qwen3.5-4B | 678 (40.05%) | 13 (0.75%) | 1406 (83.08%) | 1692 | |
| Qwen3.5-9B | 286 (32.72%) | 5 (0.57%) | 554 (63.42%) | 874 | |
| Qwen3.6-27B | 23 (4.13%) | 1 (0.24%) | 23 (4.25%) | 549 | |
| Qwen3.6-35B-A3B | 58 (15.94%) | 9 (2.58%) | 58 (16.13%) | 362 | |
| Qwen3.8-27B | 19 (3.44%) | 0 (0.00%) | 0 (0.00%) | 553 | |
| Chain | Gemma4-31B | 3 (0.44%) | 0 (0.00%) | 1 (0.17%) | 601 |
| Devstral-2-24B | 2 (1.32%) | 3 (1.70%) | 21 (11.70%) | 177 | |
| gpt-oss-20b | 2 (1.91%) | 24 (22.93%) | 18 (17.20%) | 105 | |
| gpt-oss-120b | 1 (0.84%) | 22 (14.02%) | 20 (12.34%) | 159 | |
| DeepSeek-V4-Flash | 0 (0.00%) | 1 (0.17%) | 4 (0.69%) | 581 | |
| GLM-5.2 | 51 (4.06%) | 0 (0.00%) | 562 (45.03%) | 1248 | |
| Qwen3.5-4B | 349 (17.01%) | 61 (2.96%) | 1684 (82.16%) | 2049 | |
| Qwen3.5-9B | 119 (25.34%) | 8 (1.63%) | 194 (41.26%) | 471 | |
| Qwen3.6-27B | 23 (3.74%) | 1 (0.21%) | 35 (5.56%) | 624 | |
| Qwen3.6-35B-A3B | 115 (23.53%) | 12 (2.39%) | 111 (22.85%) | 487 | |
| Qwen3.8-27B | 42 (5.98%) | 0 (0.00%) | 85 (12.11%) | 702 | |
| Ring | Gemma4-31B | 3 (0.50%) | 0 (0.00%) | 8 (1.34%) | 597 |
| Devstral-2-24B | 0 (0.00%) | 3 (1.53%) | 39 (18.07%) | 218 | |
| gpt-oss-20b | 7 (6.06%) | 22 (20.00%) | 16 (14.24%) | 110 | |
| gpt-oss-120b | 3 (2.11%) | 27 (19.25%) | 30 (20.89%) | 142 | |
| DeepSeek-V4-Flash | 6 (1.03%) | 1 (0.17%) | 24 (4.00%) | 600 | |
| GLM-5.2 | 4 (0.59%) | 0 (0.05%) | 3 (0.37%) | 729 |
Table 2: Message-level communication errors for all eleven models on the Chain and Ring topologies; the corresponding Star and Bipartite results are reported in Appendix H (Table 9). Misrouted Msgs combines ciphertexts sent away from the decoder holder and decryptions sent away from the ciphertext owner. Dropped Request indicates unactioned forward or decrypt requests. Duplicate Msg indicates looped or repeated messages. Total Msgs reports the average total messages sent per run.
Objective. Agent \(A_i\) must recover and verify the plaintext \(P_i\) of its own ciphertext \(C_i\) . If \(A_{\pi(i)} \in \mathcal{N}(A_i)\) , \(A_i\) sends \(C_i\) directly. Otherwise, \(A_i\) routes \(C_i\) through intermediate agents along a path to \(A_{\pi(i)}\) . The plaintext then returns along the reverse path. At the same time, each agent must decrypt incoming ciphertexts for which it holds the decoder and return the resulting plaintext to the requesting owner. The global task is complete only when all agents have verified their plaintexts.
Design rationale. The task separates communication execution from semantic reasoning through three modeling choices. First, knowledge incompleteness makes communication necessary: \(A_i\) cannot succeed without \(A_{\pi(i)}\) , so no agent can solve its task in isolation. Second, tool-mediated state changes make execution errors observable: forwarding, decryption, and verification occur through typed calls, which separates malformed tool use from reasoning over valid inputs. Third, fixed topology makes redundancy measurable. Let \(d_i =\) \(d(A_i, A_{\pi(i)})\) be the shortest-path distance between \(A_i\) and its decoder holder in \(\mathcal{G}\) . A successful request-response cycle for \(C_i\) requires at least \(2d_i\) neighbor-to-neighbor transmissions: \(d_i\) forward transmissions and \(d_i\) return transmissions. Because
each transmission corresponds to a send_message invocation, \(2d_i\) is a lower bound on message-level LLM calls for that agent. Summing over agents gives a run-level lower bound, and deviations from this bound quantify routing redundancy.
3.2 Agent Interface and Execution¶
Tools. Let \(A_i\) denote the calling agent. Agents interact through three tools:
- send_message \((A_j, m)\) sends message m to agent \(A_j\) . The call is valid only if \(A_j \in \mathcal{N}(A_i)\) . If \(A_j \notin \mathcal{N}(A_i)\) , the tool returns an error. Invoking this tool ends the agent's current execution hop, preventing further reasoning or tool calls in the same turn. Agents may issue multiple parallel send_message calls within one step to send distinct ciphertexts.
- decrypt_message( \(C_k\) ) applies the decoder assigned to \(A_i\) . The call returns the correct plaintext iff \(k = \pi(i)\) , otherwise returning an incorrect plaintext. Since \(\pi(i) \neq i\) , no agent can decrypt its own ciphertext. Calls with \(k \neq \pi(i)\) are recorded as decryption errors.
- check_decryption( \(\hat{P}_i\) ) verifies task completion for \(A_i\) . If \(\hat{P}_i = P_i\) , the tool returns acceptance and completes the objective of \(A_i\) . If
Pˆ i ̸= Pi , the tool returns rejection and identifies Aπ(i) , preventing infinite guessing loops and providing explicit routing feedback.
Communication modes. We evaluate two execution modes to isolate distinct aspects of LLM communication. In Strict Mode, agents bypass natural language generation for routing. They invoke send_message using strictly typed actions:
- decrypt_request(Ao, Co): requests decryption of Co on behalf of Ao.
- decrypt_response(Ao, Po): returns the decrypted plaintext Po toward the owner Ao.
- forward(Ao, Co, Anext): routes Co to the next hop Anext on the shortest path toward Aπ(o) .
The system formats these structured arguments into a standardized payload before delivery. This mode enforces a fixed message schema and isolates routing errors from natural-language variation.
In Free Text Mode, m is an arbitrary string. The agent selects a target neighbor Aj ∈ N (Ai) and sends a free-form natural-language query. This mode tests request formulation, routing instructions, and response parsing without typed structural scaffolding. The complete system prompts for both modes are provided in Appendix B. For examples of two communication modes, see Appx. C.
Execution protocol. Execution is synchronous and round-based. A central message queue stores all inter-agent messages. At the start of round T, each agent receives messages sent by neighbors in round T − 1. Within a round, an execution hop processes the incoming queue, generates internal reasoning, and issues tool calls. The hop ends when the agent makes one or more send_message calls.
3.3 Graph Topologies and Scaling¶
Topologies. CypherMAS uses four predefined undirected graphs to isolate distinct structural effects on routing. Chain and Ring explore communication over growing distances: a Chain is a linear sequence where intermediate agents the diameter grows linearly with N. Ring closes the loop so that every agent has exactly two neighbors and, under maximum-distance decoder placement, all request paths have equal length N/2. Star and Bipartite bound the routing distance at two hops regardless of N: a Star routes all traffic through a single hub that must process high concurrent throughput, while a Bipartite graph restricts edges to connections between two disjoint partitions.
Scaling and Decoder Placement. To enforce multi-hop communication and ciphertext routing between distant hops in all topologies, we maximize the topological distance an agent Ai and its decoder holder Aπ(i) . Let d(u, v) denote the shortest path distance between agents u and v in G. We construct a N × N cost matrix D, where Di,j = −d(Ai , Aj ) for i ̸= j and Di,i = ∞ to prevent self-assignment. The benchmark solves an assignment problem on D using the Hungarian algorithm resulting in the optimal permutation π ∗ :
$\(\pi^* = \arg\max_{\pi} \sum_{i=1}^{N} d(A_i, A_{\pi(i)})\)$ (1)
The resulting distance behaviour is topologyspecific. Chain and Ring scale the diameter linearly as the N grows. Star and Bipartite bound routing distance at two hops for all N, so the distance is constant is 2 regardless of graph size.
3.4 Error Types¶
Strict mode enables algorithmic analysis and deterministic classification of execution failures. CypherMAS diagnoses failure modes classifies into message- and decryption-centric.
Message errors. Message errors count as invalid send_message calls. We record three types of error: i. Misdirected cipher, where a ciphertext is sent via a non-shortest path to the decoder holder; ii. Misdirected decryption, where a plaintext is sent via a non-shortest path to the cypher owner; iii. Corrupted cipher, where the ciphertext argument differs from the exact received ciphertext.
Decryption errors. Decryption errors count incorrect decrypt_message calls. We define two error types: i. Wrong decryption, where an agent applies decrypt_message to a ciphertext its decoder cannot decrypt; ii. Unsent decryption, where an agent decrypts a ciphertext but does not invoke send_message to return the plaintext.
4 Experimental Setup¶
Models. We evaluate eleven open-weight LLMs: Qwen3.5-4B Qwen Team, 2026a, Qwen3.5- 9B Qwen Team, 2026a, Qwen3.6-27B Qwen Team, 2026b, Qwen3.6-35B-A3B Qwen Team, 2026c, Qwen3.8-27B Qwen Team, 2026d, Gemma4-31B Team, 2026, Devstral-Small-2- 24B AI, 2025, gpt-oss-20b OpenAI, 2025, gptoss-120b OpenAI, 2025, GLM-5.2 GLM-5-Team
| Topology Model | Completed | Init Fail | Transit to Dec Transit to Own Decoder Stuck Verify Stuck | ||||
|---|---|---|---|---|---|---|---|
| Qwen3.5-4B | 0.03±0.02 | 0.04±0.00 | 0.69±0.02 | 0.00±0.00 | 0.01±0.02 | 0.23±0.02 | |
| Qwen3.5-9B | 0.01±0.02 | 0.05±0.06 | 0.67±0.06 | 0.08±0.04 | 0.09±0.02 | 0.09±0.06 | |
| Qwen3.6-27B | 0.36±0.04 | 0.00±0.00 | 0.09±0.10 | 0.55±0.13 | 0.00±0.00 | 0.00±0.00 | |
| Qwen3.6-35B-A3B | 0.07±0.02 | 0.00±0.00 | 0.65±0.05 | 0.23±0.05 | 0.05±0.02 | 0.00±0.00 | |
| Qwen3.8-27B | 0.57±0.08 | 0.00±0.00 | 0.07±0.08 | 0.36±0.07 | 0.01±0.02 | 0.01±0.02 | |
| Chain | Gemma4-31B | 0.85±0.02 | 0.00±0.00 | 0.00±0.00 | 0.09±0.02 | 0.05±0.02 | 0.00±0.00 |
| Devstral-2-24B | 0.01±0.02 | 0.85±0.06 | 0.11±0.06 | 0.00±0.00 | 0.01±0.02 | 0.01±0.02 | |
| gpt-oss-20b | 0.01±0.02 | 0.07±0.02 | 0.87±0.06 | 0.03±0.02 | 0.03±0.02 | 0.00±0.00 | |
| gpt-oss-120b | 0.05±0.02 | 0.01±0.02 | 0.85±0.02 | 0.08±0.00 | 0.00±0.00 | 0.00±0.00 | |
| DeepSeek-V4-Flash 0.87±0.07 | 0.00±0.00 | 0.04±0.00 | 0.09±0.06 | 0.00±0.00 | 0.00±0.00 | ||
| GLM-5.2 | 0.91±0.08 | 0.00±0.00 | 0.01±0.02 | 0.01±0.02 | 0.00±0.00 | 0.07±0.06 | |
| Qwen3.5-4B | 0.00±0.00 | 0.01±0.02 | 0.73±0.08 | 0.00±0.00 | 0.00±0.00 | 0.25±0.10 | |
| Qwen3.5-9B | 0.00±0.00 | 0.03±0.05 | 0.81±0.06 | 0.00±0.00 | 0.05±0.06 | 0.11±0.06 | |
| Qwen3.6-27B | 0.57±0.10 | 0.00±0.00 | 0.07±0.08 | 0.36±0.17 | 0.00±0.00 | 0.00±0.00 | |
| Qwen3.6-35B-A3B | 0.00±0.00 | 0.03±0.02 | 0.52±0.08 | 0.35±0.08 | 0.08±0.04 | 0.03±0.02 | |
| Qwen3.8-27B | 0.75±0.12 | 0.00±0.00 | 0.04±0.04 | 0.16±0.11 | 0.01±0.02 | 0.04±0.04 | |
| Ring | Gemma4-31B | 0.89±0.08 | 0.00±0.00 | 0.00±0.00 | 0.09±0.06 | 0.01±0.02 | 0.00±0.00 |
| Devstral-2-24B | 0.00±0.00 | 0.89±0.06 | 0.11±0.06 | 0.00±0.00 | 0.00±0.00 | 0.00±0.00 | |
| gpt-oss-20b | 0.00±0.00 | 0.11±0.02 | 0.89±0.02 | 0.00±0.00 | 0.00±0.00 | 0.00±0.00 | |
| gpt-oss-120b | 0.00±0.00 | 0.00±0.00 | 0.99±0.02 | 0.01±0.02 | 0.00±0.00 | 0.00±0.00 | |
| DeepSeek-V4-Flash 0.69±0.21 | 0.00±0.00 | 0.13±0.16 | 0.15±0.25 | 0.03±0.02 | 0.00±0.00 | ||
| GLM-5.2 | 0.97±0.02 | 0.00±0.00 | 0.00±0.00 | 0.00±0.00 | 0.03±0.02 | 0.00±0.00 |
Table 3: Agent-level task status distribution for all eleven models on the Chain and Ring topologies; the corresponding Star and Bipartite results are reported in Appendix H (Table 10. Values represent the proportions of agents that terminated in each state. "Init Fail" indicates the owner failed to send the ciphertext; "Transit to Dec" indicates the message was lost en route to the decoder; "Transit to Own" indicates the decryption was lost en route back to the owner; "Decoder Stuck" indicates the decoder failed to process the request; "Verify Stuck" indicates the owner received the decryption but failed to verify it.
et al., 2026), DeepSeek-V4-Flash DeepSeek-AI, 2026. For inference details, see Appx. D.
Metrics. We measure task completion and communication overhead. Success Rate (SR) is the fraction of agents that complete their objective. Let V be the set of N agents in one run. Agent Ai succeeds if it recovers its plaintext. Let S ⊆ V denote the successful agents. For one run,
where I(·) is the indicator function. For a stricter, system-level success criterion, see Appx E.
LLM Calls count the number of send_message invocations issued by all agents in one run. It measures routable communication volume and includes both required routing traffic and redundant transmissions. We report the mean and standard deviation across three (for four models, we additionally report 10-run statistics in Appendix F). Because one execution hop may issue multiple parallel send_message calls, LLM Calls do not correspond one-to-one to model invocations. For per-run invocation counts, see Appendix G.
5 Results and Analysis¶
Table 1 reports SR and LLM call counts for eleven models on 25-agent graphs. Tables 2 and 3 give message-level and agent-level error breakdowns for Chain and Ring; the corresponding Star and Bipartite results appear in Appendix H (Tables 9 and 10). Figure 2 tracks both metrics as N grows from 3 to 25; full plots are in Appendix A.
5.1 Overall Performance Across LLMs¶
Impact of Model Scale. Models below 27B parameters fail at basic routing and tool use. Qwen3.5- 4B and Qwen3.5-9B achieve SR below 0.10 on most topologies (Table 1). Above this threshold, performance rises sharply: Gemma4-31B reaches 1.00 in Strict mode on Star and Bipartite and exceeds 0.85 on Chain and Ring. GLM-5.2 (753B total) attains near-perfect SR across configurations.
GPT-OSS Failure The gpt-oss family illustrates an execution limitation rather than a reasoning deficit. Both gpt-oss models achieve near-zero SR across all configurations. Log analysis shows that they cannot issue multiple parallel send_message calls within one execution hop. When an agent receives two or more actionable requests, it processes one and discards the rest, causing deadlocks.
5.2 Scalability and Communication Efficiency¶
RQ1&2: Inference Cost and Graph Size. Models that cannot resolve the protocol hit the 2,048 call cap before N reaches 25: Qwen3.5-4B on Ring exceeds 2,000 calls at N=9 and stays near the cap for N≥14. Low SR for small models therefore reflects unbounded looping, not gradual degradation. On Star and Bipartite, routing distance is two hops regardless of N, and nearly all models stay close to the theoretical baseline. The exceptions are Qwen3.5-4B (oscillating between 100 and 800 calls) and Devstral (spikes on Star at N=21).
RQ1: Success Rate Degradation in Large Graphs. On Chain in Strict mode, GLM-5.2 and Gemma4-31B maintain SR between 0.85 and 1.0 from N=3 to N=25 (Figure 2). Qwen3.6-27B declines from ∼1.0 at N≤9 to 0.36–0.85 at N≥13. Qwen3.6-35B-A3B degrades earlier, falling below 0.3 by N=10, consistent with active-parameter count, rather than total size, being a major factor in the failure threshold. On Ring, the transition is sharper: Qwen3.6-27B oscillates between 0.25 and 0.95 with no stable plateau. Star and Bipartite remove the scaling effect entirely for capable models. The weakest models (Qwen3.5-4B/9B, Devstral, gpt oss) remain near zero across all topologies and all N, indicating their failures stem from unreliable tool use rather than routing distance.
RQ3: Strict vs. Free-Form Communication.¶
Free Text mode raises mean SR for seven of eleven models and lowers it for four (Table 1), so strict tool-based communication does not uniformly reduce errors. Weak models gain only on shallow topologies, where a single natural-language request can carry the full routing instruction: Qwen3.5-4B, Qwen3.5-9B, Qwen3.6-35B-A3B, and Devstral-2- 24B improve by up to +0.47 on Star and Bipartite (e.g., Qwen3.5-9B 0.01→0.48 on Star) yet stay near zero on Ring. Larger GLM and DeepSeek models, exhibit near-perfect performance in free-form mode but the latter drops to 0.69 SR for strict communication. The effect of communication mode on transmission volume is unstable. For some models, strict tool-based communication is more economical: on Chain, Qwen3.6-27B rises from 549 LLM calls in Strict mode to 1,156 in Free Text, and DeepSeek-V4-Flash from 581 to 1,139, as verbose requests invite re-confirmation round-trips. In contrast, GLM-5.2 falls from 1,248 to 573 LLM calls in free-form communication.
5.3 Error Analysis and Failure Modes¶
Deterministic Error Classification. Strict mode enforces typed messages enables the deterministic classification of runtime errors. Message-level errors (Table 2) record misrouted, dropped, or duplicated transmissions. Agent-level terminal states (Table 3) record where the protocol permanently stalls. Decryption-level are in Table 8 (Appx H).
Analysis of Frequent Failure Modes. For Qwen3.5-4B/9B, the dominant failure is communication looping: Duplicate Msgs reach 83% in Chain (4B model) and 41% in Ring (9B model). The gpt-oss family exhibits a different pattern: Dropped Requests reach 92% in Star (Appendix H, Table 9) as these models cannot issue parallel send_message calls. Qwen3.6-35B-A3B loses ciphertexts at intermediate nodes, producing Transit to Dec rates of 65% in Chain and Transit to Own rates of 35% in Ring (Table 3). Gemma4-31B and GLM-5.2 show negligible errors in most categories. GLM-5.2 on Chain in Strict mode is an exception: 45% of its 1,248 messages are duplicates (Table 2), explaining why its call volume reaches twice the theoretical minimum despite an SR of 0.91. In Free Text mode the model shows near-zero duplication.
Summary across RQs. For RQ1, routing reliability depends on scale and architecture. For RQ2, redundancy is explained by graph diameter rather than node count; bounded-diameter topologies keep capable models near the minimum, while Chain and Ring expose looping and transit loss. For RQ3, the preferred communication mode depends on the model family and on whether it is prone to duplicate typed messages or to reconfirm free-text requests. But tool-based evaluation enables failure and redundancy tracing.
6 Conclusion¶
We introduced CypherMAS, a benchmark for routing reliability and tool execution in fixed LLM multi-agent graphs. The results show that small models fail at both routing and tool invocation. Larger models maintain high success rates across chain, star, bipartite, and ring graphs, but success declines as the diameter of the graph increases. Successful CypherMAS runs may exceed the theoretical minimum number of LLM calls and the effect of communication mode on this overhead is model-specific. The study enables the algorithmic quantitative evaluation of communication redundancy for multi-agent systems. Future work would introduce semantic noise and extend the methodology to more LLMs and graph topologies.
Limitations¶
CypherMAS isolates protocol execution from open domain reasoning. The results therefore apply to controlled routing behavior rather than full collaborative problem solving.
Synthetic messages. The benchmark uses deterministic cipher routing. Real messages carry semantics, ambiguity, and variable formatting. Agents in production must parse instructions, negotiate tasks, and recover from unclear requests. CypherMAS measures faithful execution of a known protocol. It does not measure performance when the protocol itself must be inferred from noisy natural language.
Noiseless channels. All channels deliver messages exactly as sent. No packet loss, delay, reordering, or corruption occurs. All measured errors come from the model. This enables attribution but excludes common infrastructure failures. The benchmark cannot assess recovery from timeouts, partial delivery, duplicate transport, or adversarial peers.
Cost and latency. The evaluation counts LLM calls but does not optimize them. Large graphs require many calls. A single run can issue up to the 2,048-call cap, and every transmission is processed by its recipient in a later execution hop, so redundant traffic inflates token usage, latency, and cost (Appx. I, J).
Fixed synchronous execution. The simulation runs in synchronous rounds. Agents process messages and issue calls within a round. Production systems often run asynchronously. They face variable latency, concurrent external tools, preemption, and out of order events. Behavior under those conditions may differ.
Limited scale and statistical power. The main experiments use graphs with up to 25 agents and three runs per configuration. This is enough to expose clear trends but not enough to estimate small differences reliably. It also leaves open whether degradation beyond 25 agents is gradual or abrupt.
Model coverage. The study evaluates eleven open weight models. It does not include proprietary frontier models. By design, CypherMAS implies many LLM calls for large topologies resulting in multiple paid API calls.
Acknowledgments¶
During the preparation of this manuscript, the authors used a Qwen-3.7-Max and Overleaf to improve text quality: rephrasing, proofreading, and improvement of language fluency. All AI-assisted content was reviewed, verified, and edited by the authors, who take full responsibility for the accuracy and integrity of this work. No AI tool was used to generate experimental results, research questions, or core analytical claims.
References¶
Mistral AI. 2025. Devstral small 2 24b instruct 2512. Hugging Face. Agentic LLM for software engineering tasks; 24B parameters; Apache 2.0 license; 256k context window.
Emmanuel Aboah Boateng, Zachary Johnson, Tian Xia, Sarah Zhang, Aidan Jay, Junyao Feng, Aditya Mate, and Ehi Nosakhare. 2026. Sapo: Secure automated prompt optimization via multi-agent collaboration. In Proceedings of the ACM Conference on AI and Agentic Systems, CAIS '26, page 773–784, New York, NY, USA. Association for Computing Machinery.
Mert Cemri, Melissa Z. Pan, Shuyi Yang, Lakshya A. Agrawal, Bhavya Chopra, Rishabh Tiwari, Kurt Keutzer, Aditya G. Parameswaran, Dan Klein, Kannan Ramchandran, Matei A. Zaharia, Joseph E. Gonzalez, and Ion Stoica. 2025. Why do multi-agent LLM systems fail? In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025.
Mengzhuo Chen, Junjie Wang, Fangwen Mu, Yawen Wang, Zhe Liu, Huanxiang Feng, and Qing Wang. 2026. Seeing the whole elephant: A benchmark for failure attribution in LLM-based multi-agent systems. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 19888–19905, San Diego, California, United States. Association for Computational Linguistics.
KuanChao Chu, Yi-Pei Chen, and Hideki Nakayama. 2025. Exploring and controlling diversity in LLMagent conversation. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 25626–25644, Suzhou, China. Association for Computational Linguistics.
DeepSeek-AI. 2026. Deepseek-v4: Towards highly efficient million-token context intelligence.
- Yilun Du, Shuang Li, Antonio Torralba, Joshua B. Tenenbaum, and Igor Mordatch. 2024. Improving factuality and reasoning in language models through multiagent debate. In Proceedings of the 41st International Conference on Machine Learning, ICML'24. JMLR.org.
- Chrisantha Fernando, Dylan Banarse, Henryk Michalewski, Simon Osindero, and Tim Rocktäschel. 2024. Promptbreeder: Self-referential self-improvement via prompt evolution. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pages 13481–13544. PMLR / OpenReview.net.
- GLM-5-Team, :, Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, Qinkai Zheng, Bin Chen, Da Yin, Chendi Ge, Chenghua Huang, Chengxing Xie, Chenzheng Zhu, Congfeng Yin, Cunxiang Wang, Gengzheng Pan, Hao Zeng, Haoke Zhang, Haoran Wang, and 168 others. 2026. Glm-5: from vibe coding to agentic engineering. Preprint, arXiv:2602.15763.
- Qingyan Guo, Rui Wang, Junliang Guo, Bei Li, Kaitao Song, Xu Tan, Guoqing Liu, Jiang Bian, and Yujiu Yang. 2024. Connecting large language models with evolutionary algorithms yields powerful prompt optimizers. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net.
- Sirui Hong, Mingchen Zhuge, Jonathan Chen, Xiawu Zheng, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, Chenyu Ran, Lingfeng Xiao, Chenglin Wu, and Jürgen Schmidhuber. 2024. MetaGPT: Meta programming for a multi-agent collaborative framework. In The Twelfth International Conference on Learning Representations.
- Jen-tse Huang, Jiaxu Zhou, Tailin Jin, Xuhui Zhou, Zixi Chen, Wenxuan Wang, Youliang Yuan, Michael R. Lyu, and Maarten Sap. 2025. On the resilience of llmbased multi-agent collaboration with faulty agents. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net.
- Yubin Kim, Chanwoo Park, Hyewon Jeong, Yik Siu Chan, Xuhai Xu, Daniel McDuff, Hyeonhoon Lee, Marzyeh Ghassemi, Cynthia Breazeal, and Hae Won Park. 2024. Mdagents: an adaptive collaboration of llms for medical decision-making. In Proceedings of the 38th International Conference on Neural Information Processing Systems, NIPS '24, Red Hook, NY, USA. Curran Associates Inc.
-
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving
-
with pagedattention. In Proceedings of the 29th Symposium on Operating Systems Principles, SOSP 2023, Koblenz, Germany, October 23-26, 2023, pages 611– 626, Koblenz, Germany. ACM.
- Guohao Li, Hasan Abed Al Kader Hammoud, Hani Itani, Dmitrii Khizbullin, and Bernard Ghanem. 2023a. Camel: Communicative agents for "mind" exploration of large language model society. In Thirtyseventh Conference on Neural Information Processing Systems.
- Minghao Li, Yingxiu Zhao, Bowen Yu, Feifan Song, Hangyu Li, Haiyang Yu, Zhoujun Li, Fei Huang, and Yongbin Li. 2023b. API-bank: A comprehensive benchmark for tool-augmented LLMs. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3102–3116, Singapore. Association for Computational Linguistics.
- Shiyuan Li, Yixin Liu, Qingsong Wen, Chengqi Zhang, and Shirui Pan. 2026. Assemble your crew: automatic multi-agent communication topology design via autoregressive graph generation. In Proceedings of the Fortieth AAAI Conference on Artificial Intelligence and Thirty-Eighth Conference on Innovative Applications of Artificial Intelligence and Sixteenth Symposium on Educational Advances in Artificial Intelligence, AAAI'26/IAAI'26/EAAI'26. AAAI Press.
- Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan Zhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjun Zhang, Yu Su, Huan Sun, and 3 others. 2024a. Agentbench: Evaluating llms as agents. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net.
- Zijun Liu, Yanzhe Zhang, Peng Li, Yang Liu, and Diyi Yang. 2024b. A dynamic llm-powered agent network for task-oriented agent collaboration. Preprint, arXiv:2310.02170.
- Pan Lu, Bowen Chen, Sheng Liu, Rahul Thapa, Joseph Boen, and James Zou. 2026. OctoTools: A multiagent framework with extensible tools for complex reasoning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1–86, San Diego, California, United States. Association for Computational Linguistics.
-
Rui Miao, Yixin Liu, Yili Wang, Xu Shen, Yue Tan, Yiwei Dai, Shirui Pan, and Xin Wang. 2026. Blind-Guard: Safeguarding LLM-based multi-agent systems under unknown attacks. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 39215–39234, San Diego, California, United States. Association for Computational Linguistics.
-
OpenAI. 2025. gpt-oss-120b & gpt-oss-20b model card. Preprint, arXiv:2508.10925.
- Rushi Qiang, Yuchen Zhuang, Anikait Singh, Percy Liang, Chao Zhang, Sherry Yang, and Bo Dai. 2025. Mle-smith: Scaling mle tasks with automated multiagent pipeline. Preprint, arXiv:2510.07307.
- Qwen Team. 2026a. Qwen3.5: Towards native multimodal agents.
- Qwen Team. 2026b. Qwen3.6-27B: Flagship-level coding in a 27B dense model.
- Qwen Team. 2026c. Qwen3.6-35B-A3B: Agentic coding power, now open to all.
- Qwen Team. 2026d. Qwen3.8-Max: A new bar for coding and cowork.
- Haoyang Su, Renqi Chen, Shixiang Tang, Zhenfei Yin, Xinzhe Zheng, Jinzhe Li, Biqing Qi, Qi Wu, Hui Li, Wanli Ouyang, Philip Torr, Bowen Zhou, and Nanqing Dong. 2025. Many heads are better than one: Improved scientific idea generation by a LLMbased multi-agent system. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 28201–28240, Vienna, Austria. Association for Computational Linguistics.
- Neset Tan, Minghao Li, and Mark Gahegan. 2026. SciTrue: Evidence-grounded claim verification in science. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 3: System Demonstrations), pages 397–406, Rabat, Marocco. Association for Computational Linguistics.
- Gemma Team. 2026. Gemma 4 technical report. Preprint, arXiv:2607.02770.
- Huajie Wang, Geng Tu, Xi Zeng, Ruifeng Xu, and Min Zhang. 2026. Socialdropout: Dynamic agent dropout for social simulation. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '26, page 4238–4243, New York, NY, USA. Association for Computing Machinery.
- Jize Wang, Zerun Ma, Yining Li, Songyang Zhang, Cailian Chen, Kai Chen, and Xinyi Le. 2024. Gta: a benchmark for general tool agents. In Proceedings of the 38th International Conference on Neural Information Processing Systems, NIPS '24, Red Hook, NY, USA. Curran Associates Inc.
-
Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W White, Doug Burger, and Chi Wang. 2023. Autogen: Enabling next-gen llm applications via multi-agent conversation. Preprint, arXiv:2308.08155.
-
John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. 2024. Swe-agent: agent-computer interfaces enable automated software engineering. In Proceedings of the 38th International Conference on Neural Information Processing Systems, NIPS '24, Red Hook, NY, USA. Curran Associates Inc.
- Guibin Zhang, Junhao Wang, Junjie Chen, Wangchunshu Zhou, Kun Wang, and Shuicheng Yan. 2025a. Agentracer: Who is inducing failure in the LLM agentic systems? CoRR, abs/2509.03312.
- Guibin Zhang, Yanwei Yue, Zhixun Li, Sukwon Yun, Guancheng Wan, Kun Wang, Dawei Cheng, Jeffrey Xu Yu, and Tianlong Chen. 2025b. Cut the crap: An economical communication pipeline for llm-based multi-agent systems. In The Thirteenth International Conference on Learning Representations, ICLR 2025. OpenReview.net.
- Guibin Zhang, Yanwei Yue, Xiangguo Sun, Guancheng Wan, Miao Yu, Junfeng Fang, Kun Wang, Tianlong Chen, and Dawei Cheng. 2025c. G-designer: Architecting multi-agent communication topologies via graph neural networks. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net.
- Ruijia Zhang, Xinyan Zhao, Ruixiang Wang, Sigen Chen, Guibin Zhang, An Zhang, Kun Wang, and Qingsong Wen. 2026. Safesieve: From heuristics to experience in progressive pruning for llm-based multi-agent communication. In Fortieth AAAI Conference on Artificial Intelligence, Thirty-Eighth Conference on Innovative Applications of Artificial Intelligence, Sixteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2026, Singapore, January 20-27, 2026, pages 29892–29900. AAAI Press.
- Shaokun Zhang, Ming Yin, Jieyu Zhang, Jiale Liu, Zhiguang Han, Jingyang Zhang, Beibin Li, Chi Wang, Huazheng Wang, Yiran Chen, and Qingyun Wu. 2025d. Which agent causes task failures and when? on automated failure attribution of llm multiagent systems. In Proceedings of the 42nd International Conference on Machine Learning, ICML'25. JMLR.org.
- Heng Zhou, Hejia Geng, Xiangyuan Xue, Li Kang, Yiran Qin, Zhiyong Wang, Zhenfei Yin, and Lei Bai. 2025. ReSo: A reward-driven self-organizing LLM-based multi-agent system for reasoning tasks. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 15979–15998, Suzhou, China. Association for Computational Linguistics.
- Shuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, Uri Alon, and Graham Neubig. 2024. Webarena: A realistic web environment for building autonomous agents. In The
Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net.
Zhilun Zhou, Zihan Liu, Jiahe Liu, Qingyu Shao, Yihan Wang, Kun Shao, Depeng Jin, and Fengli Xu. 2026. Resmas: Resilience optimization in llm-based multi-agent systems. In Fortieth AAAI Conference on Artificial Intelligence, Thirty-Eighth Conference on Innovative Applications of Artificial Intelligence, Sixteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2026, Singapore, January 20-27, 2026, pages 35176–35184. AAAI Press.
Kunlun Zhu, Hongyi Du, Zhaochen Hong, Xiaocheng Yang, Shuyi Guo, Zhe Wang, Zhenhailong Wang, Cheng Qian, Xiangru Tang, Heng Ji, and Jiaxuan You. 2025. MultiAgentBench : Evaluating the collaboration and competition of LLM agents. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8580–8622, Vienna, Austria. Association for Computational Linguistics.
Mingchen Zhuge, Wenyi Wang, Louis Kirsch, Francesco Faccio, Dmitrii Khizbullin, and Jürgen Schmidhuber. 2024. Gptswarm: Language agents as optimizable graphs. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pages 62743–62767. PMLR / OpenReview.net.
Kaiwen Zuo, Yirui Jiang, Fan Mo, and Pietro Lio. 2025. Kg4diagnosis: A hierarchical multi-agent LLM framework with knowledge graph enhancement for medical diagnosis. In AAAI Bridge Program on AI for Medicine and Healthcare, 25 February 2025, Pennsylvania Convention Center, Philadelphia, Pennsylvania, USA, volume 281 of Proceedings of Machine Learning Research, pages 195–204. PMLR.
A Comprehensive Experimental Results¶
This appendix provides full experimental plots for all evaluated topologies, communication modes, and metrics. Figures 3, 4, 5, and 6 display these results for the Chain, Star, Bipartite, and Ring topologies, respectively. Each figure organizes the plots into a 2 × 2 grid: rows correspond to the communication mode (Strict in the top row, Free Text in the bottom row), while columns represent, from left to right: Success Rate and LLM Calls.
B System Prompts¶
This section provides the full system prompts used to instantiate agents in both communication modes. Placeholders {name}, {neighbours}, {decoder_holder}, and {topology} are filled at runtime with agent-specific values. Square-bracket placeholders [...] mark elided passages; the
unabridged prompts are released with the code. Figure 7 shows the Free Text Mode prompt; Figure 8 shows the abridged Strict Mode prompt.
C Message Formats¶
Both modes deliver messages through the same send_message tool and differ only in the arguments the model produces. Figure 9 shows one tool call per mode for the same situation: routing Bob's ciphertext through his neighbor Alice toward its decoder holder Carol.
In Strict mode the model fills a fixed schema. message_type instantiates one of the typed actions (forward, decrypt_request, decrypt_response); ciphertext_owner records on whose behalf the message travels, allowing intermediaries to forward ciphertexts they do not own; target_agent names the next hop on the shortest path; and ciphertext must reproduce the received string verbatim, which makes corrupted-cipher errors detectable at runtime. The harness formats these arguments into a standardized payload before delivery; no natural-language generation is involved in routing.
In Free Form mode the call reduces to a single content string. The model must express in prose everything the schema encodes in fields: the ciphertext, the identity of the decoder holder, the forwarding request, and the request to return the plaintext. The receiving agent must parse this instruction, infer the destination, and act on it; failures therefore shift from schema compliance to request formulation and response parsing.
D Implementation Details¶
Model Checkpoints All models are served from the HuggingFace checkpoints listed in Table 4.
Hyperparameter Details All models use a temperature of 1.0 and top_p of 0.95. The maximum generation length is 8,192 tokens, with all other parameters set to their defaults. We execute each topology configuration over 3 independent simulation runs. To prevent infinite communication loops and bound execution time, we cap each run at 2,048 total send_message invocations. The cap is evaluated at the start of each round: a new round begins only while fewer than 2,048 invocations have been logged. Within a round, agents act concurrently, and every send_message call is logged at issue time. The final round may therefore add several invocations after the last check; these calls are

Figure 3: Detailed evaluation results on the Chain topology. Top row: Strict (tool-based) communication; bottom row: Free Text communication. Left column: Success Rate; right column: LLM Calls.
counted in the reported totals, but their messages are never delivered. Reported LLM-call counts can thus exceed the cap by a small margin.
E Global Completion Rate¶
SR in the main text measures per-agent success; the global completion criterion additionally requires all agents in a run to verify their plaintexts. Table 5 reports the resulting Global Completion Rate (GCR): the fraction of runs in which every agent completes its objective.
GCR is strictly bounded by SR and is therefore substantially lower for most models: five of the eleven models never complete a single run despite nonzero per-agent SR in some configurations, and even the strongest models rarely complete Chain or Ring runs (GCR \(\leq\) 0.33), where a single lost or stalled request suffices to fail the run. Complete runs concentrate on the bounded-diameter topolo-
gies: GCR reaches 1.00 on Star and Bipartite only, and only for five models in Strict mode. The gap is largest for mid-tier models — Gemma4-31B completes one third of Chain runs in Strict mode at SR 0.85, and Qwen3.8-27B raises Ring GCR from 0.00 to 0.33 in Free Text mode while its SR rises from 0.75 to 0.93. With three runs per configuration, GCR values are multiples of 1/3 and should be read as indicating presence rather than precise probability of complete runs; SR remains the primary metric, and GCR quantifies system-level brittleness as N grows.
F Statistical Robustness¶
To assess the stability of the reported statistics, four models — Qwen3.5-9B, Qwen3.6-27B, Qwen3.6-35B-A3B, and GLM-5.2 — were additionally evaluated over 10 independent runs at N=25 (Table 6). For the remaining models we kept 3 runs per config-

Figure 4: Detailed evaluation results on the Star topology. Top row: Strict (tool-based) communication; bottom row: Free Text communication. Left column: Success Rate; right column: LLM Calls.
| Model | HuggingFace checkpoint |
|---|---|
| Qwen3.5-4B (Qwen Team, 2026a) | Qwen/Qwen3.5-4B |
| Qwen3.5-9B (Qwen Team, 2026a) | Qwen/Qwen3.5-9B |
| Qwen3.6-27B (Qwen Team, 2026b) | Qwen/Qwen3.6-27B |
| Qwen3.6-35B-A3B (Qwen Team, 2026c) | Qwen/Qwen3.6-35B-A3B |
| Qwen3.8-27B (Qwen Team, 2026d) | Qwen/Qwen3.8-27B |
| Gemma4-31B (Team, 2026) | google/gemma-4-31B-it |
| gpt-oss-20B (OpenAI, 2025) | openai/gpt-oss-20b |
| gpt-oss-120B (OpenAI, 2025) | openai/gpt-oss-120b |
| Devstral-2-24B (AI, 2025) | mistralai/Devstral-Small-2-24B-Instruct-2512 |
| DeepSeek-V4-Flash (DeepSeek-AI, 2026) | deepseek-ai/DeepSeek-V4-Flash |
| GLM-5.2 (GLM-5-Team et al., 2026) | PhalaCloud/GLM-5.2-W4AFP8 |
Table 4: HuggingFace checkpoints used in our experiments.
uration as a trade-off between statistical precision and computational cost: a full 25-agent run can issue up to 2,048 transmissions, and the 10-run
evaluation of four models alone roughly tripled the compute of the corresponding 3-run setup.
The qualitative picture is unchanged at 10 runs.

Figure 5: Detailed evaluation results on the Bipartite topology. Top row: Strict (tool-based) communication; bottom row: Free Text communication. Left column: Success Rate; right column: LLM Calls.
Model rankings, mode ordering, and the topology effect on all four models remain within one standard deviation of the 3-run estimates; the largest shifts are Qwen3.6-27B on Star \((1.00\rightarrow0.97 \text{ in Strict mode})\) and Qwen3.6-27B on Chain in Free Text \((1156\rightarrow1532 \text{ calls})\) , the latter reflecting the high run-to-run variance of free-text looping already visible in the 3-run standard deviations. The wider-coverage statistics confirm that the headline findings of Sec. 5 — the capability threshold at 27B, diameter-driven degradation, and free-text volume inflation on long paths — are robust to the number of runs.
G Model Invocations¶
Table 7 reports the average number of model invocations per run at \(N{=}25\) . Invocations coincide with transmissions only when every hop issues exactly one send_message call; in practice the two
quantities diverge in opposite directions. On Chain, capable models issue 0.82–0.92 invocations per transmission, as intermediate agents batch several pending messages into a single hop. On Star, where forwarding is minimal, tool-result rounds dominate instead: all five models that solve Star in Strict mode converge to exactly 124.0 invocations against the 96-transmission minimum (1.29 per transmission), indicating near-deterministic protocol execution.
Two groups deviate. The gpt-oss models issue more invocations than transmissions in every configuration (up to \(1.3\times\) ): unable to batch, they spend one hop per message, and hops that end without a valid call add invocations without transmissions — the quantitative footprint of the parallel-call bottleneck. Looping models inflate both counts: Qwen3.5-4B requires \(2.9-3.6\times\) the invocations of the most efficient successful models on the same topologies, approaching the transmission cap on

Figure 6: Detailed evaluation results on the Ring topology. Top row: Strict (tool-based) communication; bottom row: Free Text communication. Left column: Success Rate; right column: LLM Calls.
Ring. Conversely, Qwen3.5-9B's 45.3 invocations on Star fall below any complete execution, because deadlocked runs terminate early. Invocation counts thus reflect model-specific batching and looping behavior, whereas transmissions provide the model-agnostic measure of communication volume.
H Error Breakdowns for Star and Bipartite Topologies¶
Tables 9 and 10 complement the main-text error analysis. Decryption-level errors are in Table 8. Tables 2 and 3 report the long-range topologies, Chain and Ring; the bounded-diameter topologies, Star and Bipartite, are reported here. The patterns match those in Section 5.3: the gpt-oss family drops most actionable requests (Dropped Requests reach 92% on Star and 86% on Bipartite), the smallest models loop or misroute (Duplicate Msgs reach 29% for Qwen3.5-4B on Star), and Qwen3.6-27B,
Gemma4-31B, and GLM-5.2 remain at or near zero across all categories.
I Computational Budget and Infrastructure¶
This section reports the parameter counts of all evaluated models, the total computational budget, and the hardware used for inference.
Model parameters. Table 11 summarizes the total and active parameter counts for each model. For dense architectures, total and active parameters coincide. For Mixture-of-Experts architectures, only a subset of parameters is activated per forward pass.
Computational budget. Each configuration is evaluated over 3 independent simulation runs. Because models of different sizes were served on different numbers of GPUs, a single unified GPU-hour figure would not be meaningful; we therefore re-
You are agent { name } in a multi - agent system . Each agent holds an encrypted message
and a decoder . Your decoder can decrypt exactly one other agent 's message - you do
not know whose until you try . Your own message can only be decrypted by agent
{ decoder_holder }.
Your Neighbors
You can only communicate with your direct neighbors : `{ neighbours }`
To reach any other agent , ask a neighbor to relay your message .
{ topology }
Your Goal
Decrypt the ciphertext you receive in the first message . You cannot do it yourself
--- only { decoder_holder } can . Contact them directly if they are your neighbor , or
ask a neighbor to forward your request .
Tools
`send_message ( to_agent , content )`
Send a message to a direct neighbor ( must be in `{ neighbours }`) . Include all
information the recipient needs to act --- the ciphertext , who it belongs to , and
what you need them to do .
Always respond to all requests at one turn using the multiple `send_message ` call .
Never send a confirmation or acknowledgment instead of the actual result .
`decrypt_message ( ciphertext )`
Decrypt a ciphertext using your decoder . Use this only when a neighbor asks you to
decrypt something . Never use it on your own ciphertext . Return the result honestly
even if it looks like garbage .
`check_decryption ( decryption )`
Check whether a received result correctly decrypts your own message . Always call
this when you receive a decryption result for your ciphertext . Returns `" Accepted "`
or `" Rejected "`.
Important : decrypt_message and send_message must never be called in the same step .
When you need to decrypt a ciphertext and return the result to a neighbor , first
call decrypt_message alone . Once you receive its output , call send_message in the
same step to return the result . Calling send_message hands control to another agent
--- any tool call you make after it in the same step will not be processed .
Rules
Always handle incoming requests first , then work on your own goal .
Never send acknowledgments --- no " Got it " , " I will do it " , " Thank you ". Every
message must contain a decryption result , a decryption request , a forwarded
message , or a routing question .
Never decrypt your own ciphertext .
Never fabricate decryption results .
Only { decoder_holder } can decrypt your ciphertext . Do not ask anyone else .
If `check_decryption ` returns `" Rejected "`, resend the request to { decoder_holder }
via the same route .
Figure 7: Full system prompt for Free Text Mode.
You are agent { name } in a multi - agent system . Each agent holds an encrypted message
( ciphertext ) and a decoder . Your decoder can decrypt exactly one other agent 's
ciphertext --- you will not know whose until you try . Only agent { decoder_holder }
can decrypt your own ciphertext .
Your Neighbors
You can only communicate with your immediate neighbors : `{ neighbours }`.
To contact any other agent , ask a neighbor to forward your message .
{ topology }
Your Goal
Decrypt your own ciphertext . You cannot do this yourself --- only { decoder_holder }
can . Contact them directly if they are your neighbor , or ask a neighbor to forward
your request toward them .
You are also part of the network : other agents may ask you to forward their
requests or to decrypt their ciphertexts with your decoder . Always honor these
requests .
Communication Protocol
All communication happens through the `send_message ` tool . Every message has a
`message_type ` that determines its semantics and which fields you must fill in . The
full prompt specifies five message types ; each is listed below with its required
fields . [ Per - type sending conditions and additional JSON examples are omitted here .]
`decrypt_request ` --- ask a neighbor to decrypt a ciphertext with their decoder .
Fields : `to_agent `, `message_type `, `ciphertext `, `ciphertext_owner `. [...]
`decrypt_response ` --- return a decryption result to the requester .
Fields : `to_agent `, `message_type `, `ciphertext_owner `, `decryption `. [...]
`forward ` --- ask a neighbor to relay a decryption request toward an agent who is
not your direct neighbor .
Fields : `to_agent `, `message_type `, `ciphertext `, `ciphertext_owner `,
`target_agent ` ( the decoder holder of `ciphertext_owner `, never `ciphertext_owner `
itself ) .
Example :
{{
" to_agent ": " agent_X " ,
" message_type ": " forward " ,
" ciphertext ": " sPPX oP zX mim czhPJ gXJPPX " ,
" ciphertext_owner ": " agent_Y " ,
" target_agent ": " agent_Z "
}}
Important : the recipient of a `forward ` may forward it further , or convert it into
a `decrypt_request ` if `target_agent ` is their direct neighbor .
`route_query ` --- ask a neighbor whether they can reach a target agent that is not
your direct neighbor .
Fields : `to_agent `, `message_type `, `target_agent `. [...]
`route_response ` --- reply to a route_query with `reachable ` = `true ` or `false `.
Fields : `to_agent `, `message_type `, `target_agent `, `reachable `. [...]
Tools
`decrypt_message ` --- decrypt a ciphertext with your decoder . Call only when asked ;
never on your own ciphertext . Copy the returned string exactly into the
`decryption ` field of a subsequent `decrypt_response `.
`check_decryption ` --- verify whether a received decryption recovers your own
plaintext . Returns `" Accepted "` or `" Rejected "`.
`send_message ` --- send one of the five message types to a direct neighbor ; missing
or wrongly - typed fields are rejected . Batch all calls for multiple recipients in
the same turn . The first successful `send_message ` ends your turn ; tool calls after
it are not processed . If you must decrypt and respond in the same turn , call
`decrypt_message ` first and `send_message ` second . [ Further turn - ordering details
omitted .]
Rules
Always process incoming requests first , then work on your own goal .
Never send confirmations or acknowledgments . Every message must be one of the five
types defined above .
Never fabricate decryption results .
Never decrypt your own ciphertext .
Only `{ decoder_holder }` can decrypt your ciphertext . Do not ask anyone else .
Preserve `ciphertext_owner ` unchanged across every relay in a chain .
Copy `ciphertext ` and `decryption ` exactly .
`target_agent ` must never equal `ciphertext_owner `.
If `check_decryption ` returns `" Rejected "`, resend the request to { decoder_holder }
along the same route .
If you have nothing to send , do not call `send_message `.
Figure 8: Abridged system prompt for Strict Mode.
| LLM | Chain | Star | Bipartite Graph | Ring | |||||
|---|---|---|---|---|---|---|---|---|---|
| Strict (Tool-Based) Communication | |||||||||
| Qwen3.5-4B | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| Qwen3.5-9B | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| Qwen3.6-27B | 0.00 | 1.00 | 0.67 | 0.00 | |||||
| Qwen3.6-35B-A3B | 0.00 | 0.00 | 0.33 | 0.00 | |||||
| Qwen3.8-27B | 0.00 | 1.00 | 1.00 | 0.00 | |||||
| Gemma4-31B | 0.00 | 1.00 | 1.00 | 0.00 | |||||
| Devstral-Small-2-24B | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| gpt-oss-20b | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| gpt-oss-120b | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| DeepSeek-V4-Flash | 0.00 | 1.00 | 1.00 | 0.00 | |||||
| GLM-5.2 | 0.33 | 1.00 | 1.00 | 0.33 | |||||
| Free Form Communication | |||||||||
| Qwen3.5-4B | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| Qwen3.5-9B | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| Qwen3.6-27B | 0.00 | 0.33 | 0.33 | 0.00 | |||||
| Qwen3.6-35B-A3B | 0.00 | 0.33 | 0.00 | 0.00 | |||||
| Qwen3.8-27B | 0.33 | 1.00 | 1.00 | 0.33 | |||||
| Gemma4-31B | 0.33 | 0.67 | 0.67 | 0.00 | |||||
| Devstral-Small-2-24B | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| gpt-oss-20b | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| gpt-oss-120b | 0.00 | 0.00 | 0.00 | 0.00 | |||||
| DeepSeek-V4-Flash | 0.00 | 1.00 | 1.00 | 0.67 | |||||
| GLM-5.2 | 0.00 | 1.00 | 1.00 | 1.00 |
Table 5: Global Completion Rate (GCR) across graph topologies at graph size N=25: fraction of runs in which all 25 agents verify their plaintexts, over 3 independent MAS runs per configuration.
Table 6: Success Rate (SR) and number of LLM calls (mean with standard deviation in subscript, over 10 independent MAS runs) across graph topologies at graph size N=25.
| LLM | Chain | Star | Bipartite Graph | Ring | |||||
|---|---|---|---|---|---|---|---|---|---|
| SR | LLM Calls | SR | LLM Calls | SR | LLM Calls | SR | LLM Calls | ||
| Strict (Tool-Based) Communication | |||||||||
| Qwen3.5-9B | 0.02±0.03 | 696.9±262.9 | 0.07±0.10 | 69.7±44.3 | 0.04±0.03 | 93.8±30.9 | 0.00±0.00 | 799.4±479.4 | |
| Qwen3.6-27B | 0.38±0.11 | 572.8±57.4 | 0.97±0.09 | 94.1±6.0 | 0.94±0.15 | 99.8±1.1 | 0.62±0.18 | 621.6±54.8 | |
| Qwen3.6-35B-A3B 0.07±0.03 | 362.3±41.5 | 0.36±0.34 | 123.2±107.3 | 0.66±0.22 | 104.8±9.2 | 0.01±0.02 | 505.5±106.8 | ||
| GLM-5.2 | 0.91±0.05 | 802.6±458.4 | 1.00±0.00 | 96.2±0.6 | 1.00±0.00 | 100.2±0.4 | 0.96±0.06 | 739.2±65.8 | |
| Free Form Communication | |||||||||
| Qwen3.5-9B | 0.05±0.05 | 1480.3±1000.6 | 0.39±0.34 | 129.7±104.6 | 0.27±0.18 | 118.0±36.3 | 0.01±0.02 | 2067.4±9.3 | |
| Qwen3.6-27B | 0.39±0.18 | 1532.0±716.1 | 0.78±0.33 | 82.9±22.2 | 0.88±0.27 | 97.6±3.4 | 0.44±0.26 | 1435.5±813.6 | |
| Qwen3.6-35B-A3B 0.13±0.09 | 628.3±378.2 | 0.27±0.38 | 47.1±32.8 | 0.87±0.17 | 126.9±31.7 | 0.01±0.02 | 1884.7±300.3 | ||
| GLM-5.2 | 0.94±0.05 | 592.9±72.2 | 1.00±0.00 | 96.2±0.9 | 1.00±0.00 | 246.1±30.7 | 1.00±0.01 | 976.4±63.9 |
port wall-clock time per model and an upper bound for the entire study. As a reference point, the full scaling sweep of Gemma4-31B in Free Text mode (3 runs, 4 topologies, N from 3 to 25) required approximately 30 GPU-hours. No model required substantially more time, because wall-clock cost
does not scale with parameter count alone: the number of LLM invocations varies widely across runs, and small models such as Qwen3.5-4B issue many more send_message calls, often reaching the 2,048-call cap. Their evaluation therefore takes time comparable to the 27–31 B dense models. In
| LLM | Chain | Star | Bipartite Graph | Ring | ||||
|---|---|---|---|---|---|---|---|---|
| Strict (Tool-Based) Communication | ||||||||
| Qwen3.5-4B | 1361.0 | 186.3 | 166.7 | 1829.3 | ||||
| Qwen3.5-9B | 680.7 | 45.3 | 106.0 | 427.7 | ||||
| Qwen3.6-27B | 457.7 | 124.0 | 128.0 | 526.7 | ||||
| Qwen3.6-35B-A3B | 306.3 | 87.0 | 129.0 | 427.7 | ||||
| Qwen3.8-27B | 465.3 | 124.0 | 130.7 | 708.3 | ||||
| Gemma4-31B | 511.3 | 124.0 | 134.0 | 630.3 | ||||
| Devstral-Small-2-24B | 151.7 | 99.0 | 137.7 | 184.0 | ||||
| gpt-oss-20b | 133.7 | 31.0 | 37.3 | 135.3 | ||||
| gpt-oss-120b | 180.3 | 38.0 | 42.3 | 156.3 | ||||
| DeepSeek-V4-Flash | 475.7 | 124.0 | 129.0 | 504.3 | ||||
| GLM-5.2 | 1153.0 | 124.0 | 129.0 | 612.0 | ||||
| Free Form Communication | ||||||||
| Qwen3.5-4B | 1366.7 | 773.0 | 440.0 | 1615.7 | ||||
| Qwen3.5-9B | 1067.0 | 176.7 | 140.3 | 1212.0 | ||||
| Qwen3.6-27B | 875.0 | 114.0 | 128.7 | 856.7 | ||||
| Qwen3.6-35B-A3B | 612.3 | 64.0 | 174.0 | 1874.3 | ||||
| Qwen3.8-27B | 556.3 | 126.3 | 132.3 | 663.3 | ||||
| Gemma4-31B | 651.0 | 123.7 | 122.7 | 854.7 | ||||
| Devstral-Small-2-24B | 569.7 | 88.7 | 110.7 | 423.7 | ||||
| gpt-oss-20b | 106.7 | 29.7 | 36.0 | 102.7 | ||||
| gpt-oss-120b | 223.7 | 34.3 | 41.3 | 187.7 | ||||
| DeepSeek-V4-Flash | 1009.7 | 125.0 | 133.3 | 627.3 | ||||
| GLM-5.2 | 516.7 | 124.7 | 142.3 | 708.0 |
Table 7: Average number of invocations per run across graph topologies at graph size N=25, averaged over 3 independent MAS runs per configuration.
addition to wall-clock time, Table 12 reports the average cost of a single run for every model and topology at N=25, estimated at OpenRouter2 list prices, and Table 13 reports the corresponding average per-run input and output token counts. All experiments for the eleven models completed within one week on a shared pool of at most 10 GPUs, an upper bound of roughly 1,700 GPU-hours.
Hardware and inference framework. All models are served using vLLM Kwon et al., 2023 on 10× NVIDIA H100 80GB GPUs. Most models run in BF16 precision without any quantization. The only exception is GLM-5.2, which is deployed using the W4AFP8 mixed-precision quantization format (4-bit weights for MoE experts and 8-bit activations). Each inference call uses a maximum generation length of 8,192 tokens, temperature 1.0, and top-p 0.95.
J Inference Cost and Token Statistics¶
This appendix quantifies the monetary cost and token footprint of CypherMAS runs at N=25. Table 12 reports the average cost of a single run, estimated at OpenRouter list prices, for the eight models with OpenRouter listings; Qwen3.5-4B and Devstral-2-24B have no listed price and are therefore excluded. For locally served models such as GLM-5.2, the reported cost is an estimate of the equivalent API cost rather than actual expenditure. Table 13 reports average per-run input and output token counts.
Cost is governed by topology rather than model size. For every model, Chain and Ring runs cost roughly an order of magnitude more than Star and Bipartite runs (up to 55× for Qwen3.5-9B), tracking the transmission minima (624/600 vs. 96/100): the 753B GLM-5.2 on Star ($0.39) is cheaper than the 9B Qwen3.5-9B on Chain ($1.16). Input tokens exceed output tokens by one to two orders of magnitude (e.g., 22.3M vs. 238K for GLM-5.2
| Msg IS CC | Decryp UAD USD | |||
|---|---|---|---|---|
| Model | ||||
| Chain | ||||
| Qwen3.5-4B | 3 | 27 | 12 | 1 |
| Qwen3.5-9B | 5 | 0 | 7 | 3 |
| Qwen3.6-27B | 0 | 0 | 0 | 0 |
| Qwen3.6-35B-A3B | 1 | 7 | 3 | 0 |
| Qwen3.8-27B | 1 | 0 | 0 | 1 |
| Gemma4-31B | 0 | 0 | 0 | 1 |
| Devstral-2-24B | 2 | 0 | 0 | 0 |
| gpt-oss-20b | 1 | 0 | 0 | 1 |
| gpt-oss-120b | 6 | 0 | 0 | 0 |
| DeepSeek-V4-Flash | 0 | 0 | 0 | 0 |
| GLM-5.2 | 0 | 0 | 56 | 1 |
| Star | ||||
| Qwen3.5-4B | 4 | 5 | 8 | 8 |
| Qwen3.5-9B | 2 | 0 | 0 | 4 |
| Qwen3.6-27B | 0 | 0 | 0 | 0 |
| Qwen3.6-35B-A3B | 0 | 0 | 1 | 0 |
| Qwen3.8-27B | 0 | 0 | 0 | 0 |
| Gemma4-31B | 0 | 0 | 0 | 0 |
| Devstral-2-24B | 0 | 0 | 0 | 1 |
| gpt-oss-20b | 0 | 0 | 0 | 0 |
| gpt-oss-120b | 1 | 0 | 0 | 1 |
| DeepSeek-V4-Flash | 0 | 0 | 0 | 0 |
| GLM-5.2 | 0 | 0 | 0 | 0 |
Table 8: Additional agent-level error statistics across different topologies and models. Left: Chain and Star; right: Bipartite and Ring. Invalid Send denotes attempts to send to non-neighbors or self. Corrupted Cipher indicates ciphertext distortion during forwarding. Unauth. Decrypt measures unauthorized decryption attempts (decrypting a cipher without the correct decoder). Unsent Decrypt marks successful decryptions that were not forwarded to the owner.
on Chain in Strict mode), because every execution hop re-processes the agent's full conversation history. Runs that loop toward the 2,048-transmission cap therefore dominate the totals: Qwen3.6-35B-A3B accumulates 117.6M input tokens on Ring in Free Text and Qwen3.5-4B 77.0M on Ring in Strict mode, an order of magnitude more than capable models on the same topologies.
Transmissions map to cost only loosely. DeepSeek-V4-Flash on Ring issues more transmissions in Free Text than in Strict mode (691 vs. 600) yet costs less ($0.27 vs. $0.45), because its Strictmode runs carry more input tokens per transmission (10.5K vs. 6.2K); GLM-5.2 on Chain shows the converse, with transmissions and cost falling together (1,248→573, $12.80→$2.45).
Raw cost must be read jointly with SR, since failed runs terminate early and are correspondingly cheap: the gpt-oss models are the least expensive in every configuration precisely because they deadlock. Conversely, the two most expensive configurations in the study — GLM-5.2 on Chain in Strict mode ($12.80) and Qwen3.6-27B on Chain and Ring in Free Text ($12.67, $12.59) — are exactly the redundancy pathologies: transmission redundancy translates directly into monetary cost. Normalized by completed agents, Qwen3.6-27B on Chain in Free Text is the least cost-effective configuration ($1.37 per completed agent), while DeepSeek-V4-Flash completes agents for one to three cents in both modes.
| Topology | Model | Misrouted Msgs | Dropped Request | Duplicate Msg | Total Msgs |
|---|---|---|---|---|---|
| Qwen3.5-4B | 48 (27.53%) | 8 (4.59%) | 51 (29.06%) | 174 | |
| Qwen3.5-9B | 3 (8.62%) | 17 (43.97%) | 0 (0.00%) | 39 | |
| Qwen3.6-27B | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 96 | |
| Qwen3.6-35B-A3B | 16 (20.85%) | 8 (9.79%) | 6 (8.09%) | 78 | |
| Qwen3.8-27B | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 96 | |
| Star | Gemma4-31B | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 96 |
| Devstral-2-24B | 3 (2.87%) | 3 (2.87%) | 6 (5.73%) | 105 | |
| gpt-oss-20b | 0 (0.00%) | 24 (92.21%) | 0 (0.00%) | 26 | |
| gpt-oss-120b | 0 (1.12%) | 22 (75.28%) | 1 (3.37%) | 30 | |
| DeepSeek-V4-Flash | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 96 | |
| GLM-5.2 | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 96 | |
| Qwen3.5-4B | 45 (26.11%) | 6 (3.68%) | 43 (24.95%) | 172 | |
| Qwen3.5-9B | 20 (20.70%) | 4 (4.56%) | 7 (7.72%) | 95 | |
| Qwen3.6-27B | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 99 | |
| Qwen3.6-35B-A3B | 13 (12.12%) | 0 (0.00%) | 1 (1.21%) | 110 | |
| Bipartite | Qwen3.8-27B | 26 (21.67%) | 0 (0.00%) | 0 (0.00%) | 120 |
| Gemma4-31B | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 100 | |
| Devstral-2-24B | 4 (1.71%) | 2 (1.09%) | 3 (1.40%) | 214 | |
| gpt-oss-20b | 0 (0.00%) | 24 (85.71%) | 0 (0.00%) | 28 | |
| gpt-oss-120b | 0 (0.00%) | 22 (66.00%) | 0 (0.00%) | 33 | |
| DeepSeek-V4-Flash | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 100 | |
| GLM-5.2 | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) | 100 |
Table 9: Message-level communication errors on the Star and Bipartite topologies; complements Table 2, which reports Chain and Ring. Misrouted Msgs combines ciphertexts sent away from the decoder holder and decryptions sent away from the ciphertext owner. Dropped Request indicates unactioned forward or decrypt_request calls. Duplicate Msg indicates looped or repeated messages. Total Msgs reports the average total messages sent per run.
| Topology | Model | Completed | Init Fail | Transit to Dec | Transit to Own | Decoder Stuck | Verify Stuck |
|---|---|---|---|---|---|---|---|
| Qwen3.5-4B | \(0.12_{\pm 0.00}\) | \(0.15_{\pm 0.05}\) | \(0.43_{\pm 0.18}\) | \(0.13_{\pm 0.05}\) | \(0.07_{\pm 0.02}\) | \(0.11_{\pm 0.10}\) | |
| Qwen3.5-9B | \(0.01_{\pm 0.02}\) | \(0.00_{\pm 0.00}\) | \(0.07_{\pm 0.12}\) | \(0.27_{\pm 0.32}\) | \(0.00_{\pm 0.00}\) | ||
| Qwen3.6-27B | \(1.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm0.00}\) | \(0.00_{\pm0.00}\) | \(0.00_{\pm 0.00}\) | ||
| Qwen3.6-35B-A3B | \(0.27_{\pm 0.29}\) | \(0.00_{\pm 0.00}\) | \(0.29_{\pm 0.51}\) | \(0.00_{\pm0.00}\) | \(0.00_{\pm 0.00}\) | ||
| Qwen3.8-27B | \(1.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm0.00}\) | \(0.00_{\pm 0.00}\) | |
| Star | Gemma4-31B | \(1.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | |
| Devstral-2-24B | \(0.39_{\pm 0.31}\) | \(0.43_{\pm 0.22}\) | \(0.04_{\pm 0.07}\) | \(0.15_{\pm 0.12}\) | \(0.00_{\pm 0.00}\) | ||
| gpt-oss-20b | \(0.00_{\pm 0.00}\) | \(0.04_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | ||||
| gpt-oss-120b | \(0.08_{\pm 0.04}\) | \(0.00_{\pm 0.00}\) | \(0.03_{\pm 0.02}\) | \(0.00_{\pm 0.00}\) | |||
| DeepSeek-V4-Flash | \(1.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | ||
| GLM-5.2 | \(1.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | |
| Qwen3.5-4B | \(0.05_{\pm 0.06}\) | \(0.32_{\pm 0.04}\) | \(0.27_{\pm 0.13}\) | \(0.11_{\pm 0.02}\) | \(0.20_{\pm 0.08}\) | \(0.05_{\pm 0.05}\) | |
| Qwen3.5-9B | \(0.04_{\pm 0.04}\) | \(0.08_{\pm 0.07}\) | \(0.28_{\pm 0.36}\) | \(0.16_{\pm0.16}\) | \(0.40_{\pm 0.24}\) | \(0.04_{\pm 0.04}\) | |
| Qwen3.6-27B | \(0.99_{\pm 0.02}\) | \(0.01_{\pm 0.02}\) | \(0.00_{\pm0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | |
| Qwen3.6-35B-A3B | \(0.64_{\pm 0.32}\) | \(0.01_{\pm 0.02}\) | \(0.31_{\pm 0.27}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | ||
| Qwen3.8-27B | \(1.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm0.00}\) | \(0.00_{\pm 0.00}\) | |
| • | Gemma4-31B | \(1.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) |
| Devstral-2-24B | \(0.00_{\pm 0.00}\) | \(0.13_{\pm 0.17}\) | \(0.00_{\pm 0.00}\) | ||||
| gpt-oss-20b | \(0.03_{\pm 0.05}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | ||||
| gpt-oss-120b | \(0.03_{\pm 0.02}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | ||||
| DeepSeek-V4-Flash | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | ||||
| GLM-5.2 | \(1.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) | \(0.00_{\pm 0.00}\) |
Table 10: Agent-level task status distribution on the Star and Bipartite topologies; complements Table 3, which reports Chain and Ring. Percentages represent the proportion of agents that terminated in each state; state definitions are identical to Table 3.
Strict :
{
" name ": " send_message " ,
" args ": {
" to_agent ": " Alice " ,
" message_type ": " forward " ,
" ciphertext ": " zoo6 Do T6 9 l 4 Tyow S6woo6 " ,
" ciphertext_owner ": " Bob " ,
" target_agent ": " Carol "
}
}
Free Form :
{
" name ": " send_message " ,
" args ": {
" to_agent ": " Alice " ,
" content ": " Hi Alice , my ciphertext is \" zoo6 Do T6 9 l 4 Tyow S6woo6 \" and
only Carol can decrypt it . Could you please forward this to Carol and
ask her to decrypt it for me ? Once she provides the decryption , please send
it back to me . Thanks !"
}
}
Figure 9: An example of a message in Strict and Free Form Communication modes.
| Model | Total (B) | Active (B) |
|---|---|---|
| Qwen3.5-4B | 4 | 4 |
| Qwen3.5-9B | 9 | 9 |
| Qwen3.6-27B | 27 | 27 |
| Qwen3.6-35B-A3B | 35 | 3 |
| Qwen3.8-27B | 27 | 27 |
| Gemma4-31B | 31 | 31 |
| Devstral-2-24B | 24 | 24 |
| gpt-oss-20b | 20 | 3.6 |
| gpt-oss-120b | 120 | 5.1 |
| DeepSeek-V4-Flash | 284 | 13 |
| GLM-5.2 | 753 | 40 |
Table 11: Parameter counts for all evaluated models.
| LLM | Chain | Star | Bipartite | Ring | ||||
|---|---|---|---|---|---|---|---|---|
| Strict (Tool-Based) Communication | ||||||||
| Qwen3.5-9B | 1.164 | 0.021 | 0.055 | 0.381 | ||||
| Qwen3.6-27B | 2.897 | 0.294 | 0.335 | 3.393 | ||||
| Qwen3.6-35B-A3B | 0.408 | 0.061 | 0.096 | 0.581 | ||||
| Gemma4-31B | 0.546 | 0.071 | 0.085 | 0.660 | ||||
| gpt-oss-20b | 0.067 | 0.008 | 0.012 | 0.067 | ||||
| gpt-oss-120b | 0.148 | 0.015 | 0.021 | 0.132 | ||||
| DeepSeek-V4-Flash | 0.318 | 0.054 | 0.064 | 0.452 | ||||
| GLM-5.2 | 12.804 | 0.386 | 0.422 | 3.193 | ||||
| Free Form Communication | ||||||||
| Qwen3.5-9B | 3.103 | 0.119 | 0.038 | 1.859 | ||||
| Qwen3.6-27B | 12.669 | 0.268 | 0.349 | 12.590 | ||||
| Qwen3.6-35B-A3B | 1.815 | 0.033 | 0.117 | 7.582 | ||||
| Gemma4-31B | 0.735 | 0.032 | 0.038 | 1.038 | ||||
| gpt-oss-20b | 0.044 | 0.005 | 0.006 | 0.044 | ||||
| gpt-oss-120b | 0.178 | 0.011 | 0.017 | 0.131 | ||||
| DeepSeek-V4-Flash | 0.607 | 0.049 | 0.061 | 0.272 | ||||
| GLM-5.2 | 2.447 | 0.163 | 0.332 | 4.248 |
Table 12: Average cost of a single run (USD) across graph topologies at N=25, estimated at OpenRouter list prices, averaged over 3 independent MAS runs per configuration. Unsuccessful runs can be cheaper, as stalled or deadlocked runs terminate early and issue fewer transmissions.
| LLM | Chain | Star | Bipartite Graph | Ring | ||||
|---|---|---|---|---|---|---|---|---|
| In | Out | In | Out | In | Out | In | Out | |
| Strict (Tool-Based) Communication | ||||||||
| Qwen3.5-4B | 48.5M | 529.6K | 2.86M | 86.8K | 1.53M | 87.3K | 77.0M | 674.6K |
| Qwen3.5-9B | 14.0M | 325.4K | 0.23M | 20.2K | 0.62M | 42.4K | 4.40M | 220.5K |
| Qwen3.6-27B | 6.99M | 400.5K | 0.69M | 44.3K | 0.76M | 54.0K | 8.11M | 480.4K |
| Qwen3.6-35B-A3B | 4.21M | 281.9K | 0.52M | 49.5K | 0.86M | 76.2K | 6.15M | 390.5K |
| Gemma4-31B | 5.37M | 184.6K | 0.68M | 28.8K | 0.79M | 39.5K | 6.60M | 196.1K |
| Devstral-Small-2-24B | 0.78M | 21.8K | 0.50M | 16.2K | 0.75M | 28.3K | 0.95M | 25.2K |
| gpt-oss-20b | 1.56M | 356.9K | 0.16M | 43.4K | 0.20M | 77.3K | 1.53M | 363.7K |
| gpt-oss-120b | 2.66M | 402.5K | 0.23M | 46.1K | 0.31M | 68.5K | 1.95M | 431.0K |
| DeepSeek-V4-Flash | 4.95M | 190K | 678K | 33.9K | 757K | 40.8K | 6.28M | 278K |
| GLM-5.2 | 22.3M | 237.8K | 0.61M | 26.4K | 0.67M | 29.8K | 5.28M | 152.7K |
| Free Form Communication | ||||||||
| Qwen3.5-4B | 57.4M | 950.7K | 47.2M | 274.4K | 7.07M | 266.5K | 59.8M | 1189.7K |
| Qwen3.5-9B | 37.8M | 601.8K | 1.37M | 65.9K | 0.39M | 52.8K | 22.2M | 653.4K |
| Qwen3.6-27B | 34.9M | 1102.2K | 0.29M | 90.8K | 0.48M | 103.0K | 33.9M | 1207.8K |
| Qwen3.6-35B-A3B | 25.2M | 791.0K | 0.14M | 36.8K | 0.85M | 106.6K | 117.6M | 2433.7K |
| Gemma4-31B | 7.15M | 267.8K | 0.24M | 31.5K | 0.28M | 37.9K | 10.0M | 392.3K |
| Devstral-Small-2-24B | 10.4M | 81.8K | 0.14M | 9.8K | 0.18M | 12.5K | 5.66M | 84.1K |
| gpt-oss-20b | 0.62M | 317.5K | 0.05M | 37.6K | 0.05M | 49.7K | 0.66M | 304.2K |
| gpt-oss-120b | 3.10M | 499.9K | 0.10M | 43.9K | 0.16M | 72.3K | 1.86M | 444.5K |
| DeepSeek-V4-Flash | 18.1M | 259K | 269K | 35.0K | 341K | 43.7K | 4.28M | 162K |
| GLM-5.2 | 3.91M | 160.5K | 0.22M | 24.5K | 0.42M | 57.3K | 6.87M | 252.2K |
Table 13: Average input and output tokens processed per run across graph topologies at N=25, averaged over 3 independent MAS runs per configuration. Input tokens accumulate because every agent's context includes the full observable graph and conversation history; runs that loop until the 2,048-transmission cap therefore dominate the input-token totals.