ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial3 min readDisconfirmAI Editorial

Hugging Face Trains a Four-Agent Swarm That Solves Tasks 13× More Cheaply Than Untrained Retries

Ben Burtenshaw and Kashif Rasul at Hugging Face document a reproducible GRPO training experiment where four agents sharing a Qwen3-0.6B policy learn to pool private numbers into a sorted list. Over 75 updates, team success rose from 6.6% to 82.3% while generated tokens per attempt fell 37%. The key comparison: an untrained team needing eight retries solves 37.5% of problems at roughly 103,000 tokens, while the trained team solves 82.3% in a single attempt at about 8,000 tokens. The authors note the task requires communication by design, so it tests whether a small shared policy can learn to communicate at all, not yet whether communication beats a single agent at equal budget.

2026-11-26

Multi-agent systems are hard to get working, and the central open question is whether agent communication actually helps or merely consumes more compute. Ben Burtenshaw and Kashif Rasul at Hugging Face tackle this with a deliberately minimal experiment: four agents, one shared Qwen3-0.6B language model, and a task that cannot be solved without communication.

Each agent receives one integer from 1 to 99. It knows its own assignment and its teammates' names, but not the others' numbers. The team succeeds when at least one agent submits the complete, correctly sorted list. Because no agent can infer the others' assignments, a single agent with unlimited retries still cannot solve the task. This design isolates the precondition behind the broader question: can a small shared policy learn to communicate at all, and what does that cost?

The training uses Group Relative Policy Optimization. For every problem, eight independent team attempts are collected. A successful team receives a reward reduced by the fraction of its token allowance used; a failed team receives zero. The team allowance is 36,864 tokens total across four agents. Rewards are normalized within each group of eight, so an attempt that beats its group average gets positive advantage and one that falls short gets negative advantage. Every agent in the same team receives that team's advantage, even if its own final answer was wrong. In TRL, each agent's sampled tokens form a training row, with incoming messages and tool results providing context. Loss is averaged within each team then across teams, so longer conversations do not give a team more weight.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Over 75 updates, training success rose from 6.6% to 82.3%, comparing the first and last five updates. At checkpoint 75, the four-agent team solved 26 of 32 held-out problems (81.25%). The original paper they reproduce, s³: Simple Scaling of Swarms via Cooperative Multi-agent RL, reports 93.2% four-agent success after 200 updates.

The more interesting result is the cost comparison. Generated tokens per team fell from about 12,827 to 8,026 between early and late training, a 37.4% reduction. But fewer tokens did not mean fewer messages: broadcasts per team increased from 2.38 to 5.73, and teams where every agent sent exactly one broadcast rose from 4.06% to 18.20%. Agents learned to communicate more actively while producing less text overall.

The decisive comparison is against retries. The untrained team's best-of-8 success rate (from updates 1–5) was 37.5% at roughly 103,000 tokens per problem. The trained team's single-attempt success (updates 71–75) was 82.3% at about 8,000 tokens. Eight retries of an untrained team solve fewer than half the problems and spend about 13 times as many tokens as one attempt from the trained team. The authors note this is an estimate: both rows use training problems rather than held-out ones, and updates 2–5 already sample from a slightly trained policy.

The infrastructure is deliberately small. The original experiment used one H200 for the trainer and seven H200s running vLLM rollout engines. The reproducible walkthrough runs on two GPUs and takes about five hours for roughly $50. TRL's own run of the example took about 4.8 hours on two H100s and reached 60.9% held-out success at checkpoint 50.

The authors are explicit about what this does not yet show. Because the task requires communication by construction, it cannot test whether communicating agents beat a single agent at matched budgets. A later post in the series moves to a task that a single agent can solve alone, where that comparison becomes meaningful. For now, the contribution is concrete: a small, trainable, reproducible swarm where RL-trained communication demonstrably outperforms brute-force retries in both success rate and token efficiency.

Sources

  • huggingface.co↗
Continue researching →