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.
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.