Skip to content
Neural Daily

ResearchNews

Hugging Face trains a small agent swarm to communicate

🇭🇺 Olvasd el magyarul →

Hugging Face's new series trains four agents on one shared Qwen3-0.6B policy to communicate. After 75 updates, team success rose from 6.6% to 82.3% while token use fell.

· 4 min read

Hugging Face illustration: "Swarms, Flocks, Gangs. Part 1, training agents to communicate" with four Hugging Face mascots linked by dotted lines
Image: Hugging Face · Press kit · Official social image of the Hugging Face blog post, padded to 16:9 · Source

What happened?

On November 26 Hugging Face started a blog series on building, training and evaluating multi-agent systems (Hugging Face). Part one is a small, reproducible experiment: four agents share a single Qwen3-0.6B policy and use reinforcement learning to learn how to pool information. The example runs in TRL on Hugging Face Jobs and takes about five hours on two H200s, which the authors put at roughly $50.

The series keeps asking one question: when agents communicate, does it actually help, or are we just spending more compute? The authors argue that a big swarm alone is not evidence that cooperation helped. Noam Brown estimates that less than 10% of OpenAI's Navier-Stokes result came from multi-agent cooperation. In Anthropic's vulnerability-finding experiment, results per million tokens were about the same for coordinated and independent agents once the comparison was restricted to the same directories.

The task: four agents, four private numbers

Each agent gets one integer from 1 to 99 and cannot see the others' numbers. The team succeeds when at least one agent submits the complete, sorted list. No agent can solve this alone, so the task tests whether a small policy can learn to communicate at all and what that costs in tokens. The tools are message, read_messages and check_notifications, with direct messages or broadcasts.

The reward is shared by the team. A successful team starts from 1, reduced by up to 0.25 depending on the share of its token allowance it used, while a failed team gets zero. There is no separate reward for sending messages. Each problem gets eight independent team attempts and advantages are normalized within that group. Every agent on a team receives the same advantage, even if its own answer was wrong.

Results

Over 75 updates, training success rose from 6.6% to 82.3% (mean of the first and last five updates). Checkpoint 75 solved 26 of 32 held-out problems, or 81.25%. The s³ (Simple Scaling of Swarms) paper the setup is based on reports 93.2% four-agent success after 200 updates.

Generated tokens per attempt fell 37.4%, from about 12,800 to 8,000, while broadcasts per team rose from 2.38 to 5.73. Fewer tokens did not mean fewer messages.

The most telling comparison is against retries. The untrained team, given eight attempts, solved only 37.5% of problems at about 103,000 tokens per problem. The trained team solved 82.3% in a single attempt using about 8,000 tokens, roughly 13 times fewer. The authors treat this as an estimate, since both figures come from training problems.

Try it yourself

The post includes a full walkthrough that runs TRL's async_grpo_s3_aggregation example on Hugging Face Jobs: one H200 serves the shared policy with vLLM and the other trains it. The original experiment used one trainer GPU and seven rollout GPUs with contexts of up to 40k tokens. TRL's shorter 50-update run took about 4.8 hours on two H100s and reached 60.9% held-out success. Scores, the checkpoint and Trackio data are saved to a Hub bucket.

Why it matters

The main takeaway is methodological. Compare a multi-agent system with a simpler retry baseline at a matched token budget, and read success rate together with token use and communication patterns. Anyone building agent swarms can watch communication emerge during training for around $50. The next part of the series moves to evaluating and analyzing swarms. Hugging Face recently published a guide to building agentic evals, and YC Labs' Minecraft experiment gave a vivid look at large swarms in action.

    By Mikola Máté Patrik

    Produced with the help of AI, reviewed by an editor. How we make our articles

    Reviewed and edited by the Neural Daily desk. About

    Related articles