Stronger Together: On-Policy Reinforcement Learning for Collaborative LLMs

Yujie Zhao, Lanxiang Hu, Yang Wang, Minmin Hou, Hao Zhang, Ke Ding, Jishen Zhao · OpenReview

Abstract

Multi-agent systems (MAS) and reinforcement learning (RL) are widely used to enhance the agentic capabilities of large language models (LLMs). MAS improves task performance through role-based orchestration, while RL uses environmental rewards to learn stronger policies, such as GRPO-style optimization. However, applying on-policy RL to MAS remains underexplored and presents unique challenges. Algorithmically, standard GRPO grouping assumptions break down because prompts vary by role and by turn. System-wise, the training stack must support MAS-workflow rollouts and on-policy updates for both single-policy and multi-policy models. We propose AT-GRPO, which includes (i) an agent- and turn-wise grouped RL algorithm tailored to MAS and (ii) a training system that supports both single- and multi-policy regimes. Across game, planning, coding, and math tasks, AT-GRPO delivers substantial gains. On long-horizon planning, it increases accuracy from a 14.0 to 47.0 percent single-agent RL baseline to 96.0 to 99.5 percent. It also improves reasoning performance, with average gains of 3.87 to 7.62 percent on coding tasks and 9.0 to 17.93 percent on math.

Introduction

While Multi-Agent Systems (orchestrating different LLM "roles") and Reinforcement Learning (training models via rewards) are popular ways to improve LLM performance, combining them is surprisingly difficult. The core issue lies in how modern RL algorithms like Group Relative Policy Optimization (GRPO) work. GRPO calculates a "relative advantage" by comparing multiple responses to the same prompt.

In a multi-agent, multi-turn conversation, this assumption breaks down: every agent has a different role, and every turn has a different conversation history. If one simply samples full trajectories, the "groups" effectively have a size of one, making RL training unstable or ineffective. Furthermore, most existing training stacks are designed for a single model, not a team of different models that need to be updated simultaneously.

Methodology: AT-GRPO and Tree-structured Sampling

To address the instability of multi-agent RL, the researchers introduced AT-GRPO (Agent- and Turn-wise Group Relative Policy Optimization). The primary innovation is Tree-structured Sampling. Unlike traditional parallel sampling which generates independent full trajectories, Tree-structured Sampling branches out at every turn in a conversation.

Comparison of Parallel Sampling vs. Tree Sampling in the AT-GRPO framework.

As shown in the figure above, the system samples $K$ different actions from the current state $S_t$. This ensures a fair "apples-to-apples" comparison for the RL advantage calculation at every specific step of the interaction, providing a stable baseline for what constitutes a "good" versus "bad" move in context. Additionally, the framework employs Agent-wise Credit Assignment, combining a Global Team Reward with Local Rewards (e.g., a "Tester" agent receiving rewards for identifying valid bugs).

Experimental Results

The framework was evaluated across diverse domains including gaming (Sudoku, Sokoban), planning, coding (LiveCodeBench), and mathematics. The results demonstrate that joint training is mandatory; training agents in isolation provides only marginal gains compared to the co-evolved strategies enabled by AT-GRPO.

The performance gains were most dramatic in long-horizon symbolic reasoning tasks. In the Sokoban environment, accuracy jumped from approximately 9.0% with a single-agent RL baseline to 98.0% using the AT-GRPO optimized MAS. Similarly, in coding tasks like LiveCodeBench, the system provided a consistent absolute improvement over single-agent baselines.

Performance improvements of MAS+RL (AT-GRPO) over single-agent baselines on LiveCodeBench and Sokoban.

Discussion and Emergent Collaboration

A key insight from the study is that the optimal architecture is task-dependent. For coding, specialized "Coder" and "Tester" models performed best due to distinct role requirements. Conversely, for mathematics, a "Role-Sharing" policy often proved superior as reasoning and verification skills are highly transferable.

The researchers also observed emergent collaboration. In planning tasks, RL taught the "Planner" agent to stop trying to "be" the box and instead provide high-level oversight, while the "Tool" agent learned the low-level physics of navigating behind an object to push it.

Conclusion and Future Work

Stronger-MAS demonstrates that on-policy RL can significantly boost the capabilities of multi-agent LLM systems. However, limitations remain, such as the assumption of an identical state during turn-wise branching and the increased computational cost of training multiple policies. Future work will explore scaling these dynamics to larger models (70B+) and investigating more complex agent topologies, such as hierarchical teams or dynamic role assignment.

Summary updated

BibTeX
@inproceedings{zhao2026stronger,
  author = {Yujie Zhao and Lanxiang Hu and Yang Wang and Minmin Hou and Hao Zhang and Ke Ding and Jishen Zhao},
  title = {{Stronger Together: On-Policy Reinforcement Learning for Collaborative LLMs}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=IdF6JqXWzx},
}
Figure