Abstract
Multi-agent LLM systems enable advanced reasoning and tool use via role specialization, yet reliable reinforcement learning (RL) post-training for such systems remains difficult. In this work, we theoretically pinpoint a key reason for training instability when extending group-based RL to multi-agent LLM systems. We show that under GRPO-style optimization, a global normalization baseline may deviate from diverse agents' reward distributions, which ultimately leads to gradient-norm instability. Based on this finding, we propose Dr. MAS, a simple and stable RL training recipe for multi-agent LLM systems. Dr. MAS uses an agent-wise remedy: normalizing advantages per agent using each agent's own reward statistics, which calibrates gradient scales and dramatically stabilizes training, both theoretically and empirically. Beyond the algorithm, Dr. MAS provides an end-to-end RL training framework for multi-agent LLM systems, supporting scalable orchestration, flexible per-agent LLM serving and optimization configs, and shared resource scheduling of LLM actor backends. We evaluate Dr. MAS on multi-agent math reasoning and multi-turn search benchmarks using Qwen2.5 and Qwen3 series models. Dr. MAS achieves clear gains over vanilla GRPO (e.g., +5.6% avg@16 and +4.6% pass@16 on math, and +15.2% avg@16 and +13.1% pass@16 on search) while largely eliminating gradient spikes. Moreover, it remains highly effective under heterogeneous agent-model assignments while improving efficiency.
The Challenge: Why Multi-Agent RL Fails with Global Baselines
As we move from single LLMs to Multi-Agent Systems (MAS) for complex reasoning and tool use, post-training these systems with Reinforcement Learning (RL) has become a major challenge. The current gold standard for LLM post-training is Group Relative Policy Optimization (GRPO). GRPO samples multiple outputs for a single prompt and normalizes their rewards against a group mean and variance to calculate "advantages."
While this works for single agents, it breaks down in a multi-agent setting where different agents play specialized roles (e.g., a "Solver" vs. a "Verifier"). These roles naturally produce divergent reward distributions. Using a single global normalization baseline for the entire team causes agents whose rewards deviate from the global average to suffer from "gradient-norm inflation." This leads to massive gradient spikes, training instability, and frequent "NaN" (Not a Number) crashes.
The Dr. MAS Solution: Agent-Wise Normalization
Dr. MAS introduces an algorithmic remedy to stabilize the "team" by shifting the perspective from global performance to agent-specific contributions:
- Agent-Wise Normalization: Instead of one global $(\mu, \sigma)$, Dr. MAS calculates reward statistics $(\mu_k, \sigma_k)$ specifically for each agent $k$ based only on the steps where that agent was active. This ensures that each agent's gradient updates are well-conditioned and stay within a comparable range, eliminating the systematic failure of global normalization.
- Theoretical Foundation: Mathematical analysis confirms that global normalization in a heterogeneous MAS environment acts as a dominant scaling factor that can drive the second moment of the gradient to infinity. Agent-wise calibration provides the necessary stability.
System Framework and Architecture
Beyond the algorithm, Dr. MAS provides a robust end-to-end system designed for the complexities of multi-agent orchestration:
- Scalable Orchestration: Manages complex agent workflows, including loops and hierarchies.
- Flexible Assignment: Maps logical agents to physical LLM worker groups, allowing for "model sharing" or "heterogeneous" setups where different models (e.g., a 7B model and a 3B model) work together.
- Resource Pooling: Utilizes
sglangand Ray to efficiently schedule multiple concurrent LLMs on shared GPU nodes, optimizing throughput and latency.
Empirical Evaluation
The researchers evaluated Dr. MAS across two primary domains using Qwen2.5, Qwen3, and Llama-3.2 models:
- Math Reasoning: A two-agent "Solver-Verifier" loop tested on benchmarks like AIME ’24/’25 and MATH500.
- Multi-Turn Search: A three-agent "Verifier-Search-Answer" hierarchy tested on NQ, TriviaQA, and HotpotQA.
Key Results
- Performance Boost: Dr. MAS achieved an average increase of +5.6% in math reasoning and +15.2% in multi-turn search tasks compared to vanilla GRPO.
- Stability: While vanilla GRPO's gradient norms spiked to over 80 (leading to failure), Dr. MAS maintained smooth, low gradients throughout training.
- Efficiency via Heterogeneity: The framework allows for heterogeneous teams (e.g., a 7B Verifier guiding 3B Searcher agents). This setup maintained the performance of an all-7B system while reducing latency by 31.6% and API costs by 41.8%.
Conclusion and Future Work
Dr. MAS demonstrates that gradient spikes in multi-agent RL are a systematic issue solvable through proper reward calibration. By ensuring each agent is evaluated relative to its own typical performance, the learning signal becomes reliable. Future work will address the "credit assignment" problem in long-turn conversations and explore the discovery of optimal orchestration patterns through the RL process itself.
Summary updated