TL;DR
Training a team of specialized Large Language Models (LLMs) to collaborate via reinforcement learning often goes off the rails because standard algorithms grade every agent against a single, shared curve—causing violent gradient spikes. Dr. MAS fixes this both mathematically and practically: it calibrates reward baselines for each individual agent to keep training smooth, and pairs this with a clever GPU-sharing system that makes co-training multiple distinct LLMs fast and affordable.
What Problem Does This Paper Address?
One LLM is smart, but a team of LLMs—where one plans, one searches the web, and another verifies the final answer—can tackle far messier, long-horizon problems. Recently, Reinforcement Learning (RL) has become the secret sauce for sharpening an LLM’s reasoning. Specifically, algorithms like Group Relative Policy Optimization (GRPO) have gained popularity because they ditch expensive "critic" models; instead, they sample a group of answers for a prompt and normalize the rewards using the group's overall mean and standard deviation.
Here’s the catch: when you apply vanilla GRPO to a Multi-Agent System (MAS), things get unstable fast. Different agents do different jobs at different frequencies. For example, a "search" agent might only get called when a problem is unusually hard (and prone to failure), meaning its local experience of rewards looks completely different from an "answer" agent's. Judging everyone against one global average introduces a mathematical mismatch that inflates gradient norms, triggering sudden, destructive update spikes.
On top of the math problem, there is a systems problem. Most modern RL frameworks are built around training a single LLM actor. If you want to co-train three different models (say, a 7B planner and two 3B workers), existing pipelines either don't support it natively or wastefully lock up separate GPU pools for models sitting idle waiting for their turn to speak.
Methods
Dr. MAS tackles multi-agent RL post-training on two fronts:
- Algorithmic (Agent-Wise Normalization): Instead of normalizing trajectory rewards using a single global mean ($\mu$) and standard deviation ($\sigma$) as in standard GRPO, Dr. MAS computes $(\mu_k, \sigma_k)$ exclusively over the active steps of agent $k$. Because these statistics are action-weighted—if an agent acts three times in a winning trajectory, that reward counts three times toward its stats—the dominant gradient-inflation term cancels out to 1. Every agent gets updates calibrated to its own reality.
- Systemic (Unified Multi-LLM Framework): Rather than giving each LLM its own dedicated island of GPUs, Dr. MAS places all worker groups into a shared GPU pool scheduled via Ray and served by SGLang. It uses lifecycle-aware management (
resume()andoffload()): active agents load their weights and KV caches onto the GPUs on demand, while inactive agents release memory. It also supports flexible orchestration (sharing one LLM across roles or assigning distinct models) and per-agent hyperparameters (like custom learning rates per role).
Datasets
The authors do not introduce new benchmarks, instead evaluating on established reasoning and question-answering suites:
- Mathematical Reasoning: Trained on the DAPO-Math corpus. Evaluated on AIME’24, AIME’25, AMC’23, MATH500, Minerva, and OlympiadBench.
- Multi-Turn Search QA: Trained on a mixture of NQ (Natural Questions) and HotpotQA using E5 as the retriever. Evaluated on single-hop (NQ, TriviaQA, PopQA) and multi-hop (HotpotQA, 2WikiMultiHopQA, MuSiQue, Bamboogle) benchmarks.
Key Insights and Ideas
- Global baselines cause "behavioral collapse": In a non-shared Qwen2.5-7B search setup, vanilla GRPO’s gradient spikes were so severe for the search agent that the system learned to stop calling the search tool altogether, tanking performance. Stabilizing the gradient norm isn't just cosmetic—it preserves multi-agent cooperation.
- Spread matters more than shift: In ablations, switching to a per-agent standard deviation ($\sigma_k$) gave a bigger boost than switching to a per-agent mean ($\mu_k$), suggesting specialized agents differ more in the variance of their outcomes than their average score. Combining both works best.
- Big brains at the top, small brains at the bottom: Because Dr. MAS handles heterogeneous models smoothly, you don't need giant models everywhere. Pairing a 7B model as a high-level verifier with lightweight 3B models for search and synthesis matched an all-7B team's accuracy while slashing latency and cost.
Key Results
- Math Reasoning (2-agent Solver/Verifier loop with Qwen3-4B/8B): Dr. MAS beats vanilla GRPO across both shared and non-shared LLM setups, yielding overall relative gains of +5.6% in avg@16 and +4.6% in pass@16. On hard benchmarks like AIME’24 (Qwen3-8B shared), scores jumped from 42.7% avg@16 to 54.8% (and pass@16 from 66.7% to 80.0%).
- Multi-Turn Search (3-agent Verifier/Search/Answer hierarchy with Qwen2.5-3B/7B): Achieved overall relative improvements of +15.2% avg@16 and +13.1% pass@16 over GRPO. Most dramatically, it rescued the collapsed non-shared 7B setup from 28.0% avg@16 back up to 43.8%.
- Heterogeneous Efficiency: Replacing 7B search and answer agents with Llama-3.2-3B-Instruct (keeping a Qwen2.5-7B verifier) maintained virtually identical accuracy (42.0% vs. 42.5% avg@16) while cutting latency by 31.6% and estimated API inference costs by 41.8%.
Limitations and Future Work
Dr. MAS stabilizes gradient scales, full stop—it does not solve credit assignment. Every active agent in a trajectory still receives the same final outcome reward $R^i$, meaning if one agent blunders and another heroically saves the day, the system still can't tell who deserves the praise. Additionally, the authors note their tests were limited to two representative workflows (2-agent math, 3-agent search) and medium-sized open-source models (3B–8B); scaling to massive models and more complex agentic graphs remains an open frontier.
Summary updated