Multi-Agent Tool-Integrated Policy Optimization

Zhanfeng Mo, Xingxuan Li, Yuntao Chen, Lidong BingarXiv 2025 · DOI

Abstract

MATPO is a reinforcement learning framework that trains a single Large Language Model (LLM) to simultaneously inhabit two roles—a high-level planner and a specialized worker—to solve complex, tool-heavy reasoning tasks. By using a novel credit assignment mechanism and role-specific prompts, it achieves an average 18.38% performance boost over single-agent baselines while significantly improving robustness to noisy tool outputs.

Introduction

Modern AI agents rely on Tool-Integrated Planning (TIP) to interact with the world via web searches, code execution, or document retrieval. However, single-agent implementations frequently encounter two critical bottlenecks: context saturation and noise interference. Massive tool outputs, such as raw HTML, can quickly overwhelm an LLM's context window, while irrelevant data can lead to "cascading reasoning errors" where the agent loses track of the original goal.

While multi-agent systems—where a planner delegates to a worker—can isolate noise within local contexts, training these systems via Reinforcement Learning (RL) has historically been difficult. The primary challenge lies in "credit assignment": determining whether a final success or failure was due to the planner's sub-task definition or the worker's execution. MATPO addresses this by introducing a principled multi-agent RL framework that optimizes both roles within a single model.

Methodology

MATPO utilizes a Multi-Agent-in-One-Model approach. Rather than deploying multiple memory-intensive LLM instances, a single model toggles between "Planner" and "Worker" roles using distinct system prompts.

Nested Rollouts and Credit Assignment

The framework extends Group Relative Policy Optimization (GRPO) to handle multi-turn interactions. It treats the entire sequence—from the planner’s sub-task creation to the worker’s tool-use and the final answer—as a unified rollout.

Nested rollout structure showing the relationship between planner actions and worker sub-task execution.

As shown in the nested rollout structure, the planner generates an action ($a_t$) which triggers a worker rollout ($\tau^t$). To prevent context overflow, the worker generates a concise summary of its findings for the planner, rather than returning raw tool data. Rewards are then normalized across a group of these full trajectories to jointly update the policy for both roles. This implementation uses asynchronous, nested rollout functions to handle the hierarchy efficiently.

Experimental Results

The model was evaluated using the Qwen3-14B-base model across three challenging benchmarks: GAIA-text (general assistant tasks), WebWalkerQA (web navigation), and FRAMES (fact-checking across multiple documents).

MATPO consistently outperformed single-agent GRPO baselines across all metrics. On GAIA-text, it achieved 42.60% accuracy compared to 32.16% for the single-agent setup. On WebWalkerQA, it reached 33.00% accuracy. The most significant gains and stability improvements were observed in the FRAMES benchmark.

Training progress on the FRAMES benchmark comparing MATPO against single-agent GRPO.

As illustrated in the training curve, MATPO maintains a steady performance advantage throughout the training process. Single-agent RL often suffers from performance drops when a single noisy tool response ruins a trajectory; MATPO's hierarchical structure filters this noise, providing a cleaner signal for the RL algorithm to learn from.

Discussion and Conclusion

A key insight from the study is that specialization can be achieved via prompting rather than parameter separation. RL reinforces the specific behaviors required by each system prompt, allowing for role-specific optimization within a single set of weights. Furthermore, the inclusion of a "user query recap" in worker prompts was found to be vital for keeping the worker aligned with the ultimate goal.

While MATPO is more token-heavy during training due to nested rollouts, it maintains the memory footprint of a single-agent setup during inference. Future work will explore scaling this approach to more specialized roles and improving the planner's ability to critically evaluate worker outputs to avoid human-centric biases in message processing.

Summary updated

BibTeX
@misc{mo2025multi,
  author = {Zhanfeng Mo and Xingxuan Li and Yuntao Chen and Lidong Bing},
  title = {{Multi-Agent Tool-Integrated Policy Optimization}},
  year = {2025},
  eprint = {2510.04678},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04678},
}
Figure