TL;DR
Multi-Agent Systems (MAS) excel at complex tasks but suffer from massive communication overhead and rigid prompt engineering. Chain-of-Agents (CoA) distills full multi-agent collaboration into a single end-to-end Large Language Model, enabling dynamic role-playing and multi-tool orchestration within a single decoding process. The resulting Chain of Agents Models (COAMs) reduce token consumption by 84.6% compared to conventional MAS while establishing state-of-the-art results across deep search, math, and coding benchmarks.
What Problem Does This Paper Address?
Traditional multi-agent frameworks divide labor across multiple specialized LLM agents coordinated by prompt-based workflows. While capable, this setup exhibits critical flaws:
- Coordination Overhead: Massive token costs and latency incurred by verbose inter-agent chatter and fragmented state representations.
- Brittle Engineering: System behavior depends heavily on prompt and workflow engineering rather than trainable, data-driven optimization.
- Rigid Tool Use: Standard Tool-Integrated Reasoning (TIR) methods adhere to simple "think–act–observe" loops that fail to capture the flexible planning, critique, and multi-tool dynamics of true multi-agent teams.
The authors ask: Can we compress the collaborative intelligence of a multi-agent system into the weights of a single, end-to-end model?
Methods
The authors introduce the Chain-of-Agents (CoA) framework, combining distillation and reinforcement learning:
- Unified Agent Roles: Rather than coordinating distinct LLM instances, one model sequentially assumes internal role-playing personas (Thinking, Plan, Reflection, Verification) alongside tool-execution personas (Wiki Search, Web Search, Crawler, Code Generator) inside unified reasoning trajectories.
- Agentic Supervised Fine-Tuning (SFT):
- Distillation: Captures execution traces from state-of-the-art multi-agent platforms (e.g., OAgents) and reformats them into structured, tag-delimited trajectories (
<plan>,<think>,<tools>,<observation>,<reflection>,<answer>). - Progressive Quality Filtering: Employs a four-stage pipeline: (1) filtering short/trivial trajectories, (2) validating accuracy via unit tests/LLM judges, (3) enriching with reflection signals, and (4) upsampling self-correction traces.
- Observation Masking: Masks tool output tokens during loss computation to focus learning on the model's reasoning rather than environment noise.
- Agentic Reinforcement Learning (RL):
- Applies policy optimization using the DAPO algorithm on verifiable tasks.
- Employs an accuracy–format joint reward: $R(\tau) = \text{score}_{\text{answer}} \times \text{score}_{\text{format}}$ to encourage correct answers and valid tool formatting.
- Filters out trivially simple and unsolvable problems to maintain balanced training entropy.
Datasets
- Training Data:
- Multi-Hop QA: Natural Questions (NQ) and HotpotQA.
- Deep Search: Tailored generated and filtered search queries (7.6k SFT instances; 10.4k RL instances).
- Math & Code: Curated traces from LiveCodeBench (v1–v3), CodeForces, Sky-Code, ReTool, Sky-Math, and DAPO datasets (59.9k SFT instances; 47.5k RL instances).
- Evaluation Benchmarks:
- Deep Search & Web Navigation: GAIA (103 text-only validation samples), BrowseComp (1,266 tasks), Humanity's Last Exam (HLE, 500 text-only samples), and WebWalker.
- Math Reasoning: AIME 2024, AIME 2025, MATH500, AMC23, and OlympiadBench.
- Code Generation: LiveCodeBench (v4–v5) and CodeContests.
- Multi-Hop QA: NQ, TriviaQA, PopQA, HotpotQA, 2WikiMultiHop, MuSiQue, and Bamboogle.
Key Insights and Ideas
- Distillation Beats Pure Prompting: While adding CoA-style instructions to off-the-shelf models helps, the primary performance boost comes from distilling multi-agent trajectories into the model weights.
- Severe Reduction in Cost: By collapsing multi-turn inter-agent discussions into a continuous reasoning stream within a single context, COAM reduces overall token usage by 84.6% compared to traditional multi-agent systems like OAgents.
- Cross-Capability Transfer: A Math COAM trained exclusively on math and code execution successfully learned to invoke unfamiliar multimodal and search tools (like image inspectors) in zero-shot settings when prompted. Conversely, search agents trained without strict syntax constraints struggled to follow character-exact code formatting on unseen tools.
Key Results
- Deep Search: Based on a 32B backbone (Qwen-2.5-32B), COAM-RL sets new records:
- GAIA: Reaches 60.2% average accuracy (surpassing WebSailor at 53.2% and WebShaper at 52.4%, both of which used the stronger QwQ-32B base).
- BrowseComp & HLE: Achieves 15.5% and 21.0% respectively, outperforming GPT-4.1-based agent baselines.
- Mathematical Reasoning:
- COAM-RL (32B) achieves 59.8% on AIME 2025, an absolute improvement of 10.5% over leading TIR approaches like ReTool (49.3%) and SimpleTIR (49.2%).
- Reaches 78.0% average across mathematical benchmarks, surpassing ReTool-32B (74.4%).
- Efficiency: Substantially fewer tool calls and lowest token overhead per solved problem compared to OAgents and WebThinker.
Limitations and Future Work
- Domain Specialization Asymmetry: Deep Search models fail to generalize to tools demanding character-level formatting precision (like Python sandboxes) without dedicated code-format training.
- Verifiable RL Constraints: The RL stage relies on verifiable rewards (code execution or exact matches); extending agentic RL to non-verifiable, open-ended environments remains reliant on noisy LLM judges.
- Context Scaling: Long-horizon rollouts require large sequence lengths (up to 32k tokens), necessitating further investigation into test-time compute scaling and memory compaction.
Summary updated