Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems
Hugging Face published a reproducible recipe and code showing a trained four-agent LLM team can beat an untrained one at 13x lower token cost, though the key question, whether communication beats extra compute, remains untested.
Hugging Face published the first part of a tutorial series on multi-agent systems, where several AI programs work together as a 'swarm'. It walks through training four agents sharing one small model, Qwen3-0.6B, to exchange messages so they can sort numbers none of them could order alone. Training lifted success from 6.6% to 82.3% and cut token use by 37.4%. Anyone can rerun the example on Hugging Face Jobs for roughly $50.
Hugging Face's tutorial series trains multi-agent teams using TRL and a shared Qwen3-0.6B policy, with a working example costing about $50 on two H200 GPUs. It stresses a critical caveat: evidence that agent swarms help is weak, OpenAI's 10,000-agent Navier-Stokes result got under 10% of its value from cooperation per Noam Brown, and Anthropic's vulnerability experiment found coordinated agents only matched independent ones per million tokens. Teams evaluating multi-agent investments should demand matched-budget comparisons.
The post reproduces the s³ cooperative multi-agent RL setup: four agents share one Qwen3-0.6B policy trained with async GRPO in TRL, each solving a number-aggregation task via message(to, text), read_messages(), and check_notifications() tools. Team reward decays with generated tokens (reward = success × (1 − 0.25 × min(1, team tokens/36,864))); eight attempts per problem are normalized for advantage. Over 75 updates success rose 6.6%→82.3%, tokens per team fell 13k→8k (37.4%), broadcasts rose 2.38→5.73. The paper hit 93.2% at 200 updates. Limitation: the task is unsolvable by one agent, so the central matched-budget question is deferred to a later post.