Abstract
Recent advances in large language models (LLMs) and multi-agent systems have demonstrated remarkable capabilities in complex problem-solving tasks such as deep research, vibe coding, and mathematical reasoning. However, most existing multi-agent systems are built upon manual prompt/workflow engineering with sophisticated agent frameworks, making them computationally inefficient, less capable, and can not benefit from data-centric learning. In this work, we introduce Chain-of-Agents (CoA), a novel paradigm of LLM reasoning that enables native end-to-end complex problem-solving in the same way as a multi-agent system (i.e., multi-turn problem solving with multiple tools and multiple agents) within one model. In chain-of-agents problem-solving, the model dynamically activates different tool agents and role-playing agents to simulate multi-agent collaboration in an end-to-end fashion. To elicit end-to-end chain-of-agents problem-solving abilities in LLMs, we introduce a multi-agent distillation framework to distill state-of-the-art multi-agent systems into chain-of-agents trajectories for agentic supervised fine-tuning. We then use agentic reinforcement learning on verifiable agentic tasks to further improve the models' capabilities on chain-of-agents problem solving. We call the resulting models Agent Foundation Models (AFMs). Our empirical studies demonstrate that AFM establishes new state-of-the-art performance across diverse benchmarks in both web agent and code agent settings. We make the entire research, including the model weights, code for training and evaluation, and the training data, fully open-sourced, which offers a solid starting point for future research on agent models and agentic RL.
Introduction: Addressing the Agentic Tax
While multi-agent systems (MAS) have shown great promise in solving complex tasks, they currently suffer from significant overheads, which the authors categorize as three types of "tax":
- Computational Tax: High latency and token overhead due to constant communication between separate LLM calls.
- Engineering Tax: Reliance on brittle, manual prompt engineering and rigid workflow architectures that are difficult to port across domains.
- Learning Tax: Static backbone models that cannot easily improve through data-centric learning within the agentic framework.
To overcome these limitations, this research proposes the Chain-of-Agents (CoA) paradigm, moving away from multi-model frameworks toward a single, natively agentic Agent Foundation Model (AFM).
Methodology: The Chain-of-Agents Paradigm
The authors bridge the gap between single-model efficiency and multi-agent capability through a three-stage pipeline:
- Chain-of-Agents (CoA) Paradigm: The model is trained to dynamically activate internal "roles"—such as a Thinking Agent for orchestration, a Plan Agent for decomposition, and Reflection/Verification Agents for self-critique and correctness checking.
- Multi-Agent Distillation: Successful trajectories from state-of-the-art multi-agent systems (OAgents) are recorded and reformatted into single-model trajectories for Supervised Fine-Tuning (SFT). This allows the model to learn internal collaboration patterns.
- Agentic Reinforcement Learning (RL): Post-SFT, the model is refined using Decoupled Clip and Dynamic Sampling Policy Optimization (DAPO). Rewards are based on unit tests for code/math and "LLM-as-a-Judge" for open-ended web tasks.
Experimental Setup and Benchmarks
The models were evaluated across a diverse set of benchmarks to test general reasoning, web navigation, and high-level mathematics:
- GAIA: General assistant tasks.
- BrowseComp: Web navigation and search.
- HLE: Frontier human knowledge.
- AIME25: High-level competitive mathematics.
Results and Performance Analysis
The resulting Agent Foundation Models (AFMs) set new records for their size, particularly the 32B variant. On the GAIA benchmark, AFM achieved 55.3%, outperforming specialized web agents like WebSailor. In mathematical reasoning, it reached a 59.8% solve rate on AIME25, representing a 10.5% absolute improvement over previous best-performing tool-integrated models.
Beyond raw performance, the AFM approach offers a massive efficiency gain, reducing token consumption by 84.6% compared to traditional multi-agent systems by eliminating redundant inter-agent communication. The model also demonstrated impressive zero-shot tool generalization, where a code-trained agent successfully utilized web search tools it had never encountered during training.
Conclusion
Chain-of-Agents represents a shift from "prompt-engineered" frameworks to "natively agentic" foundation models. By internalizing multi-agent collaborative behaviors, AFMs achieve superior performance with significantly lower computational costs. The open-sourcing of model weights and training data provides a foundation for future research into end-to-end agentic reasoning and RL scaling laws.
Summary updated