TL;DR
Training reasoning LLMs via reinforcement learning is notoriously bottlenecked by the compute cost of generating and verifying candidate answers. Instead of training your fleet of small, large, and architecturally distinct models in isolated silos, this paper shows how they can pool their verified answers during training to mutually level up—and still run completely solo at deployment. The result is an average 3.6% boost in reasoning accuracy using half the sampling compute.
What Problem Does This Paper Address?
When training reasoning models using Reinforcement Learning with Verifiable Rewards (RLVR)—where automated unit tests or math verifiers check answers—most of your compute budget burns up just generating candidate responses ("rollouts") and checking them.
Meanwhile, real-world AI platforms rarely deploy just one model. They maintain a heterogeneous portfolio: maybe a lightweight Llama model for low-latency queries, a mid-sized Qwen model for heavy lifting, and specialized variants for specific hardware. Traditionally, if you want all of them to get better at math, each model generates, verifies, and learns from its own rollouts in complete isolation.
Why not share those expensive, verified answers across the fleet? Existing paradigms don't quite fit: Multi-Agent RL (MARL) assumes models will collaborate at inference time (requiring complex coupled deployments), while Knowledge Distillation is strictly a one-way street from a frozen teacher to a student. The authors formalize Heterogeneous Agent Collaborative RL (HACRL): getting distinct models (different training states, parameter sizes, or entire model families) to learn bidirectionally from a shared pool of rollouts during training, while keeping them 100% independent at inference time.
Methods
Naively dumping a 4B Qwen model's rollouts into a 3B Llama model's training loop causes chaos—in fact, the authors show it actively degrades performance below baseline. Because the models have different skill levels and probability distributions, standard RL advantage estimates and policy updates go haywire.
To fix this, the authors build on Group Sequence Policy Optimization (GSPO, a critic-free RL algorithm that uses sequence-level importance sampling) to propose HACPO, introducing four stabilization mechanisms:
- Agent-Capability-Aware Advantage Estimation: In standard group-based RL, a response is judged against the group's average reward. If a weak model is pooled with a strong one, the sky-high group average makes the weak model's decent attempts look terrible. HACPO dynamically tracks a capability ratio between agents on each batch, rescaling cross-agent rewards so every model's baseline is calibrated to its own true skill level.
- Model Capabilities Discrepancy Coefficient: It reuses that same capability ratio to modulate gradient updates—amplifying the learning signal when an agent studies a stronger peer's rollout, and dampening it when looking at a weaker peer's work to avoid absorbing noise.
- Exponential Importance Sampling: To share rollouts across models with incompatible tokenizers (like Qwen and Llama), HACPO detokenizes the text, retokenizes it for the learner, and normalizes probabilities by sequence length. Because cross-model distributions differ wildly, it applies a stop-gradient exponential penalty to down-weight bizarrely out-of-distribution rollouts.
- Stepwise Clipping: Cross-agent importance ratios naturally sit well below 1.0 and fluctuate erratically across batch updates. HACPO uses asymmetric clipping bounds (e.g.,
[0.8, 1.0]) that progressively tighten with each mini-batch update within a step, preventing foreign rollouts from hijacking later updates.
Datasets
- Training: 7,500 high-quality math problems from the MATH dataset.
- Evaluation: Seven mathematical reasoning benchmarks: MATH-500, MATH, GSM8K, AIME2025, AMC23, Minerva, and OlympiadBench. No new benchmarks were introduced.
Key Insights and Ideas
- Strong models actually learn from weaker ones: You might expect collaboration between a 1.7B and a 4B model to be charity work. Surprisingly, both improve more together than alone. Rollout analysis on the 1.7B/4B pair revealed that the weaker 1.7B model acts as an unconventional explorer, achieving a higher sampled success rate on 8.4% (627/7,424) of problems and providing informative failure modes the 4B model never generates on its own.
- Tokenizer mismatches aren't a dealbreaker: Translating rollouts via raw text detokenization/retokenization works seamlessly when paired with sequence-level length normalization. On MATH reasoning traces (~700 tokens), Qwen and Llama tokenizers differed in length by only 4%.
- Joint evolution beats "train-then-distill": Training a 4B and 1.7B pair jointly with HACPO outperformed training the 4B model first and distilling it into the 1.7B model (by +2.6 and +3.3 percentage points, respectively), while cutting total wall-clock training time by 14.2%.
Key Results
Across two-agent pairings spanning heterogeneous states (Qwen3-4B vs. 4B-Instruct), sizes (Qwen3-1.7B vs. 4B), and families (Qwen3-4B vs. Llama3.2-3B), HACPO beat all isolated baselines—including GSPO×2, which was given double the rollout budget per agent.
- Efficiency & Accuracy: Across the seven math benchmarks, HACPO outperformed GSPO×2 by an average of +3.6% while incurring half the rollout cost. For instance, in the cross-family pairing, Llama3.2-3B jumped from 33.4% (GSPO×2) to 39.0% average accuracy, while its Qwen3-4B partner rose from 57.5% to 59.7%.
- Three-Family Scaling: When jointly training three distinct architectures simultaneously—Qwen3-1.7B-Base, Llama3.2-1B-Instruct, and Gemma3-1B-Instruct—HACPO beat a triple-budget isolated baseline (GSPO×3) across the board by +1.6, +1.8, and +1.9 percentage points, respectively.
Limitations and Future Work
While HACPO's math supports any number of agents ($n \ge 3$), experiments were capped at two- and three-agent setups due to GPU memory constraints and heavy engineering bottlenecks within the underlying verl RL training framework. Future work aims to re-architect this systems infrastructure to test how collaborative learning scales across massive, multi-agent ecosystems.
Summary updated