Controlling Sharpening in Large Language Model Post-TrainingControlling Sharpening in LLM Post-Training
The authors derive closed-form optimal policies for KL-regularized pass@k/max@k and propose KAPPO, stating that single-completion training can reproduce the effect of multi-completion @k optimizers.
- RL post-training improves single-attempt success rate while producing sharpening: probability concentrates on already-learned behaviors, and the range of solvable problems under multiple sampling narrows. pass@k/max@k objectives can mitigate this, but the mechanism is unclear and dedicated multi-completion algorithms are required.
- The authors derive closed-form optimal policies for KL-regularized pass@k and max@k, prove they are equivalent to @1 objectives with the regularization strength or reward adaptively adjusted by prompt difficulty, and on this basis propose KAPPO: after a one-time reference calibration, βeff(x) or a transformed reward turns existing @1 methods into @k optimizers.
- On MATH/AIME 2026 (binary reward) and LeetCodeDataset/LiveCodeBench v6 (continuous reward), k>1 training shifts gains from small sampling budgets to large budgets; on the MATH Level 5 validation set at matched budgets, the gap between @k-A⋆PO and PKPO is within 0.5 percentage points, with online rollouts reduced by 50% (k=2) and 75% (k=4).
- The authors note: reference calibration uses a static sample bank with fixed M=30, so the estimates of p∗ and Sxq are noisy; the continuous-reward experiments optimize a win-rate surrogate rather than the original max@k; the win-rate solution assumes a continuous reference reward distribution, and applying it to discrete rewards with ties is only an approximation.
- Evaluated models
- OLMo-3-7B-Instruct-SFTQwen3-4B-Base
- Benchmarks
- MATHAIME 2026LeetCodeDatasetLiveCodeBench v6 (hard subset)
- Metrics
- pass@kmax@k
The researchers propose KAPPO (@k Adaptive Pressure for Policy Optimization), a method that, after one-time reference calibration, adapts existing @1 reinforcement learning methods to @k objectives via prompt-adaptive regularization or reward transformation, for controlling sharpening in post-training. The authors derive closed-form solutions for the optimal policies of KL-regularized pass@k and max@k objectives, showing that @k optimization redistributes learning pressure across prompts according to difficulty, directing it toward harder problems, and on this basis give an optimizer-agnostic explanation of why @k objectives can reduce sharpening on easy tasks while prioritizing improved success rates on hard tasks. Experiments on mathematical reasoning and code generation tasks with multiple RL methods show that KAPPO can directly control the degree of sharpening without modifying the original training pipeline, and that single-sample training can match the performance of multi-sample @k optimizers at a fraction of their cost.
Paper analysis
What problem does this paper attempt to solve?
Addressing the sharpening problem in RL post-training: giving closed-form optimal policies for pass@k/max@k objectives and a general @1 adaptation framework.
Core problem: RL post-training improves single-attempt success rates while producing sharpening—probability concentrates on behaviors the model already exhibits, the range of problems solvable under multiple sampling narrows instead, and existing @k optimization methods have unclear mechanisms and rely on specialized algorithms.
- Problem setting and importance: The authors note that RL post-training improves average performance in verifiable domains such as mathematical reasoning and code generation, but recent studies (Yue et al., 2025; Song et al., 2025) show that its dynamics are dominated by sharpening: single-attempt (pass@1) gains weaken or even reverse under multi-sample settings, and generated reasoning paths are confined to a narrow subset of the base model's distribution.
- Shortcomings of existing methods: The authors state that injecting randomness or diversity at the token level rarely translates into diversity of high-level reasoning strategies (Walder & Karkhanis, 2025; Chen et al., 2025b); although pass@k/max@k as training objectives can mitigate sharpening, the mechanism by which they work remains unclear, and existing @k optimizations all rely on specialized algorithms, so progress in @1 RL cannot be directly transferred to the @k setting.
- Core observation: The authors derive that @k optimization is essentially a prompt-adaptive pressure: on simple tasks the model can already solve reliably, it strengthens effective regularization and restricts optimization, shifting pressure toward hard tasks where successful behaviors are scarce.
- What the paper proposes: The authors give closed-form optimal policies for KL-regularized pass@k and max@k objectives, proving that the ordinary @1 objective can achieve exactly the same optimal policy through prompt-adaptive regularization or reward transformation; on this basis they propose the KAPPO (@k Adaptive Pressure for Policy Optimization) framework, which after a one-time reference calibration turns existing @1 methods into @k optimizers, with k directly controlling sharpening and without needing to group k completions online.
What related research exists?
Related work falls into two groups: exploration mechanisms in RLVR, and pass@k/max@k optimization; baselines are k=1 training and PKPO.
Exploration mechanisms in RLVR
- Standard exploration strategies: entropy regularization (Mnih et al., 2016; Haarnoja et al., 2018; Ahmed et al., 2019) and noisy reward perturbation (Lu & Van Roy, 2017); the paper notes that, relative to methods designed specifically for multiple inference, they yield only limited or sensitive improvements (Walder & Karkhanis, 2025; Chen et al., 2025b).
- Structured exploration methods: policy ensembles based on epistemic uncertainty (Menet et al., 2026a), and exploration rewards based on final outcomes (Song et al., 2025), hidden representations (Tuyls et al., 2026; Menet et al., 2026b), or sequence-level diversity (Hu et al., 2026). The paper notes that these methods rely on different novelty proxies and use differing evaluation settings, and that LLM post-training has no generally accepted exploration mechanism.
- Diversity evidence: Kirk et al. (2024) show that RL continuously reduces generation diversity, including on problems the model has not yet solved (Song et al., 2025).
pass@k and max@k optimization
- Origin of pass@k: originally proposed as an evaluation metric for code generation (Chen et al., 2021), and recently used as a training objective.
- PKPO (Walder & Karkhanis, 2025): derives unbiased policy gradient estimators for binary pass@k and continuous max@k; the paper relays its conclusions that increasing k during training maintains higher entropy, increases the number of problems solved at least once, and restores learning on hard tasks where pass@1 optimization stalls. The max@k objective is submodular (Krause & Golovin, 2014).
- Follow-up work: analytical advantage design (Chen et al., 2025b), token-level mechanisms preventing excessive probability concentration (Peng et al., 2025), improved policy gradient estimation for order-statistic objectives (Parmas et al., 2026), and a pass@k interpretation of the maximum-likelihood objective (Tajwar et al., 2026). The paper notes that these methods mainly analyze training gradients or construct multi-completion learning signals.
Baselines and benchmarks: the main baseline is k=1 training (at which KAPPO does not change the underlying @1 optimizer); it is also compared with the dedicated multi-completion pass@k algorithm PKPO. The benchmarks are MATH, AIME 2026, LeetCodeDataset, and LiveCodeBench v6.
Positioning of this paper: the authors state that, unlike the above work, this paper derives the KL-regularized optimal policy and proves that the effect of @k optimization can be reproduced by a prompt-adaptive @1 objective, thereby providing a general path to turn existing @1 methods into @k variants without constructing expensive @k multi-completion learning signals.
How does the paper address this problem?
Derive closed-form optimal policies for @k objectives, prove they are equivalent to prompt-adaptive @1 objectives, and on this basis propose the KAPPO framework.
Overall approach: first derive the closed-form optimal policies for the KL-regularized pass@k and max@k objectives, proving that @k optimization is equivalent to ordinary @1 optimization with the regularization strength or reward adaptively adjusted by prompt difficulty; on this basis propose the KAPPO framework, which after a one-time reference calibration turns existing @1 methods into @k optimizers.
Problem setting
- Standard objective: KL-regularized reward optimization J(π) := Ex∼ D Ey∼π(·|x) [R(y, x)] − β KL(π(·|x)|πref(·|x)), whose optimal policy is of exponential-tilt form π*(y|x) ∝ πref(y|x) exp(R(y,x)/β).
- @k objectives: pass@k measures the probability that at least one of k independent completions succeeds (binary reward); max@k measures the expected maximum reward over k completions (continuous reward); substituting Vk(π; x) for the @1 reward in the above gives the Jk studied in this paper.
Binary reward: closed-form solution for pass@k
- Optimal policy (Proposition 4.1): same form as the @1 solution, but the constant β is replaced by a prompt-dependent effective regularization strength βeff(x) = β / (k(1−p*(x))^(k−1)), where p*(x) is the success rate of the optimal policy.
- Explicit form (Proposition 4.2): p*(x) is the unique solution in (0,1) of the scalar fixed-point equation k(1−p∗(x))k−1 = β log (p∗(x)(1−pref(x)))/(pref(x)(1−p∗(x))); pref(x) can be estimated by sampling from the reference model, and p*(x) is solved numerically before training.
- Two equivalences (Corollary 4.3, 4.4): using βeff(x) for prompt-adaptive regularization, or keeping β fixed and multiplying the reward by k(1−p*(x))^(k−1), makes the ordinary @1 objective yield exactly the pass@k optimal policy.
- Intuition for reducing sharpening: for easy tasks pref(x) is high and p*(x) is high, so the effective regularization is stronger and the optimization pressure weaker; for hard tasks the opposite holds. The authors state this offsets the over-concentration caused by "treating pushing an already-solved task from 0.9 to 1.0 as equivalent to pushing a hard task from near 0 to 0.1."
Continuous reward: closed-form solution for max@k
- Optimal policy (Proposition 4.5): π*(y|x) ∝ πref(y|x) exp((k/β) ∫ Fπ*(r|x)^(k−1) dr), still implicitly dependent on the unknown optimal reward CDF Fπ*, which can be numerically reconstructed before training (Appendix D).
- Regularization-side interpretation (Eq. 9): βeff(r, x) can be written out, but it also depends on the reward of a single completion, so the exact adaptive-regularization equivalence of the binary case no longer holds; the authors state it can still serve as an interpretation and as a design reference for completion-level adaptive regularization.
- Reward-side equivalence (Corollary 4.6): an ordinary @1 objective with the transformed reward Sx(r) = k ∫ Fπ*(u|x)^(k−1) du yields exactly the max@k optimal policy.
- Explicit win-rate solution (Proposition 4.7): after replacing the reward with the reference quantile (win rate against reference-policy completions), the optimal policy has a fully explicit expression; the scalar C and the mapping Ψ depend only on k and β and can be computed numerically in advance, and the only prompt-dependent quantity Fref(r|x) can be estimated once from a fixed reference completion pool.
KAPPO framework and three instances
- Reference calibration: before training, generate a fixed set of M reference completions per prompt (M = 30 in experiments), estimate pref(x) or Fref(r|x), and solve for the required coefficients; calibration is done once and reused across training runs (Appendix J).
- @k-DPO (regularization side): replace DPO's global KL coefficient with βeff(x) (Eq. 13), leaving the rest of the training procedure unchanged; each online update needs only one pair of completions.
- @k-A⋆PO (reward side): replace the reward in the A⋆PO regression loss with an adaptive reward; in the binary case use βR/βeff(x), in the continuous case use the win-rate transform Sxq and set Z(x)=1. A⋆PO uses only one online completion per prompt, serving to verify "no need for online k-completion groups."
- @k-GRPO (reward side): under continuous reward, replace the within-group rewards in GRPO with Sxq(Ri) and then perform group normalization (Eq. 15); following common RLVR practice, no KL term is added, which the authors state also tests whether KAPPO remains effective outside the theoretically assumed KL-regularized setting. Appendix G notes that under binary reward group normalization cancels the adaptive multiplier, so the binary GRPO adaptation must apply the multiplier after normalization, which the authors position as an empirical extension of the theoretical result.
What experiments did the paper conduct?
Validated on mathematical reasoning and code generation that k controls sharpening; @k-A⋆PO matches PKPO with single-completion training.
Experimental setup
- Models under test: OLMo-3-7B-Instruct-SFT (an SFT-only checkpoint without RL, with a public training pipeline and data decontamination) and Qwen3-4B-Base (a pretrained checkpoint, reducing the influence of undisclosed post-training data); the selection principle is to avoid models that have undergone reasoning-oriented preference optimization or RL, lowering the risk of training and evaluation data contamination.
- Tasks and data: mathematical reasoning uses a binary reward (1 if the answer is correct), trained on the MATH training set, validated in-distribution on the MATH test set, and finally evaluated on AIME 2026 (the authors state that its difficulty mostly exceeds the highest difficulty tier of MATH and that it was released after both model checkpoints); code generation uses a continuous reward (test case pass rate, [0,1]), trained on the LeetCodeDataset training set, validated on its test set, and finally evaluated on the hard subset of LiveCodeBench v6 (released January–April 2025), with only the code experiments using Qwen3-4B-Base.
- Baselines: k=1 training (KAPPO does not change the underlying @1 optimizer at k=1); the dedicated multi-completion pass@k algorithm PKPO (Walder & Karkhanis, 2025), with the minimum feasible rollout multiple n = k.
- Metrics: pass@keval (binary) and max@keval (continuous) as a function of the evaluation sampling budget keval; gains at small keval indicate probability concentrating on already-learned behaviors, while gains at large keval indicate broader coverage.
- Training details: full-parameter bfloat16 training, AdamW, cosine learning rate (3% warmup), maximum length 4096 tokens, sampling temperature 1; mathematical reasoning for at most 1000 steps with 128 prompts per step (64 for DPO), code generation for at most 500 steps; GRPO with n=8 completions per group; all KAPPO adaptations use M=30 reference completions; hyperparameters and checkpoints are selected on the validation set (Appendix H).
- Number of repetitions: the paper does not report multiple repetitions or variance.
Main results
Comparison of @k-A⋆PO and PKPO on the MATH Level 5 validation set (Table 1, units %, checkpoints selected by validation-set pass@ktrain):
Swipe horizontally to read the table
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 OLMo-3-7B @2-A⋆PO 65.34 76.98 84.38 89.11 92.22 OLMo-3-7B PKPO (ktrain=2) 66.08 77.38 84.73 89.46 92.52 OLMo-3-7B @4-A⋆PO 64.46 76.51 84.39 89.33 92.45 OLMo-3-7B PKPO (ktrain=4) 64.31 76.18 83.92 89.04 92.45 Qwen3-4B Starting checkpoint 23.93 38.32 54.32 68.16 77.79 Qwen3-4B @2-A⋆PO 57.27 70.48 79.39 85.34 89.43 Qwen3-4B PKPO (ktrain=4) 57.94 69.91 78.65 84.81 89.20 (For Qwen3-4B, @2-A⋆PO corresponds to the PKPO ktrain=2 row, and the @4-A⋆PO row values are also reported in Table 1 but omitted here due to row limits; see Table 1 for the complete data.)
- Gap to PKPO: the authors report that at evaluation budgets matching the training objective, the gap between @k-A⋆PO and PKPO does not exceed 0.5 percentage points in any comparison, and the two perform similarly at other budgets (Appendix L).
- Cost: the authors report that with 128 prompts per step and 1000 steps, @k-A⋆PO generates 128,000 online completions, while PKPO at n=k requires 256,000 (k=2) and 512,000 (k=4), i.e., 50% and 75% fewer online rollouts respectively; reference calibration generates the reference library in about 0.5 hours, about 4.2%–5.0% of a single 10–12 hour training run, and is one-time and reusable across runs (Appendices J, L).
- Authors' interpretation: the authors state that this supports their core prediction—that @k optimization can be achieved without relying on online k-completion learning signals, by injecting adaptive pressure into a single-completion optimizer.
Adjusting k to control sharpening (AIME 2026 and LiveCodeBench)
- What was measured: Figure 2 plots pass@keval on AIME 2026 as a function of keval (1 to 512), covering both the reward-side (A⋆PO, @2/@4-A⋆PO, GRPO) and regularization-side (DPO, @2-DPO) interfaces, for both models.
- Results: the gains of k=1 training (A⋆PO, GRPO, DPO) concentrate at small keval and diminish as keval increases; k>1 training usually (not always) retains less pass@1 gain but overtakes the k=1 baseline at larger evaluation budgets. This pattern appears across both models, both optimizers, and both interfaces. Figure 4 observes the same qualitative pattern on the LiveCodeBench v6 hard subset (Qwen3-4B) for win-rate @k-A⋆PO and @k-GRPO (k∈{1,2,4}): k=1 improves max@1 the most but its advantage shrinks with budget, with the starting checkpoint eventually catching up; k>1 overtakes at large budgets.
- Authors' interpretation: the authors state that these results corroborate the theoretical prediction—@k adaptation counteracts excessive sharpening, shifting optimization pressure from already-easy tasks to hard tasks with sparse successful behaviors; the win-rate reward transformation provides similar control for continuous rewards.
Sensitivity analysis of calibration error (Appendix K)
- What was measured: for M=30, β=0.1, exact finite-sample computation (Eq. 151, not Monte Carlo) is used to analyze how reference-library noise and bias propagate to p*, ak, βeff, and Sxq.
- Results (binary): at k=4, the standard deviation of the p* estimate at pref=0.1 is 0.123 with bias −0.028; at pref=0.5 it drops to 0.026 and 0.001; errors concentrate at the low-success-rate boundary. A reference library with no successful samples yields the maximum multiplier k, producing an upward pressure bias for prompts with small but nonzero success rates.
- Results (continuous): the sensitive region of the win-rate transformation is the opposite, with noise and bias increasing at high quantiles: at k=4, q=0.5 gives 2.62% (standard deviation) and 0.66% (bias) of the transformation's range, rising to 18.27% and 4.43% at q=0.9; the bias is positive because the convex transformation amplifies upward CDF errors. The authors state that noise and bias vanish as M→∞, but the bias from the cap on βeff (cap 2) cannot be eliminated by increasing M.
Other ablations and analyses
- @k-A⋆PO vs. PKPO on AIME 2026 (Figure 8): for both models and ktrain∈{2,4}, the two methods perform similarly at each evaluation budget, and the authors state that the consistency extends to harder out-of-distribution problems.
- GRPO normalization interaction (Appendix G): under binary rewards, group normalization cancels the adaptive multiplier (Eq. 139), so binary @k-GRPO applies the multiplier after normalization; the continuous win-rate transformation is nonlinear and is not canceled by normalization.
- Boundary handling (Appendix J.2): @k-DPO adds a failure pseudo-count α=0.5 and caps βeff at 2; binary @k-A⋆PO applies no smoothing, and an all-success library gives a zero objective when k>1.
- Compute (Appendix I): all training uses 32 NVIDIA GH200 GPUs, about 10–12 hours per run (320–384 GPU hours), with total cost including hyperparameter search exceeding 100,000 GPU hours.
What are some points that can be further explored?
The authors list three limitations: calibration budget, raw-reward max@k, and discrete-reward approximation; experiments cover two models and two task types.
Limitations and future directions noted by the authors
- Calibration budget allocation (Limitations and future work in the Conclusion): Reference calibration uses a static sample bank of a fixed M completions per prompt, rather than optimizing the budget according to the noise propagation in the equations of Propositions 4.2 and 4.7, which makes the estimates of p* and Sxq noisier; the authors state that future work could study better budget allocation.
- Surrogate objective for continuous rewards (same section): The continuous-reward experiments optimize the win-rate surrogate Sxq rather than max@k of the original reward; empirical evaluation of the numerically reconstructed Fπ* (Appendix D) is left to future work.
- Discrete-reward approximation (same section): The win-rate solution assumes a continuous reference reward distribution; applying it to discrete rewards with ties is only an approximation.
Experimental coverage
- Models tested: OLMo-3-7B-Instruct-SFT and Qwen3-4B-Base, 2 in total; the code generation experiments use only Qwen3-4B-Base (Sections 6.1, 6.3).
- Tasks and benchmarks: Mathematical reasoning (MATH train/validation, AIME 2026 test, binary reward) and code generation (LeetCodeDataset train/validation, LiveCodeBench v6 hard subset test, continuous reward), 2 task types in total.
- Optimizers adapted: A⋆PO, DPO, GRPO, three in total; the specialized @k algorithm compared against is PKPO, with ktrain∈{2,4}, n=k (Section 6.1, Appendix L).
- Training k values: A⋆PO with k∈{1,2,4}, DPO with k∈{1,2}, and @k-A⋆PO and @k-GRPO for code generation with k∈{1,2,4} (Figures 2, 4).
- Not reported by the paper: The number of repeated runs and the variance of results; the Qwen3 pretraining data cutoff is not public, and the authors write that contamination of LiveCodeBench cannot be fully ruled out (Section 6.3).
Summarize the main content of the paper
KAPPO: turns an @1 optimizer into an @k optimizer via prompt-adaptive pressure, with single-completion training matching PKPO.
A methods paper on LLM reinforcement learning post-training, addressing the sharpening problem—RL improves single-attempt success rate but concentrates probability on behaviors the model already knows, narrowing the range of solvable problems under multiple sampling.
- Problem addressed: pass@k/max@k training objectives can mitigate sharpening, but the mechanism is unclear, and existing methods rely on specialized multi-completion algorithms, so @1 RL progress cannot be directly transferred.
- Theoretical contribution: the authors derive closed-form optimal policies for KL-regularized pass@k and max@k objectives, proving that @k optimization is equivalent to ordinary @1 optimization with regularization adapted to prompt difficulty—strengthening effective regularization on easy tasks and increasing optimization pressure on hard tasks; under binary rewards this can be implemented exactly via βeff(x) or reward scaling, and under continuous rewards they give a reward-transformation equivalence and an explicit solution for win-rate rewards.
- Method: the KAPPO framework. Before training, a one-time reference calibration is done (M=30 reference completions per prompt), after which adaptive regularization or transformed rewards turn existing @1 methods into @k optimizers, instantiating @k-DPO, @k-A⋆PO, @k-GRPO; k directly controls sharpening, with no need for online k-completion groups.
- Key results: on MATH/AIME 2026 (binary) and LeetCodeDataset/LiveCodeBench v6 (continuous), k>1 training shifts gains from small evaluation budgets to large budgets, and this pattern appears for both models and both interfaces (Figure 2, 4); @k-A⋆PO is within 0.5 percentage points of PKPO at matched budgets on the MATH Level 5 validation set (Appendix L), reduces online rollouts by 50% (k=2) and 75% (k=4), and reference calibration takes about 4.2%–5.0% of a single training run and can be reused across runs.
- Authors' conclusion: the authors state that single-completion training can fully realize @k pressure, matching multi-completion @k optimizers at a fraction of the cost; prompt-adaptive optimization pressure can effectively encourage diverse reasoning. Limitations include estimation noise from the static calibration budget, the use of a win-rate proxy in continuous-reward experiments, and the win-rate solution being only an approximation for discrete rewards.