Prompt Interference in LLM Post-Training: Why Pass@k Optimization Can Degrade Pass@1

Anas Barakat, Souradip Chakraborty, Khushbu Pahwa, Amrit Singh BediNeurIPS 2026

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.
Figure 1: (a) Empirical trade-off. Under pass@k policy optimization, pass@k increases while pass@1 may decrease. We explain this empirically observed trade-off in (b) and (c), which schemati- cally illustrate the pass@1 and pass@k (k > 1) gradients for three prompts and their expectations in policy-parameter space. (b) Pass@1 gradients with negatively interfering prompt. This panel shows a setting in which prompt 3 is negatively interfering with prompts 1 and 2, i.e., the per-prompt pass@1 gradient for prompt 3 has negative inner product with the per-prompt pass@1 gradients for prompts 1 and 2 (see Section 3). Here, ∇pass@1 denotes the population pass@1 gradient, given by the average (expectation over prompts; here under a uniform distribution) of the per-prompt pass@1 gradients. (c) Pass@k vs pass@1 gradient conflict. Per-prompt pass@k gradients are scaled versions of the corresponding per-prompt pass@1 gradients (Eq. (2)). This reweighting amplifies the magnitude of the pass@k gradient for the negatively interfering prompt 3, causing the resulting population pass@k gradient to conflict with the population pass@1 gradient (their inner product becomes negative, corresponding to an obtuse angle, shown here as approximately 120◦). Hence, a policy update in the pass@k gradient direction can increase pass@k while decreasing pass@1.

Datasets

No new benchmarks were introduced; the authors validate their theory on established verifiable reasoning and coding datasets:

  • MATH and MATH-500 (ricdomolm/MATH-500 for training pools and HuggingFaceH4/MATH-500 for 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-8B and DeepSeek-R1-Distill-Qwen-7B on 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-Instruct with 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

Abstract

Pass@$k$ is a widely used performance metric for verifiable large language model tasks, including mathematical reasoning, code generation, and short-answer reasoning. It defines success if any of $k$ independently sampled solutions passes a verifier. This multi-sample inference metric has motivated inference-aware fine-tuning methods that directly optimize pass@$k$. However, prior work reports a recurring trade-off: pass@$k$ improves while pass@1 degrades under such methods. This trade-off is practically important because pass@1 often remains a hard operational constraint due to latency and cost budgets, imperfect verifier coverage, and the need for a reliable single-shot fallback. We study the origin of this trade-off and provide a theoretical characterization of when pass@$k$ policy optimization can reduce pass@1 through gradient conflict induced by prompt interference. We show that pass@$k$ policy gradients can conflict with pass@1 gradients because pass@$k$ optimization implicitly reweights prompts toward low-success prompts; when these prompts are what we term \emph{negatively interfering}, their upweighting can rotate the pass@k update direction away from the pass@1 direction. We illustrate our theoretical findings with large language model experiments on verifiable mathematical reasoning and coding tasks.
BibTeX
@inproceedings{barakat2026prompt,
  author = {Anas Barakat and Souradip Chakraborty and Khushbu Pahwa and Amrit Singh Bedi},
  title = {{Prompt Interference in LLM Post-Training: Why Pass@k Optimization Can Degrade Pass@1}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TCynOWswES},
}
Figure