TL;DR
XRPO (eXplore-eXploit GRPO) upgrades standard Group Relative Policy Optimization by treating large language model (LLM) reasoning through a classic exploration-exploitation lens. By dynamically allocating rollout budgets based on uncertainty, seeding failed prompts with in-context examples, and rewarding novel correct paths, XRPO achieves up to 4% higher accuracy while accelerating training convergence by up to 2.7×.
What Problem Does This Paper Address?
Reinforcement Learning with Verifiable Rewards (RLVR)—where models receive rule-based, automated feedback on tasks like math and coding—has driven massive breakthroughs in LLM reasoning (e.g., DeepSeek-R1). However, dominant algorithms like GRPO suffer from two core inefficiencies:
- Under-exploration: They allocate a static, uniform number of rollouts (generations) to every prompt. This wastes compute on easy prompts the model has already mastered, while leaving difficult prompts completely stuck with zero correct answers and, consequently, zero gradient signals to learn from.
- Under-exploitation: Standard rule-based rewards are binary (0 or 1). This collapses important distinctions between different generation trajectories, treating a creative, elegant solution identically to a repetitive, fragile one. As a result, models often prematurely converge to uniform, suboptimal reasoning patterns.
Methods
XRPO restructures the training loop into a dynamic, multi-phased framework to balance exploration and exploitation effectively.
- Hierarchical Rollout Planning (HRP): Instead of generating a fixed number of responses per prompt, XRPO uses a phased allocation strategy. It samples a baseline set of rollouts, estimates reward uncertainty using Student's t-confidence intervals, and dynamically shifts the remaining rollout budget toward prompts with the highest potential for uncertainty reduction.
- In-Context Learning (ICL) Seeding: To break the "zero-reward symmetry" of systematically failed prompts, XRPO maintains an evolving internal corpus of successful problem-solution pairs generated during training. If a prompt fails all initial rollouts, XRPO retrieves similar successful examples and injects them as few-shot exemplars, steering the model toward valid reasoning trajectories.
- Novelty-Guided Advantage Sharpening: To maximize trajectory signals, XRPO calculates a sequence-level novelty score based on length-normalized log-likelihood. Correct answers that are atypical or rare under the model's current distribution receive an entropy-inspired bonus, expanding the model's decision boundaries and preventing output homogenization.
Datasets
The authors evaluated XRPO on several competitive math reasoning and code generation benchmarks:
- Math: AIME 2024/2025, HMMT 2025 (Feb), BRUMO 2025, MATH, and GSM8K.
- Coding: Codeforces and LiveCodeBench v5.
- Training Data: Practical 10K subsets sampled from the DAPO-Math-17k dataset and the DeepCoder-Preview-Dataset.
Key Insights and Ideas
- Breaking Stagnation via Self-Seeding: Hard prompts often act as persistent bottlenecks because the model cannot stumble into a correct answer by chance. ICL seeding acts as an automated bridge, transferring successful reasoning patterns across related problems without requiring external teacher models or human annotation.
- Shorter, More Efficient Reasoning Chains: Interestingly, XRPO naturally incentivizes more concise reasoning. Because successful solutions must fit within context windows, the framework implicitly favors targeted reasoning paths, reducing average generation lengths by up to 34.7% for Qwen3 models.
- Value in the Atypical: Rewarding correct but low-probability paths prevents the policy from collapsing into a single rigid solution style. This "advantage sharpening" pushes the model's capabilities outward, improving generalization on edge cases.
Key Results
- Accuracy & Consistency Boosts: XRPO consistently outperformed strong baselines like GRPO and GSPO. On Qwen2.5-7B-Instruct, it delivered a relative improvement of +9.2% in
pass@4and +20% in majority-vote consistency (cons@32). - Faster Convergence: XRPO achieved a 2.4× speedup on GSM8K (reaching 82.5% accuracy in 420 steps vs. ~1K steps for GRPO) and a 2.7× speedup on MATH-500.
- Negligible Training Overhead: Despite the dynamic allocation rounds and semantic retrieval loops, XRPO introduces only a ~4.7% per-step latency overhead compared to vanilla GRPO, making it highly practical for real-world training pipelines.
Limitations and Future Work
While highly effective, the authors note a few limitations:
- Scale: Due to resource constraints, XRPO has not yet been validated on ultra-large-scale models (e.g., 300B+ parameters).
- Domain Scope: The evaluation focused strictly on structured math and coding tasks where verifiable reward functions are readily available.
- Corpus Bootstrapping: The ICL corpus relies entirely on the model's own successful rollouts. Augmenting this loop with high-quality, teacher-generated responses from stronger models could further extend the model's exploration frontier.
Summary updated