Manuscript Offprint
arXiv:2611.03146Controlling Sharpening in LLM Post-Training
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
LLM post-training via reinforcement learning has shown consistent improvements in accuracy at the cost of reducing behavioral coverage—a phenomenon known as sharpening that can stall progress on difficult tasks. Repeated-sampling objectives such as pass@k and max@k are known to mitigate sharpening, but the mechanism behind it remains poorly understood. Moreover, existing approaches for @k optimization use dedicated algorithms, and no general framework exists for adapting established policy optimization methods from @1 to @k. We derive the optimal policies for KL-regularized pass@k and max@k objectives in closed form. Our explicit solutions reveal that @k optimization naturally redistributes learning pressure based on prompt difficulty, directing it toward harder problems. Crucially, we show that standard @1 objectives achieve these exact same optimal policies through prompt-adaptive regularization or reward transformation. Ultimately, this yields an optimizer-independent explanation for why @k objectives reduce sharpening on easy tasks while prioritizing success on harder ones. Building on these insights, we introduce @k Adaptive Pressure for Policy Optimization (KAPPO). Following a one-time reference calibration, KAPPO seamlessly adapts existing @1 methods to @k via prompt-adaptive regularization or reward transformation, without otherwise altering their training procedures. Experiments with several RL methods on mathematical reasoning and code generation demonstrate that KAPPO provides direct control over sharpening. Crucially, we demonstrate that @k pressure can be fully realized with single-completion training, matching the performance of multi-completion @k optimizers at a fraction of the cost.
1 INTRODUCTION
Reinforcement learning (RL) has become a central component of LLM post-training, producing substantial performance improvements in mathematical reasoning, code generation, and other verifiable domains (Shao et al., 2024; Chen et al., 2025a; Yu et al., 2025). Yet, an increase in average performance does not by itself reveal how the model has improved. Pretrained LLMs contain extensive latent capabilities, and RL can affect them through two distinct mechanisms. It may uncover successful behavior that is rarely expressed by the base policy, or it may concentrate probability on solutions that are already readily available. The latter phenomenon, referred to as sharpening, improves single-trial success but often reduces the range of problems solvable by the model under repeated trials (Yue et al., 2025). Further capability progress thus depends on effectively controlling sharpening.
Recent studies confirm this exact limitation: RL post-training dynamics are indeed dominated by sharpening (Yue et al., 2025; Song et al., 2025). The impressive single-trial gains frequently diminish or reverse in multi-trial settings, as the generated reasoning paths are confined to a narrow subset of the base model's original distribution. Counteracting this over-concentration is notoriously difficult. For example, simply injecting randomness or diversity at the token level rarely translates into meaningful diversity in high-level reasoning strategies (Walder & Karkhanis, 2025; Chen et al., 2025b).
Multi-trial metrics provide a practical lens for quantifying the extent of sharpening (Yue et al., 2025). For binary rewards, pass@k measures the probability that at least one of completions succeeds; for continuous rewards, max@k measures the expected maximum reward among completions. Gains driven by sharpening concentrate at small and diminish as the sampling budget grows, whereas gains that persist at large indicate broader coverage of successful behavior. While these metrics do not prove that the model has discovered reasoning strategies outside its base distribution, they remain the clearest operational proxies for diverse reasoning. These observations motivate using @k metrics not just for evaluation, but also as training objectives to mitigate sharpening (Walder & Karkhanis, 2025). However, the mechanism that makes @k objectives less prone to sharpening remains poorly understood. Moreover, existing approaches rely on dedicated algorithms for @k optimization, precluding a direct transfer of standard @1 reinforcement learning advancements to the @k setting.
We derive the closed-form optimal policies for KL-regularized pass@k and max@k. Our analysis reveals that @k optimization acts as prompt-adaptive pressure: it restricts optimization on tasks the model already solves reliably and redirects pressure toward tasks on which successful behavior is rare. We show that this behavior is achievable with ordinary @1 objectives via prompt-adaptive regularization or reward transformation. Leveraging this connection, we introduce @k Adaptive Pressure for Policy Optimization (KAPPO), a framework for turning existing @1 policy-optimization methods into @k optimizers. After a one-time reference calibration, KAPPO introduces prompt-adaptive pressure while preserving all other characteristics of the base method. Our contributions are:
-
We derive closed-form optimal policies for KL-regularized pass@k and max@k objectives.
-
We prove that @k optimization redistributes optimization pressure according to task difficulty via prompt-adaptive regularization or reward transformation, prioritizing hard tasks.
-
We introduce KAPPO, a framework that turns existing @1 methods into @k optimizers. In KAPPO, directly controls sharpening without requiring online groups of completions.
-
We instantiate KAPPO across several policy optimization methods, matching the performance of a direct multi-completion @k-optimization baseline at a fraction of its rollouts.
Pass@k and max@k optimization. Originally introduced as an evaluation metric for code generation (Chen et al., 2021), pass@k has recently been adopted as a training objective. Walder & Karkhanis (2025) derive unbiased policy-gradient estimators, called PKPO, for binary pass@k and continuous max@k rewards. They show that increasing during training preserves higher entropy, increases the number of problems solved at least once, and unblocks learning on difficult tasks where pass@1 optimization stalls. max@k objectives are submodular (Krause & Golovin, 2014), and encourage “hedging the bets” given limited expressivity, a principle associated with exploration. Subsequent work studies analytical advantage design (Chen et al., 2025b), token-level mechanisms for preventing probability over-concentration (Peng et al., 2025), improved policy-gradient estimators for order-statistic objectives (Parmas et al., 2026), and a pass@k interpretation of maximum likelihood objectives (Tajwar et al., 2026). These approaches primarily analyze training gradients or construct multi-completion learning signals. We instead derive the corresponding KL-regularized optimal policies and show that the effect of @k optimization can be reproduced through prompt-adaptive @1 objectives. This provides a general route for turning existing @1 methods into @k variants without constructing expensive @k-dependent multi-completion learning signals.
3 PRELIMINARIES
KL-regularized reward optimization. Let denote a prompt, a completion, and the corresponding reward. Standard KL-regularized RL optimizes the objective
where is a fixed reference policy and controls the strength of regularization. While some recent RLVR methods omit the KL penalty to allow larger policy shifts (Yu et al., 2025), other works suggest that carefully designed KL-regularized objectives enhance both reasoning performance and training stability (Liu et al., 2025). Beyond potential empirical advantages, KL regularization is a prerequisite for non-degenerate optimal policies. Indeed, the optimal policy is given in closed form:
Methods such as REINFORCE (Williams, 1992), RLOO (Ahmadian et al., 2024), PPO (Schulman et al., 2017), and GRPO (Shao et al., 2024) approximate gradients of Eq. 1. In contrast, methods like DPO (Rafailov et al., 2023), PO (Brantley et al., 2025), and QRPO (Matrenok et al., 2025) directly fit a parameterized policy to the optimal policy given in Eq. 2. Our analysis and contributions are agnostic to the choice of optimizer, separating @k capabilities from other advancements.
Pass@k and max@k. Let . We define max@k and pass@k as
Note that for binary rewards , max@k coincides with pass@k. Moreover, for , both expressions recover the ordinary @1 expected reward used in the standard RL objective in Eq. 1. Let denote either of these @k objectives. Substituting into in place of the @1 reward yields the KL-regularized objective studied in this work:
4 @k OPTIMAL POLICIES AND ADAPTIVE PRESSURE
4.1 BINARY REWARDS: pass@k
Proofs of all results in this subsection, including boundary cases, are provided in Appendix B. We first consider binary rewards, i.e., we set in Eq. 3 for , and derive the closed-form optimal policy which maximizes . It takes the familiar exponential-tilt form.
Proposition 4.1: Closed-form optimal policy for the pass@k objective
Let . Then the optimal policy for is
Here, and are, respectively, the success probabilities of the reference model and optimal model.
Compared with the optimal policy (Eq. 2) for the single-reward objective (Eq. 1), the constant regularization strength is replaced by the prompt-dependent effective regularization strength . The obtained expression for the optimal policy, however, remains implicit since depends on the unknown optimal policy . Nevertheless, it can be made fully explicit by summing Eq. 4 over successful completions, which yields a scalar equation relating directly to .
Proposition 4.2: Scalar fixed-point characterization
For , the optimal success probability is the unique solution in of
The reference success probability can be estimated directly from reference-model samples,, while is computed by solving Eq. 6. For an error analysis, see Appendix K. Proposition 4.1 suggests two equivalent ways to recover the pass@k optimal policy with single-reward optimization.
Corollary 4.3: pass@k as prompt-adaptive regularization
Optimizing the ordinary single-reward objective in Eq. 1 using the prompt-adaptive regularization strength from Eq. 5 results exactly in the pass@k optimal policy provided in Eq. 4.
This equivalence holds because both objectives decompose over prompts and is constant w.r.t. the completion for each fixed . As the optimal policy given in Eq. 4 depends on the reward and KL coefficient only through their ratio, we obtain a complementary reward-side interpretation.
Corollary 4.4: pass@k as prompt-adaptive reward scaling
Optimizing the ordinary single-reward objective given in Eq. 1 with constant regularization strength but applying a prompt-adaptive reward transformation
results exactly in the pass@k optimal policy provided in Eq. 4.
Two views of adaptive pressure. Corollary 4.3 and Corollary 4.4 show that pass@k optimization can be expressed as ordinary single-reward optimization with either prompt-adaptive regularization or, equivalently, prompt-adaptive reward scaling. Taking as a simple measure of prompt complexity, easy tasks have high and consequently high , resulting in stronger effective regularization, while hard tasks receive weaker effective regularization and therefore stronger optimization pressure (see Figure 1a). Equivalently, under the reward-side view, a successful completion receives a smaller reward multiplier on easy tasks and a larger multiplier on difficult ones.
Intuition: reducing sharpening. Consider optimizing the usual single-reward objective (Eq. 1) on a binary-reward task. The reward gain depends only on the increase in success probability, regardless of initial performance—for example, moving from near zero to 0.1 on a hard task is worth as much as moving from 0.9 to 1 on an already-easy task. For an LLM, however, the latter is often much easier: the model already knows how to solve the task and only needs to concentrate probability on known successful behavior. In contrast, increasing a near-zero success probability requires acquiring entirely novel reasoning strategies. The adaptive pressure induced by pass@k objectives counteracts this tendency towards sharpening by imposing stronger effective regularization on already-easy tasks or, equivalently, through the prompt-adaptive reward scaling described above.
The same reference samples can be reused across training epochs and hyperparameter sweeps.

(a) pass@k: effective regularization

(b) max@k: effective regularization

(c) max@k: reward transformation
Figure 1: Adaptive pressure induced by @k objectives. (a) For binary rewards, increasing k strengthens regularization on easy tasks while retaining greater optimization pressure on difficult tasks. (b–c) For continuous rewards, we illustrate the same effect at k = 4 using synthetic “easy” Beta(8, 2) and “difficult” Beta(2, 8) reference reward distributions on [0, 1]. The easy task receives stronger effective regularization and smaller transformed rewards than the difficult task. All panels use .
4.2 CONTINUOUS REWARDS: max@k
Next, we consider real-valued rewards, i.e., we set in Eq. 3 for , and derive the associated closed-form optimal policy which maximizes . For , we obtain:
Proposition 4.5: Closed-form optimal policy for the max@k objective
The optimal policy for the max@k objective under real-valued rewards evaluates to
where is the reward CDF under the optimal policy.
The optimal policy identified above remains implicit because the CDF on its right-hand side is itself induced by the unknown optimal policy . In contrast to the binary-reward case, computing is more difficult and requires a sufficiently accurate estimate of the entire reference reward distribution . It can, nevertheless, be computed numerically before training; we provide the procedure in Appendix D. All derivations and regularity conditions are explained in Appendix C.
Following the derivation for pass@k, a natural question is whether we can also identify a task-dependent here that reduces @k optimization to @1. A simple substitution shows that:
Note that, to ensure well-definedness, one can assume without loss of generality given (lower) bounded rewards, since the objectives in Eqs. 1 and 3 are invariant to constant reward shifts.
Eq. 9 provides an interpretation analogous to the binary-reward case: max@k replaces constant regularization with a strength that adapts to task complexity. In the max@k case, however, the effective strength also varies with the reward of the individual completion. As an illustrative example, Figure 1b uses two synthetic reference reward distributions on the [0, 1] interval representing an “easy” and a “difficult” task. This completion dependence means that substituting into the ordinary single-reward objective would produce a different optimal policy; hence, the exact adaptive-regularization equivalence established in Corollary 4.3 for binary rewards does not extend to continuous rewards. Still, provides a useful interpretation of how max@k redistributes optimization pressure and could be adapted in practice to design completion-adaptive regularization. Alternatively, we may follow our derivations for pass@k and instead consider adaptive reward transformations to redistribute optimization pressure. We obtain the following objective-level equivalence:
Corollary 4.6: max@k as prompt-adaptive reward transformation
Optimizing the ordinary single-reward objective given in Eq. 1 with the transformed reward
results in the max@k optimal policy derived in Proposition 4.5.
The transformed-reward view shows the same prompt-adaptive effect. In the illustration in Figure 1c, the same raw reward is assigned a larger transformed value on the difficult task than on the easy task, providing a complementary reward-space view of how max@k can be used to control sharpening.
Explicit closed-form optimal policy for win-rate reward. As discussed, the optimal policy in Eq. 8 remains implicit because it depends on the unknown CDF . A workaround is to consider a different but closely related reward: the reference quantile , which preserves reward ordering and represents the win rate against reference-policy completions. Indeed, the max@k optimal policy for these win-rate rewards admits a fully explicit expression.
Proposition 4.7: Explicit optimal policy for win-rate max@k
For a continuous reference reward distribution with CDF , the objective with win-rate rewards admits the following optimal policy:
where
For a proof, see Appendix F. The scalar and mapping depend only on and , and can be numerically pre-computed prior to training. The only prompt-dependent quantity in is , which, similarly to for binary-rewards, can be estimated once from a fixed bank of reference-model completions (see Appendix K for an error analysis). Thus, the adaptive-reward principle of Corollary 4.6 admits a directly computable realization for win-rate-based optimal policies.
5 KAPPO: @k ADAPTIVE PRESSURE FOR POLICY OPTIMIZATION
We introduce @k Adaptive Pressure for Policy Optimization (KAPPO), a framework for adapting existing @1 policy-optimization methods to @k settings. The parameter can be tuned directly to control sharpening without otherwise changing the optimization algorithm. Given a base optimizer, KAPPO redistributes optimization pressure either through adaptive reward transformation or adaptive regularization, following our derivations in Section 4. The required prompt-dependent transformations and coefficients are estimated once before training at negligible cost and reused across runs; we call this stage reference calibration (see Appendix J). We instantiate both interfaces below to demonstrate KAPPO's generality and effectiveness across several popular RLVR optimizers.
5.1 REGULARIZATION-SIDE ADAPTATION: @k-DPO
The regularization-side interface is particularly useful for methods that do not directly optimize scalar rewards, most prominently DPO (Rafailov et al., 2023). We apply it in the binary-reward setting, using the connection established in Corollary 4.3 to replace DPO's global KL coefficient
We note that prompt-adaptive regularization is also possible for continuous rewards, but without the same objective-level equivalence, e.g., by directly adjusting the regularization coefficient of the gradient expression.
with the prompt-dependent from Eq. 5. We call the resulting method @k-DPO:
Before training, we perform reference calibration by generating a fixed bank of reference-model completions for each prompt and use the associated binary rewards to estimate . We then solve Eq. 6 for and use it to compute . Each online update subsequently requires only a pair of completions per prompt. Except for , the DPO training procedure remains unchanged.
5.2 REWARD-SIDE ADAPTATION: @k-A*PO AND @k-GRPO
To demonstrate the reward-side interface, we consider two complementary instantiations. First, we choose (Brantley et al., 2025), a method that uses only a single online completion per prompt. This choice isolates a central implication of our analysis: online tuples of k completions are not necessary to induce @k optimization pressure. Second, we also apply the interface to GRPO (Shao et al., 2024). Following common practice in RLVR, we use GRPO without a KL regularization term (Yu et al., 2025); this additionally tests whether KAPPO remains effective beyond the KL-regularized setting assumed by our theory.
@k-APO. APO optimizes the squared-regression loss
with the partition function estimated from reference-model completions. Replacing with the prompt-adaptive reward yields @k-A*PO. We treat both binary and continuous rewards:
For binary rewards, we substitute the adaptive reward into Eq. 14. We obtain and through the same one-time reference calibration procedure as for the binary @k-DPO instantiation.
For continuous rewards, we apply the win-rate-based adaptive reward transformation from Eq. 12 and set since normalization follows automatically (see Proposition 4.7). We conduct a one-time reference calibration to approximate . As in the binary case, we sample a fixed bank of reference-model completions for each prompt. We then use this bank to construct the approximation for each prompt .
@k-GRPO. Here, we construct @k-GRPO for the continuous-reward setting. For the corresponding binary-reward adaptation as well as additional properties of GRPO instantiations, see Appendix G. Given a group of completions with rewards , we replace the raw rewards by the win-rate-based transformed rewards in the GRPO loss:
(15)
@k-GRPO uses the same one-time reference calibration as the continuous @k-A*PO instantiation. Apart from the reward transformation , the standard GRPO procedure remains unchanged.
6 EXPERIMENTS
6.1 SETUP
Tasks and scope. We evaluate KAPPO on mathematical reasoning with binary rewards (correctness) and code generation with continuous rewards (test case pass rate). We investigate all instantiations of KAPPO presented in Section 5, but note that KAPPO could be applied to other algorithms.
Model selection. Two principles guide our choice of initial checkpoints. First, we avoid models that have undergone reasoning-focused preference optimization or RL. This reflects the practical setting in which RL for reasoning is applied directly after supervised fine-tuning (SFT), and separates the effect of our training from reasoning behavior acquired via an undocumented prior curriculum. Second, we aim to minimize possible contamination of the training and evaluation datasets. These criteria lead us to OLMo-3-7B-Instruct-SFT and Qwen3-4B-Base. The former is an SFT-only, pre-RL checkpoint with a fully open training pipeline including explicit data decontamination procedures (Team Olmo et al., 2025). For a second model family, we use the Qwen pre-trained rather than a post-trained checkpoint to limit exposure to undocumented post-training data, although its pretraining corpus cannot be fully audited (Yang et al., 2025). Hyperparameters and checkpoints are selected on a validation split; complete experimental details are provided in Appendix H.
Baselines. As elaborated in Section 5, KAPPO can be applied to a wide range of RL optimizers by adjusting the effective regularization or transforming the reward. Since applying KAPPO with leaves the underlying @1 optimizer unchanged, we use as the primary baseline to isolate the effect of adaptive @k pressure. We also compare a KAPPO-adjusted PO algorithm with PKPO (Walder & Karkhanis, 2025), a dedicated pass@k optimization algorithm that requires at least new on-policy completions per prompt.
6.2 BINARY REWARDS: MATHEMATICAL REASONING
Data and evaluation. We design the train–validation–test split to mirror a common model development setting: training data and validation benchmarks are closely coupled during development, while the final test consists of newer and often more difficult problems, appearing after model release. To closely match this setting, we perform RL on the training split of MATH and use its test split for in-distribution validation (Hendrycks et al., 2021). Final evaluation is performed on AIME 2026 (Mathematical Association of America, 2026), a markedly harder dataset whose problems predominantly exceed MATH's highest difficulty tier. AIME 2026 also postdates both model initialization checkpoints, ruling out direct contamination of our test benchmark. A completion receives reward one if its extracted final answer is correct and zero otherwise, i.e., we consider binary rewards.
Controlling sharpening by adjusting . Figure 2 plots pass@k against the number of completions . We examine the improvement over the initial checkpoint as a function of the sampling budget. Gains exclusively at small indicate that training has further concentrated probability on already-accessible behavior, whereas gains at large point toward acquisition of novel behavior. Figure 2a considers reward-side adaptation. The PO baseline (pass@1 training) closely tracks GRPO, showing that single-completion optimization performs competitive to multi-completion optimization for pass@1 training. However, the gains achieved for both models diminish as increases. Training with typically (but not always) retains less of the pass@1 gain achieved by training, but consistently overtakes the single-reward baselines at larger evaluation budgets. Figure 2b exhibits the same effect for the regularization-side interface. Standard DPO produces gains concentrated at small evaluation budgets, whereas @k-DPO trained with overtakes it as increases. This pattern holds for both OLMo and Qwen. Together, these results corroborate the effect predicted by our analysis across two base optimizers and both KAPPO interfaces:

(a) PO and @k-PO.
(b) DPO and @k-DPO.
Figure 2: pass@k on AIME 2026 as the sampling budget at test time () increases. Setting during training consistently reduces sharpening. In Figure (a), we plot standard GRPO and @k-PO trained with . In Figure (b), we plot @k-DPO trained with .

Figure 3: MATH Level 5 validation performance of the starting checkpoints, @k-APO checkpoints, and PKPO checkpoints. @k-APO matches the performance of PKPO at a fraction of the on-policy training rollouts, requiring only a single-time reference calibration at 5% training time overhead.
@k adaptation counteracts excessive sharpening and shifts optimization pressure from already-easy tasks toward difficult tasks where successful behavior remains rare.
Agreement with dedicated multi-completion pass@k optimization. We next verify that a KAPPO adaptation of a single-completion optimizer can match the performance of a state-of-the-art dedicated multi-completion pass@k algorithm. To that end, we compare @k-APO with PKPO for using a matched number of prompt batches and the minimum feasible PKPO rollout multiplicity ( ). Across both models, @k-APO achieves validation performance comparable to PKPO (see Figure 3) while requiring only a fraction of the on-policy rollouts, reducing training cost. This supports our central prediction: @k optimization can be achieved without relying on online k-completion learning signals, but by injecting adaptive pressure into single-completion optimizers.
6.3 CONTINUOUS REWARDS: CODE GENERATION
Data and evaluation. We follow the same data selection strategy as in the binary-reward experiments: training and validation use closely related data, while final evaluation uses a newer and substantially harder problem source to approximate the distribution shift encountered after model deployment. We conduct our max@k experiments using Qwen3-4B-Base. Specifically, we train on the training split of LeetCodeDataset (Xia et al., 2025) and use its test split for validation. The two splits share the same source and task format, with a temporal cutoff on July 2024 (Xia et al., 2025). Each completion receives a continuous reward in [0, 1] equal to the fraction of test cases it passes. For final evaluation, we use the hard subset of LiveCodeBench v6, a substantially harder collection of competitive-programming problems (Jain et al., 2025) released between January and April 2025, limiting the opportunity for their inclusion in Qwen3 pretraining (released April 28th). Nevertheless, since Qwen's pretraining cutoff is not documented, contamination cannot be ruled out completely.
Controlling sharpening by adjusting k. We observe the same qualitative effect as in the binary-reward experiments. Figure 4 compares the initial checkpoint with win-rate-based @k-A*PO and @k-GRPO trained with . The k = 1 configuration typically provides the largest improvement for max@1, but its advantage contracts as the evaluation budget increases and the starting checkpoint eventually catches up. Training with k > 1 retains (slightly) less of the max@1 gain achieved by k = 1 training, but overtakes it at larger evaluation budgets, maintaining a greater advantage over the starting checkpoint. Thus, our explicit win-rate-based reward transformation provides analogous control over sharpening for continuous rewards as our binary-reward adaptations.

Figure 4: max@k_{eval} on the hard subset of Live-CodeBench v6 for Qwen3-4B. Win-rate-based @k-A*PO (left) and @k-GRPO (right) mitigate excessive sharpening for k > 1.
7 CONCLUSION
We derive closed-form optimal policies for KL-regularized pass@k and max@k optimization, proving that @k optimization redistributes pressure according to task difficulty. For binary rewards, this pressure can be expressed equivalently through prompt-adaptive reward scaling or regularization strength. For continuous rewards, it appears as an adaptive reward transformation or a completion-dependent regularization strength, with a fully explicit construction for win-rate-based rewards. Leveraging these insights, we introduce KAPPO, a framework that adapts existing @1 policy-optimization methods to @k settings without requiring online multi-completion rollouts. In particular, our @k-APO instantiation requires only one new completion per prompt, yet achieves performance comparable to a SoTA multi-completion baseline. Validated across mathematical reasoning and code generation, @k-APO, @k-DPO, and @k-GRPO successfully control sharpening, confirming that diverse reasoning can be effectively encouraged via prompt-adaptive optimization pressure.
Limitations and future work. Our reference calibration relies on a static bank of completions for every prompt instead of, e.g., optimizing the budget based on the noise transfer of the equations in Propositions 4.2 and 4.7, resulting in noisier estimates for and . Future work may develop better budget allocations. Second, our continuous-reward experiments optimize the win-rate surrogate rather than raw-reward max@k, leaving empirical evaluation of numerical reconstruction (see Appendix D) to future work. Lastly, our win-rate solution assumes a continuous reference reward distribution; its application to discrete rewards with ties is an approximation.
ACKNOWLEDGEMENTS
This work was supported as part of the Swiss AI Initiative by a grant from the Swiss National Supercomputing Centre (CSCS) under project ID infra01 on Alps. It was partially funded by an unrestricted gift from Coefficient Giving and by the Swiss National Science Foundation under grant number 212111. We are grateful to Robert West for his supervision and support.
AI USE STATEMENT
We used generative AI tools to check proofs, improve their exposition, edit the manuscript, and assist with literature search and reference checking. AI also supported the implementation of methods, training infrastructure, evaluation, and plotting, following author-specified designs and guidance. For data processing, AI assisted with deduplication and analysis of dataset diversity, task difficulty, and metadata. The central research ideas and essential proof steps were developed by the authors. All experimental decisions, including experimental design, hyperparameters, comparisons, and all interpretations of results were determined solely by the authors. The authors reviewed the AI-assisted code, verified mathematical claims and proofs, checked cited sources and their relevance, and checked figures against experimental outputs. We take responsibility for the final content of this work, including all AI-assisted text, claims, and artifacts.
ETHICS STATEMENT
We improve understanding of pass@k and max@k optimization and introduce a method to adapt existing reinforcement learning methods from @1 to @k. As a result, post-training of frontier models may be accelerated, which can result in all kinds of secondary effects, both economic and societal. Our experiments use only publicly available models and datasets in accordance with their licenses.
REPRODUCIBILITY STATEMENT
All considered datasets and models are publicly available. Instead of proposing a novel RL optimization method with many degrees of freedom to be specified, we identify a minimalist intervention to turn any standard @1 RL method into an @k method. We provide pseudocode for reference calibration with binary and continuous win-rate rewards in Appendix J.1. As a result, all of our experiments can be easily reproduced. For completeness, we describe the exact experimental details in Appendix H. Our entire code base is available in the supplementary materials.
REFERENCES
Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet Üstün, and Sara Hooker. Back to basics: Revisiting REINFORCE-style optimization for learning from human feedback in LLMs. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12248–12267, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.662. URL https://aclanthology.org/2024.acl-long.662/.
Zafarali Ahmed, Nicolas Le Roux, Mohammad Norouzi, and Dale Schuurmans. Understanding the impact of entropy on policy optimization. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 151–160. PMLR, 2019. URL https://proceedings.mlr.press/v97/ahmed19a.html.
Kianté Brantley, Mingyu Chen, Zhaolin Gao, Jason Lee, Wen Sun, Wenhao Zhan, and Xuezhou Zhang. Accelerating RL for LLM reasoning with optimal advantage regression. In Advances in Neural Information Processing Systems, volume 38, pp. 151492–151531. Curran Associates, Inc., 2025. doi: 10.52202/085713-5067. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/de8elaebdb1e8a96970a58a641eac3cc-Abstract-Conference.html.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021. doi: 10.48550/arXiv.2107.03374. URL https://arxiv.org/abs/2107.03374.
Yang Chen, Zhuolin Yang, Zihan Liu, Chankyu Lee, Peng Xu, Mohammad Shoeybi, Bryan Catanzaro, and Wei Ping. AceReason-Nemotron: Advancing math and code reasoning through reinforcement learning. arXiv preprint arXiv:2505.16400, 2025a. doi: 10.48550/arXiv.2505.16400. URL https://arxiv.org/abs/2505.16400.
Zhipeng Chen, Xiaobo Qin, Youbin Wu, Yue Ling, Qinghao Ye, Wayne Xin Zhao, and Guang Shi. Pass@k training for adaptively balancing exploration and exploitation of large reasoning models. arXiv preprint arXiv:2508.10751, 2025b. doi: 10.48550/arXiv.2508.10751. URL https://arxiv.org/abs/2508.10751.
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1861–1870. PMLR, 2018. URL https://proceedings.mlr.press/v80/haarnoja18b.html.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Joaquin Vanschoren and Serena Yeung (eds.), Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1, 2021. URL https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/hash/be83ab3ecd0db773eb2dc1b0a17836a1-Abstract-round2.html.
Zican Hu, Shilin Zhang, Yafu Li, Jianhao (Elliott) Yan, Xuyang Hu, Leyang Cui, Xiaoye Qu, Chunlin Chen, Yu Cheng, and Zhi Wang. Diversity-incentivized exploration for versatile reasoning. In Carl Vondrick, Bharath Hariharan, Colin Raffel, Lerrel Pinto, Diyi Yang, and Aleksandra Faust
(eds.), International Conference on Learning Representations, volume 2026, pp. 71175–71205, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/file/74164872c24945a391473a8da5415843-Paper-Conference.pdf.
Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. LiveCodeBench: Holistic and contamination free evaluation of large language models for code. In Yisong Yue, Animesh Garg, Nanyun Peng, Fei Sha, and Rose Yu (eds.), International Conference on Learning Representations, volume 2025, pp. 58791–58831, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/94074dd5a072d28ff75a76dabed43767-Paper-Conference.pdf.
Robert Kirk, Ishita Mediratta, Christoforos Nalmpantis, Jelena Luketina, Eric Hambro, Edward Grefenstette, and Roberta Raileanu. Understanding the effects of RLHF on LLM generalisation and diversity. In International Conference on Learning Representations, pp. 20620–20653, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/5a68d05006d5b05dd9463dd9c0219db0-Paper-Conference.pdf.
Andreas Krause and Daniel Golovin. Submodular function maximization. In Lucas Bordeaux, Youssef Hamadi, and Pushmeet Kohli (eds.), Tractability: Practical Approaches to Hard Problems, chapter 3, pp. 71–104. Cambridge University Press, 2014. doi: 10.1017/CBO9781139177801.004. URL https://doi.org/10.1017/CBO9781139177801.004.
Mingjie Liu, Shizhe Diao, Ximing Lu, Jian Hu, Xin Dong, Yejin Choi, Jan Kautz, and Yi Dong. ProRL: Prolonged reinforcement learning expands reasoning boundaries in large language models. In Advances in Neural Information Processing Systems, volume 38, pp. 17998–18031. Curran Associates, Inc., 2025. doi: 10.52202/085713-0608. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/1a22b912945fb7c0bdd079e792b31b6f-Abstract-Conference.html.
Xiuyuan Lu and Benjamin Van Roy. Ensemble sampling. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper_files/paper/2017/file/49ad23d1ec9fa4bd8d77d02681df5cfa-Paper.pdf.
Pascal Massart. The tight constant in the Dvoretzky–Kiefer–Wolfowitz inequality. The Annals of Probability, 18(3):1269–1283, 1990. doi: 10.1214/aop/1176990746. URL https://doi.org/10.1214/aop/1176990746.
Mathematical Association of America. American invitational mathematics examination (AIME), 2026. URL https://maa.org/maa-invitational-competitions/.
Simon Matrenok, Skander Moalla, and Caglar Gulcehre. Quantile reward policy optimization: Alignment with pointwise regression and exact partition functions. In Advances in Neural Information Processing Systems, volume 38, pp. 102693–102750. Curran Associates, Inc., 2025. doi: 10.52202/085713-3434. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/94840c41497ead6a84f493f029eba7fa-Abstract-Conference.html.
Nicolas Menet, Andreas Krause, and Abbas Rahimi. POETS: Uncertainty-aware LLM optimization via compute-efficient policy ensembles. Advances in Neural Information Processing Systems, 39, 2026a. URL https://arxiv.org/abs/2605.07775.
Nicolas Menet, Aleksandar Terzic, Michael Hersche, Andreas Krause, and Abbas Rahimi. Thompson sampling via fine-tuning of LLMs. In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust (eds.), International Conference on Learning Representations, volume 2026, pp. 68794–68822, 2026b. URL https://proceedings.iclr.cc/paper_files/paper/2026/file/707a2d58641b2192203b4bf4c532cfe1-Paper-Conference.pdf.
Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 1928–1937, New York, New York, USA, 2016. PMLR. URL https://proceedings.mlr.press/v48/mnihal6.html.
Paavo Parmas, Yongmin Kim, Kohsei Matsutani, Shota Takashiro, Soichiro Nishimori, Takeshi Kojima, Yusuke Iwasawa, and Yutaka Matsuo. OrderGrad: Optimizing beyond the mean with order-statistic policy gradient estimation. arXiv preprint arXiv:2606.06096, 2026. doi: 10.48550/arXiv.2606.06096. URL https://arxiv.org/abs/2606.06096.
Ruotian Peng, Yi Ren, Zhouliang Yu, Weiyang Liu, and Yandong Wen. Beyond the sampled token: Preserving candidate support in RLVR. arXiv preprint arXiv:2510.14807, 2025. doi: 10.48550/arXiv.2510.14807. URL https://arxiv.org/abs/2510.14807.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In Advances in Neural Information Processing Systems, volume 36, pp. 53728–53741. Curran Associates, Inc., 2023. doi: 10.52202/075280-2338. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. doi: 10.48550/arXiv.1707.06347. URL https://arxiv.org/abs/1707.06347.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024. doi: 10.48550/arXiv.2402.03300. URL https://arxiv.org/abs/2402.03300.
Yuda Song, Julia Kempe, and Rémi Munos. Outcome-based exploration for LLM reasoning. arXiv preprint arXiv:2509.06941, 2025. doi: 10.48550/arXiv.2509.06941. URL https://arxiv.org/abs/2509.06941.
Fahim Tajwar, Guanning Zeng, Yueer Zhou, Yuda Song, Daman Arora, Yiding Jiang, Jeff Schneider, Ruslan Salakhutdinov, Haiwen Feng, and Andrea Zanette. Maximum likelihood reinforcement learning. In International Conference on Machine Learning, 2026. doi: 10.48550/arXiv.2602.02710. URL https://icml.cc/virtual/2026/poster/65332.
Team Olmo, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, Dirk Groeneveld, Faeze Brahman, Finbarr Timbers, Hamish Ivison, Jacob Morrison, Jake Poznanski, Kyle Lo, Luca Soldaini, Matt Jordan, Mayee Chen, Michael Noukhovitch, Nathan Lambert, Pete Walsh, Pradeep Dasigi, Robert Berry, Saumya Malik, Saurabh Shah, Scott Geng, Shane Arora, Shashank Gupta, Taira Anderson, Teng Xiao, Tyler Murray, Tyler Romero, Victoria Graf, Akari Asai, Akshita Bhagia, Alexander Wettig, Alisa Liu, Aman Rangapur, Chloe Anastasiades, Costa Huang, Dustin Schwenk, Harsh Trivedi, Ian Magnusson, Jaron Lochner, Jiacheng Liu, Lester James V. Miranda, Maarten Sap, Malia Morgan, Michael Schmitz, Michal Guerquin, Michael Wilson, Regan Huff, Ronan Le Bras, Rui Xin, Rulin Shao, Sam Skjonsberg, Shannon Zejiang Shen, Shuyue Stella Li, Tucker Wilde, Valentina Pyatkin, Will Merrill, Yapei Chang, Yuling Gu, Zhiyuan Zeng, Ashish Sabharwal, Luke Zettlemoyer, Pang Wei Koh, Ali Farhadi, Noah A. Smith, and Hannaneh Hajishirzi. Olmo 3. arXiv preprint arXiv:2512.13961, 2025. doi: 10.48550/arXiv.2512.13961. URL https://arxiv.org/abs/2512.13961.
Jens Tuyls, Dylan Foster, Akshay Krishnamurthy, and Jordan Ash. Representation-based exploration for language models: From test-time to post-training. In Carl Vondrick, Bharath Hariharan, Colin Raffel, Lerrel Pinto, Diyi Yang, and Aleksandra Faust (eds.), International Conference on Learning Representations, volume 2026, pp. 120621–120645, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/file/c420aca62da1d668e8e79e0bcae24e6b-Paper-Conference.pdf.
Christian Walder and Deep Tejas Karkhanis. Pass@K policy optimization: Solving harder reinforcement learning problems. In Advances in Neural Information Processing Systems, volume 38, pp. 152416–152445. Curran Associates, Inc., 2025. doi: 10.52202/085713-5096. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/df8a1a6306c3bcc89f6078759feadf62-Abstract-Conference.html.
Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3-4):229–256, 1992. doi: 10.1007/BF00992696. URL https://doi.org/10.1007/BF00992696.
Yunhui Xia, Wei Shen, Yan Wang, Jason Klein Liu, Huifeng Sun, Siyue Wu, Jian Hu, and Xiaolong Xu. LeetCodeDataset: A temporal dataset for robust evaluation and efficient training of code LLMs. arXiv preprint arXiv:2504.14655, 2025. doi: 10.48550/arXiv.2504.14655. URL https://arxiv.org/abs/2504.14655.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. doi: 10.48550/arXiv.2505.09388. URL https://arxiv.org/abs/2505.09388.
Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Ru Zhang, Wang Zhang, Hang Zhu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan, Yonghui Wu, and Mingxuan Wang. DAPO: An open-source LLM reinforcement learning system at scale. In Advances in Neural Information Processing Systems, volume 38, pp. 113222–113244. Curran Associates, Inc., 2025. doi: 10.52202/085713-3775. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/a4277440d50f1f15d2cb4c14f7e0c0d2-Abstract-Conference.html.
Yang Yue, Zhiqi Chen, Rui Lu, Andrew Zhao, Zhaokai Wang, Yang Yue, Shiji Song, and Gao Huang. Does reinforcement learning really incentivize reasoning capacity in LLMs beyond the base model? In Advances in Neural Information Processing Systems, volume 38, pp. 57654–57689. Curran Associates, Inc., 2025. doi: 10.52202/085713-1933. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/537d5aa768c2d534016a4d06f87bc8fb-Abstract-Conference.html.
APPENDIX
CONTENTS
A A Variational Optimality Lemma 16
B Binary-Rewards Derivation 18
B.1 Optimal Policy ..... 18
B.2 Scalar Equation and Uniqueness ..... 19
B.3 Boundary Cases ..... 20
B.4 Objective-Level Equivalences ..... 21
C Continuous-Rewards Derivation 21
C.1 Optimal Policy ..... 22
C.2 Objective-Level Equivalence ..... 23
D Numerical Reconstruction of the Raw-Reward Optimal CDF 24
D.1 Continuous Reference Reward Distribution ..... 24
D.2 Discrete Reconstruction ..... 24
D.3 Empirical Approximation ..... 25
E Reward-Scale Assumptions for Continuous Rewards 26
F Explicit max@k Solution for Win-Rate Rewards 27
G KAPPO Adaptation of GRPO 29
H Experimental Details 31
I Compute Resources 31
J Reference Calibration 31
J.1 Calibration Algorithms ..... 32
J.2 Boundary Handling ..... 32
K Sensitivity to Finite Reference Calibration 34
K.1 Binary Rewards ..... 35
K.2 Continuous Rewards ..... 39
L Comparison with Direct Multi-Completion Optimization 41
A A VARIATIONAL OPTIMALITY LEMMA
We first establish a general result used in the derivations of both optimal policies. Since all objectives considered in this work decompose over prompts, we fix a prompt throughout this section. Let
denote the support of the reference policy. Any policy assigning positive probability outside has infinite KL divergence, so it is sufficient to optimize over distributions supported on .
Consider an objective of the form
where is a concave reward functional and .
For a feasible policy , consider a perturbation
where
and there exists such that for every and . The first condition ensures that the perturbation has finite total variation, the second preserves normalization, and the third ensures that the perturbed policy remains feasible in the direction under consideration.
We assume that the corresponding one-sided directional derivative of exists and can be written as
for some score , with all displayed sums finite. The specific score corresponding to each @k objective is derived in the following sections.
We additionally assume that an optimal policy exists and has full support on . Under the regularity conditions used below, the reward change produced by transferring probability between two completions is . Suppose, however, that for some and transfer probability to . The resulting change in the negative KL term contains
Although this quantity tends to zero as , its ratio to diverges. Therefore, for sufficiently small , the KL gain dominates the reward change, and a policy assigning zero probability to part of cannot be optimal.
Lemma A.1 (Variational form of a KL-regularized optimum). Under the assumptions above, any maximizer of Eq. 17 satisfies
where
Conversely, any feasible policy satisfying Eq. 22 is the unique maximizer of Eq. 17.
Proof. For compactness, define
Consider any perturbation such that remains feasible for both positive and negative sufficiently small . Applying Eq. 20 to and shows that the corresponding two-sided derivative exists. Since is a local maximum of , this derivative must vanish:
The directional derivative of the KL term is
Together with Eq. 20, this gives
Now consider any two completions and choose
where denotes a unit point mass at . Since has full support, this perturbation remains feasible for both signs of sufficiently small . Substituting it into Eq. 27 yields
Because and were arbitrary, is constant with respect to on . Hence, there exists a prompt-dependent scalar such that
for every .
Rearranging Eq. 30 gives
The final two terms are independent of and can therefore be absorbed into the normalization constant. Imposing gives Eqs. 22 and 23.
It remains to show that this stationary policy is the unique global maximizer. Let be any other feasible policy and define
This perturbation satisfies
and
is a valid policy for every .
Define
Because is concave, is concave on . A concave function lies below its supporting line at the origin, and hence
Using Eq. 20, this gives
The KL difference admits the exact decomposition
(38)
To verify this identity, expand
inside the first KL term and use .
Combining Eqs. 37 and 38 yields
By Eq. 30, for every y. Since both policies have total mass one,
Consequently,
Equality holds only if , proving that is the unique global maximizer.
The score is defined only up to an additive term that depends on x but not on y. Such a term vanishes in Eq. 20 because every permitted perturbation has zero total mass, and it is absorbed into in Eq. 22. The following sections derive the relevant score for the pass@k and max@k reward functionals.
B BINARY-REWARDS DERIVATION
We now apply Lemma A.1 to the pass@k objective. As before, the objective decomposes over prompts, so we fix a prompt x. For any policy , define its success probability
For binary rewards, the probability that at least one of k independent completions succeeds is
The prompt-wise KL-regularized objective is therefore
B.1 OPTIMAL POLICY
Proposition 4.1 (restated). For , the unique maximizer of satisfies
where
with and .
Proof. We first consider ; the boundary cases are treated below. The mapping is concave on for : it is affine for , while for ,
Since is linear in , the reward functional is concave. We can therefore apply Lemma A.1 under its stated regularity assumptions.
Consider a perturbation satisfying the conditions of Appendix A. Its success probability is
Consequently, the directional derivative of the reward functional is
Thus, the score in Eq. 20 is
Applying Lemma A.1 gives
where
Define
Since the reward is binary, the reference policy assigns total mass to unsuccessful completions and total mass to successful completions. Normalizing Eq. 50 therefore gives
Introducing
we recover the form reported in Eq. 4:
The solution remains implicit because its right-hand side depends on the success probability of the unknown optimal policy.
B.2 SCALAR EQUATION AND UNIQUENESS
It remains to determine .
Proposition 4.2 (restated). For , the optimal success probability is the unique solution in of
Proof. Summing Eq. 50 over successful completions gives
Taking the odds ratio and then the logarithm yields
which is Eq. 6 in the main text.
To establish uniqueness, fix and define, for ,
Equation 57 is equivalent to . The function satisfies
and
Hence, is continuous and strictly increasing from to , so it has exactly one root in . Moreover,
which implies that the unique solution satisfies
For k = 1, Eq. 57 reduces to
whose solution is
In this case, , and Eq. 50 reduces to the standard KL-regularized single-reward optimal policy.
B.3 BOUNDARY CASES
The scalar equation above assumes . The two boundary cases follow directly from the support constraint imposed by the KL term.
Boundary cases. If , the unique maximizer of is the reference policy itself:
Proof. If , the reference policy assigns no probability to successful completions. Every policy with finite KL divergence is therefore also supported only on unsuccessful completions, so
The reward term is identically zero over the feasible set, and the reference policy uniquely minimizes the KL term.
If , every completion in the support of the reference policy is successful. Hence, every finite-KL policy has success probability one and the pass@k reward is constant:
The reference policy again uniquely minimizes the KL term.
For , the case corresponds to : once the task is solved with probability one, the pass@k reward provides no further optimization pressure. For , the effective regularization remains .
B.4 OBJECTIVE-LEVEL EQUIVALENCES
We finally prove the two objective-level interpretations stated in the main text.
Corollary 4.3 (restated). Replacing the constant KL coefficient in the ordinary single-reward objective with from Eq. 54 recovers the pass@k optimal policy, with interpreted in the limiting sense.
Proof. For each prompt with finite , consider the ordinary single-reward objective with this prompt-dependent KL coefficient. Its unique optimal policy is
This is exactly the pass@k optimal policy derived in Eq. 50. Since the objective decomposes over prompts and is constant with respect to y for each fixed x, the two objectives have the same optimal policy. When , the limiting policy is , agreeing with the boundary case above.
Corollary 4.4 (restated). The ordinary single-reward objective with constant KL coefficient and transformed reward
has the same unique optimal policy as the pass@k objective.
Proof. Retain the constant KL coefficient and replace the original binary reward with
The corresponding single-reward optimal policy is
This again coincides exactly with the pass@k optimal policy.
C CONTINUOUS-REWARDS DERIVATION
We now derive the optimal policy for the max@k objective with real-valued rewards. As before, the objective decomposes over prompts, so we fix a prompt x. For the derivation, it is sufficient to assume that
for every y in the support of the reference policy, where the endpoints may depend on x. A common reward range across prompts is not required for the optimal-policy derivation; it becomes relevant only for the cross-prompt interpretation discussed in Appendix E.
Boundedness guarantees that the relevant expectations and directional derivatives are finite and permits differentiation under the expectation. The result extends to unbounded rewards whenever the corresponding expectations, integrals, and directional derivatives are finite, the required interchange of differentiation and expectation is valid, and the optimum is attained.
No continuity assumption on the reward distribution is required in this section. In particular, the reward CDF may contain atoms.
For a policy , define
The prompt-wise KL-regularized objective is
C.1 OPTIMAL POLICY
Proposition 4.5 (restated). For and , under the assumptions above, the unique maximizer of satisfies
where is the optimal reward CDF and normalizes the policy.
Proof. Step 1: Concavity and existence. Let
denote the reward CDF under . Since the maximum of k independent rewards is bounded below by , the tail-integral identity gives
For each fixed , is linear in , while the mapping
is concave on . Integration preserves concavity, so is a concave functional of . Combined with the strict concavity of the negative KL term, this implies that Eq. 73 has at most one maximizer.
For a finite completion space, existence follows from compactness of the probability simplex. For a countably infinite space, boundedness of the reward allows a maximizing sequence to be chosen with uniformly bounded KL divergence from . The corresponding KL sublevel sets are tight, so this sequence has a subsequence converging in total variation. The bounded reward functional is continuous under this convergence, while KL is lower semicontinuous, ensuring that the supremum is attained. Bounded rewards also satisfy the full-support condition discussed in Appendix A.
Step 2: Directional derivative. Consider a perturbation
satisfying the conditions of Appendix A. Expanding the product measure in and differentiating at gives one term for each of the k sampled completions. By symmetry,
Thus, one valid score in Eq. 20 is
To isolate the part that depends on y, let
Using
we obtain
The first term depends on and x but not on the candidate completion y. It can therefore be omitted from the score by the additive-constant invariance established after Lemma A.1.
For any real number and random variable ,
Taking expectations and applying Tonelli's theorem gives
This identity holds for arbitrary reward distributions and does not require their CDFs to be continuous.
Because is the maximum of k-1 independent rewards sampled from ,
Substituting this into Eq. 84, with , gives
We may therefore choose the completion-dependent score
Step 3: Optimal policy. Applying Lemma A.1 with the score in Eq. 87 gives
where
This is Eq. 8 from the main text. By the converse statement of Lemma A.1, any feasible policy satisfying this characterization is the unique global maximizer.
The characterization remains implicit because the CDF appearing on its right-hand side is itself induced by the unknown optimal policy. A numerical procedure for reconstructing from the reference reward distribution is provided in Appendix D.
C.2 OBJECTIVE-LEVEL EQUIVALENCE
Corollary 4.6 (restated). For k > 1, define the fixed reward transformation
The ordinary single-reward objective with constant KL coefficient and transformed reward has the same unique optimal policy as the max@k objective.
Proof. Treating as a fixed reward transformation, the corresponding single-reward optimal policy is
Substituting the definition of gives exactly the exponent in Eq. 88. Normalization therefore yields and . Since both objectives decompose over prompts, the equivalence holds for the full objectives as well.
D NUMERICAL RECONSTRUCTION OF THE RAW-REWARD OPTIMAL CDF
The optimal policy in Eq. 88 depends on the unknown reward CDF . In this section, we show how this CDF can be reconstructed numerically from the reference reward distribution. As in the previous derivations, we fix a prompt x and suppress its dependence where doing so does not cause ambiguity.
Define the optimal-policy score
and let
Because the likelihood ratio in Eq. 88 depends on a completion only through its reward, the reward distributions under the optimal and reference policies satisfy
Thus, once the scalar is known, the optimal reward distribution can be reconstructed progressively from lower to higher rewards. The normalization condition determines the unique value of .
D.1 CONTINUOUS REFERENCE REWARD DISTRIBUTION
Suppose first that the reference reward distribution has density on a bounded interval . Let denote the corresponding optimal density. Equation 92 gives
Since
the unknown functions satisfy the coupled system
with initial conditions
For a candidate value of , the system can be integrated forward from to . The correct value is the one satisfying the terminal normalization condition
This gives a one-dimensional shooting problem. The terminal value increases monotonically with , so the normalizing value can be found using bisection or another scalar root-finding method.
D.2 DISCRETE RECONSTRUCTION
In practice, the reference reward distribution is estimated from a finite bank of reference-model completions and is therefore discrete. Let
be its distinct observed reward values, and define
Let
denote the optimal probability mass at reward and the corresponding cumulative probability.
Define
Since the optimal CDF is constant between consecutive reward values,
Grouping Eq. 88 by reward value gives
Equations 102 and 103 yield a forward recursion for any candidate :
The required normalization is
Each quantity in the recursion is continuous and strictly increasing in c. Moreover,
while, for ,
with strict inequality whenever m > 1. Therefore, Eq. 105 has a unique solution in
which can be found efficiently by bisection. Equivalently, one may treat the optimal probability of the lowest reward, , as the scalar search variable.
Once has been determined, the recursion recovers all optimal masses , cumulative probabilities , and scores . For , the reconstructed CDF and score are
Thus, the score is linearly interpolated between adjacent reward levels, with slope determined by the reconstructed optimal CDF.
D.3 EMPIRICAL APPROXIMATION
Given M reference-model completions, the discrete reference masses are estimated as
Substituting these empirical masses into Eq. 104 produces an approximation of and the raw-reward transformation . The reconstruction must be performed once for each prompt and each pair .
Unlike the binary-reward case, where the reference distribution is summarized by the single scalar , the continuous case requires estimating the complete reference reward distribution. Errors in its estimated masses and reward locations propagate through the forward recursion and the subsequent exponential reweighting. This motivates the explicit reference-win-rate construction derived in Appendix F.
E REWARD-SCALE ASSUMPTIONS FOR CONTINUOUS REWARDS
The derivation in Appendix C requires only prompt-wise bounded rewards, or suitable integrability conditions in the unbounded case. The stronger shared-range assumption used in the main text is needed only for interpreting the resulting adaptation across prompts.
Shift invariance. Both objectives studied in this work are invariant, at the level of their optimizer, to prompt-dependent constant reward shifts. For
we have
and
The shift therefore adds a policy-independent constant to Eqs. 1 and 3, leaving their optimal policies unchanged. Consequently, if rewards are bounded below by , we may replace R with and work with nonnegative rewards without loss of generality.
Nonnegative rewards and effective regularization. Suppose that the reward support for prompt has lower endpoint . Since below , the exponent in Eq. 8 can be written, for , as
where
Shifting the lower endpoint to zero gives the simpler expression in Eq. 9. The nonnegative convention therefore provides a natural origin relative to which reward magnitude and effective regularization can be compared. Without such an origin, a definition based directly on would depend on an arbitrary reward shift and could become singular or negative.
This convention is not required for the transformed-reward interpretation. More generally, for any anchor a,
Changing adds the same constant to for every completion of a fixed prompt. This constant is absorbed into the partition function and therefore does not affect the optimal policy.
Common reward range. Our cross-prompt interpretation treats the location of the reference reward distribution — and, informally, its mean
— as an indicator of task difficulty: prompts receiving lower rewards under the reference policy are regarded as more difficult. This interpretation is meaningful only when rewards can be compared across prompts. In particular, a reward value must represent a better outcome than independently of which prompts produced the two values.
We therefore assume a shared, semantically meaningful fixed range,
Without common anchors, the average reward cannot define prompt difficulty consistently. Indeed, because the objectives are invariant to prompt-dependent reward shifts, one could change the mean reward of any prompt arbitrarily without changing either its optimization problem or its optimal policy. A difference between two means would then reflect only a difference in reward coordinates rather than a difference in task difficulty. Prompt-dependent rescalings create the same comparability problem and additionally alter the balance between reward and KL regularization unless is rescaled accordingly. A common fixed range rules out these ambiguities, as in normalized verifier scores and test-case pass rates.
The mean provides an intuitive summary of difficulty but does not, by itself, guarantee a pointwise ordering of the adaptive transformations. A sufficient condition for the ordering illustrated in Figures 1b and 1c can be stated in terms of the optimal reward CDFs. Consider an easy prompt and a difficult prompt on a common range such that
Then, for every common raw reward value,
Thus, the easy prompt receives a smaller transformed reward and stronger effective regularization. This condition formalizes the representative easy–difficult comparison used in the main text; it is not a universal definition of task difficulty. If the reward CDFs cross, the corresponding transformation and effective-regularization curves may also cross, and no global ordering is implied.
F EXPLICIT max@k SOLUTION FOR WIN-RATE REWARDS
We now derive the explicit solution in Eqs. 11–12. Fix a prompt and suppress its dependence where unambiguous. Let
denote the reference reward CDF, and define the reference quantile, or win rate, of a completion as
Proposition 4.7 (restated). Suppose that the reference reward distribution is continuous. For and , the KL-regularized max@k objective with reward has the unique optimal policy
where
and is uniquely determined by . The partition function for this transformed reward is exactly one.
Proof. Step 1: Deriving the optimal win-rate density. Since the reference reward distribution is atomless, the probability integral transform gives
Let
(124) be the win-rate CDF under the optimal policy, and let denote its density. The optimality condition from Appendix C, applied with as the reward, gives
For k = 1, the same expression follows directly from the ordinary KL-regularized optimal policy in Eq. 2.
The multiplier depends on the completion only through its win rate. Since Q is uniform under the reference policy, its CDF under the reweighted policy satisfies
Differentiating gives , and hence . In particular,
Differentiating Eq. 125 yields
Using and treating g as a function of G, we obtain
Integration therefore gives
where . Thus, the optimal win-rate CDF satisfies
Step 2: Determining the constant and the CDF. Separating variables gives
The terminal condition requires
The right-hand side is continuous and strictly decreasing in . It diverges as for every and converges to zero as . Hence Eq. 131 has a unique solution . For this value of , is a strictly increasing bijection from to , and therefore
Step 3: Recovering and verifying the optimal policy. As established in Step 1, the optimal completion policy satisfies . Substituting the density from Eq. 128 and gives
Equivalently, defining
(134) yields
Normalization is already incorporated because
To verify sufficiency, observe that the constructed policy induces win-rate density and hence CDF . Moreover, differentiating with gives . Integrating and using recovers Eq. 125, with normalizing constant . The policy therefore satisfies the sufficient optimality condition from Appendix C. Strict concavity of the KL-regularized objective establishes uniqueness.
The quantities , and depend only on and and can therefore be precomputed independently of the prompt. All prompt dependence enters through the reference CDF .
For k = 1, the construction reduces to the standard exponential tilt:
Ties and discrete rewards. In practical settings such as test-case pass-rate rewards, the reference reward distribution is discrete and contains ties. The deterministic win rate is then not exactly uniform under the reference policy, so the continuous solution provides an approximation to the optimal policy for this win-rate objective. We retain this deterministic convention in our experiments and evaluate the resulting adaptation empirically. The identity likewise holds for the true CDF of a continuous reference reward distribution, but need not hold for discrete rewards or finite-bank CDF estimates. Our implementation retains as part of the same continuous-reference approximation.
G KAPPO ADAPTATION OF GRPO
GRPO constructs its learning signal by centering and standardizing rewards within each prompt's completion group. This section explains how that normalization interacts with the adaptive reward transformations derived in Section 4. For a group of rewards , write and . For clarity, we omit the numerical denominator stabilizer and write the expressions below for nonzero-variance groups; constant-reward groups receive zero advantages.
Cancellation of binary reward scaling. For binary rewards, Corollary 4.4 gives the transformed reward , where
Since this multiplier is shared by all completions of the same prompt, it scales both the centered rewards and their standard deviation. For , the resulting advantages satisfy
Thus, substituting the transformed binary rewards before group standardization cancels the intended prompt-dependent scaling.
Preserving the binary adaptation. The core issue here is that standardized GRPO does not generally estimate the policy gradient of the underlying expected-reward objective. Dividing each group by its empirical reward standard deviation reweights each prompt's update by a factor that depends on the sampled completions and the current policy; consequently, the expected GRPO update generally differs from the policy gradient of the original objective. For the same reason, KAPPO's adaptive reward scaling is discarded, as shown in Eq. 139. Therefore, the failure of ordinary reward substitution in this case arises precisely because standardized GRPO does not follow the objective to which that connection applies.
Accordingly, we treat the KAPPO adaptation of standardized GRPO as an empirical extension of our theoretical result. To retain the derived redistribution of pressure while preserving GRPO's normalization, we apply the adaptive multiplier after standardization:
Since the clipped GRPO surrogate is positively homogeneous in the advantage, this construction multiplies each prompt's contribution to the GRPO loss and gradient by exactly . It therefore preserves the theoretically derived cross-prompt pressure redistribution within GRPO's existing learning signal, without claiming an exact objective-level equivalence. This provides a natural reward-side adaptation for GRPO without KL regularization.
Two alternative implementations recover the theoretically grounded interfaces more directly. Removing standard-deviation normalization while retaining group centering allows the ordinary KAPPO reward scaling to survive. Alternatively, for KL-regularized GRPO, the regularization-side interface can be applied through the adaptive coefficient , as established in Corollary 4.3.
Continuous reward transformations. For continuous rewards, group standardization does not cause the same cancellation. The transformation is nonlinear for , whereas centering and standardization eliminate only affine changes in reward. The transformed rewards are therefore affected by GRPO's normalization but are not generally discarded by it. This is consistent with the purpose of the adaptation: KAPPO supplies the @k reward transformation, while GRPO retains its defining group-relative reweighting of the resulting learning signal.
For the win-rate-based transformation used in our experiments, the interaction is particularly clear. At the beginning of training, when the current policy is close to the reference policy, the population mean and standard deviation of the transformed rewards are approximately the same for every prompt. GRPO normalization is therefore trivial with respect to prompt adaptivity: it applies the same affine transformation across prompts and does not alter the redistribution of optimization pressure induced by KAPPO.
Indeed, write
where is shared across prompts. Under the continuous-reference assumption from Appendix F, at initialization
Hence,
do not depend on the prompt, and GRPO applies the common normalization
Thus, the prompt-adaptive structure of is preserved up to a common shift and scale.
As training proceeds, the current policy's win-rate distribution can evolve differently across prompts, so the corresponding means and standard deviations become prompt dependent. GRPO normalization then becomes nontrivial and interacts with the KAPPO transformation, introducing GRPO's usual prompt-dependent reweighting on top of the adaptive pressure supplied by KAPPO. Since is nonlinear, this normalization affects but does not cancel the @k transformation.
H EXPERIMENTAL DETAILS
General setup. We perform full-parameter training in bfloat16 using AdamW with zero weight decay. We use a cosine learning-rate schedule with a 3% warmup, a maximum prompt and response length of 4096 tokens, and sample training completions with temperature 1 and top-. Hyperparameters and intermediate checkpoints are selected using the corresponding validation sets. All KAPPO adaptations use reference completions per prompt, generated once before training.
Mathematical reasoning. We train for at most 1000 steps. For @k-A*PO, we search learning rates in and in . For PKPO, we search learning rates in and use the minimum rollout multiplicity . GRPO uses completions per prompt and learning rates in . It uses standard group-relative advantage normalization without an additional KL penalty.
For standard DPO, we search learning rates in and in . For @k-DPO, we use the same learning-rate grid and search the base coefficient used to construct in . Both variants construct a preference pair by sampling eight completions and selecting the highest- and lowest-reward candidates; ties receive zero loss weight. We use 64 prompts per DPO step, yielding 128 selected completions after pair construction, and disable log-probability length normalization. For @k-DPO, we add a failure pseudo-count of and cap at 2; the precise boundary handling is described in Appendix J.2. The other mathematical-reasoning experiments use 128 prompts per training step.
Code generation. We train Qwen3-4B for at most 500 steps using 128 prompts per step. For win-rate @k-A*PO, we search learning rates in and in . For PKPO and GRPO, we search learning rates in . PKPO uses , whereas GRPO uses . During training, rewards are computed using up to 64 held-out test cases per problem; validation and final evaluation use the complete available test suite.
For win-rate @k-GRPO, we search learning rates in and the reward-transformation parameter in . As in standard GRPO, we use completions per prompt and no KL penalty.
I COMPUTE RESOURCES
All training runs used 32 NVIDIA GH200 GPUs. Both mathematical reasoning and code-generation runs took approximately 10–12 hours, corresponding to 320–384 GPU-hours per run. The overall computational cost of the study, including hyperparameter sweeps, exploratory runs, and evaluation exceeded 100,000 GPU-hours.
J REFERENCE CALIBRATION
KAPPO requires prompt-level statistics of the reference policy. We estimate them once before training from a fixed bank of reference completions per prompt. Since the reference policy is fixed, the entire bank can be generated as an inference-only job using high-throughput engines such as vLLM or SGLang. Generation can be continuously batched and performed asynchronously, without backward passes, optimizer updates, parameter offloading, or repeated weight synchronization between the actor and generation workers. The resulting rewards are stored and reused across all training runs that share the same starting model and dataset.
For binary rewards, calibration estimates
For each choice of and , we then solve Eq. 6 for and compute and (defined in Eq. 5). The @k-DPO instantiation uses , whereas binary @k-A*PO additionally uses and the reward multiplier .
For continuous rewards, the same bank defines the empirical reference CDF
It is substituted into the explicit transformation in Eq. 12. The remaining quantities and depend only on and and are precomputed once. Both continuous @k-A*PO and @k-GRPO therefore reuse exactly the same calibrated reference rewards; changing , the learning rate, or the random seed requires no additional reference generation.
We use throughout our experiments. For MATH, this corresponds to reference completions per model. Generating the complete bank took approximately 0.5 hours in our setup, whereas a single 1,000-step training run took approximately 10–12 hours. Thus, even if charged entirely to one run, calibration contributes only
of its wall-clock time. More importantly, this is a one-time cost shared by every run using the same model and dataset. Amortized over runs, its relative contribution is only ; over six runs, for example, it adds about five minutes per run, or less than 1%. The bank is typically reused across substantially more configurations, making the practical cost of reference calibration negligible relative to training.
J.1 CALIBRATION ALGORITHMS
Algorithms 1 and 2 summarize reference calibration for binary and continuous win-rate rewards, respectively. Both start from the same reusable reference bank: for each training prompt , draw and store their rewards . This sampling is performed only once per reference model and dataset. Changing or requires only recomputing the numerical tables below, not generating additional completions.
Binary rewards. The calibration depends on each prompt only through its reference success count . We therefore precompute the required quantities for all possible counts. Algorithm 1 includes the method-specific boundary conventions used in our experiments: no smoothing for , and a failure pseudo-count with a coefficient cap for DPO. We store rather than .
During training, binary @k-A*PO uses the regression target , while @k-DPO uses in its preference loss. Neither requires further calibration during training. The fixed-point solve and partition computation are implemented in numerically stable coordinates, as described in Appendix J.2.
Continuous win-rate rewards. An empirical CDF constructed from reference rewards takes values only in . Consequently, the entire win-rate-based transformation can be pre-computed on this grid. The resulting table is shared by all prompts and by both continuous @k-A*PO and @k-GRPO.
For an online completion with reward , TRANSFORMREWARD returns using only comparisons with stored rewards and a table lookup. No numerical integration or root finding is performed during training. The inclusive comparison preserves our convention for ties and includes both empirical-CDF endpoints without smoothing.
Continuous @k-A*PO uses this value as its regression target, retaining under the continuous-reference approximation discussed in Appendix F. @k-GRPO uses the same transformed rewards before its usual group normalization. The parameter determines the transformation in both cases; using it for calibration does not require adding a KL penalty to GRPO.
J.2 BOUNDARY HANDLING
A finite reference bank can contain no successes or only successes even when the true success probability lies strictly between zero and one. The implementation therefore needs explicit conventions
Algorithm 1 Reference calibration for binary rewards
Require: Reference rewards , bank size , training parameter , , method
1: for , or for DPO
2: for do
3:
4: if then
5: ; ;
6: else if then
7:
8: if , otherwise
9:
10: else
11: Solve Eq. 6 with for
12:
13:
14: end if
15: if then
16:
17: end if
18: end for
19: for each prompt do
20:
21:
22: if then
23: ;
24: else
25:
26: end if
27: end for
28: return for , or for DPO
for these empirical endpoints, distinct from the population boundary cases in Appendix B. Let denote the number of successful completions among the reference samples.
Binary @k-A*PO. We use the unsmoothed estimate . Writing , the endpoint values for are
We compute the regression target directly, avoiding an explicit infinite at . Thus, a zero-success bank gives target , whereas an all-success bank gives target zero for . For , the multiplier remains one; the targets at and are and , respectively. No probability smoothing is used for this method.
Binary @k-DPO. Unlike the regression target, the DPO loss requires a finite coefficient. We therefore add a failure pseudo-count and solve the fixed-point equation using with . This leaves the zero-success endpoint unchanged but moves the all-success estimate below one. The formula applies to every count, not only to all-success banks. We then use
Smoothing prevents the infinite coefficient at an empirical success probability of one, while the cap limits very large coefficients near this boundary.
Algorithm 2 Reference calibration for continuous win-rate rewards
Require: Reference rewards , bank size , training parameter
1: if then 2: 3: for do 4: 5: end for 6: else 7: Solve for 8: Define 9: 10: for do 11: Solve for 12: 13: end for 14: end if 15: return Stored reference rewards and the shared table
16: function TRANSFORMREWARD(x, r) 17: 18: return 19: end function
Win-rate endpoints and ties. For continuous @k-A*PO and @k-GRPO, we use the inclusive empirical CDF without smoothing or clipping its values away from zero and one. The transformation remains finite at both endpoints:
Rewards below the smallest reference reward receive the first value; rewards at or above the largest receive the second. Ties retain the inclusive-CDF convention, including for a constant-reward reference bank. For , we retain under the continuous-reference approximation discussed in Appendix F.
Numerical stability. For interior binary estimates, we solve the scalar equation in log-odds coordinates and compute directly from that solution, avoiding loss of precision in near one. Partition terms and win-rate transformations are evaluated in the log domain, with a separate closed-form computation for , to avoid overflow at small . These numerical evaluations do not introduce additional probability smoothing.
Degenerate online groups. In @k-GRPO, we divide centered transformed rewards by their group standard deviation plus ; constant-reward groups therefore have zero advantages. For both DPO variants, selected pairs with equal rewards receive zero loss weight.
K SENSITIVITY TO FINITE REFERENCE CALIBRATION
Reference calibration computes the quantities and mappings required by KAPPO before training. For binary rewards, we first estimate from a fixed bank of reference completions, then solve Eq. 6 for and compute the adaptive reward multiplier or KL coefficient . For continuous rewards, we estimate the reference CDF and substitute it into the win-rate-based transformation . This section analyzes how finite-sample noise in the estimates of and propagates to these final quantities. We distinguish noise, measured by the standard deviation across independently drawn reference banks, from bias, measured by the difference between

Figure 5: Exact optimal success probability as a function of the true reference success probability, for . Markers show the attainable empirical estimates for ; the dotted line marks the first positive estimate . The map is continuous, but its steep rise near zero is compressed on the linear horizontal scale.
the mean estimate and the exact value obtained from the true reference distribution. The figures use our experimental bank size and an illustrative coefficient .
Exact finite-sample calculation. Fix a prompt and let denote the true reference quantity being estimated: for binary rewards, or at a fixed reward threshold for continuous rewards. Each reference completion then produces a binary observation—success in the first case and the event in the second. Hence, the number of positive observations in a bank of i.i.d. reference completions satisfies , and the empirical estimate is .
Let denote any exact downstream quantity computed from , such as , , , or . Let be the value produced by the implemented calibration rule when , including any smoothing or clipping. Since , its exact finite-bank mean, noise, and bias are
We report absolute noise and bias for and . Because the scale of varies substantially, for this quantity we define relative noise and relative bias as and , respectively, using the exact coefficient in the denominator. Equation 151 sums over all possible reference-bank outcomes, without Monte Carlo simulation or a local approximation. The reported errors account for finite-bank estimation and, where applicable, smoothing and clipping; numerical solver error is not included in this analysis.
K.1 BINARY REWARDS
Suppressing the prompt argument, set and let be the optimal success probability determined by Eq. 6. The exact maps applied during reference calibration are
where is the adaptive reward multiplier. For , the boundary values are , , and . For , the multiplier is identically one.
Sensitive regions. Figure 5 shows that rises sharply near zero and changes more gradually in the interior. A finite bank may therefore fail to resolve a narrow region over which the inferred


(a) Optimal success probability .


(b) Adaptive reward multiplier


(c) Adaptive KL coefficient (relative errors).
Figure 6: Exact finite-bank noise (left) and signed bias (right) for and , plotted against the true reference success probability. Panels (a) and (b) use ; panel (c) uses Eq. 153. Coefficient errors are divided by the exact ; the endpoint , where this coefficient diverges for , is omitted. Noise uses logarithmic axes, while signed bias uses symmetric-logarithmic axes that are linear within . Zero noise at deterministic endpoints is omitted from the logarithmic axes.
changes substantially. For example, at , whereas , so observing one success instead of none produces a large change in . The probability of observing no successes is , which for is approximately 0.740 when and 0.042 when .
Estimators used in the analysis. For and , we use the unsmoothed estimate employed in our binary @k-A*PO runs, giving and . Thus, each horizontal-axis value in Figure 6 fixes the true , while the plotted noise describes how the inferred quantities vary across independently drawn reference banks. For , we use the one-sided smoothing and cap employed by @k-DPO:
The smoothing keeps while preserving for a zero-success bank. Without smoothing or clipping, would produce an infinite coefficient for , making its finite-bank moments undefined. We measure bias relative to the exact, unclipped , so the reported bias includes the effect of these implementation safeguards.
Consistency and convergence rates
Lemma K.1 (Consistency of binary calibration). Fix an integer , , and . Under i.i.d. reference sampling, the unsmoothed estimates and are strongly consistent. For fixed and , their noise and bias satisfy
At and , both estimates are exact for every .
Proof. By the strong law of large numbers, almost surely. The fixed-point characterization in Eq. 6 implies that is continuous on , including the limits as and as . Thus, is also continuous, and applying either map to gives almost-sure convergence to its exact value.
For interior , smoothness of follows from the implicit function theorem. Indeed, the derivative of the right-hand side minus the left-hand side of Eq. 6, with respect to the candidate success probability , is
Consequently, both and are smooth on .
For either map , a Taylor expansion around the fixed interior point , together with
gives
These expansions remain valid despite possible boundary behavior of the derivatives: outside a fixed interior neighborhood of , binomial deviations have exponentially small probability, while and are bounded. Taking the square root of the variance gives Eq. 154. Finally, when , almost surely for every , so both errors vanish.
Thus, sampling noise is and bias is at each fixed interior reference success probability. The asymptotic constants depend on the local slope and curvature of the calibration maps, which can be large near sensitive regions. Consequently, these rates describe the large-bank limit but need not accurately predict the errors at ; the figures instead use the exact finite-bank calculation in Eq. 151.
Effect of coefficient stabilization
Lemma K.2 (Consistency under smoothing and clipping). Fix an integer , , and . The estimator in Eq. 153 satisfies
If , it is consistent for the exact coefficient, with noise and bias. If , its noise vanishes and its bias relative to the exact coefficient converges to ; the probability of obtaining an estimate below the cap decays exponentially in . At an interior clipping threshold with , the estimator remains consistent, but its downward bias is of order .
Proof. The smoothed estimate can be written as
It therefore converges almost surely to q, and its bias is
Continuity of the capped coefficient at every interior q gives the stated almost-sure limit. Since the estimator is bounded by two, its mean and variance also converge to those of this deterministic limit.
When , the cap is inactive throughout a neighborhood of . In this neighborhood, the coefficient is a smooth function of , so the same Taylor argument as in Lemma K.1 gives noise and bias. The smoothing changes the leading bias coefficient but not its order. Excursions outside this neighborhood have exponentially small probability and do not change these rates.
When , the estimator equals two throughout a neighborhood of . Obtaining a value below two therefore requires a deviation of from by a fixed positive amount, whose probability decays exponentially by binomial concentration.
Finally, suppose that and . The coefficient is smooth and strictly increasing at this interior point. The central limit theorem and the local form of the clipping operation give
Binomial moment bounds and local smoothness also justify convergence of the first moments. Hence,
establishing the downward bias of order .
The failure pseudo-count thus vanishes asymptotically, whereas the fixed coefficient cap does not. Dividing the noise and bias by the fixed, finite preserves the corresponding rates for the relative errors.
Implications. For and , finite-bank error is concentrated near the low-success boundary and becomes much smaller in the interior. At and , has standard deviation 0.123 and bias -0.028; at , these decrease to 0.026 and 0.001. The same boundary events affect the adaptive multiplier in the opposite direction: a bank containing no successes yields and hence the maximal multiplier , producing an upward bias in the pressure assigned to prompts with small but nonzero success probability. As , both noise and bias vanish, and the probability of unresolved zero-success banks decays exponentially. This improvement need not be monotone in : near the low-success boundary, larger banks can initially increase variability as successful completions begin to appear. Additional reference completions are therefore most valuable for hard prompts for which is small. At the exact boundary , there is no estimation error: every bank contains zero successes and the maximal multiplier is the correct value.
For , the effective KL coefficient has a different limitation near . Because the exact diverges while the implemented estimator is capped, its sampling noise can be small simply because nearly all estimates have saturated at the cap, even though its downward bias relative to the exact coefficient is large. Increasing reduces finite-bank noise asymptotically but cannot remove this cap-induced bias; doing so requires changing the cap or the stabilization rule. Thus, larger reference banks address the main uncertainty on low-success prompts, whereas accuracy on extremely easy prompts is ultimately limited by the chosen coefficient stabilization.

(a) Win-rate-based reward transformation.

(b) Noise in the transformed reward.

(c) Bias in the transformed reward.
Figure 7: Win-rate transformation and exact finite-bank noise and bias for and . To compare different , values are normalized by ; this normalization is only for display, and the transformation panel additionally subtracts . The horizontal axis is the true reference quantile of a fixed raw reward. Noise and bias use the same axis conventions as Figure 6.
K.2 CONTINUOUS REWARDS
For continuous rewards, reference calibration estimates the CDF value at each reward threshold and substitutes it into the win-rate-based transformation. At a fixed prompt and raw reward r, write Eq. 12 as
Here, counts the reference completions whose rewards do not exceed , so and . The estimated transformed reward is therefore , and its exact noise and bias follow from Eq. 151 by setting and . This pointwise calculation requires no model of the full raw-reward distribution. To compare different , we divide the plotted noise and bias by the transformation range .
Sensitivity and convergence guarantees
Lemma K.3 (Consistency and error bounds for win-rate calibration). Fix an integer and . The transformation in Eq. 155 is convex and -Lipschitz. Under i.i.d. reference sampling, for every and bank size , the estimator satisfies
At fixed interior , the asymptotic expressions in Eq. 154 apply with . At and , both errors are zero.
For each fixed prompt, the estimated mapping converges uniformly almost surely to . Moreover, for every ,
These estimation guarantees hold for both continuous and discrete reference reward distributions.
Proof. Shape of the transformation. Using , differentiation gives, for ,
Since , these derivatives satisfy
Thus, is convex and -Lipschitz. For , direct differentiation gives and , so the same conclusions hold.
Pointwise noise and bias. The Lipschitz property gives
Taking square roots proves the noise bound. Convexity and give by Jensen's inequality. A second-order Taylor expansion with the uniform bound on gives
Taking expectations proves the upper bound on bias. At fixed interior , the Taylor argument from Lemma K.1 yields Eq. 154. At either endpoint, almost surely, so both errors vanish.
Uniform consistency. The Lipschitz property also implies
Applying the Dvoretzky–Kiefer–Wolfowitz–Massart inequality (Massart, 1990) proves Eq. 157. More generally, for every ,
The right-hand side is summable over , so the Borel–Cantelli lemma gives uniform almost-sure convergence. Neither the binomial calculation nor the empirical-CDF inequality requires a continuous reference distribution.
Where quantile error matters. Equation 158 shows that sensitivity increases toward the upper reference quantiles. Convexity also explains the upward bias: although the empirical CDF is unbiased at each fixed threshold, the transformed reward generally is not. For , is affine, so the bias is zero and the standard deviation is exactly .
The finite-sample bounds establish noise and bias for fixed and , while Eq. 154 gives the leading constants at fixed interior quantiles. These guarantees concern estimation of the mapping ; they do not require the reference win rates themselves to be uniformly distributed.

--- Starting checkpoint —— @2-A*PO —— PKPO,

(a) .
--- Starting checkpoint —— @4-A*PO —— PKPO,
(b) .
Figure 8: AIME 2026 test performance of the starting checkpoints and the selected @k-A*PO and PKPO checkpoints across evaluation sampling budgets. Each subfigure reports Qwen3-4B (left) and OLMo-3-7B (right).
Implications. The win-rate transformation has the opposite sensitive region: both noise and bias are small at low and intermediate quantiles but increase toward the upper tail, where is steepest, before vanishing at . At , the standard deviation and bias of the transformed reward are 2.62% and 0.66% of its range at , but increase to 18.27% and 4.43% at . The bias is positive because the convex transformation amplifies upward empirical-CDF errors more than downward ones. Near the upper boundary, the main finite-sample event is assigning the maximal empirical quantile to a reward whose true quantile is below one; for example, at , this occurs with probability .
Both effects vanish as , as concentrates around and the probability of assigning a premature maximal quantile decreases. Additional reference completions are therefore most useful when accurate upper-tail ranks are important, particularly where is small. Since the same reference bank is reused throughout training, its error is a fixed distortion of the estimated transformation rather than fresh noise at every update. Overall, provides substantially better resolution away from the sensitive boundaries, while larger banks can be targeted to hard binary prompts or to applications requiring more accurate upper-tail quantiles. For continuous rewards, this analysis isolates uncertainty from estimating the reference CDF; the separate approximation introduced by tied or discrete rewards is discussed in Appendix F.
L COMPARISON WITH DIRECT MULTI-COMPLETION OPTIMIZATION
Checkpoint selection. For each model, method, and training value , we select the checkpoint that maximizes pass@ on the MATH Level 5 validation problems. Figure 3 reports the complete validation curves of the selected checkpoints, and Table 1 reports the corresponding numerical values.
At the evaluation budget matching the training objective, @k-A*PO is within 0.5 percentage points of PKPO in every comparison. The two methods also produce similar performance across the remaining evaluation budgets. This supports the central prediction of our analysis: adaptive pressure applied through an ordinary single-completion optimizer can reproduce direct multi-completion pass@k optimization.
Figure 8 extends this comparison to AIME 2026. Across both model families and training values of k, the two methods achieve comparable performance across evaluation budgets, showing that their agreement extends beyond the in-distribution validation set to harder, unseen problems.
Rollout-compute comparison. With a prompt batch of 128 and 1,000 training steps, @k-APO generates 128,000 on-policy completions per run. PKPO generates n completions for every prompt and therefore requires 128,000n completions. At its minimum rollout multiplicity n = k, this gives 256,000 completions for k = 2 and 512,000 for k = 4. Thus, @k-APO reduces online rollout generation by 50% and 75%, respectively; larger PKPO groups increase this difference proportionally.
Table 1: MATH Level 5 validation performance (in %) of the starting checkpoints and selected @k-A*PO and PKPO checkpoints, corresponding to Figure 3.
| Model | Method | pass@1 | pass@2 | pass@4 | pass@8 | pass@16 |
|---|---|---|---|---|---|---|
| OLMo-3-7B | Starting checkpoint | 37.38 | 50.94 | 63.16 | 73.29 | 81.80 |
| @2-A*PO | 65.34 | 76.98 | 84.38 | 89.11 | 92.22 | |
| PKPO () | 66.08 | 77.38 | 84.73 | 89.46 | 92.52 | |
| @4-A*PO | 64.46 | 76.51 | 84.39 | 89.33 | 92.45 | |
| PKPO () | 64.31 | 76.18 | 83.92 | 89.04 | 92.45 | |
| Qwen3-4B | Starting checkpoint | 23.93 | 38.32 | 54.32 | 68.16 | 77.79 |
| @2-A*PO | 57.27 | 70.48 | 79.39 | 85.34 | 89.43 | |
| PKPO () | 59.88 | 70.77 | 78.77 | 84.59 | 88.75 | |
| @4-A*PO | 57.22 | 70.14 | 78.63 | 84.22 | 88.29 | |
| PKPO () | 57.94 | 69.91 | 78.65 | 84.81 | 89.20 |
@k-A*PO additionally requires one-time reference calibration, whose implementation and cost are detailed in Appendix J. In our setup, generating the complete reference bank took approximately half an hour, compared with 10–12 hours for one training run, and the same bank is reused across all configurations of a given model and dataset. Even when amortized over only six runs, calibration therefore adds approximately five minutes per run, or less than 1% of training time. Its contribution is consequently small relative to the savings from removing PKPO's -dependent online rollout multiplicity.