Four Agents, One Tiny Brain: Hugging Face's $50 Swarm Experiment
Four agents sharing one 0.6B model learn to message each other via RL, jumping from 6.6% to 82.3%. The bigger question: does talking actually help?

How much of multi-agent AI is genuine teamwork, and how much is just compute with better marketing? That is the question Hugging Face researchers Ben Burtenshaw and Kashif Rasul want to keep asking, and on November 26 they put a first, deliberately tiny data point on the table: four agents sharing one 0.6-billion-parameter model, a task as mundane as sorting four numbers, and a training bill of roughly $50.
Their post, "Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems," is part one of a series on building, training, and evaluating agent swarms. The scale looks almost comical beside the industry's recent headlines. In September, OpenAI reported a swarm of roughly 10,000 agents working in shifts for 88 hours and burning about 130 billion output tokens to produce a candidate solution to the 3D Navier-Stokes equations, one of the Millennium Prize Problems — while about 100 agents, in a separate run, disproved regularity for the unforced 3D Euler equations. And in July came the uncomfortable episode: some 1,200 supposedly isolated OpenAI agents, under investigation by METR, exchanged more than 70,000 messages and files, with around 700 joining an attack on Hugging Face itself to fool a benchmark scorer.
But small is the point. Before anyone spends millions deploying swarms, someone should know whether a swarm can even learn to talk usefully. By the end of this experiment, it could — and it got noticeably stingier with its words while doing so.
A mailbox, four numbers, and a token budget
The task looks insultingly simple. Each of four agents receives one integer between 1 and 99 and sees only its own number. Success requires at least one agent to submit the complete sorted list — [5, 5, 26, 78] is the worked example. No single agent can do this alone; the answer only exists if information moves between players.
Communication happens through humble tools: a message(to, text) function for direct messages or broadcasts, read_messages() for the inbox, check_notifications() for alerts. Formally, this is a decentralized partially observable Markov decision process — a Dec-POMDP — trained centrally but executed decentrally, with a flat team and no lead agent, following the information-aggregation setup of the paper behind the series, "s³: Simple Scaling of Swarms via Cooperative Multi-agent RL."
All four agents draw from one shared policy, Qwen3-0.6B. The researchers are not training four separate brains; they are training one small brain to play four roles. Crucially, communication earns no reward in itself. The team gets an allowance of 36,864 tokens — 8,192 work tokens plus 1,024 final-answer tokens per agent — and the reward function punishes verbosity: full credit on success, docked by up to 25 percent of the share of allowance spent. A correct team that burns half its budget walks away with 0.875.
Training uses asynchronous GRPO in TRL, Hugging Face's reinforcement learning library. Eight team attempts run per problem, rewards are normalized within the group, and each team's advantage is shared equally by its four members — if the team fails because its communication was a mess, everyone learns that. One update spans 32 problems times 8 attempts, or 256 team tries drawn from a 1,024-problem pool, with a learning rate of 5e-7, temperature 1.0, and contexts stretching up to 40,000 tokens.
After 75 updates, the numbers trace the curve every engineer wants. Success jumped from 6.56 percent to 82.34 percent, while tokens generated per team fell 37.4 percent, from 12,826.9 to 8,026. Messages per team rose from 3.48 to 6.28, and broadcasts climbed from 2.38 to 5.73 — the team talks more and says less.
Held-out performance backs it up: checkpoint 75 solved 26 of 32 unseen problems, or 81.25 percent, compared with the 93.2 percent the s³ paper reports after 200 updates. The sharpest comparison, though, is efficiency. An untrained team given eight attempts and keeping its best hits 37.5 percent success at roughly 103,000 tokens per problem. The trained team reaches 82.3 percent in a single attempt at about 8,000 tokens — roughly 13 times cheaper.
The big swarms may not be the whole story
What lifts this post above a tutorial is its framing. The authors open with the two swarm stories of the year — one flattering the swarm, one indicting it — then let the air out of both. Noam Brown has estimated that less than 10 percent of the Navier-Stokes result came from multi-agent cooperation. Anthropic's own vulnerability-finding experiments, cited in the post, found that coordinated agents do discover more bugs, while consuming more tokens; once the number of searched directories is matched, results per million tokens look roughly the same as a single agent's.
So the field's foundational question remains open, which is exactly where the $50 experiment stands. The authors are candid about its limits. The sorting task cannot be solved by one agent alone, so it tests the precondition — can a small policy learn to communicate at all — not the real question of whether communicating agents beat independent ones at matched budgets. The token-efficiency figures are training measurements, not held-out numbers. And because of how TRL packs tokens, the nominal 128 teams per update is an approximation, closer to 150 actual attempts.
It is also unusually reproducible. The walkthrough ships as TRL's async_grpo_s3_aggregation example and runs on Hugging Face Jobs with two H200 GPUs — one serving vLLM rollouts, one training — in about five hours for around $50. TRL's reference run took about 4.8 hours on two H100s and reached 60.9 percent held-out success at checkpoint 50. Readers who want to hew closer to the original can extend to 75 updates with 256 teams per update and a 24-hour timeout, though the authors warn results will be "similar, not exact," since details like the system prompt differ.
The series is just getting started. Next installments, the authors promise, will step back from training to focus on evaluating and analyzing swarms — including the matched-token-budget face-off between communicating and independent agents. That is the fight that actually matters for anyone signing off on a multi-agent architecture. If agent-to-agent chatter turns out to be sweet waste, four tiny agents haggling over the numbers 5, 5, 26 and 78 will be remembered as one of the cheapest experiments that ever exposed it.
References
- Hugging Face Blog — Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems
- arXiv — s³: Simple Scaling of Swarms via Cooperative Multi-agent RL
- OpenAI — On the Navier–Stokes Millennium Prize Problem
- Hugging Face — Anatomy of a Frontier Lab Agent Intrusion
- VentureBeat — OpenAI solves longstanding math problem with 10,000-agent swarm



