Hugging Face has published a step-by-step guide to training a four-agent swarm on a model small enough to run cheaply, and the results cut against a common assumption about agent teams. According to Hugging Face, four agents sharing one small Qwen3-0.6B policy learned to cooperate so well that their success rate rose from 6.6 percent to 82.3 percent over 75 training updates, while the tokens each team generated fell by more than a third. The post, written by Ben Burtenshaw and Kashif Rasul and published on November 26, 2026, is the first in a new series on building, training, and evaluating multi-agent systems.
The experiment is deliberately small. Each agent in the four-agent swarm receives one private integer between 1 and 99. The team wins only if at least one agent submits the full list of all four numbers, correctly sorted. No agent can infer the others' numbers on its own, so communication is the only path to success. The setup reproduces an information-aggregation task from a recent paper on scaling swarms through cooperative multi-agent reinforcement learning.
A task only teamwork can solve
The sorting task was chosen because it isolates a basic capability: information sharing. A single agent cannot solve it, no matter how many retries it gets, because part of the answer lives in another agent's private context. The agents communicate through a small set of tools for sending messages, reading messages, and checking notifications, and they can send direct messages or broadcast to the whole team.
That design matters because it answers a question the swarm hype rarely asks directly. When agents talk to each other, does cooperation actually help, or did the team just spend more compute? Hugging Face is candid that this first task cannot settle that question on its own, since no single agent can solve it at all. The series promises harder comparisons ahead, where a team must beat a capable single agent to prove its worth.
Shared reward, shared credit
Training uses a shared team reward. A successful team earns a score that shrinks with the number of tokens used, while a failed team earns zero. There is no separate reward for sending messages. For each problem, eight team attempts are collected and their rewards compared within the group. Every agent on a team receives the same advantage score, even if its own final answer was wrong.
The token penalty is specific. The allowance is 36,864 tokens per team, and the reward equals success multiplied by a factor that subtracts a quarter of the generated team tokens against that allowance. The policy is updated with a learning rate of 5e-7 and temperature 1.0. Training is centralized with decentralized execution: the update uses the whole team's outcome, but each agent acts on only its own observations.
What 75 updates changed
Comparing the first five updates with the last five, task success climbed from 6.6 percent to 82.3 percent. At checkpoint 75, the four-agent swarm solved 26 of 32 held-out problems. The underlying paper reports 93.2 percent four-agent success after 200 updates, suggesting the trend continues with more training.
The efficiency numbers are just as striking. Generated tokens per team fell 37.4 percent, from about 12,800 to about 8,000. Messages per team rose from 3.48 to 6.28, and broadcasts rose from 2.38 to 5.73. The team talked more and cost less. The savings came from shorter reasoning and tighter message bodies, not from agents clamming up.
Against the natural baseline, an untrained team given eight retries solved 37.5 percent of problems at roughly 103,000 tokens. That is about 13 times what one trained attempt costs, and it still solved fewer than half the problems. The authors note their own caveats: the retry comparison uses training problems rather than held-out ones, and updates two through five already sample from a partly trained policy.
Cheap enough to reproduce
The walkthrough is designed to be runnable, not just readable. The recorded experiment used one H200 for training and seven more for rollouts, because each update generates millions of tokens of agent conversation. But the reproducible version runs on two GPUs through Hugging Face Jobs and costs about 50 dollars for roughly five hours. A shorter 50-update run on two H100s reached 60.9 percent held-out success at checkpoint 50, according to the post.
Readers can follow the full procedure, from creating a Hugging Face bucket to launching a TRL training job and comparing base and trained checkpoints. Hugging Face cautioned that the codebases differ in details such as the system prompt, so results will be similar rather than identical. The point is that swarm training is no longer confined to labs with massive clusters. A two-GPU run and a 50-dollar budget can now produce a measurable, reproducible result.
Why small swarms matter now
The broader context is a wave of agent teamwork tooling. Multi-agent teams are showing up in coding, sales, and research, and the question of whether small models can coordinate has practical stakes. If a 0.6-billion-parameter model can learn to share information reliably, then useful agent teams may not need frontier-scale models for every member. That changes the cost math for anyone building agent systems.
The series also sets up a harder test for the field. Future installments will need to show teams beating strong single agents on tasks a single agent can actually solve, with cost-matched comparisons. Until then, this first result is a clean demonstration that coordination can be trained into small models, that training makes teams both better and cheaper, and that the recipe is now public. For agent builders, the four-agent swarm is no longer a research curiosity. It is a weekend project.
Sources: Welcome.ai summary of the Hugging Face series; Brocker.org report on the swarm training guide; TechPlugged coverage of the four-agent experiment; LLMs Blog analysis of the results. Related coverage: Agent Hive Turns Claude Code and Gemini Into a Bee Team; Clay GTM Agents Work With Any AI Harness; Microsoft AKS Agent Sandbox Gives AI Agents a Safe Room.
Comments 0
No comments yet. Be the first to share your thoughts!
Leave a comment
Share your thoughts. Your email will not be published.