AI news ·
Four agents learn to share information and cut token use by 37% in a simple swarm experiment
Four AI agents trained to share private numbers achieved 82.3% accuracy on a sorting task while cutting token use by 37.4%, costing roughly $50 to reproduce on two GPUs.

A team of four AI agents learned to share private information and solve a collaborative task with 82.3% accuracy after 75 training updates, while cutting token use by 37.4%. The experiment, which used a shared Qwen3-0.6B language model and cost roughly $50 to reproduce on two H200 GPUs, shows that small models can be trained to cooperate without a central coordinator.
The agents received individual integers and had to produce a correctly sorted list of all four numbers. No single agent could see the full set. Success required at least one team member to submit the complete answer. The system used a centralized training approach: a shared reward based on team success and token efficiency, with decentralized execution where each agent acted only on its own observations and incoming messages.
How the experiment worked
The training loop gave each team of four an allowance of 36,864 tokens per problem attempt. A correct team earned a reward reduced by the tokens it used. Eight independent team attempts were collected for each training problem, and rewards were normalized within that group. Every agent on a team received the same advantage score, including agents whose own final answer was wrong.
Communication tools included direct messaging, broadcasting, and inbox notifications. Early in training, teams averaged 12,827 tokens per attempt with 2.38 broadcasts. By updates 71-75, they averaged 8,026 tokens with 5.73 broadcasts. "Fewer tokens did not mean fewer messages," the researchers noted. "More agents began participating but broadcasting became more common, rather than direct messaging."
Comparing trained cooperation to brute-force retries
The untrained team's best-of-8 attempts solved 37.5% of problems while spending about 103,000 tokens per problem. The trained team's single attempt solved 82.3% while spending about 8,000 tokens. That is a 13-fold token reduction for more than double the success rate.
Anthropic's vulnerability-finding experiment found a similar pattern: coordinated agents found more bugs than independent agents but also searched more code and used more tokens. When restricted to the same directories, results per million tokens were about the same. Noam Brown estimated that less than 10% of a recent Navier-Stokes result from a 10,000-agent swarm came from multi-agent cooperation.
Reproducing the swarm training
A walkthrough using TRL's swarm example runs on two H200 GPUs via Hugging Face Jobs. One GPU serves the shared Qwen3-0.6B policy with vLLM, while the second trains it for 50 updates. The job saves evaluation scores, checkpoints, and training metrics to a cloud bucket. TRL's own run of this example reached 60.9% held-out success at checkpoint 50 in about 4.8 hours on two H100s.
The code uses one shared policy for all four agents, not four separate models. Rollouts contain entire team conversations, and the trainer packs micro-batches by token count rather than by team. The walkthrough is available in TRL's examples directory, and evaluation scripts score both the base model and the trained checkpoint on the same held-out problems.
Why this matters for IT and development teams
Multi-agent systems add complexity that does not automatically improve performance. The fair comparison is at equal compute budgets: can four agents each spending a quarter of the tokens beat one agent spending all of them? This experiment establishes a baseline for measuring that tradeoff. Teams evaluating agent architectures for information-sharing tasks can use the same structure: a verifiable task, matched-budget comparisons, and tracking token use alongside success rates. For professionals building on these patterns, AI Agent Courses cover the design and evaluation of cooperative systems.