P^2O: Joint Policy and Prompt Optimization
Xinyu Lu, Kaiqi Zhang, Jinglin Yang, Boxi Cao, Yaojie Lu, Hongyu Lin et al. · 2026 · 6 citationsRead the paper
All 9 authors
Reinforcement Learning with Verifiable Rewards (RLVR) enhances Large Language Model (LLM) reasoning but is suffer from advantage collapse: when all rollouts of a query receive identical rewards, the group variance vanishes, most damagingly on hard samples, where scaling rollout budgets yields little. We introduce Joint Policy and Prompt Optimization (P O) to mitigate this collapse by alternating continuous policy updates with discrete prompt evolution. P O mines hard samples with a success-rate threshold, evolves reasoning prompts for them with GEPA, and internalizes the elicited trajectories via context distillation, which optimizes each trajectory under the original query and thus removes inference-time prompting, with a Context Ratio Mask (CRM) filtering out extreme likelihood ratios. P O restores critical advantage signals and surpasses the GRPO baseline by up to 8.2 points in average accuracy on six held-out benchmarks across all training datasets and backbones, while also outperforming DAPO and other baselines. The gains are especially pronounced on hard benchmarks, reaching up to 16.3 points above GRPO on average across AIME24 and AIME25. Our findings expose the limits of standard exploration in sparse-reward environments, illuminating the potential of unifying evolutionary algorithms with reinforcement learning. This integration of discrete semantic search and continuous parameter updates provides a self-reinforcing framework that facilitates more effective LLM alignment.
What the full text shows
Working prototype- P2O surpasses GRPO baseline in average accuracy across six held-out benchmarks. — up to 8.2 points higher (across all training datasets and backbones)
- P2O shows significant gains on hard benchmarks (AIME24 and AIME25) compared to GRPO. — up to 16.3 points higher on average (AIME24 and AIME25 benchmarks)
- Removing the Context Ratio Mask (CRM) leads to performance degradation on larger models. — 2.4–3.4 points loss (Qwen3-8B backbone)
- Removing CRM specifically impacts the hardest benchmarks for Qwen3-8B. — AIME24 drop of 4.2–8.6 points; AIME25 drop of 2.3–7.1 points (Qwen3-8B backbone)
- Setup
- Qwen3-4B and Qwen3-8B backbones trained on subsets of DeepScaler and DeepMath (N=5,000 and N=10,000) for 10 epochs with a binary reward (0, 1).
- How
- P2O alternates continuous policy updates (GRPO) with discrete prompt evolution (GEPA) for hard samples identified by a success-rate threshold. It uses context distillation with a Context Ratio Mask (CRM) to internalize prompt-elicited trajectories into the model parameters, removing the need for inference-time prompting.
- Limitations
- The benefit of the Context Ratio Mask is less pronounced or mixed on smaller models (Qwen3-4B). · Performance depends on the selection of the likelihood ratio interval [α, β].
Summarized by Gemma 4 from the open-access full text · 8 Nov 2026. Read it