The Research Report
Why Your AI Keeps Failing the Hardest Problems (And a New Way to Fix It)
Here is a dirty secret about training AI reasoning models. The hardest problems in the training set teach the model almost nothing.
When a model tries a tough math problem 100 times and gets zero correct answers, the reward signal collapses. The gradient vanishes. The model gets no useful feedback from that problem, so it ignores it. It learns the easy stuff and stalls on everything else.
A new paper from researchers at the Chinese Academy of Sciences changes this. P²O (Joint Policy and Prompt Optimization) is the first framework that trains the model's weights and evolves its prompts in the same loop. It turns the prompt from a static input into a dynamic training tool, then throws the prompt away so the model owns the skill.
The Hard Sample Problem
Reinforcement Learning with Verifiable Rewards (RLVR) is the standard recipe for training reasoning models. You generate answers, check them against ground truth, and update the model based on the reward. It works well when the model can stumble onto correct answers during exploration.
But some problems are too hard for random exploration. The model tries and fails. Every rollout scores zero. The advantage estimates all go to zero. The gradient disappears. The model learns nothing from that sample, no matter how informative the problem is.
This creates a vicious cycle. The model overfits to easy problems and never cracks the hard ones. The harder the benchmark, the worse the gap.
Existing fixes have problems of their own. Curriculum learning gradually introduces harder samples, but it requires expensive hand-crafted schedules. Reward shaping gives intermediate feedback, but it needs domain-specific expertise. Both are band-aids.
The P²O Insight: Prompts as Training Wheels, Not Crutches
P²O starts from a simple observation. When a model fails to solve a hard problem on its own, a good prompt can often unlock the right reasoning path. The model already has the capacity to solve the problem. It just cannot find the path from its current policy.
Think of it like this. The model is stuck at the bottom of a valley. There is a higher peak nearby, but the gradient is flat at the bottom. A well-crafted prompt acts as a bridge. It carries the model across the flat valley to a region where the gradient is informative.
But here is the catch. If you just hand the model better prompts at inference time, you create dependency. The model cannot solve the problem without the prompt. You have not taught it anything. You have given it a crutch.
P²O solves this with a technique called context distillation. The model uses the evolved prompt to generate a correct trajectory. Then it trains on that trajectory using the original input, not the augmented one. The prompt helps the model discover the right path, but the model learns to walk that path on its own.
How It Works: Two Phases, One Loop
P²O runs in an alternating cycle.
Phase 1: Policy Optimization with Context Distillation
The model trains normally on easy samples using GRPO (Group Relative Policy Optimization). For hard samples, it uses the current set of evolved prompts to generate successful trajectories. The key step is that gradients are computed on the original, unaugmented input. This forces the model to internalize the reasoning pattern. It learns the skill, not the hint.
Ablation results show this matters. Removing context distillation and training on the augmented input directly drops accuracy from 65.2% to 55.6%. That is a 10-point collapse. The model becomes dependent on the prompt and fails when the prompt is gone.
Phase 2: Evolutionary Prompt Optimization via GEPA
After the policy update, some samples are still hard. The framework identifies them and runs a genetic prompt search using GEPA (Genetic-Pareto prompt optimization). GEPA does not mutate prompts randomly. It uses a reflection LLM to analyze error traces and generate targeted mutations that address specific failure modes. It also maintains a diverse population of prompts using Pareto selection, optimizing for both accuracy and conciseness simultaneously.
The evolved prompts get assigned to remaining hard samples via a greedy set-cover strategy. This maximizes coverage of different failure modes across the dataset.
The Virtuous Cycle
As the policy improves, previously hard samples become tractable. GEPA shifts its attention to the new frontier of difficulty. The cycle continues. Prompts unlock hard samples. The model learns to solve them without prompts. The prompts evolve to target the next wave of hard problems.
The Results
The researchers tested P²O on six math reasoning benchmarks using Qwen3-4B as the backbone model.
On the DeepScaler-5K dataset, P²O reached 65.2% average accuracy. That beats the GRPO baseline by 4.7 percentage points. On DeepMath-5K, the gap was 6.9 points.
The hardest benchmarks showed the biggest gains. On AIME24, P²O improved over GRPO by 12.9 points. On AIME25, it improved by 11.7 points. These are the American Invitational Mathematics Examination problems. They are brutal. A 12-point swing on that benchmark is a big deal.
The gains also transferred to out-of-distribution benchmarks. P²O improved by 4.7% on average across unseen datasets. The model was not just memorizing. It was learning general reasoning patterns.
Why This Matters
P²O is the first method that treats prompt optimization and policy optimization as a single joint problem. Previous work optimized one or the other. Prompt engineers crafted better instructions. RL researchers tuned better training runs. Nobody connected the two.
This matters because the two optimizations are complementary. Policy gradient methods need dense reward signals to learn. Prompt evolution can create those signals for hard samples. Prompts need model feedback to know what works. Policy training provides that feedback. Put them together and you get a system that bootstraps its own improvement.
The context distillation trick is the linchpin. Without it, the model just memorizes prompts. With it, the model absorbs the reasoning skill into its weights. The prompt becomes unnecessary. The model stands on its own.
What Comes Next
The P²O paper focuses on mathematical reasoning. But the core idea extends further. Any domain where RLVR runs into sparse rewards could benefit. Code generation, scientific reasoning, multi-step planning. Wherever the model gets stuck on hard examples, evolutionary prompt search can open a path, and context distillation can make the path permanent.
The bigger picture is that the boundary between "prompting" and "training" is dissolving. P²O treats the prompt as a first-class optimization variable, not a static string. It evolves alongside the model. This points toward a future where models and their instructions co-evolve, each pushing the other forward.
The paper is from Xinyu Lu, Kaiqi Zhang, Jinglin Yang, Boxi Cao, Yaojie Lu, Hongyu Lin, Min He, Xianpei Han, and Le Sun at the Chinese Academy of Sciences. It was presented at ICML 2026.
Citations
- Lu, X., Zhang, K., Yang, J., Cao, B., Lu, Y., Lin, H., He, M., Han, X., & Sun, L. (2026). P²O: Joint Policy and Prompt Optimization. arXiv:2603.21877. https://arxiv.org/abs/2603.21877
- Shao, Z., et al. (2024). Group Relative Policy Optimization (GRPO). Reference in P²O paper.
- Agrawal, A., et al. (2025). GEPA: Genetic-Pareto Prompt Optimization. Reference in P²O paper.
- Lambert, N., et al. (2024). Reinforcement Learning with Verifiable Rewards (RLVR). Reference in P²O paper.
Suggested Title
Why Your AI Keeps Failing the Hardest Problems (And a New Way to Fix It)
Word Count
~950 words (body text)
Fact-Check Notes
- AIME improvement figures: Paper claims +12.9% on AIME24 and +11.7% on AIME25. The abstract mentions +12.3% avg on AIME and +4.7% avg on OOD benchmarks. These are from the gist.science summary and arXiv abstract. Verify against the actual results tables in the full PDF before publishing.
- Ablation context distillation drop: Gist.science summary reports a drop from 65.2% to 55.6% when context distillation is removed. Confirm this against the paper's ablation tables.
- GEPA reference: The paper cites Agrawal et al. (2025) for GEPA. Verify this is the correct citation and that GEPA is indeed a published method, not one introduced by this paper.
- ICML 2026: The paper's metadata lists "ICML" as a tag. This suggests it was submitted to ICML 2026 but may not yet be accepted. Confirm acceptance status before stating it was "presented at" ICML 2026. The v2 on arXiv may have updated acceptance info.
- Qwen3-4B backbone: Confirmed from the gist.science technical summary. Verify the exact model variant from the paper's experimental setup section.
- DeepScaler-5K and DeepMath-5K dataset names: Confirmed from the summary. These are the training datasets used. Verify exact names and sizes from the paper.
- "First framework" claim: The abstract states P²O is the first to unify RL policy optimization with evolutionary prompt search. This is a strong claim. A brief literature search for prior joint optimization methods would be prudent before publishing.