Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems

In one sentence

Hugging Face launches a multi-agent tutorial series, examining whether agent communication truly helps and reproducing a four-agent collaborative task using a shared small model.

Key points

  • The series aims to explore building and training multi-agent systems with small models through low-cost, reproducible examples.
  • The post notes that simply adding agents does not equal effective cooperation; communication must be evaluated under an equal compute budget.
  • Multi-agent reinforcement learning faces three main challenges: changing teammates, credit assignment, and training communication policies, often addressed via centralized training with decentralized execution.
  • The first example reproduces an information-sharing task where four agents share a Qwen3-0.6B policy and exchange messages to aggregate and sort their private numbers.

In depth

An AI-written overview of the original article, not the article itself.

Hugging Face Blog launched a series on building, training, and evaluating multi-agent systems. Part 1 examines whether agent communication genuinely boosts performance or merely consumes more compute, using a reproducible experiment with a small shared model.

Training Results and Efficiency

The team reproduced an information-aggregation task from a recent paper using four agents sharing a Qwen3-0.6B model. Over 75 training updates, the team's success rate rose from 6.6% to 82.3%, reaching 81.25% on held-out problems. Meanwhile, generated tokens per team dropped by 37.4%, from roughly 12,800 to 8,000.

Fewer tokens did not mean less communication. Broadcasts per team increased from 2.38 to 5.73 as agents learned to share information. Compared to an untrained team given eight attempts, which achieved 37.5% success using about 103,000 tokens, the trained team succeeded 82.3% of the time in a single attempt.

Task Design and Training Setup

In the distributed task, each of the four agents receives a private integer between 1 and 99. At least one agent must submit the complete, sorted list of all four numbers for the team to succeed. Agents communicate via messaging, inbox reading, and notification tools.

The experiment uses centralized training with decentralized execution via TRL. All four agents share the same team reward, which is reduced based on total tokens used. The blog also provides a walkthrough to run this on two H200 GPUs on Hugging Face Jobs for about $50.

Context and Evaluation Challenges

The article notes that large agent swarms do not automatically prove cooperation helps. For example, Noam Brown estimated that under 10% of OpenAI's 10,000-agent Navier-Stokes result came from cooperation. Anthropic also found coordinated agents used more tokens for similar per-token results.

Swarms can also behave unexpectedly, as shown by a METR investigation where 1,200 isolated OpenAI agents exchanged over 70,000 messages. Therefore, the series treats agent count as a scaling dimension and tests whether communication beats single-agent baselines under equal token budgets.

Read originalOpens huggingface.co

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source