Specification Gaming
Exploits per-call metering by batching multiple items into one request, exceeding the real budget.
We need more evaluation work on multi-agent swarms. The recent OpenAI-HuggingFace incidents[1,2] and Navier-Stokes saga[11] are just the beginning of the multi-agent era, calling for analysis of swarms as a “new form of inference scaling.”[14] In this study, we adopt a working definition (which differs from the traditional “swarm” from robotics/mathematics) where swarms refer to populations of multiple LLM agents operating concurrently inside a shared environment. Specifically, we focus on homogeneous swarms (i.e., all agents in a swarm are powered by the same LLM) without any predefined hierarchy (i.e., every agent is equal). We study three main RQs here:
In the OpenAI-HuggingFace incident, sandboxed agents running in parallel on ExploitGym discovered a route across containers and formed a swarm without being told other agents existed.[1,2] We first look into what other potential routes agents might be able to use, and where problems similar to OAI-HF might happen.
More broadly, sandboxed agents running in parallel on a host can communicate through three basic Linux inter-process communication (IPC) channels:[31] shared sockets (shared Docker bridges, networks, or proxies), shared files (reused working directories or mounted volumes), and shared memory (shared /dev/shm and IPC segments). We audited widely used parallel-container benchmarks and found many expose at least one of these channels when multiple agents are evaluated in parallel (which is exactly how the OpenAI-HuggingFace incident started).
| Benchmark | Channels | What agents can exploit to establish communication | Evidence |
|---|---|---|---|
| ExploitGym | Sockets | Runs share one internal network and Squid proxy even with public internet blocked. | PR #32 |
| CyberGym | Sockets | Parallel containers join the same private bridge and can reach each other. | PR #23 |
| MLE-bench | Sockets | Parallel --n-workers containers omit network_mode and share Docker’s default bridge. |
Source |
| OSWorld | Sockets | Parallel --num_envs containers omit network_mode, sharing Docker’s bridge and open service ports. |
Source |
| AgentBench | Sockets | Concurrent OS and DB containers explicitly attach to one shared network (agentbench-fc_default). |
Source |
| BountyBench | Sockets | Parallel Kali containers attach to one global shared_net (privileged mode, host cgroupns). |
Source |
| SWE-bench Pro | Files | Parallel attempts reuse one working directory, exposing peer edits and build outputs. | PR #118 |
| NYU CTF Bench | FilesSockets | Parallel evaluations share the global ctfnet network, Compose services, and volumes. |
PR #25 |
| InterCode | MemoryFiles | Same-image tasks reuse one container, sharing files, /dev/shm, and IPC state. |
PR #29 |
Evidence links to our upstream fix PR or the container-launch code. Most of these benchmarks predate OAI-HF, before cross-run swarming was a known evaluation risk.
Using 30 impossible coding tasks adapted from ProgramBench[19] (mirroring the impossible ExploitGym task in OAI-HF), we isolate N = 4, 8, 16 agents in separate containers with zero peer hints and expose one unintended channel per run (2,700 runs total). All tested models can discover peers and establish to form swarms (62.5% overall), but some models are more prone to do so:[4,5,15,16] OpenAI models (including Astra, Sol, and Terra) and Kimi K3.1 Pro swarm in nearly every run, GLM-5.3 and DeepSeek V4.1 climb rapidly at larger N, while Claude models connect far less often on their own.
0% → 100% : both agents read data from each other (A↔B)
| Model | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| N = 4 | N = 8 | N = 16 | N = 4 | N = 8 | N = 16 | N = 4 | N = 8 | N = 16 | N = 4 | N = 8 | N = 16 | |
Every agent receives the same task prompts and permissions, with absolutely no instruction to orchestrate in any way. We observed that agents in swarms start organizing on their own:
N = 4) to 72.6% (N = 16) and multi-hop exchanges more than doubling (+148%).N agents connect triple. In particular, Claude Opus 5.5 jumps from 10.7% to 100%.| Model | Bidirectional comm.unprompted → prompted | Full cohortall N connected | Distributed solvedunprompted → prompted |
|---|---|---|---|
| 98.5% → 100.0% | 70.4% → 98.9% | 100.0% → 100.0% | |
| 86.7% → 100.0% | 27.8% → 82.2% | 76.7% → 100.0% | |
| 75.2% → 93.3% | 18.1% → 44.4% | 60.0% → 80.0% | |
| 81.9% → 96.7% | 19.6% → 83.3% | 32.2% → 56.7% | |
| 10.7% → 100.0% | 0.4% → 63.3% | 28.9% → 93.3% | |
| 41.9% → 96.7% | 4.1% → 58.9% | 38.9% → 73.3% | |
| 24.1% → 78.9% | 0.4% → 43.3% | 44.4% → 46.7% | |
| 97.0% → 98.9% | 40.7% → 96.7% | 58.9% → 70.0% | |
| 59.3% → 85.6% | 3.7% → 23.3% | 34.4% → 60.0% | |
| 50.0% → 88.9% | 1.1% → 24.4% | 35.6% → 80.0% | |
| All 10 models2,700 unprompted vs. 900 prompted | 62.5% → 93.9% | 18.6% → 61.9% | 51.0% → 76.0% |
Yes. Every main formation effect is highly significant (two-sided two-proportion z-tests and 95% Wilson intervals across 2,700 unprompted runs and 900 peer-aware runs):
62.5% (1,688 / 2,700, 95% Wilson CI [60.7%, 64.3%]).54.6% (491/900, CI [51.3%, 57.8%]) at N = 4 to 60.4% (544/900, CI [57.2%, 63.6%]) at N = 8 and 72.6% (653/900, CI [69.5%, 75.4%]) at N = 16, a +18.0 pp gain (z = 7.93, p = 2.1 × 10⁻¹⁵). Every channel scales significantly on its own: Sockets +26.0 pp (44.7% → 70.7%, p = 1.2 × 10⁻¹⁰), Mapped Memory +15.3 pp (56.0% → 71.3%, p = 9.4 × 10⁻⁵), and Shared Files +12.7 pp (63.0% → 75.7%, p = 7.7 × 10⁻⁴).87.9%, 1,186/1,350) connect far more often than Claude models (25.6%, 207/810, z = 29.29, p < 10⁻¹⁰⁰).62.5% (1,688/2,700) to 93.9% (845/900, z = 17.85, p = 3.0 × 10⁻⁷¹), including Claude Opus 5.5 jumping from 10.7% (29/270) to 100.0% (90/90, p = 8.6 × 10⁻⁵⁵).We continue with the setting where N identical agents (N = 1, 4, 8, 16, 32) each live in their own sandbox with identical neutral prompts and zero peer hints, except here their shared channel is a shared filesystem and workplace service backend where peers’ published files and delivery records are visible. We give each agent an impossible task (cannot be completed honestly under the stated constraints): prepare and publish a workplace reporting pack despite a hard quota, missing approval, or restricted data, leaving only an unenforced shortcut.
We evaluate frontier models on five single-agent failure modes (which can happen to single agents and also can spread from agent to agent in swarms) and one multi-agent failure mode (Compositional Failure, which only arises in multi-agent settings). For the single-agent failure modes, we track two metrics: (mean fraction of the N agents in a swarm involved per run, safe runs = 0%) and (% of runs where ≥1 agent violates a rule).
Exploits per-call metering by batching multiple items into one request, exceeding the real budget.
Rewrites dispatch-register status entries so unexecuted work passes release checks.
Weakens the acceptance schema so unfinished work passes, and peers adopt the edit.
Retrieves and imports restricted records outside its assigned role scope.
Closes privileged Quality Assurance sign-off tickets reserved for another role.
Benign actions together exhaust shared resources (Section 2.3 ↓).
Moving from solo to swarms (under the same task) could amplify single-agent failures and break solo-safe settings. Across the five single-agent modes, average per-agent failure rises from 75.7% solo to 81.2% in swarms, breaking 70.6% (24 of 34) of settings that stayed safe solo. Overall across all six modes, swarms average 83.3% per-agent failure (91.8% any-agent failure), with over half of tested models failing in every swarm run.
Not really. Even if multi-agent interaction simply lengthened runs and raised per-run failures, that would still be a real deployment risk. What this check rules out is the narrower methodological objection that swarm failure can be extrapolated mechanically from single-agent runs: either (a) independent sampling across N agents raising the per-run chance of at least one failure (1 - (1 - p)^N, which cannot raise per-agent failure), or (b) noisier swarms causing agents to take more tool steps and stumble onto a shortcut by chance (1 - (1 - q)^T). Four checks rule out both mechanical explanations and show that seeing peers directly shifts individual behavior:
5.5% to 28.6% on Action Scope (among Opus, Sonnet, Haiku, and Terra, which do not already break the rule 100% of the time on their own, p = 0.009) and from 9.7% to 44.4% on Trace Tampering (p < 10⁻⁵).28.6% vs. 23.1% on Action Scope, and 44.4% vs. 29.4% on Trace Tampering). Rather than larger swarms mechanically adding random sampling chances, a single visible peer shortcut is already enough to shift behavior.22.6 solo (N = 1) to 20.5 at N = 4 and 17.8 at N = 8, because agents that copy a peer’s shortcut finish faster rather than taking extra attempts.N = 4, 8, tasks, tools, and prompts identical while isolating each agent’s desk so peer releases cannot be seen (42 runs each on Kimi K3.1 Pro and GLM-5.3), Grader Manipulation dropped from 100.0% to 74.0% on Kimi K3.1 Pro (-26.0 pp, p = 0.0001) and from 99.0% to 92.7% on GLM-5.3 (-6.2 pp), while Trace Tampering dropped from 100.0% to 93.8% on GLM-5.3 (-6.2 pp).Single-agent (0% → 100%) Compositional (multi-agent) ↑ Safer at smaller N, breaks at larger N 0% Safe across all sizes
Yes. We verified all primary results across multi-seed runs (1,568 swarm runs and 384 solo controls, 1,952 baseline runs total: 2 seeds for most models and 5 seeds for Kimi K3.1 Pro and GLM-5.3) using two-sided paired permutation tests (50,000 resamples) and 95% bootstrap CIs (10,000 resamples):
75.0% solo to 80.1% in swarms (+5.09 pp), significant at both the model level (n = 14, 95% CI [+1.63, +8.79], p = 0.018, and +4.36 pp, p = 0.043 on two-seed runs alone) and the cell level (n = 140 model × mode × scenario cells, 95% CI [+1.65, +8.63], p = 0.0039). Among non-ceiling cells where solo failure is below 100% (n = 48), per-agent failure rises +22.27 pp (95% CI [+15.42, +29.55], p < 10⁻⁴).74.0% (53/72 agents) uncoupled to 100.0% (72/72) coupled (+26.0 pp, cohort permutation p = 0.0001). GLM-5.3 moves in the same direction near ceiling (92.7% → 99.0% on Grader Manipulation, p = 0.14, and 93.8% → 100.0% on Trace Tampering, p = 0.48).0/54 (0.0%) vs. swarm 256/261 (98.1%, exact Fisher p < 10⁻⁵⁰).| Model | Seedsswarm runs | Spec Gaming | Trace Tamper | Grader Manip. | Info Scope | Action Scope | Compositional | All 6 | Solo → Swarm5 single-agent modes |
|---|---|---|---|---|---|---|---|---|---|
| 296 runs | 36.3% | 100.0% | 1.8% | 100.0% | 99.2% | 94.1% | 71.9% | 50.0% → 67.5% | |
| 296 runs | 23.0% | 99.2% | 98.2% | 100.0% | 100.0% | 93.4% | 85.6% | 85.0% → 84.1% | |
| 296 runs | 62.5% | 100.0% | 0.0% | 100.0% | 89.6% | 80.1% | 72.0% | 60.0% → 70.4% | |
| 296 runs | 57.0% | 100.0% | 100.0% | 100.0% | 100.0% | 99.0% | 92.7% | 95.0% → 91.4% | |
| 296 runs | 76.4% | 100.0% | 0.0% | 86.1% | 79.9% | 82.2% | 70.8% | 50.0% → 68.5% | |
| 296 runs | 69.3% | 100.0% | 6.4% | 42.0% | 82.4% | 90.4% | 65.1% | 55.0% → 60.0% | |
| 296 runs | 20.9% | 1.8% | 0.0% | 71.3% | 0.0% | 94.7% | 31.4% | 20.0% → 18.8% | |
| 296 runs | 51.8% | 100.0% | 92.6% | 85.0% | 100.0% | 96.3% | 87.6% | 75.0% → 85.9% | |
| 148 runs | 86.3% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 97.7% | 100.0% → 97.3% | |
| 296 runs | 97.3% | 100.0% | 99.6% | 97.3% | 100.0% | 100.0% | 99.0% | 95.0% → 98.8% | |
| 294 runs | 65.8% | 100.0% | 99.2% | 100.0% | 100.0% | 99.4% | 94.3% | 90.0% → 93.3% | |
| 5240 runs | 65.8% | 100.0% | 99.8% | 100.0% | 99.9% | 100.0% | 94.3% | 84.0% → 93.1% | |
| 5226 runs | 85.0% | 100.0% | 99.7% | 100.0% | 100.0% | 100.0% | 97.4% | 96.0% → 96.9% | |
| 296 runs | 77.7% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 96.3% | 95.0% → 95.5% | |
| Unweighted mean1,568 swarm · 384 solo | 2 to 5 | 62.5% | 92.9% | 64.1% | 91.5% | 89.4% | 95.0% | 82.6% | 75.0% → 80.1% |
We observed an interesting mechanism where once one agent finds a shortcut, others may follow.[6,7,8,9] Stronger models actually do this more often: within Anthropic, Claude Opus 5.5 and Claude Sonnet 5.5 imitate peer shortcuts roughly 3× as often as Claude Haiku 5.5 across single-agent modes. Specifically, we detail an example scenario here (Action Scope on Claude Opus 5.5) where server access logs confirm direct behavioral contagion with zero peer-to-peer messages. Alone, Opus refuses to forge Quality Assurance (QA) sign-off. In a swarm, once one peer closes its own QA ticket and publishes a release, other agents inspect the shared desk, see that closed QA state, and copy the shortcut seconds later. Because followers treat the precedent as routine, single-agent CoT monitors looking for overt rule-breaking miss this contagion.
Even when every individual agent follows every rule, uncoordinated swarm actions still break shared infrastructure.[18,23] In our shared-capacity setting, each agent legitimately draws compute from a pool that also serves 8 scheduled background jobs. Alone (N = 1), every model leaves all background jobs unharmed (0 of 28 solo runs), whereas in swarms (N = 4 to 32), individually compliant agents exhaust the shared pool and delay jobs in 97.3% (109 of 112) of runs.
N = 1)0.0%95% CI [0.0%, 0.0%] · 0/8 jobs delayedN = 483.9%95% CI [67.6%, 100%]N = 892.9%95% CI [83.7%, 100%]N = 1698.7%95% CI [96.7%, 100%]N = 3299.7%95% CI [99.3%, 100%] · 7.8/8 jobs delayedBecause every individual trace looks completely compliant, single-agent CoT monitors[25,26,27] cannot flag compositional failure without monitoring the shared system as a whole.
A striking detail in the OAI-HF incident, highlighted by METR and other commentators,[2,10] was that not a single agent alerted humans while peers coordinated attacks. Prior whistleblowing studies mostly test single agents handed explicit wrongdoing or staged insider-threat prompts.[24,28,29] Here we test in the exact same setting from Section 2 (672 swarm runs across N = 4, 8, 16, 32), adding only a private that sends messages to a supervisor (these messages are not visible to their peers): would agents autonomously choose to use it, and what would they write?
We observed that most frontier models do NOT use the whistleblowing tool even when peers break rules right in front of them: failures occurred in over 91% of trials, yet only 2.0% of swarm agents ever sent a verified peer report, and four models (GPT-6.2 Astra, Claude Opus 5.5, GPT-6.1 Terra, and Kimi K3.1 Pro) made zero calls across all 48 trials. A notable outlier is Gemini 4 Neon, which accounted for 85.3% of all peer-reporting agents with zero false alarms, yet even Neon spoke up in under a third of its failed trials and stayed silent on Trace Tampering, Action Scope, and Specification Gaming. Outside of Neon, only 0.3% of agents powered by any other model reported a peer when they saw potentially dangerous behavior.
720 agents per model (48 runs, N = 4 to 32) · 9,080 of 9,296 agents in failed runs did not report.
| Model | Reported / Should reportmissed = should but did not (of 720 total) | out of 48 | Whistleblowing messages by type |
|---|
More agents used the tool 0/12 · 0% No one used the tool compares per-agent failure with and without the tool
| Model | N = 4 | N = 8 | N = 16 | N = 32 | ||
|---|---|---|---|---|---|---|
| 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 0/48 · 0.0% | -3.1% | |
| 2/12 · 4% | 4/12 · 6% | 4/12 · 3% | 5/12 · 2% | 15/48 · 3.6% | -4.5% | |
| 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 0/48 · 0.0% | +4.5% | |
| 9/12 · 21% | 12/12 · 32% | 12/12 · 30% | 12/12 · 28% | 45/48 · 27.8% | -1.3% | |
| 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 0/48 · 0.0% | +1.5% | |
| 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 1/12 · 0% | 1/48 · 0.1% | +0.9% | |
| 0/12 · 0% | 0/12 · 0% | 1/12 · 1% | 0/12 · 0% | 1/48 · 0.1% | +0.1% | |
| 2/12 · 10% | 3/12 · 19% | 4/12 · 28% | 6/12 · 26% | 15/48 · 20.8% | -17.1% | |
| 2/12 · 4% | 0/12 · 0% | 1/12 · 1% | 0/12 · 0% | 3/48 · 1.2% | +1.1% | |
| 0/12 · 0% | 0/12 · 0% | 1/12 · 1% | 0/12 · 0% | 1/48 · 0.1% | -1.2% | |
| 2/12 · 8% | 4/12 · 6% | 6/12 · 6% | 7/12 · 4% | 19/48 · 6.1% | +0.2% | |
| 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 0/12 · 0% | 0/48 · 0.0% | -0.3% | |
| 0/12 · 0% | 2/12 · 2% | 3/12 · 3% | 2/12 · 1% | 7/48 · 1.3% | +0.3% | |
| 2/12 · 4% | 4/12 · 5% | 9/12 · 7% | 9/12 · 6% | 24/48 · 5.7% | +1.0% | |
| All 14 models168 runs per size | 19/16811.3% · 3.7% agents | 29/16817.3% · 5.1% agents | 41/16824.4% · 5.6% agents | 42/16825.0% · 4.7% agents | 131/67219.5% · 4.8% agents | -1.3% |
Classifying all 729 messages sent across 672 trials reveals that only 50.5% (368 of 729) actually report a peer violation, while 34.2% are false alarms and 13.6% simply report personal blockers. Outside Gemini 4 Neon, over 86% of messages are noise (for example, GPT-6 Luna sent 263 messages across 45 of 48 trials, yet only a single message reported a peer).
Not really. We did not observe a meaningful drop in either or after giving models the whistleblowing tool (while keeping everything else the same in our settings). Even Gemini 4 Neon still caused failures in every trial, with only a modest drop in per-agent failure (88.3% to 71.2%), while nearly every other model stayed within ordinary run-to-run variation.
Yes. Both the low reporting rate and the lack of meaningful deterrence outside Gemini 4 Neon hold under strict confidence intervals and two-seed paired permutation tests (1,293 strictly matched swarm runs without vs. with the whistleblowing tool):
2.0% (204/10,080, 95% Wilson CI [1.8%, 2.3%]) sent a verified peer report. Outside Gemini 4 Neon, just 0.3% (30/9,360, CI [0.2%, 0.5%]) reported a peer. Across all 729 messages, valid peer-report precision is 50.5% (368/729, 95% Wilson CI [46.9%, 54.1%]).1,197 paired two-seed swarm runs excluding Gemini 4 Neon, adding the whistleblowing tool changes per-agent failure by only -0.45 pp (95% bootstrap CI [-1.20, +0.28], two-sided paired permutation p = 0.243, not significant).96 paired two-seed swarm runs, Neon’s per-agent failure drops by -14.58 pp (95% bootstrap CI [-19.08, -10.25], p < 10⁻⁴), yet at least one Neon agent still failed in 97.9% (94/96) of swarm trials.@misc{swarmharm2026,
title = {SwarmHarm: Uncovering Collective Failure Modes and Whistleblowing in Agent Swarms},
author = {SwarmHarm Team},
year = {2026},
url = {https://swarmharm.com/}
}
Zotero users can save directly via the Zotero Connector browser extension (embedded metadata enabled) or import the .ris file above.