TL;DR
Reinforcement Learning with Verifiable Rewards (RLVR) is highly effective for training reasoning LLMs, but it is bottlenecked by the massive computational cost of on-policy sampling and verification. This paper introduces HACPO, a collaborative framework where heterogeneous models (differing in size, architecture, or tuning) share their training rollouts to mutually accelerate learning. By enabling bidirectional knowledge transfer during training, HACPO beats strong single-model baselines by an average of 3.6% while cutting rollout costs in half.
What Problem Does This Paper Address?
When training Large Language Models (LLMs) to tackle complex reasoning tasks like mathematics or coding, researchers increasingly rely on Reinforcement Learning with Verifiable Rewards (RLVR). Algorithms like GRPO and GSPO use automated feedback (such as unit tests or compiler checks) to guide the model. However, generating and verifying thousands of candidate responses on the fly is incredibly expensive.
Compounding this inefficiency, AI labs often train multiple models—varying in parameter size or optimization states—completely in isolation on the exact same tasks. Each model repeatedly generates its own trajectories, throwing away intermediate data that could be highly informative to a peer model.
The authors address this wastefulness by formalizing Heterogeneous Agent Collaborative Reinforcement Learning (HACRL). The goal is simple: allow diverse models to share rollouts during training to boost sample efficiency and performance, while ensuring they remain completely independent and autonomous at inference time.
Methods
To realize the HACRL framework, the authors propose Heterogeneous Agent Collaborative Policy Optimization (HACPO). Merging rollouts from different models introduces severe capability discrepancies and policy distribution shifts. HACPO introduces four tailored mechanisms to stabilize this co-learning process:
- Agent-Capability-Aware Advantage Estimation: Naively mixing rewards from strong and weak models skews the advantage baseline. HACPO dynamically reweights rewards from peer models based on their relative batch-level performance, ensuring an unbiased advantage estimator.
- Model Capabilities Discrepancy Coefficient: This acts as a gradient modulator. It amplifies learning signals when a model samples a trajectory from a stronger peer, and attenuates updates when learning from a weaker peer to mitigate noise.
- Exponential Importance Sampling: To correct for distribution mismatches across different models, HACPO uses sequence-level importance sampling. For models with different tokenizers (e.g., Qwen vs. Llama), responses are detokenized to raw text and retokenized. An exponential penalty suppresses overly aggressive updates from large distribution shifts.
- Stepwise Clipping: Cross-agent importance sampling ratios behave unpredictably compared to on-policy ratios. HACPO applies asymmetric clipping bounds that gradually tighten within each training batch to prevent peer data from destabilizing later parameter updates.
Datasets
- Training: The models were trained using 7.5k high-quality mathematical problems from the MATH dataset.
- Evaluation: The authors evaluated the framework across seven rigorous reasoning benchmarks: MATH-500, MATH (full test set), GSM8K, AIME2025, AMC23, Minerva, and OlympiadHe.
Key Insights and Ideas
- Bidirectional Peer Learning: Traditional Knowledge Distillation is a one-way street where a smaller student mimics a frozen, larger teacher. HACPO treats models as peer co-learners. Surprisingly, even weaker models generate unique exploration trajectories and informative errors that help stronger models break through performance bottlenecks.
- Independent Execution: Unlike traditional Multi-Agent RL (MARL), which requires models to coordinate and communicate during deployment, HACPO agents only interact during training. At inference time, you deploy a single, fully autonomous model.
- Cross-Family Compatibility: The framework successfully bridges models from entirely different families (e.g., Qwen3-4B-Base paired with Llama3.2-3B-Instruct), proving that verified reasoning steps can transcend architectural and tokenizer differences.
Key Results
HACPO was tested across three types of heterogeneity: state (base vs. instruct), size (1.7B vs. 4B parameters), and model family (Qwen vs. Llama).
- Superior Efficiency: HACPO consistently outperformed the data-equivalent baseline (GSPO×2)—which uses double the rollout data and identical policy updates—by an average of 3.6% across all benchmarks.
- Mutual Improvement: In the heterogeneous size setting (Qwen3-1.7B-Base and Qwen3-4B-Base), the 1.7B model saw an average accuracy boost of 2.8%, while the larger 4B model simultaneously improved by 2.6% compared to standard GSPO.
Limitations and Future Work
While the mathematical formulation of HACPO inherently supports scaling to an arbitrary number of agents ($n \ge 3$), the empirical evaluations in this paper were restricted to two-agent pairs. The authors note that scaling up is currently bottlenecked by prohibitive computational resource requirements and infrastructure limitations within the underlying verl RL framework. Future work will focus on optimizing these engineering bottlenecks to scale collaborative optimization to larger ecosystems of multiple co-learning models.
Summary updated