TL;DR
When you train a large language model to succeed given multiple tries at a problem (pass@$k$), its ability to nail the answer on the very first try (pass@$1$) often drops. This paper resolves the mathematical paradox behind this trade-off: pass@$k$ training implicitly acts like a megaphone for the hardest prompts in your dataset. When those difficult prompts tug the model’s shared weights in the opposite direction of everything else, improving multi-try performance actively sabotages single-shot reliability.
What Problem Does This Paper Address?
In tasks like coding or math, we often have automated verifiers—like unit tests or exact-match checkers—that tell us if an LLM's output is right. This enables "pass@$k$ inference": generate $k$ independent solutions, check them all, and declare victory if at least one passes. Naturally, researchers started fine-tuning models directly on this pass@$k$ objective so training matches deployment.
There’s a catch, though. Empirically, optimizing for pass@$k$ frequently degrades pass@$1$ (single-shot accuracy). That’s a headache in production, where latency budgets, compute costs, or missing verifiers mean you still rely heavily on a strong first guess.
Mathematically, this degradation is a head-scratcher—what the authors call the per-prompt collinearity paradox. For any single prompt, the gradient that improves pass@$k$ points in the exact same direction as the gradient that improves pass@$1$ (it’s just scaled by a non-negative number). If the two objectives agree on every individual problem, how on earth do they end up fighting each other across the whole dataset?
Methods
Instead of proposing a new training algorithm, the authors build a theoretical diagnostic framework to explain how individual prompts interact during reinforcement learning post-training:
- Prompt Interference Kernel: Because an LLM uses the same shared parameters $\theta$ for every question, nudging weights to help prompt A might hurt prompt B. The authors formalize this using the inner product of per-prompt pass@$1$ gradients. They also define an agreement score $a_\theta(x)$ measuring whether improving prompt $x$ helps or hurts average population pass@$1$.
- Implicit Reweighting Analysis: By applying the chain rule to the pass@$k$ objective, the authors isolate a standard but crucial scaling factor: $w_{k,\theta}(x) = k(1 - p_\theta(x))^{k-1}$, where $p_\theta(x)$ is the model's current success probability on prompt $x$.
- Population Gradient Characterization: Combining the novel interference kernel with this scaling factor, they derive exact mathematical conditions (and step-size bounds) proving when the overall pass@$k$ gradient forms an obtuse angle ($>90^\circ$) with the pass@$1$ gradient.
Datasets
No new benchmarks were introduced; the authors validate their theory on established verifiable reasoning and coding datasets:
- MATH and MATH-500 (
ricdomolm/MATH-500for training pools andHuggingFaceH4/MATH-500for held-out evaluation) for competition-level high school mathematics. - HumanEval and MBPP for Python code generation (detailed in the paper's appendix).
Key Insights and Ideas
- It’s a distribution shift in disguise: Because of the $(1 - p_\theta(x))^{k-1}$ term, pass@$k$ optimization essentially ignores prompts the model already solves well and puts massive weight on low-success ("hard") prompts.
- Hard prompts can be "anti-aligned": In practice, difficult prompts often exhibit negative interference—updating the model to solve an obscure edge case actively untunes the weights needed for straightforward, common problems.
- How aligned vectors turn into a tug-of-war: Even if easy, positively aligned prompts outnumber hard, negatively interfering ones, pass@$k$ shrinks the easy prompts' gradients to near-zero while amplifying the hard ones. This rotates the average pass@$k$ update vector over $90^\circ$ away from the pass@$1$ vector.
- Larger $k$ lowers the threshold for conflict: If negatively interfering prompts are harder than the rest of the dataset, cranking up $k$ makes the reweighting exponentially more extreme, virtually guaranteeing pass@$1$ degradation past a critical threshold $k^\star$.
Key Results
The authors tested their theory both by inspecting static gradients on 7B/8B models and by running end-to-end RL training:
- Extreme Weight Disparity: Evaluating
DeepSeek-R1-Distill-Llama-8BandDeepSeek-R1-Distill-Qwen-7Bon filtered subsets of MATH revealed weight ratios between hard and easy prompts exceeding $10^{28}:1$. - Flipping the Gradient: On
DeepSeek-Qwen, even when easy prompts outnumbered hard prompts by 21.6 to 1 (627 easy vs. 29 hard), pass@$k$ reweighting completely drowned out the easy prompts. It shifted the mean agreement from $+2.97 \times 10^{-2}$ down to $-2.74 \times 10^{-1}$, flipping the overall pass@$k$/pass@$1$ gradient inner product to a strongly conflicting $-181$. - Live RL Degradation: When fine-tuning
Qwen2.5-Math-1.5B-Instructwith LoRA for 500 steps on a pass@$8$ objective, pass@$8$ rose by $+1.65$ percentage points (to $85.45\%$), while pass@$1$ dropped by $2.40$ percentage points (from $70.07\%$ down to $67.67\%$). Just as the math predicted, the cosine similarity between the two population gradients plunged from $+0.032$ at step 0 to $-0.246$ at step 500.
Limitations and Future Work
- Simplified Theoretical Assumptions: The proof showing that larger $k$ inevitably triggers conflict assumes that negatively interfering prompts are uniformly harder to solve than positively aligned ones—a clean separation the authors note may not always hold in messy real-world data.
- Efficient Approximations: For the larger 7B and 8B reasoning models, static gradient diagnostics were computed only on the final hidden layer rather than the full parameter space to save compute, and end-to-end RL was restricted to a 1.5B model using LoRA adapters.
- Diagnostics Now, Fixes Later: While the paper suggests practical remedies—such as clipping extreme prompt weights or using multi-objective gradient surgery—actually building and benchmarking these interference-aware training algorithms is left for future work.
Summary updated