TL;DR
Prompt optimization—finding the perfect "system prompt" to steer an LLM—often fails on complex reasoning tasks because the signal is drowned out by noise. This paper introduces $p1$, a method that counterintuitively suggests using fewer training examples; by filtering for a tiny subset of "high-variance" prompts that clearly distinguish good system instructions from bad ones, $p1$ achieves state-of-the-art reasoning performance with as few as two training examples.
What Problem Does This Paper Address?
Language models are highly sensitive to system prompts (the hidden instructions that tell a model to "think step-by-step" or "be concise"). While we can use Reinforcement Learning (RL) to automatically search for the best system prompt, the results are frustratingly inconsistent.
On simple tasks like instruction following, optimization works great. But on complex reasoning tasks (like competition math), optimization often stalls. The authors identify two main culprits:
- Generation Noise: The randomness in how an LLM answers a hard math problem often outweighs the benefit of a better prompt.
- The Heterogeneity Trap: In reasoning, a prompt that helps solve a geometry problem might actually hurt performance on a number theory problem. When you average performance across a large, diverse dataset, these effects cancel out, leaving the optimizer with no clear signal on which prompt is actually "better."
Methods
The authors propose a two-stage framework called $p1$:
- Variance-Based Filtering (Stage 1): Instead of training on everything, $p1$ identifies "informative" user prompts. It decomposes reward variance into two parts: variance among responses (noise) and variance among system prompts (signal). It selects a tiny subset ($K_{top}$, often just 1 or 2 examples) where the signal-to-noise ratio is highest.
- Targeted Optimization (Stage 2): It runs a purely on-policy variant of Group Relative Policy Optimization (GRPO) to optimize the system prompt generator, but only using the high-variance subset identified in Stage 1.
By focusing on examples where the choice of system prompt actually makes a visible difference in the outcome, the RL agent can finally "see" the gradient it needs to follow.
Datasets
The study evaluates $p1$ across several challenging benchmarks:
- AIME 24 & 25: Competition-level math problems from the American Invitational Mathematics Examination.
- HMMT (Nov 2025 & Feb 2026): Math problems from the Harvard-MIT Mathematics Tournament, used to test how well optimized prompts generalize to new math contexts.
- IFBench: A benchmark for verifiable instruction following (e.g., "write a response without using the letter 'e'").
- IF-RLVR: The training set used for the instruction-following experiments.
Key Insights and Ideas
- More Data Can Be Harmful: This is the most striking finding. In heterogeneous tasks, scaling the number of user prompts reduces the variance among system prompts, effectively "diluting" the optimization signal.
- Signal vs. Noise: Optimization succeeds only when the variance caused by different system prompts is significantly larger than the stochastic noise of the model's generations.
- Homogeneity Matters: In instruction following, a good prompt usually helps across all examples. In these "homogeneous" tasks, using the full dataset is actually better because the signal is consistent. $p1$ is specifically designed to rescue optimization on "heterogeneous" tasks like math.
Key Results
- Massive Gains with Tiny Data: On AIME 25, $p1$ improved the accuracy of a Qwen3-4B model from 47.03% to 54.01% by training on just two specific prompts. Standard RL on the full 30-prompt dataset showed virtually no improvement.
- Cross-Model Transfer: System prompts optimized via $p1$ on a small 4B model successfully boosted the performance of a much larger 30B model, showing that $p1$ discovers general reasoning strategies rather than just over-fitting to a specific model's quirks.
- Generalization vs. Memorization: Qualitative analysis showed that baseline methods like GEPA tended to "memorize" specific math formulas in the prompt. In contrast, $p1$ produced prompts that encouraged broad reasoning behaviors, like "unfiltered, raw thinking," which generalized better to unseen benchmarks like HMMT.
Limitations and Future Work
- Binary Rewards: The current analysis is limited to binary (correct/incorrect) rewards. The authors note that the variance formulation might need to change for "dense" rewards (partial credit).
- Filtering Cost: The initial stage of $p1$ requires sampling many responses to estimate variance, which can be computationally expensive, though the authors argue this is offset by the much faster training on a tiny subset.
- Selection Theory: While $p1$ works empirically, a deeper theoretical understanding of why specific high-variance subsets lead to such strong global generalization remains an open research question.
Summary updated