Manuscript Offprint
arXiv:2610.19685Beyond Distribution Matching: Selective Margin Preservation for Supervised Fine-Tuning
Abstract
Supervised fine-tuning (SFT) changes logit margins among non-target tokens at teacher-forced prefixes. Matching a local reference distribution keeps those probabilities and also penalizes margin expansions. We ask whether a soft auxiliary can preserve selected local non-target margin relations without freezing that distribution. We introduce Selective Rank-Preserving SFT (SRP-SFT), a soft margin target: a hinge on reference-scaled lower bounds for pairs from the reference's top-K non-target tokens, applied at fixed teacher-forced prefixes. The hinge stops once the requested bound is met. We derive the KL cost of violating a margin, characterize the feasible region and its conditional utility, and give a finite-step condition for reducing aggregate violations. In one-epoch experiments on Qwen3-4B-Base and UltraFeedback, this target raises MATH-500 and code-generation scores over CE and LP-SFT at all three training seeds. At seed 1234, MATH-500 pass@1 rises from 49.56% to 54.56% and the four-metric code mean rises from 65.91% to 69.50% relative to LP-SFT. Ranking controls, held-out cache diagnostics, sensitivity sweeps, and six additional backbones show where these score changes appear.
1 Introduction
Supervised fine-tuning (SFT) adapts pretrained language models to downstream tasks such as instruction following, reasoning, and code generation. At each training position, cross-entropy (CE) increases the probability of the observed next token but does not explicitly preserve the relative preferences among other tokens, potentially weakening or reversing preferences learned during pretraining.
One approach is to keep the fine-tuned model close to a frozen reference model. LP-SFT, our closest comparator, does so by matching the reference’s probability distribution over a set of plausible non-target tokens (Wang et al., 2026). However,
What should fine-tuning preserve?
(a) Cross Entropy Fits the target y.
No explicit protection for token-pair gaps.

(b) LP-SFT Match local probabilities.

Keeping token order
can still be penalized.
(c) SRP-SFT (ours) Protects gaps.
Compare the two gaps (e.g., ).
A-B · Too small
4
A B
max(0, 1 × 4 - 1)
Loss = 3
A-C · Expansion
1
A C
max(0, 1 × 1 - 3)
Loss = 0
Reference(T)
Student(S)
y: Target
Figure 1: The three objectives preserve different local quantities. CE fits the observed token by maximizing its likelihood. LP-SFT matches a reference distribution. SRP-SFT imposes selected margin lower bounds and stops penalizing a pair once its bound is met.
probability matching is more restrictive than preference preservation: if the reference prefers token A over token B, a student that strengthens this preference is still penalized because its probabilities differ from the reference.
This raises a natural question:
Can we preserve the reference model’s preferences without requiring the student to reproduce its exact probability distribution?
Preserving only the ordering of non-target to-kens is insufficient, since the ranking can remain unchanged even as the gap between tokens approaches zero. We therefore seek a middle ground that prevents excessive preference weakening while allowing stronger preferences during adaptation.
Motivated by this idea, we propose Selective Rank-Preserving SFT (SRP-SFT), which preserves selected preference relationships through soft margin constraints. At each fixed teacher-forced prefix, a frozen reference identifies plausible non-target alternatives and provides their pairwise logit margins. Rather than matching their full probability distribution, SRP-SFT applies a one-sided hinge penalty only when a student margin falls below a reference-scaled threshold. Once the threshold is met, no further penalty is imposed, allowing additional separation. The threshold can be adjusted to permit limited contraction or encourage stronger preferences, while the standard CE objective continues to fit the observed target token.
We study the theoretical properties and empirical behavior of this selective preservation objective, characterizing how margin constraints differ from KL-based distribution matching, what changes they permit, and under what conditions the auxiliary penalty can reduce margin violations. In one-epoch experiments on Qwen3-4B-Base and UltraFeedback, SRP-SFT improves reasoning and code-generation scores over CE and LP-SFT across three matched training seeds. Held-out diagnostics further show that, although LP-SFT achieves lower local KL divergence, SRP-SFT exhibits less margin contraction and fewer ranking inversions. Comparisons with alternative ranking objectives and parameter sensitivity studies reveal that stronger preference preservation does not always translate into better task performance. Experiments on six additional backbones illustrate both the benefits and limitations of the proposed objective.
Our contributions are threefold. First, we introduce SRP-SFT, a selective margin-based objective that protects local non-target preference relationships without requiring exact distribution matching. Second, we establish theoretical properties of this objective, including the KL cost of margin violations, the geometry of its feasible region, a conditional utility bound, and conditions for reducing aggregate violations during optimization. Third, we conduct extensive evaluations with matched multi-seed comparisons, alternative ranking objectives, held-out structural diagnostics, sensitivity analyses, and six additional backbones.
Distillation and relational supervision. Knowledge distillation transfers teacher knowledge through output matching or alternative training signals (Hinton et al., 2015; Gu et al., 2024; Agarwal et al., 2024; Zhao et al., 2022). Ranking objectives (Burges et al., 2005; Cao et al., 2007; Xia et al., 2008) motivate relational transfer through candidate rankings (Reddi et al., 2021; Peng and Zhang, 2025; Guan et al., 2025), prediction correlations (Hofstätter et al., 2020; Li et al., 2025a). Unlike distribution matching, relational supervision need not reproduce the teacher's exact probabilities. Ordering alone allows margins to shrink, while exact gap matching penalizes expansion. SRP-SFT instead imposes one-sided lower bounds on selected non-target margins at each fixed teacher-forced prefix, allowing further separation without penalty.
3 Preliminaries
Supervised model update. Let be an SFT dataset, with response and vocabulary . At the teacher-forced prefix , the student produces logits and probabilities . CE minimizes over valid response positions. The frozen reference is a copy of the pretrained checkpoint from which the trainable student S is initialized. We compare the student and reference logits at identical teacher-forced prefixes, so a change in local preference is not confounded with a change in generated history.
Local preference geometry. For and token pair , the margin is
Its sign gives the ordering and its magnitude the log-odds strength. For a reference-preferred pair , a negative student margin is an inversion, a smaller nonnegative margin is a contraction, and a larger margin is an expansion. Renormalizing over a shared candidate set leaves this ratio unchanged. We can therefore specify relations within that set without prescribing its total probability mass. The selected-margin target is
Here requires weak order, allows bounded contraction, requests at least the reference margin, and requests selective sharpening. These are bounds on individual selected margins. The trained soft-penalty objective need not satisfy all of them.
CE does not impose this target. In free-logit coordinates, CE gives : a non-target margin still contracts toward zero without finite-time inversion. Shared parameters can instead produce contraction or expansion (Appendices B.6 and B.7). The margin target specifies which selected margins enter the auxiliary loss under these parameter-dependent dynamics.
4 Method: Selective Margin Constraints
SRP-SFT uses a frozen reference to select non-target alternatives and set margin constraints between them. The construction specifies the candidate set, pair orientations, and penalty for violating a requested margin. CE continues to supervise the observed token, while the auxiliary acts on the selected non-target relations (Figure 2).
4.1 Selecting Non-Target Alternatives
At each valid supervised position , select the reference’s top- non-target alternatives:
Reference selection focuses the objective on tokens that are plausible at the current prefix. Increasing K broadens candidate coverage and increases the maximum number of constraints quadratically.
Excluding the target separates the auxiliary's role from target fitting. CE can promote an observed answer even when the reference scores it poorly. Protecting reference-oriented pairs involving that answer could directly oppose its promotion. Non-target constraints remove this direct competition over the target logit, although shared parameters can still produce gradient conflict.
4.2 Orienting Selected Pairs
Within , use the frozen reference to orient pairs:
Each ordered unordered pair contributes one orientation, giving at most constraints. Teacher ties are ignored. Candidate identities and orientations remain fixed per prefix. The student's ranking does not redefine what is protected.
Neither relations outside nor its total probability mass receive direct SRP supervision. A common shift of its logits is allowed by both SRP and local KL. The additional freedom in SRP is to change relative logits while satisfying the selected margin bounds (Theorem 2).
4.3 Penalizing Only Margin Shortfalls
At position t, average the selected hinge violations:
Here , and an empty contributes zero. Average the total loss over valid supervised response positions:
The coefficient prices violations against target fitting, whereas sets the requested margin. Changing changes the boundary and active pairs. Changing rescales their contribution. The two controls are not interchangeable.
A pair is penalized only while . At or above the boundary, its loss and chosen subgradient are zero. In particular, at , the objective penalizes contraction and inversion without rewarding or penalizing further expansion. For ,
(a) Logit extraction
Same teacher-forced prefix
T: frozen
S: trainable
Decoder 1...N
Decoder 1...N
Final norm
Final norm
LM head
LM head
(b) Raw output logits
LM-head output, before softmax
Dashed: reference T.
Filled: student S.
Illustrative values.

Target y: CE only. Excluded from SRP pairs.
(c) Pairwise loss calculation
representative pairs
| Pair | ΔT | ΔS | Loss | Meaning |
|---|---|---|---|---|
| A-B | 4 | 1 | 3 | Gap too small |
| C-D | 4 | -2 | 6 | Rank reversal |
| E-F | 4 | 2.5 | 1.5 | Margin contraction |
| G-H | 4 | 6 | 0 | Margin expansion |
(d) One-sided margin loss
Lij,
A-B: Gap too small

C-D: Rank reversal

G-H: Margin expansion

(e) Token-pair loss
Teacher top-K: high to low

K = 10. Reference ties ignored.
Figure 2: The selective margin target. The frozen reference selects plausible non-target alternatives and orients their pairs. CE fits the excluded target. The current student receives a pairwise penalty only below the requested margin. A satisfied pair supplies no direct auxiliary gradient. Both models use the same prefix.
expansion relative to the teacher can still fall short of the scaled bound. Finite permits residual violations: the zero-loss region characterizes the target, not an invariant set for training updates.
4.4 Gradients and Cached Implementation
For an active pair, has logit gradients
An isolated logit-gradient step increases the preferred token relative to its partner. CE and other active pairs can move a satisfied pair below its bound again, reactivating its hinge. With shared parameters, aggregate corrections need not improve every margin in a single update.
Reference token IDs and logits are cached for fixed teacher-forced examples. Each update gathers student logits and recomputes hinge activity without another reference pass. The headline setting is , , , with at most 45 pairs per position. Algorithm 1 and Appendix D give the implementation. Appendix G.1 reports training pilots and the separate cost of constructing the cache.
5 Properties of the Selected-Margin Target
We characterize the target: how its cost differs from KL matching, the geometry of its feasible set, and when its soft penalty reduces aggregate violations. All results use finite logits, fixed teacher-forced prefixes, and the pairs in Eq. 4. At one prefix, write and for the locally normalized distributions. For a selected state–pair triple , let
The analysis specializes classical KL minimization, order-restricted approximation, and stochastic-order arguments (Csiszár, 1975; Stout, 2012; Shaked and Shanthikumar, 2007) to the selected-margin target. Proofs are in Appendix B.
5.1 The KL Cost of Losing a Margin
Theorem 1 (KL threshold for a prescribed pair). Fix , , and . For any ,
where the infimum is over strictly positive probability vectors on the same set, is the logistic function, and kl is Bernoulli KL. The minimum is attained by leaving all other probabilities unchanged and setting , .
KL can therefore certify a prescribed margin: a value below the threshold excludes . The threshold also identifies how matching prices a loss of preference. For , the minimum cost is , whereas at that pair contributes to SRP. The KL cost depends on the pair's local probability mass and gap. Without conditions on both, there is no positive pair-independent threshold.
Conversely, the scaled logits on the candidates satisfy every SRP constraint when , while local KL can diverge as for nonuniform . The two objectives therefore assign different costs to reference deviations and define different preservation targets.
5.2 Admissible Geometry and Conditional Utility
Define the feasible logit set and worst violation:
(10)
The maximum is zero for an empty pair set. Subtracting turns into an order cone. This geometry describes the logit changes permitted by the margin constraints per prefix.
Theorem 2 (Repair distance and local utility). For the full teacher-preferred pair set,
Let be any candidate utility that is non-decreasing with and constant on teacher ties. Then
For , . The error term is tight already for two candidates and .
The first statement quantifies the correction needed to reach that region. The second gives it a local utility interpretation: at zero violation and , no teacher-monotone conditional utility is lowered relative to the reference. Nonzero violations yield the stated degradation bound. Since , a small mean hinge need not protect every pair equally. The appendix provides a probability-weighted refinement and sparse-pair analysis. Teacher–utility alignment is a substantive assumption. The guarantee concerns choices within A, not its probability mass, the excluded target, or sequence-level correctness.
5.3 When a Soft Penalty Repairs Violations
Let be the CE objective on a fixed collection of prefixes and , with the actual fixed reduction weights . Set and . Suppose each margin gradient is -Lipschitz along the update segment and write .
Proposition 3 (Finite-step aggregate repair). For , ,
(13)
Here is the explicitly computable linearized hinge-crossing correction in Eq. 34. It is zero when no linearized hinge crosses its boundary. A negative right-hand side certifies a strict decrease of the aggregate violation once updated.
The bound separates auxiliary repair from CE interference, hinge crossings, and curvature. It requires neither convexity nor a frozen neural tangent kernel, but certifies an aggregate, not every pair. Appendix B.4 gives the version for any optimizer step, including AdamW. When the reference equals the initialization and , a checkpoint satisfying obeys for . With the teacher margin distribution, this bounds sorting failures at nonzero residual (Appendix B.5).
6 Experimental Setup
We fine-tune Qwen3-4B-Base (Yang et al., 2025) on UltraFeedback's train_sft split (Cui et al., 2024). ChatML sequences are right-truncated at 2,048 tokens; loss covers assistant responses. Fine-tuned methods share initialization, per-seed data order, and optimizer: one epoch, 478 AdamW steps, learning rate , a cosine schedule with 15 warmup steps, and effective batch size 128 on eight A800-80GB GPUs. Seeds: 1234, 42, and 3407. Tables 1 and 2 report seed 1234. Base denotes the untouched checkpoint. Appendix D details revisions, row counts, and the software stack.
The matched comparison includes CE, GEM, DFT, ASFT, EAFT, LP-SFT, and SRP-SFT. LP-SFT applies forward KL over the reference’s top-10 non-target tokens at . SRP-SFT adds the soft hinge on strictly ordered pairs among those tokens, with , , and . Reference logits are cached once. These coefficients are fixed before evaluation and reused at all three seeds. Other
| Method | MATH-500 | AIME | GSM-Plus mini | LogiQA2 | BBH-5 | ARC-C | Hella-Swag | MMLU | Phy-Oly | Mean | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| p@1 | p@4 | p@1 | p@4 | Strict | Flexible | Acc. | EM | Norm. | Norm. | 5-shot | Acc. | ||
| 48.11 | 71.23 | 1.81 | 5.17 | 51.92 | 60.21 | 44.15 | 16.40 | 52.30 | 73.70 | 73.00 | 8.90 | 42.24 | |
| CE | 27.98 | 54.91 | 0.54 | 1.99 | 45.62 | 43.83 | 43.32 | 13.60 | 53.07 | 72.16 | 68.90 | 5.93 | 35.99 |
| GEM | 22.21 | 47.74 | 0.54 | 1.94 | 46.58 | 47.38 | 43.70 | 12.80 | 49.49 | 73.40 | 68.83 | 5.51 | 35.01 |
| DFT | 47.73 | 59.57 | 0.66 | 2.19 | 45.58 | 44.50 | 39.63 | 0.40 | 47.70 | 65.96 | 65.23 | 3.81 | 35.25 |
| ASFT | 33.41 | 57.22 | 2.03 | 5.42 | 47.50 | 48.79 | 37.09 | 18.40 | 55.03 | 70.72 | 67.56 | 8.47 | 37.64 |
| EAFT | 28.52 | 54.57 | 0.54 | 1.91 | 45.83 | 33.71 | 41.09 | 14.80 | 51.88 | 72.32 | 69.57 | 4.24 | 34.91 |
| LP-SFT | 49.56 | 77.52 | 3.28 | 9.25 | 57.88 | 59.08 | 44.02 | 14.80 | 53.75 | 73.35 | 71.48 | 8.05 | 43.50 |
| SRP-SFT | 54.56 | 80.50 | 4.76 | 11.68 | 58.83 | 59.92 | 46.25 | 14.80 | 54.18 | 73.36 | 71.89 | 10.59 | 45.11 |
Table 1: One-epoch Qwen3-4B-Base reasoning results on UltraFeedback (seed 1234, percentages). All fine-tuned methods use the same training implementation, software and hardware environment, and common training hyperparameters, including a 478-step cosine schedule and 15-step warmup. Mean averages all twelve metrics from the same checkpoint. Bold/underline mark best/second-best. is the untouched Base.
| Method | HumanEval+ | MBPP+ | Mean | ||
|---|---|---|---|---|---|
| pass@1 | pass@4 | pass@1 | pass@4 | ||
| 45.49 | 71.56 | 46.12 | 72.50 | 58.92 | |
| CE | 44.18 | 69.56 | 44.66 | 65.79 | 56.04 |
| GEM | 22.93 | 46.34 | 26.40 | 52.13 | 36.95 |
| DFT | 64.12 | 69.98 | 57.24 | 63.56 | 63.72 |
| ASFT | 64.79 | 77.18 | 57.09 | 67.90 | 66.74 |
| EAFT | 46.43 | 72.00 | 44.59 | 65.45 | 57.12 |
| LP-SFT | 57.90 | 81.67 | 51.87 | 72.23 | 65.91 |
| SRP-SFT | 62.84 | 83.87 | 56.24 | 75.06 | 69.50 |
Table 2: One-epoch code results for Qwen3-4B-Base on UltraFeedback (seed 1234, percentages). Mean averages HumanEval+ and MBPP+ pass@1/pass@4.
loss definitions, sensitivity sweeps, and the six-backbone studies are in Appendix D.
The reasoning mean averages twelve metrics from one checkpoint, including MATH-500 pass@1/pass@4 at temperature 0.6 with 16 samples. The code mean averages HumanEval+ and MBPP+ pass@1/pass@4 under EvalPlus 0.3.1, at temperature 0.8 with 20 samples. Held-out margin diagnostics use the 998-example test_sft cache.
7 Results
7.1 Task Utility of Margin Constraints
Table 1 reports the reasoning screen, and Table 2 reports the code evaluation, both at seed 1234 under the matched one-epoch protocol. SRP-SFT raises MATH pass@1 from 49.56 for LP-SFT to 54.56 and raises the code mean from 65.91 to 69.50. It improves all four code metrics over LP-SFT and has the highest code mean among the seven fine-tuned methods. ASFT and DFT still lead the individual code pass@1 columns on each benchmark.
Across the three training seeds, SRP-SFT remains above CE and LP-SFT. Its code mean is and its twelve-metric reasoning mean is , compared with and for LP-SFT. CE reaches and on the same aggregates.
| Method | Reasoning | Code | ||||
|---|---|---|---|---|---|---|
| seed 1234 | seed 42 | seed 3407 | seed 1234 | seed 42 | seed 3407 | |
| CE | 35.99 | 36.03 | 35.85 | 56.04 | 54.33 | 56.60 |
| GEM | 35.01 | 34.89 | 35.52 | 36.95 | 33.93 | 36.88 |
| DFT | 35.25 | 33.37 | 35.77 | 63.72 | 61.35 | 58.38 |
| ASFT | 37.64 | 40.51 | 37.46 | 66.74 | 66.37 | 67.87 |
| EAFT | 34.91 | 35.81 | 35.89 | 57.12 | 57.32 | 57.65 |
| LP-SFT | 43.50 | 43.20 | 42.60 | 65.91 | 66.14 | 66.45 |
| SRP-SFT | 45.11 | 45.41 | 44.35 | 69.50 | 69.47 | 69.48 |
Table 3: Three-seed reasoning and code means (percentages). Reasoning averages twelve metrics from the same checkpoint. Code averages four metrics.
7.2 Comparing Preservation Targets
With data, initialization, and coefficients fixed, we replace the SRP hinge with alternatives: distribution matching (LP-SFT, ListNet), pairwise/listwise ranking losses, exact-gap regression, and distillation objectives (Table 4; Appendix H).
Task utility tracks preservation of the base candidate order: across 14 losses, the mean falls as rank flips and margin contraction rise (Spearman -0.87 and -0.84; Table 28). Order alone is insufficient: RankOnly ( ), without a margin target, contracts margins by 0.41 logits and scores 49.07, below LP-SFT; cuts contraction to 0.11, giving the best mean, 57.88. Penalizing both directions falls short: Margin-MSE has the fewest flips (0.0380 versus 0.0565) but scores 54.82. SRP-SFT leads both code columns and trails only the RLKD-style union on MATH (54.56 versus 55.31).
| Loss | MATH | HE+ | MBPP+ | Mean |
|---|---|---|---|---|
| CE | 27.98 | 44.18 | 44.66 | 38.94 |
| LP-SFT | 49.56 | 57.90 | 51.87 | 53.11 |
| RankOnly (ρ = 0) | 41.89 | 55.37 | 49.96 | 49.07 |
| RankNet | 46.41 | 59.09 | 52.63 | 52.71 |
| ListMLE | 52.15 | 61.71 | 56.18 | 56.68 |
| Spearman | 46.74 | 56.68 | 52.08 | 51.83 |
| ListNet† | 49.33 | 58.45 | 52.34 | 53.37 |
| Margin-MSE | 48.68 | 61.07 | 54.72 | 54.82 |
| BiLD teacher-led | 50.11 | 58.54 | 53.72 | 54.12 |
| BiLD T+S | 45.17 | 55.58 | 51.28 | 50.68 |
| RLKD-style union | 55.31 | 58.57 | 52.94 | 55.61 |
| Kendall-τ | 43.96 | 59.48 | 51.97 | 51.81 |
| Smooth-SRP | 50.65 | 59.85 | 53.65 | 54.72 |
| SRP-SFT | 54.56 | 62.84 | 56.24 | 57.88 |
Table 4: Fixed-configuration loss screen (pass@1, percentages). Mean averages MATH, HumanEval+, and MBPP+. Code columns use the Table 2 evaluation. Same target as LP-SFT. Definitions are in Appendix H.

Figure 3: Mechanism diagnostics on the held-out cache. Distributional fidelity and margin preservation disagree on this cache: SRP-SFT has less contraction despite larger local KL. Small points are tokens. Large markers are pair-weighted means.
7.3 Distributional Fidelity versus Margin Preservation
On the 998-example held-out cache, SRP-SFT reduces mean margin contraction from 0.268 for LP-SFT to 0.110 and reduces inversions from to . CE has contraction 0.600 and inversion . LP-SFT is closer in local KL, at 0.049 versus 0.075 for SRP-SFT, consistent with the mass-dependent threshold in Theorem 1. On this cache, the lower local KL does not identify the checkpoint with less contraction and fewer inversions.
Table 29 and Figure 3 plot the same cache. SRP-SFT has smaller margin shortfalls and larger local distribution changes. The cache is training-disjoint and contains no benchmark labels (Appendix D.5).
7.4 Preservation Strength versus Task Utility
The lower-bound formulation has three controls: the requested margin , the penalty weight , and candidate coverage . In the sweep, the aggre- gate score rises from 47.05 at to 61.56 at and then declines. From to , the score increases from 57.05 to 61.56 while Flip rises from 0.0565 to 0.0937 and contraction rises from 0.1098 to 0.1891 (Table 21). Over this interval, the task score and the realized margin statistics move in opposite directions.
SRP-SFT sensitivity: performance has an interior optimum

Figure 4: Preservation demand and task utility need not move together. Each panel varies one of , , and . Bands mark the best score. The score averages MATH pass@1 and mean code pass@1.
| Method | α | MATH | HE+ | MBPP+ | |||
|---|---|---|---|---|---|---|---|
| p@1 | p@4 | p@1 | p@4 | p@1 | p@4 | ||
| CE | 1 | 27.98 | 54.91 | 44.18 | 69.56 | 44.66 | 65.79 |
| CE-TM | 1.081 | 28.98 | 55.87 | 45.88 | 70.44 | 45.73 | 65.33 |
| LP-SFT | 1 | 49.56 | 77.52 | 57.90 | 81.67 | 51.87 | 72.23 |
| LP-TM | 1.099 | 51.96 | 78.08 | 59.82 | 82.39 | 54.84 | 73.06 |
| SRP-SFT | 1 | 54.56 | 80.50 | 62.84 | 83.87 | 56.24 | 75.06 |
Table 5: Entropy-matched temperature control (seed 1234, percentages). LP-TM and CE-TM are calibrated to the SRP-SFT held-out entropy.
Increasing beyond 3 lowers the task score while reducing Flip, and the sweep peaks at . The sweep fixes , whereas the and sweeps use . The reported one-factor peaks are , and . The pre-fixed main setting remains (Appendix G).
7.5 Can Global Scaling Recover the Gains?
For LP-SFT, we fit on 998 held-out examples, without benchmark labels, to match SRP-SFT's mean full-vocabulary entropy (Table 5). This single scalar changes sharpness but leaves each token's candidate ranking unchanged.
Global scaling recovers less than half of SRP-SFT's gain, so the gain is not a byproduct of
Cross-backbone robustness by dataset
(a) MATH-500
(b) GSM8K

(c) HumanEval+
(d) MBPP+
Figure 5: Additional-backbone pass@1 on MATH-500, GSM8K, HumanEval+, and MBPP+. Math and code use separate domain-trained checkpoints. is SRP-SFT minus the mean of CE and LP-SFT.
a sharper output distribution. Entropy matching raises LP-SFT's MATH pass@1 from 49.56 to 51.96 and its code mean from 65.91 to 67.53, closing 48% and 45% of the gap to SRP-SFT (54.56 and 69.50). CE gains 1.00 MATH and 0.81 code points. At seed 42, the fitted LP scale is 1.0989 and the code mean is 67.90 (Table 9).
7.6 Transfer Across Backbones
The six additional backbones are trained separately per domain: mathematics SFT on 96,949 filtered OpenMathReasoning examples (758 updates) and code SFT on 95,966 filtered rStar-Coder examples (750 updates), with 4,096-token sequences, one epoch, and seed 1234. MATH-500 and GSM8K evaluate the mathematics checkpoints, and HumanEval+ and MBPP+ evaluate the code checkpoints. Within each backbone and domain, all methods share the data and budget.
The advantage of SRP-SFT over LP-SFT extends from UltraFeedback to new architectures and domain-specific data and is steadiest on code. SRP-SFT leads LP-SFT in 18 of 24 backbone-benchmark pairs, including 11 of 12 code pairs; HumanEval+ rises on every backbone (+0.55 to +4.09). Mathematics is more backbone-dependent: SRP-SFT leads MATH-500 on both Qwen bases, Ministral, and SmolLM3, but trails on Gemma (61.59 versus 63.94) and Granite. Figure 5 shows SRP-SFT minus the CE/LP-SFT mean. Table 20 gives SRP-minus-LP differences.
Convergence by domain

Figure 6: Ten-epoch trajectories with SRP . MATH averages pass@1 and pass@4. Code averages pass@1 and pass@4 on both benchmarks.
7.7 Convergence Behavior
One Qwen3-4B run continues for ten epochs, evaluated every half epoch. LP-SFT uses , , and SRP-SFT uses , , . The MATH mean averages MATH-500 pass@1 and pass@4. The code mean averages HumanEval+ and MBPP+ pass@1 and pass@4. The step-0 Base anchor evaluates the untouched checkpoint. Its MATH-500 manifest and sampling protocol match Table 1: the same data revision, all 500 test problems, the same prompt, temperature 0.6, top-p 1, 16 samples, and a 4,096-token cap. The separate draw gives pass@1 48.43, pass@4 72.06, and mean 60.24. The main-table scores 48.11 and 71.23 average to 59.67. The extended-training curve uses this as its step-0 anchor. Its code mean, 59.17, uses 768-token generations in a 2,048-token context. Table 2 uses the 4,096/8,192 protocol, and its four Base scores average to 58.92.
The SRP run declines early, then keeps MATH near Base while maintaining code gains later in training. It does not lead every early checkpoint. Its last MATH and code measurements occur at epochs 10.0 and 9.5 (Tables 32 and 33). The one-epoch headline uses , unlike this run.
8 Conclusion
SRP-SFT is a soft hinge on selected non-target margins at fixed teacher-forced prefixes. Matched seeds, loss screens, sweeps, entropy matching, six backbones, and ten-epoch training show where this margin target improves reasoning and code scores over CE and LP-SFT.
Limitations
SRP-SFT is trained on models that already follow a chat template and already have usable downstream ability. Where a base release supplies that template, the study uses the base checkpoint. Where it does not, the study uses the instruction-tuned release. Training and evaluation both rely on this chat formatting, so the setup does not cover a weak model with no chat-template training.
The trained models are at most 4B parameters, including the main study and the additional backbones. No larger model is trained. The one-epoch schedule and the reported math and code scores are measurements at this scale.
References
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pages 21246–21263.
Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and Charles Sutton. 2021. Program Synthesis with Large Language Models. arXiv preprint arXiv:2108.07732.
Elie Bakouch, Loubna Ben Allal, Anton Lozhkov, Nouamane Tazi, Lewis Tunstall, Carlos Miguel Patiño, Edward Beeching, Aymeric Roucher, Aksel Joonas Reedi, Quentin Gallouédec, Kashif Rasul, Nathan Habib, Clémentine Fourrier, Hynek Kydlicek, Guilherme Penedo, Hugo Larcher, Mathieu Morlon, Vaibhav Srivastav, Joshua Lochner, and 4 others. 2025. SmolLM3: smol, multilingual, long-context reasoner. https://huggingface.co/blog/smollm3.
Stephen Boyd and Lieven Vandenberghe. 2004. Convex Optimization. Cambridge University Press.
Christopher J. C. Burges, Tal Shaked, Erin Renshaw, Ari Lazier, Matt Deeds, Nicole Hamilton, and Gregory N. Hullender. 2005. Learning to rank using gradient descent. In Proceedings of the 22nd International Conference on Machine Learning, pages 89–96.
Zhe Cao, Tao Qin, Tie-Yan Liu, Ming-Feng Tsai, and Hang Li. 2007. Learning to rank: From pairwise approach to listwise approach. In Proceedings of the 24th International Conference on Machine Learning, pages 129–136.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.
Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge. arXiv preprint arXiv:1803.05457.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training Verifiers to Solve Math Word Problems. arXiv preprint arXiv:2110.14168.
Imre Csiszár. 1975. I-divergence geometry of probability distributions and minimization problems. The Annals of Probability, 3(1):146–158.
Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Bingxiang He, Wei Zhu, Yuan Ni, Guotong Xie, Ruobing Xie, Yankai Lin, Zhiyuan Liu, and Maosong Sun. 2024. UltraFeedback: Boosting language models with scaled AI feedback. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 9722–9744. PMLR.
Muxi Diao, Lele Yang, Wuxuan Gong, Yutong Zhang, Zhonghao Yan, Yufei Han, Kongming Liang, Weiran Xu, and Zhanyu Ma. 2026. Entropy-adaptive fine-tuning: Resolving confident conflicts to mitigate forgetting. arXiv preprint arXiv:2601.02151.
Thang Doan, Mehdi Abbana Bennani, Bogdan Mazoure, Guillaume Rabusseau, and Pierre Alquier. 2021. A theoretical analysis of catastrophic forgetting through the NTK overlap matrix. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics, volume 130 of Proceedings of Machine Learning Research, pages 1072–1080. PMLR.
Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, and 5 others. 2023. A framework for few-shot language model evaluation.
Gemma Team et al. 2025. Gemma 3 Technical Report. arXiv preprint arXiv:2503.19786.
Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. 2024. Minillm: Knowledge distillation of large language models. In International Conference on Learning Representations, volume 2024, pages 32694–32717.
Yuchen Guan, Runxi Cheng, Kang Liu, and Chun Yuan. 2025. Enhancing logits distillation with plug&play kendall's ranking loss. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 20537–20552. PMLR.
Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie
Huang, Yuxiang Zhang, Jie Liu, Lei Qi, Zhiyuan Liu, and Maosong Sun. 2024. OlympiadBench: A challenging benchmark for promoting AGI with olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3828–3850, Bangkok, Thailand. Association for Computational Linguistics.
Matthias Hein and Maksym Andriushchenko. 2017. Formal guarantees on the robustness of a classifier against adversarial manipulation. In Advances in Neural Information Processing Systems, volume 30.
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.
Wassily Hoeffding. 1963. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30.
Sebastian Hofstätter, Sophia Althammer, Michael Schröder, Mete Sertkan, and Allan Hanbury. 2020. Improving efficient neural ranking models with cross-architecture knowledge distillation. arXiv preprint arXiv:2010.02666.
Tao Huang, Shan You, Fei Wang, Chen Qian, and Chang Xu. 2022. Knowledge Distillation from A Stronger Teacher. In Advances in Neural Information Processing Systems, volume 35, pages 33716–33727.
IBM Granite Team. 2026. Granite-4.1-3B Model Card. Hugging Face model card.
Hangzhan Jin, Tianwei Ni, Lu Li, Pierre-Luc Bacon, Mohammad Hamdaqa, and Doina Precup. 2026. Rotation-Preserving Supervised Fine-Tuning. arXiv preprint arXiv:2605.10973.
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. 2017. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521–3526.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. In Proceedings of the
ACM SIGOPS 29th Symposium on Operating Systems Principles.
Minchong Li, Feng Zhou, and Xiaohui Song. 2025a. BiLD: Bi-directional logits difference loss for large language model distillation. In Proceedings of the 31st International Conference on Computational Linguistics, pages 1168–1182. Association for Computational Linguistics.
Qintong Li, Leyang Cui, Xueliang Zhao, Lingpeng Kong, and Wei Bi. 2024. GSM-plus: A comprehensive benchmark for evaluating the robustness of LLMs as mathematical problem solvers. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2961–2984, Bangkok, Thailand. Association for Computational Linguistics.
Xuhong Li, Yves Grandvalet, and Franck Davoine. 2018. Explicit Inductive Bias for Transfer Learning with Convolutional Networks. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 2825–2834. PMLR.
Zhizhong Li and Derek Hoiem. 2018. Learning without Forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(12):2935–2947.
Ziniu Li, Congliang Chen, Tian Xu, Zeyu Qin, Jiancong Xiao, Zhi-Quan Luo, and Ruoyu Sun. 2025b. Preserving diversity in supervised fine-tuning of large language models. In International Conference on Learning Representations, volume 2025, pages 66127–66154.
Hanmeng Liu, Jian Liu, Leyang Cui, Zhiyang Teng, Nan Duan, Ming Zhou, and Yue Zhang. 2023a. LogiQA 2.0—An Improved Dataset for Logical Reasoning in Natural Language Understanding. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 31:2947–2962.
Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. 2023b. Is your code generated by chatgpt really correct? rigorous evaluation of large language models for code generation. Advances in neural information processing systems, 36:21558–21572.
Yifei Liu, Li Lyna Zhang, Yi Zhu, Bingcheng Dong, Xudong Zhou, Ning Shang, Fan Yang, and Mao Yang. 2025. rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset. arXiv preprint arXiv:2505.21297.
David Lopez-Paz and Marc'Aurelio Ranzato. 2017. Gradient episodic memory for continual learning. In Advances in Neural Information Processing Systems, volume 30.
Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. 2025. An empirical study of catastrophic forgetting in large language models during continual fine-tuning. IEEE Transactions on Audio, Speech and Language Processing.
Mistral AI. 2025. Ministral 3 3B Instruct Model Card. Hugging Face model card.
Ivan Moshkov, Darragh Hanley, Ivan Sorokin, Shubham Toshniwal, Christof Henkel, Benedikt Schifferer, Wei Du, and Igor Gitman. 2025. AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning dataset. arXiv preprint arXiv:2504.16891.
Yunhun Nam, Jaehyung Kim, and Jongheon Jeong. 2026. Learning from the undesirable: Robust adaptation of language models without forgetting. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 32537–32545.
Tianyu Peng and Jiajun Zhang. 2025. Enhancing knowledge distillation of large language models through efficient multi-modal distribution alignment. In Proceedings of the 31st International Conference on Computational Linguistics, pages 2478–2496, Abu Dhabi, UAE. Association for Computational Linguistics.
Qwen Team. 2026. Qwen3.5: Towards native multi-modal agents.
Sashank Reddi, Rama Kumar Pasumarthi, Aditya Menon, Ankit Singh Rawat, Felix Yu, Seungyeon Kim, Andreas Veit, and Sanjiv Kumar. 2021. RankDistil: Knowledge Distillation for Ranking. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics, volume 130 of Proceedings of Machine Learning Research, pages 2368–2376. PMLR.
Moshe Shaked and J. George Shanthikumar. 2007. Stochastic Orders. Springer Series in Statistics. Springer, New York.
Charles Spearman. 1904. The proof and measurement of association between two things. The American Journal of Psychology, 15(1):72–101.
Quentin F. Stout. 2012. Strict isotonic regression. Journal of Optimization Theory and Applications, 152(1):121–135.
Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc Le, Ed Chi, Denny Zhou, and Jason Wei. 2023. Challenging BIG-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, pages 13003–13051, Toronto, Canada. Association for Computational Linguistics.
Yueyang Wang, Baolong Bi, Shuo Lu, Jingyuan Zhang, Jiajun Shi, and Yuxuan Zhang. 2026. LP-SFT: Keeping Plausible Alternatives Alive in Supervised Fine-Tuning. arXiv preprint arXiv:2607.04733.
Yongliang Wu, Yizhou Zhou, Zhou Ziheng, Yingzhe Peng, Xinyu Ye, Xinting Hu, Wenbo Zhu, Lu Qi, Ming-Hsuan Yang, and Xu Yang. 2026. On the generalization of SFT: A reinforcement learning perspective with reward rectification. In The Fourteenth
International Conference on Learning Representations.
Fen Xia, Tie-Yan Liu, Jue Wang, Wensheng Zhang, and Hang Li. 2008. Listwise approach to learning to rank: Theory and algorithm. In Proceedings of the 25th International Conference on Machine Learning, pages 1192–1199.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388.
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4791–4800, Florence, Italy. Association for Computational Linguistics.
Borui Zhao, Quan Cui, Renjie Song, Yiyu Qiu, and Jiajun Liang. 2022. Decoupled Knowledge Distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11953–11962.
Hua Zhou and Kenneth Lange. 2012. Path following in the exact penalty method of convex programming. arXiv preprint arXiv:1201.3593.
He Zhu, Junyou Su, Peng Lai, Ren Ma, Wenjia Zhang, Linyi Yang, and Guanhua Chen. 2026. Anchored supervised fine-tuning. In The Fourteenth International Conference on Learning Representations.
Appendix
A Additional Background and Method Details 12
B Proofs and Theoretical Extensions 12
B.1 Exact KL Thresholds and Margin Preservation 13
B.2 Order-Cone Geometry and Conditional Utility 13
B.3 Full and Adjacent Pair Graphs 15
B.4 Finite-Step Repair with Shared Parameters 15
B.5 From an Objective Budget to Sorting Risk 16
B.6 Proof of Proposition 6 16
B.7 Proof of Proposition 7 17
B.8 Proof of Lemma 8 17
B.9 Proof of Corollary 9 18
B.10 Weighted Penalties: Exactness and Approximate Feasibility 18
B.11 State Coverage, Normalization, and Independent-Holdout Certificates 19
B.12 Finite-Precision References and Ties 19
C SRP-SFT Training Algorithm 19
D Detailed Experimental Configuration 20
D.1 Coefficient Protocols and Aggregates 20
D.2 Training Data and Preprocessing 20
D.3 Optimization 21
D.4 Loss Configurations 21
D.5 Evaluation Protocol 21
D.6 Software and Hardware 23
D.7 Reporting Scope 23
D.8 Equal Benchmark Weighting 23
E Independent-Seed Robustness Checks 23
F Cross-Backbone High-Quality Robustness 24
F.1 Reproduction Protocol 24
F.2 Cross-Backbone Results 26
G Parameter Sensitivity and Ablation 28
G.1 Headline Pair-Graph Controls 29
G.2 LP-SFT/ListNet Equivalence and Training Audit 30
G.3 Ranking-Loss Form Ablation 30
H Full Ranking-Loss Ablation 31
I Entropy-Matched Temperature Control 32
I.1 Sharpness and the Fitted Scale . . 32
I.2 Margin Geometry . . . . . . . 32
I.3 Violation-Conditioned Diagnostics 33
J Convergence Data 33
A Additional Background and Method Details
CE as a distribution update. At a response position, the student probabilities satisfy and CE optimizes . In free-logit coordinates, a CE step changes a non-target margin by roughly , so the higher-probability alternative is pushed down more strongly. Parameter sharing can change this behavior across states. Appendix B.7 gives the corresponding parameter-space identity.
Directional versus distribution preservation. Local KL is zero at the reference candidate distribution. SRP-SFT instead has a region of zero auxiliary loss, defined by . Both permit common logit shifts. SRP additionally permits nonconstant changes satisfying these inequalities. Further expansion beyond the scaled boundary incurs no penalty, although expansion relative to the teacher can still be penalized when .
Gradient and cost. For one active hinge, , so and . Multiple active pairs accumulate these local corrections. Reference logits can be cached before SFT. Subsequent training uses only cached token IDs/logits and gathered student logits. Thus SRP-SFT adds at most simple pairwise terms per supervised position without an extra reference forward pass during student training.
B Proofs and Theoretical Extensions
This appendix proves the KL threshold, the feasible-set and utility characterization, and the finite-step repair result in Section 5. It also develops the sparse-graph and objective-budget extensions, the pairwise certificate, CE dynamics, exact-penalty analysis, and coverage conditions.
B.1 Exact KL Thresholds and Margin Preservation
Notation. All probabilities in this subsection are normalized on the same candidate set. For , define
Theorem 1 is a finite-alphabet constrained-KL calculation. KL projection is classical (Csiszár, 1975). The orientation here is explicitly with q fixed. The calculation below uses this fixed-reference orientation.
Proof of Theorem 1. Write , , , and . If there are other candidates, grouping and its complement gives the exact decomposition
(15)
where are the conditional distributions on the complement. The constraint is . Differentiation yields
Consequently the minimum conditional cost occurs at . The remaining nonnegative terms vanish simultaneously at and . This yields the claimed optimizer. For two candidates, and the conditional Bernoulli term is the whole KL, so the same formula holds without a complement. A strict inequality in the margin constraint has the same infimum, approached at the stated boundary.
Local contraction cost. Let . Direct substitution gives
Since , Taylor expansion establishes the quadratic term in the main text. This is the minimum KL cost of the prescribed contraction. An arbitrary student can pay more because it also changes pair mass or other candidates. The unweighted SRP pair term at is exactly , independent of m. The position-level contribution is .
Pair mass and gap. Fix and any . On three candidates, let
and use the optimizing student from the theorem. Its selected pair is inverted, while its KL is as . Both candidates can belong to the selected set: this example can be the entire locally normalized three-candidate set. Independently, at fixed pair mass the cost of reaching a tie tends to zero as . For a fixed q and specified pair the threshold in Eq. 9 is strictly positive.
Zero SRP with diverging KL. For a nonuniform, strictly positive teacher distribution , define . All pair margins are multiplied by , so SRP is zero for . Nevertheless,
Dividing by and sending gives , so diverges as while SRP stays zero.
B.2 Order-Cone Geometry and Conditional Utility
Fix one prefix and suppress its index. Let A have k tokens. Write , , and for . The teacher defines the strict order whenever . Equal teacher logits are incomparable. Define the corresponding order cone
Then and . This is an order-restricted approximation problem, related to classical isotonic regression (Stout, 2012).
Proof of Eq. 11. For any and ,
Taking the largest positive violation proves the lower bound V/2. For the matching upper bound, set
If , transitivity makes the index set for contain that for , while that for is contained in that for . Thus , , and .
Moreover, and , giving . Hence is feasible and has the required distance. If there are no strict pairs, and both sides of Eq. 11 are zero. Teacher ties leave the distance at zero without a within-tie order.
Zero-violation utility ordering. Let for any and let . Write . The feasibility inequalities make nondecreasing with teacher preference across distinct teacher levels. For a utility as in Theorem 2, the likelihood-ratio ordering implication can be written as a covariance (Shaked and Shanthikumar, 2007):
(23)
The final inequality follows because both and are nondecreasing in teacher preference. Pairs tied under the teacher have equal utility and contribute zero. Applying the same covariance argument to and shows that for , since is proportional to . The reference in Eq. 12 is the flattened .
Lemma 4 (Softmax sensitivity to a bounded logit range). Let , , and . Then
In particular, implies .
Proof. For a nontrivial event with , the ratio of the odds of to those of is the ratio of the conditional means of on and . It lies in , hence
Maximizing either possible difference over gives : for the upper difference its maximizer is . Taking the supremum over proves the claim. The bound is attained by two probabilities with opposite logit changes of total range .
Proof of Eq. 12 and tightness. Use the feasible constructed in Eq. 22. The correction has infinity norm at most V/2 and range at most V. Lemma 4 and give
For tightness, choose two candidates, any , and a desired . Set , , and . The unique selected hinge equals V, and
(27)
Thus the uniform error term cannot be improved as a function of V alone. At V = 0 the bound follows by continuity.
A common decoding temperature. For , apply the theorem to and . With and , the error term becomes .
A probability-weighted refinement. The same pairwise identity gives a second, sometimes sharper bound:
(28)
Indeed, for a violating pair, . Nonviolating pairs have non-positive contributions, and . One may take the minimum of and in the utility bound.
Imperfect utility ordering. Let be the set of -valued utilities satisfying the teacher order and tie condition, and for an arbitrary utility define . The set is compact, so the infimum is attained. For ,
This follows by applying the ordered-utility bound to and bounding each expectation error by . A uniform utility bound without such a condition is impossible: a zero-violation sharpening can put more probability on a teacher-preferred but incorrect candidate.
Mean hinge and worst-pair distance. For , . Together with Eq. 11, this yields
Bounding introduces a factor that depends on the candidate count.
B.3 Full and Adjacent Pair Graphs
For distinct teacher logits, relabel the candidates so that . Write , , and let and be the respective mean hinges. Then
and therefore
In particular, the two penalties have the same zero set. Away from zero their means differ, as the examples below show.
Proof. The identity and prove Eq. 31. Each adjacent edge belongs to full-pair paths, giving the first bound. The full sum includes all adjacent terms, giving the second after accounting for the two different averaging denominators. Zero adjacent residuals imply every full constraint by telescoping. The reverse follows by subset inclusion.
For example, with and , the adjacent and full means are and . With they are 1 and . Thus neither mean dominates the other pointwise. Moreover, , which supplies a valid worst-pair bound for this sparse graph. For teacher ties, arbitrarily sorting tied neighbors and then skipping them can change the zero set. The order graph connects every token across consecutive distinct teacher levels (or otherwise retain paths for every strict comparison).
B.4 Finite-Step Repair with Shared Parameters
Fix a finite collection of state–pair triples, their weights, and their reference gaps. The collection and weights stay fixed inside each inequality. Let
(33)
The convention at equality matches the implementation’s zero hinge subgradient. For an arbitrary actual update , set and define
Convexity of the scalar hinge implies . Its summands are zero whenever the line segment from to stays in the same affine hinge region. At , a move into the positive region contributes its full positive linearized residual.
Proof of Proposition 3. The Lipschitz-gradient assumption yields
(35)
The scalar hinge is 1-Lipschitz, hence
Multiplying by , summing, and using Eq. 34 gives
Substitute and set to obtain Eq. 13.
A checkable sufficient condition. For the SGD step and , aggregate repair is certified whenever
For a fixed point with no hinge at equality, sufficiently small steps have . Then is the leading-order repair condition, and strict inequality ensures an actual decrease for sufficiently small .
Why the Gram geometry matters. Writing ,
Although this Gram matrix is positive semidefinite, individual entries can be negative. Distinct active pairs can therefore cancel in shared parameter space. This is the same interference issue emphasized by parameter-space forgetting analyses (Lopez-Paz and Ranzato, 2017; Doan et al., 2021).
There is a useful contrast in one-prefix free-logit coordinates. Order the candidates by the teacher (breaking ties only for this auxiliary argument), set , and let . Every active edge has . Thus
This proves that nonempty teacher-oriented active sets cannot cancel completely in these logit coordinates.
AdamW and changing minibatches. Equation 37 accepts the actual AdamW displacement, including momentum, preconditioning, clipping, and weight decay.
B.5 From an Objective Budget to Sorting Risk
The original residual certificate is useful for evaluating a trained checkpoint. The following result controls residuals from an objective budget.
Proposition 5 (Reference-comparator bound). Let and let f, R be evaluated on the same fixed weighted training collection. If a checkpoint satisfies
then
If on every selected pair, then
Proof. Rearrange Eq. 41. At matched initialization, because . Summing proves Eq. 43.
For the initialization is feasible. For there is an explicit sharpening debt. When the stored reference and the initialization's evaluated logits differ numerically, the general bound uses the measured .
Margin-distribution calibration. Let , let D assign mass to each pair, and write . Define . For any , the residual certificate gives
This counts ties as failures. The full proof is given with the retained certificate in Appendix B.9. No pair independence is needed on a fixed collection.
For a concrete rate, suppose , , and for every , where and . Minimizing the right-hand side yields
where . The bound can be clipped at one. For , the optimizer is . For take the limit . With matched initialization, , and CE , Eq. 42 implies . Under fixed constants this gives a conditional sorting-risk bound.
A different prefix distribution is treated in Appendix B.11.
B.6 Proof of Proposition 6
Proposition 6 (Free-logit CE dynamics). Fix one state and label y, and regard z itself as the optimization variable. Under , every pair satisfies
The inequality is strict whenever , and a nonzero margin cannot change sign at finite time. A direct discrete logit-gradient step also preserves its sign and decreases its magnitude when .
Proof. For , . Hence, for , . Moreover,
The right-hand side has the same sign as , proving the stated squared-margin derivative and its strict sign when .
For the no-crossing statement define, along the trajectory,
This is continuous and satisfies at finite logits, since . The margin solves , so
The exponential is positive at finite time. An initial tie remains a tie. An initially strict order keeps its sign.
For a discrete logit-gradient step, , where is evaluated before the update. For , the strict inequality gives . Thus when . This proves both sign preservation and strict magnitude reduction. The zero-margin case is immediate.
The bound belongs to the unscaled, unit-temperature, free-logit objective.
B.7 Proof of Proposition 7
Proposition 7 (Finite-step parameter-space identity). Let have an -Lipschitz gradient along the segment from to . Then
(51)
For an SGD step on a training state , , the first-order change is , where
The interference term can take either sign. For AdamW, h is the actual preconditioned update.
Proof. By the fundamental theorem of calculus,
(53)
Subtracting the first-order term yields
(54)
The Lipschitz condition and Cauchy–Schwarz give . Substituting establishes the SGD identity.
To expose the geometry, let and . If the training label at is , then
where is a vocabulary coordinate vector. This expression can take either sign.
Same-state parameter-space expansion. Take , , and , so . Consider the linear parameterization with , initialized to realize this . Under parameter-space CE gradient flow,
and therefore . Same-state parameter-space CE can expand a non-target margin.
Finite-step sufficient conditions. For , actual contraction is guaranteed if . For a currently positive margin,
is sufficient for inversion.
Several auxiliary pairs can interact. Away from hinge boundaries, an SGD update using the penalty has the form
Its first-order effect on another margin contains the terms , which may be negative.
B.8 Proof of Lemma 8
Lemma 8 (Residual-aware pairwise stability). For any selected pair and ,
Under any logit perturbation e with ,
Hence guarantees strict order preservation.
For an already positive student margin, its exact distance to the pairwise tie boundary is (Hein and Andriushchenko, 2017).
Proof. By definition , so . At unit temperature, for either model . Exponentiating the margin inequality proves Eq. 59.
Under the perturbation,
The strict positivity condition follows immediately. It is strict because equality can permit a tie.
For the exact radius, any perturbation of norm less than leaves a positive margin. Conversely, setting , , and all other coordinates to zero reaches a tie with norm . Therefore this is exactly the distance to the closed tie-or-reversal set. The infimum radius for a strict reversal is the same, although it is not attained by the tie perturbation itself.
Parameter-space extension. Suppose a pair-margin function is -Lipschitz with respect to a parameter norm on a neighborhood of the evaluated student. Then
Thus is sufficient for local order preservation, provided the entire perturbation remains in that neighborhood.
B.9 Proof of Corollary 9
Corollary 9 (From average violation to reversal rate). Let D be any fixed distribution over selected state-pair triples. For , , and , define . Under any perturbation obeying the bound in Lemma 8,
Proof. Let . On the event , Lemma 8 gives
Consequently the following pointwise domination holds:
Taking expectations yields Eq. 65. No independence among tokens or among pairs is required for this deterministic expectation inequality. The upper bound may be clipped at one.
The result counts ties as failures and therefore also bounds the strict rank-inversion event used by a flip diagnostic. The bound uses .
B.10 Weighted Penalties: Exactness and Approximate Feasibility
The following specialization of exact-penalty reasoning states explicitly what is required for a soft hinge penalty to recover a constrained optimum (Zhou and Lange, 2012; Boyd and Vandenberghe, 2004). Let C be a finite constraint index set, , and
Proposition 10 (Conditional weighted exactness). Assume there exist a feasible and finite multipliers satisfying and the global lower-bound condition
If for every , the global minimizers of are exactly the global solutions of subject to all .
Proof. For every real g and nonnegative ,
Combining this identity with Eq. 71 yields
At , feasibility gives . If any constraint is violated, the strict coefficient inequality makes , so every global penalty minimizer is feasible. On feasible points . Thus every penalty minimizer is a constrained minimizer. Conversely, every constrained minimizer has value and zero penalty, hence minimizes .
B.11 State Coverage, Normalization, and Independent-Holdout Certificates
Matching the averaging measure. For one sequence with supervised positions, each nonempty pair set has weight in the auxiliary part of Eq. 6. The total weight is . If , normalizing these weights gives a distribution over selected triples and
When every position has a nonempty pair set, . Mixtures of sequences must likewise reproduce the actual position/sequence weights used by the objective. Empty pair sets contribute no auxiliary term.
Distribution shift. Let and be distributions on a common space of state–pair triples, each oriented using the same reference rule. Define .
Corollary 11 (Coverage-dependent transfer). Under the conditions of Corollary 9,
(75)
Alternatively, if and almost surely, then
Proof. For the fixed failure event, its probabilities under two distributions differ by at most their total variation. Apply Corollary 9 to the source distribution. For the second claim, change of measure and nonnegativity imply . Apply Corollary 9 to the old distribution.
Corollary 12 (A bounded independent-holdout certificate). Fix the trained student, reference, independently of an i.i.d. Holdout , with . Define
For any , with probability at least over the holdout,
The right-hand side can be clipped at one. It bounds every admissible logit perturbation.
Proof. The pointwise argument for Corollary 9 shows : below the margin cutoff . Otherwise any possible failure forces , so again . Since , Hoeffding's concentration inequality for bounded variables (Hoeffding, 1963) gives
Set and use .
Pairs from the same example are averaged within the example, and n is the number of independent examples. The example-level averages lie in , so the same proof applies to the induced example-weighted measure. For a prespecified family of M model/threshold choices, a union bound replaces by .
B.12 Finite-Precision References and Ties
The formal guarantees can be interpreted directly with the stored reference logits as the definition of T. Relating them to a higher-precision reference requires an additional numerical-error bound. Suppose on the relevant coordinates and the penalty uses with measured residual . Then
Indeed, and the previous residual and perturbation inequalities apply. A stored positive margin certifies the same orientation for the higher-precision reference when . The implementation caches finite-precision logits and excludes exact ties. Candidate membership can change near top-K ties.
Margin demand. The hinge threshold is a margin-demand level: values below one allow contraction, targets the reference gap, and values above one demand selective expansion.
C SRP-SFT Training Algorithm
Algorithm 1 restates the procedure of Section 4. The frozen reference is queried once. Subsequent student updates use only cached alternative-token identities and logits, together with a standard teacher-forced student forward. Empty pair sets contribute no auxiliary loss. The headline SRP-SFT run uses , , and . The sensitivity grid also evaluates as a stronger margin-demand setting.
Algorithm 1 Selective Rank-Preserving SFT (SRP-SFT)
Require: SFT dataset . Pretrained model
Require: . .
Ensure: fine-tuned student
1: Initialize and freeze
2: for each do
// offline reference cache
3: for each supervised response position do
4:
5:
6: Cache
7: end for
8: end for
9: for each minibatch do
10: .
11: for each do
12: Compute with one forward of
13: for each supervised response position do
14:
15:
16: if then
17:
18: else
19:
20: end if
21:
.
22: end for
23: end for
24: Update with
25: end for
26: return
The two loops separate offline reference construction from student optimization. The cache fixes the candidate identities and reference margins. The student margins are recomputed at each update. An empty pair set leaves the supervised CE term in place and sets the auxiliary term to zero. Values in the sensitivity screen require the student margin to exceed the reference margin.
sanity check. After target removal, a one-token candidate set cannot form an ordered pair: , so and the objective is exactly CE. We ran a deterministic same-logits audit with the target both present and absent from the cache. In both cases the pair count and auxiliary loss were zero, and the maximum objective and gradient difference from CE was zero to machine precision. The trained row in Table 21 is a separate 478-step run. That table compares it with the headline CE checkpoint.
A separate controlled training audit now matches CE and K = 1 for eight optimizer steps on eight ranks with identical initialization, data order, RNG state, optimizer, and BF16 precision. We use deterministic SDPA math attention and disable communication overlap. Every microbatch loss and optimizer-step gradient norm agrees exactly (maximum difference zero), and initial and post-update parameter hashes agree on every rank, including the final step. This identity holds in the stated deterministic configuration.
D Detailed Experimental Configuration
D.1 Coefficient Protocols and Aggregates
All fine-tuned methods share the training implementation, software and hardware environment, initialization, data, per-seed data order, optimizer settings, and numerical precision. The common budget is 478 updates with a 478-step cosine schedule and 15 warmup steps, micro-batch size one per GPU, 16 accumulation steps, and effective batch size 128. Method-specific losses are specified below. SRP-SFT uses , , at all three main-study seeds.
The main comparison fixes the coefficients in advance and uses them at every seed. LP-SFT uses . SRP-SFT uses , , and . At the requested margin equals the teacher margin. The value is the numerical coefficient on each auxiliary. The SRP sensitivity study varies one coefficient at a time. The headline remains , , .
The reasoning mean averages twelve metrics. The code mean averages HumanEval+ and MBPP+ pass@1/pass@4. Each aggregate uses one checkpoint and requires every constituent metric. Ranking-loss comparisons and sensitivity studies retain their separately stated aggregate definitions and configurations. Beyond the main study, six backbones use separate mathematics checkpoints trained on OpenMathReasoning (Moshkov et al., 2025) and code checkpoints trained on rStar-Coder (Liu et al., 2025) (Appendix F). These domain-specific studies are evaluated separately from the UltraFeedback protocol.
D.2 Training Data and Preprocessing
We initialize all fine-tuned models from Qwen3-4B-Base using Hugging-
Face revision 906bfd4b4dc7f14ee4320094d8b41684abff8539.
Training uses the train_sft split of HuggingFaceH4/ultrafeedback_binarized.
The original split contains 61,135 rows. We apply right truncation to a maximum sequence length of 2,048 tokens, after which 61,095 rows retain a valid assistant target. ChatML formatting is used and the training loss supervises the final assistant response. Distributed padding and complete gradient accumulation windows yield 61,184 processed examples per epoch.
D.3 Optimization
The main experiment trains for one epoch, corresponding to 478 optimizer steps. We use an effective batch size of 128 and AdamW with learning rate , , , , and no weight decay.
The learning rate follows a 478-step cosine schedule with 15 warmup steps for all main-table fine-tuned methods. Training uses bfloat16 precision, gradient checkpointing, and gradient-norm clipping at 1.0.
The primary screen uses training seed 1234. Independent seed-42 and seed-3407 checks are reported separately from the headline values.
Experiments run with DeepSpeed ZeRO-2 on eight A800-80GB GPUs. The per-device micro-batch size is 1 with 16 accumulation steps, giving effective batch size 128. All compared methods use the same training implementation, software and hardware environment, data-loader configuration, and common training hyperparameters. This shared setup applies to CE, LP-SFT, SRP-SFT, GEM, DFT, ASFT, and EAFT. Method-specific loss configurations are detailed below.
D.4 Loss Configurations
We compare plain CE with GEM, DFT, ASFT, EAFT, LP-SFT, and SRP-SFT. All fine-tuned methods share the same initial checkpoint and supervised examples. The frozen Base is the untouched evaluation reference. The ranking-loss screen replaces the auxiliary objective while retaining the same initialization, data order, optimizer, and one-epoch budget.
Cross-Entropy. The CE baseline optimizes the standard causal language-modeling loss on the supervised assistant response without an additional preservation objective.
GEM. GEM uses the official diversity-preserving token loss with and linear importance weights (Li et al., 2025b).
DFT. DFT reweights each supervised token by the student’s detached target probability and otherwise uses the same CE reduction (Wu et al., 2026). It introduces no extra hyperparameters.
ASFT. ASFT combines the DFT token weight with a frozen-base forward KL term at (Zhu et al., 2026).
EAFT. EAFT gates the token CE loss by the student’s Top-20 predictive entropy, normalized by log 20, with exponent (Diao et al., 2026). High-entropy tokens retain stronger supervision. Low-entropy confident-conflict tokens are down-weighted.
LP-SFT. For LP-SFT, the frozen base model supplies the top-10 non-label alternative tokens at each valid response position. A locally normalized forward-KL regularizer is applied over these alternatives. The LP-SFT baseline in the main tables uses .
SRP-SFT. SRP-SFT constructs all ordered teacher-preferred token pairs among the top-10 non-target alternatives. The headline SRP-SFT configuration uses the margin-preservation loss with , target multiplier , and auxiliary loss weight . This is the teacher-margin setting used in every main-table seed. The sensitivity screen uses its own reference. The headline coefficients remain , , and .
The regularizer is active only when the student margin falls below the reference-scaled target margin. Further expansion beyond that target incurs no penalty. For , a margin larger than the teacher's can still violate the scaled lower bound.
For preservation-based methods, reference logits are generated once using bfloat16 inference and cached as float16 values for subsequent training.
D.5 Evaluation Protocol
MATH-500. MATH-500, a 500-problem subset of MATH (Hendrycks et al., 2021), is evaluated with temperature 0.6, top-p 1.0, 16 generated samples per problem, and a maximum of 4,096 generated tokens. Final answers are extracted from boxed expressions and checked using math-verify version 0.9.0. We report pass@1 and pass@4.
AIME and GSM-Plus. AIME 2021–2026 is evaluated on 180 pinned problems with temperature 0.6, top-p 1.0, 32 samples per problem, and the same boxed-answer verifier. The problem sources are the Pandores AIME archive for 2021–2025 and MathArena for 2026. The GSM-Plus mini follow-up (Li et al., 2024) uses the frozen lm-evaluation-harness task with five-shot prompting. Both strict-match and flexible-extract exact-match scores are reported.
Broad reasoning screen. The step-478 checkpoint is additionally evaluated on LogiQA2 (Liu et al., 2023a), BBH logical deduction (Suzgun et al., 2023), ARC-Challenge (Clark et al., 2018), and HellaSwag (Zellers et al., 2019) under the same seed-1234 screen.
Table 1 reports LogiQA2 accuracy, BBH exact match for the five-object split only (BBH-5), and normalized accuracy (acc_norm) for ARC-Challenge and HellaSwag. BBH-5 contains 250 questions. The three/five/seven-object diagnostic suite contains 750 requests in total. The LP-SFT entry follows the baseline configuration specified in the loss-configuration appendix above. For BBH, we extract the first explicit the answer is (A-G) marker from each raw generation (case-insensitive, with an optional colon). Outputs without a marker are scored incorrect.
MMLU. MMLU (Hendrycks et al., 2020) is evaluated with lm-evaluation-harness 5-shot likelihood scoring (14,042 questions, seed 1234), using the same step-478 checkpoints as the rest of Table 1. We report the official aggregate accuracy.
Phy-Oly. Phy-Oly is the pinned OlympiadBench (He et al., 2024) split OE_TO_physics_en_COMP (n = 236): English, text-only, competition-source physics problems, excluding multimodal items, CEE/Gaokao, and theorem-proof questions. All methods use temperature 0, greedy decoding, one sample, and at most 4,096 new tokens. Answers are scored with the official OlympiadBench AutoScoringJudge. The same extractor and judge are shared across methods.
HumanEval+ and MBPP+. HumanEval (Chen et al., 2021) and MBPP (Austin et al., 2021) are evaluated with the augmented EvalPlus tests (Liu et al., 2023b), yielding HumanEval+ and MBPP+ under EvalPlus version 0.3.1. Generation uses temperature 0.8, top-p = 1, and 20 samples per task on 164 HumanEval+ and 378 MBPP+ tasks. All eight seed-1234 checkpoints use max_tokens=4096 and max_model_len=8192 throughout. The dataset, sampling budget, extractor, and evaluator are shared. A sample is correct only if both base_status and plus_status are pass. For each task with n = 20 samples and c correct samples, we compute the unbiased estimate
with when , then average over tasks. Table 2 reports pass@1 and pass@4. Table 6 also reports pass@16. All estimates use all 20 samples through this estimator. Table 2 contains all eight checkpoints evaluated under this shared protocol. The separate seed-42 and seed-3407 panels also use the 4096/8192 caps. Loss-form and sensitivity studies use the same evaluation protocol.
Generation backend. The MATH and code evaluations use vLLM 0.11.0. The supplementary broad-reasoning runs use vLLM 0.12.0. Manifests pin the per-task settings, caps, and generation seed 1234.
Held-out diagnostics. Held-out token cross-entropy and local KL are computed relative to the frozen base model. At each valid response position we restrict to the reference top-K non-target alternatives and form teacher-preferred pairs with (typically 8–45 pairs, median 35). Rank flips, margin contraction, and margin expansion are pair-averaged indicators and hinges on this set: contraction is . Flip and violation are fractions. Contr. is the mean positive logit-margin contraction in logit units. Whenever we report a percentage reduction, it is a relative reduction in this magnitude. The tabulated diagnostics use 998 examples and 280,908 valid response positions. The mechanism figure uses 265,751 positions. On a log axis the decade therefore looks sparse: CE and LP-SFT place almost no tokens there, while SRP-SFT's preserved tail is a minority of positions whose discrete pair averages form faint horizontal bands.
https://huggingface.co/datasets/Pandores/aime-1983-2025. https://huggingface.co/datasets/MathArena/aime_2026.
Cache provenance. Both caches are built from HuggingFaceH4/ultrafeedback_binarized at revision 3949bf5f8c17c394422ccfab0c31ea9c20bde85, with the Qwen3-4B-Base chat template, a 2,048-token limit, and teacher top-10. Training uses train_sft: 61,135 rows, of which 61,095 retain a supervised target position. Among the retained training rows, 11 prompt identifiers occur twice and 3 message sequences are exact duplicates. The held-out cache uses test_sft. That split has 1,000 rows. Rows 158 and 374 fill the 2,048-token context and leave no supervised position, so the cache has 998 rows. Those rows have distinct indices, prompt identifiers, and message sequences. No retained prompt identifier or message sequence occurs in the retained training cache. The 998-example statistics in Section 7.3 use this cache.
D.6 Software and Hardware
All compared methods train in the same software environment: Python 3.12, PyTorch 2.6.0+cu124, Transformers 4.56.2, Datasets 3.2.0, and DeepSpeed 0.16.9.
Evaluation uses PyTorch 2.9.0+cu128, vLLM (Kwon et al., 2023) for generation, and lm-evaluation-harness (Gao et al., 2023) for the likelihood and broad-reasoning tasks described above.
All compared methods use the same hardware configuration of eight A800-80GB GPUs.
D.7 Reporting Scope
Tables 1 and 2 report the seed-1234 checkpoints. GEM, DFT, ASFT, and EAFT follow the same one-epoch protocol. Additional CE, LP-SFT, and SRP-SFT seed checks use the same protocol. The seed-1234, seed-42, and seed-3407 reasoning and code means are summarized in Table 3.
The matched EvalPlus evaluation is complete for Base, CE, LP-SFT, and SRP-SFT, with 20 samples per task. The temperature-control comparison uses the same pass@k estimator, including CE-TM MBPP+. The manifests match dataset hashes, generation seed, sample count, and caps. The fitted logit scale is applied before sampling. For EvalPlus, a sample counts as correct only when both base and additional tests pass.
| Method | HumanEval+ | MBPP+ | ||||
|---|---|---|---|---|---|---|
| p@1 | p@4 | p@16 | p@1 | p@4 | p@16 | |
| CE | 45.49 | 71.56 | 87.81 | 46.12 | 72.50 | 84.13 |
| CE | 44.18 | 69.56 | 84.10 | 44.66 | 65.79 | 76.73 |
| LP-SFT | 57.90 | 81.67 | 90.50 | 51.87 | 72.23 | 81.07 |
| SRP-SFT | 62.84 | 83.87 | 91.76 | 56.24 | 75.06 | 84.64 |
Table 6: Matched code results for Base, CE, LP-SFT, and SRP-SFT (seed 1234, percentages), adding pass@16 to Table 2. All entries use unbiased estimates from 20 samples per task.
D.8 Equal Benchmark Weighting
The headline reasoning mean gives each metric equal weight. As a robustness check, we first average the two metrics within MATH-500, AIME, and GSM-Plus, then equally average those three scores with LogiQA2, BBH-5, ARC-C, HellaSwag, MMLU, and Phy-Oly (nine benchmarks). Values below use the same unrounded seed-1234 measurements.
| Method | Metric mean | Benchmark mean |
|---|---|---|
| 42.24 | 43.07 | |
| CE | 35.99 | 38.27 |
| GEM | 35.01 | 37.44 |
| DFT | 35.25 | 35.87 |
| ASFT | 37.64 | 39.39 |
| EAFT | 34.91 | 37.38 |
| LP-SFT | 43.50 | 43.75 |
| SRP-SFT | 45.11 | 45.13 |
Table 7: Equal metric versus equal benchmark weighting for the seed-1234 reasoning screen (percentages). Both aggregates require all twelve metrics.
E Independent-Seed Robustness Checks
The independent-seed comparison uses Qwen3-4B-Base, UltraFeedback, 478-step cosine schedules, 15 warmup steps, and effective batch size 128. SRP-SFT uses , , throughout. Tables 10 and 11 report all benchmark columns and methods.
| Method | Reasoning | Code |
|---|---|---|
| CE | 35.96 ± 0.10 | 55.66 ± 1.18 |
| LP-SFT | 43.10 ± 0.46 | 66.17 ± 0.27 |
| SRP-SFT | 44.96 ± 0.55 | 69.48 ± 0.02 |
Table 8: Mean ± sample standard deviation across training seeds 1234, 42, and 3407 (percentages). Code averages four metrics within each seed before computing the statistics.
Table 8 treats the training seed as the sample unit (, sample SD with denominator ). SRP-SFT has the highest code mean at every seed, with a three-seed mean of 69.48 and SD of 0.02. Its reasoning mean is . The CE and LP-SFT reasoning means are and .
Seed-42 headline results. SRP-SFT has MATH pass@1/pass@4 of 59.50/81.60, a reasoning mean of 45.41, and a code mean of 69.47. LP-SFT has MATH pass@1/pass@4 of 49.45/77.00 and a code mean of 66.14. The LP entropy calibration uses . The per-seed benchmark panels below provide the rows used for the three-seed comparison. The aggregate summary is reported for the reasoning and code means above, whose checkpoint-level values are fully listed.
The additional seed-2026 SRP run uses , with MATH pass@1/pass@4 of 50.00/77.65 and HE+/MBPP+ pass@1/pass@4 of 59.54/82.62 and 51.16/72.74 (code mean 66.52). It is a standalone configuration-specific result without paired CE/LP runs, and is excluded from the headline- three-seed summary.
| Method | HE+ p@1 | p@4 | MBPP+ p@1 | p@4 | Code mean |
|---|---|---|---|---|---|
| CE | 42.74 | 66.61 | 43.06 | 64.92 | 54.33 |
| LP-SFT | 58.29 | 82.35 | 51.68 | 72.24 | 66.14 |
| GEM | 20.15 | 43.99 | 22.12 | 47.63 | 33.47 |
| DFT | 61.74 | 68.60 | 54.40 | 60.44 | 61.30 |
| SRP (ρ = 1) | 62.80 | 84.39 | 56.19 | 74.49 | 69.47 |
| LP-TM (target ρ = 1) | 62.16 | 83.29 | 53.77 | 72.37 | 67.90 |
Table 9: Seed-42 code results (percentages). The seed-42 LP-TM code evaluation uses .
At seed 42, the code means are 69.47 for SRP-SFT and 66.14 for LP-SFT. At seed 3407, they are 69.48 and 66.45. SRP-SFT has higher MATH pass@1, twelve-metric reasoning mean, and code mean than CE and LP-SFT at all three seeds. SRP reasoning means are 45.11, 45.41, and 44.35 at seeds 1234, 42, and 3407. The CE means are 35.99, 36.03, and 35.85, and the LP-SFT means are 43.50, 43.20, and 42.60.
The CPU-side evaluation covers all seven methods and both code datasets.
F Cross-Backbone High-Quality Robustness
As a data-quality and architecture robustness check, we repeated the Base/CE/LP-SFT/SRP-SFT comparison on six backbones using separate filtered corpora: OpenMathReasoning (Moshkov et al., 2025) for mathematics SFT and rStar-Coder (Liu et al., 2025) for code SFT. These corpora replace UltraFeedback in this robustness study. Each backbone has separate mathematics-trained and code-trained checkpoints. We use Qwen base checkpoints because these releases provide the chat template required by our SFT pipeline. Granite, Ministral, Gemma, and SmolLM3 use their instruction-tuned releases, which supply that template. The released backbone families are Qwen3.5 (Qwen Team, 2026), Granite 4.1 (IBM Granite Team, 2026), Ministral 3 (Mistral AI, 2025), Gemma 3 (Gemma Team et al., 2025), and SmolLM3 (Bakouch et al., 2025). GSM8K evaluates the mathematics-trained checkpoints (Cobbe et al., 2021).
F.1 Reproduction Protocol
Training subsets. For mathematics, we scan the cot split of nvidia/OpenMathReasoning in sorted Parquet-file and row order, retaining the first eligible solution for each unique problem after lowercasing and whitespace normalization. We require a nonempty expected answer, a problem of at least 20 characters, a solution of at least 80 characters, and at most 12,000 characters for problem plus solution. We exclude normalized exact matches to MATH-500 test prompts and substring matches against test prompts of at least 80 characters. The recorded scan contains 3,201,061 rows and retains 96,949 examples, including the removal of 25 prompt-overlap rows. This filter removes MATH-500 prompt overlap.
For code, we use microsoft/rStar-Coder, scanning seed_sft before synthetic_sft in deterministic file/row order. Seed examples must have both verified and is_passed set. Questions must contain at least 80 characters, responses at least 120, and their combined length must not exceed 16,000 characters. We retain one example per normalized question and exclude any question sharing a 16-token sequence with a pinned HumanEval+ or MBPP+ prompt, tokenized by the regular expression [a-z0-9_]+ after lowercasing. The resulting 95,966 examples comprise 3,629 seed and 92,337 synthetic examples. 17 overlap rows are excluded. Synthetic examples are kept under the length and overlap filters. Each domain's resulting JSONL is shared by all six backbones and all three fine-tuning methods.
| Method | MATH-500 | AIME | GSM-Plus mini | LogiQA2 | BBH-5 | ARC-C | Hella-Swag | MMLU | Phy-Oly | Mean | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| p@1 | p@4 | p@1 | p@4 | Strict | Flexible | Acc. | EM | Norm. | Norm. | 5-shot | Acc. | ||
| Training seed 42 | |||||||||||||
| CE | 31.72 | 58.62 | 0.59 | 2.16 | 45.42 | 45.08 | 42.75 | 2.80 | 53.41 | 71.87 | 69.07 | 8.90 | 36.03 |
| GEM | 20.65 | 47.71 | 0.43 | 1.61 | 47.71 | 48.00 | 44.34 | 8.00 | 53.33 | 72.94 | 69.29 | 4.66 | 34.89 |
| DFT | 31.51 | 42.05 | 0.56 | 1.17 | 50.67 | 52.25 | 31.81 | 0.80 | 51.02 | 65.91 | 66.73 | 5.93 | 33.37 |
| ASFT | 45.50 | 68.85 | 2.73 | 6.94 | 52.92 | 54.12 | 37.15 | 15.60 | 53.58 | 70.75 | 67.80 | 10.17 | 40.51 |
| EAFT | 28.30 | 56.44 | 0.99 | 3.38 | 45.38 | 36.00 | 41.67 | 11.60 | 54.18 | 72.16 | 69.89 | 9.75 | 35.81 |
| LP-SFT | 49.45 | 77.00 | 2.92 | 8.20 | 57.88 | 58.54 | 44.40 | 12.40 | 54.52 | 73.16 | 71.44 | 8.47 | 43.20 |
| SRP-SFT | 59.50 | 81.60 | 4.60 | 11.49 | 58.38 | 59.08 | 46.69 | 14.40 | 54.61 | 73.12 | 72.18 | 9.32 | 45.41 |
| Training seed 3407 | |||||||||||||
| CE | 30.31 | 57.45 | 0.61 | 2.25 | 46.88 | 47.50 | 40.52 | 2.80 | 53.16 | 71.76 | 70.18 | 6.78 | 35.85 |
| GEM | 21.02 | 48.10 | 0.57 | 2.14 | 46.46 | 46.67 | 45.17 | 11.60 | 54.18 | 72.75 | 70.75 | 6.78 | 35.52 |
| DFT | 48.36 | 60.96 | 1.37 | 3.53 | 45.54 | 46.96 | 34.41 | 0.80 | 49.74 | 65.15 | 64.77 | 7.63 | 35.77 |
| ASFT | 32.19 | 51.22 | 1.82 | 4.85 | 50.33 | 52.88 | 39.89 | 16.40 | 54.35 | 70.81 | 67.55 | 7.20 | 37.46 |
| EAFT | 31.46 | 58.16 | 0.78 | 2.84 | 46.42 | 34.67 | 41.92 | 12.40 | 52.30 | 71.78 | 70.72 | 7.20 | 35.89 |
| LP-SFT | 45.61 | 75.78 | 2.81 | 7.96 | 57.25 | 58.04 | 41.73 | 16.40 | 52.90 | 73.32 | 71.35 | 8.05 | 42.60 |
| SRP-SFT | 53.76 | 79.55 | 4.17 | 10.77 | 57.50 | 58.63 | 43.70 | 15.20 | 53.84 | 73.28 | 72.49 | 9.32 | 44.35 |
Table 10: Independent seed-42 and seed-3407 reasoning results (percentages). Each mean averages all twelve metrics from the same checkpoint. Both SRP-SFT rows use , , .
| Method | HumanEval+ | MBPP+ | Mean | ||
|---|---|---|---|---|---|
| pass@1 | pass@4 | pass@1 | pass@4 | ||
| Training seed 42 | |||||
| CE | 42.74 | 66.61 | 43.06 | 64.92 | 54.33 |
| GEM | 20.00 | 44.48 | 22.91 | 48.31 | 33.93 |
| DFT | 61.86 | 68.59 | 54.48 | 60.49 | 61.35 |
| ASFT | 63.02 | 76.25 | 57.78 | 68.45 | 66.37 |
| EAFT | 46.55 | 71.48 | 45.32 | 65.93 | 57.32 |
| LP-SFT | 58.29 | 82.35 | 51.68 | 72.24 | 66.14 |
| SRP-SFT | 62.80 | 84.39 | 56.19 | 74.49 | 69.47 |
| Training seed 3407 | |||||
| CE | 44.57 | 69.79 | 45.62 | 66.41 | 56.60 |
| GEM | 21.31 | 45.93 | 26.93 | 53.33 | 36.88 |
| DFT | 58.38 | 65.59 | 52.53 | 57.03 | 58.38 |
| ASFT | 64.36 | 77.51 | 59.59 | 70.01 | 67.87 |
| EAFT | 47.59 | 71.70 | 45.67 | 65.64 | 57.65 |
| LP-SFT | 59.45 | 83.17 | 51.23 | 71.94 | 66.45 |
| SRP-SFT | 63.35 | 85.06 | 55.34 | 74.16 | 69.48 |
Table 11: Independent-seed EvalPlus results (percentages). Mean averages HumanEval+ and MBPP+ pass@1/pass@4 using all 20 samples per task. All panels use generation seed 1234, temperature 0.8, top-p 1, and token/context caps 4096/8192.
Tokenization and reference cache. Each example is a user question followed by an assistant solution. We use the checkpoint's native chat template, disable optional thinking mode, truncate the rendered sequence on the right at 4,096 tokens, and supervise only assistant-response tokens, including the end-of-turn token when retained. Each example is a separate sequence. All retained rows have supervised tokens for all six tokenizers. Table 13
| Setting | Mathematics | Code |
|---|---|---|
| Retained training examples | 96,949 | 95,966 |
| Example presentations per epoch | 97,024 | 96,000 |
| Sequence length (tokens) | 4,096 | 4,096 |
| Effective batch size | 128 | 128 |
| Epochs | 1 | 1 |
| Optimizer updates / cosine horizon | 758 | 750 |
| Linear warmup updates | 23 | 23 |
| Evaluated checkpoint step | 758 | 750 |
| Training seed | 1234 | 1234 |
Table 12: Cross-backbone training budgets, shared by CE, LP-SFT, and SRP-SFT for every backbone. Example presentations include deterministic sampler padding to complete gradient-accumulation windows.
gives the resulting supervised-token totals before sampler padding. For each backbone/domain pair, its frozen initialization supplies one cache shared by CE, LP-SFT, and SRP-SFT. LP uses temperature one and . SRP uses all eligible teacher-preferred pairs, the hinge penalty, , , and . These coefficients are fixed across backbones.
Optimization and checkpoint selection. All 36 fine-tuning runs (six backbones, two domains, three methods) use eight A800-80GB GPUs, BF16, and DeepSpeed ZeRO-2. We update the text-model parameters. Vision modules and multimodal projectors, when present, remain frozen. Each GPU uses micro-batch one and 16 accumulation steps, giving an effective batch of 128. AdamW uses peak learning rate , , , zero weight decay, and gradient clipping at 1.0. A linear warmup over 23 updates is followed by cosine decay to zero over the domain's
| Initialization (repository ID) | Revision | Math tokens | Code tokens |
|---|---|---|---|
| Qwen/Qwen3.5-2B-Base | b1485b2fa6df | 306,157,988 | 234,957,303 |
| Qwen/Qwen3.5-0.8B-Base | dc7cdfe2ee41 | 306,157,988 | 234,957,303 |
| ibm-granite/granite-4.1-3b | c0650403e44e | 294,685,290 | 224,987,190 |
| mistralai/Ministral-3-3B-Instruct-2512-BF16 | b6d637bef239 | 283,617,839 | 220,836,597 |
| google/gemma-3-4b-it | 093f9f388b31 | 305,993,476 | 240,191,774 |
| HuggingFaceTB/SmolLM3-3B | a07cc9a04f16 | 292,833,133 | 224,365,722 |
Table 13: Pinned cross-backbone initializations (12-character revision prefixes) and supervised-token counts after tokenization and truncation. Counts cover one copy of each retained example. Token budgets vary with the tokenizer.
full one-epoch horizon. Training and sampler seeds are 1234, with two data-loader workers. The sampler repeats examples to complete accumulation windows: 97,024 example presentations yield 758 math updates, and 96,000 yield 750 code updates. We evaluate the final checkpoint at those steps. The Base row uses the corresponding untouched initialization.
Evaluation settings. All four arms use native chat formatting, generation seed 1234, and disabled optional thinking mode. Mathematics checkpoints are evaluated on MATH-500 (500 test questions), GSM8K (1,319 test questions), and AIME 2021–2025 (150 questions). MATH-500 and GSM8K use 16 samples per question, temperature 0.6, top-p = 1, a 4,096-token generation cap, and an 8,192-token context limit. AIME uses 32 samples at the same temperature and top-p, with caps of 8,192 generated and 12,288 context tokens. The data revisions are 6e4ed1a2a79a for HuggingFaceH4/MATH-500, 740312add88f for openai/gsm8k (main, test), and 292f1a1b4f04 for Pandores/aime-1983-2025, using the recorded repaired-v1 AIME data restricted to 2021–2025. Code checkpoints use 20 samples on each of 164 HumanEval+ and 378 MBPP+ tasks, temperature 0.8, top-p = 0.95, and generation/context caps of 4,096/8,192 tokens. This top-p is specific to the cross-backbone study. EvalPlus 0.3.1 requires both base and additional tests to pass. Pass@k uses the unbiased estimator given above. The mathematics and code scores therefore come from separate final checkpoints.
Software and audit records. The cross-backbone environment locks record Python 3.12.3, PyTorch 2.8.0a0+5228986c39.nv25.5 with CUDA 12.9, Transformers 5.17.0, DeepSpeed 0.16.9, Datasets 4.1.1, and Accelerate 1.10.1. The generation launcher first attempts vLLM with tensor parallelism eight and falls back to eight independent Transformers workers when a backbone is unsupported. We retain the per-job commands and backend logs. Dataset manifests record source-file SHA-256 hashes, filter settings, and retained counts. Cache manifests record tokenization statistics. Each run records the resolved optimizer and scheduler settings, and each evaluation has a generation manifest and raw outputs. These records separate the cross-backbone protocol from the Qwen3-4B main-study environment.
F.2 Cross-Backbone Results
These runs use 4,096-token sequences, one epoch, , and . They are therefore a separate robustness study from the 2,048-token main screen. OpenMathReasoning is the mathematics training domain for the reasoning tables, and the code tables use rStar-Coder. The reported scores measure in-domain adaptation after domain-specific SFT. We report the four pre-specified Base/CE/LP-SFT/SRP-SFT arms, all of which are complete in the reported six-backbone comparison.
The AIME tables use two groups of three backbones. Tables 16 and 17 report GSM8K and MATH-500 checks for the first and second groups, respectively. The code tables retain separate base-model and instruction-tuned groups. All of these tables occupy one column. Model names and evaluation metrics identify each comparison.
Figure 5 reports the difference between SRP-SFT and the arithmetic mean of CE and LP-SFT for the same backbone and dataset. The reasoning tables report pass@16 from the corresponding GSM8K and MATH-500 evaluations.
| Method | Qwen3.5-2B Base | Qwen3.5-0.8B Base | Granite-4.1-3B Instruct |
|---|---|---|---|
| Base | 10.94 | 1.65 | 6.54 |
| CE | 5.42 | 1.77 | 17.38 |
| LP-SFT | 6.83 | 1.58 | 19.46 |
| SRP-SFT | 11.31 | 1.77 | 19.31 |
Table 14: AIME 2021–2025 pass@1 results for Qwen3.5-2B Base, Qwen3.5-0.8B Base, and Granite-4.1-3B Instruct.
| Method | Ministral-3-3B Instruct | Gemma-3-4B it | SmolLM3-3B Instruct |
|---|---|---|---|
| Base | 18.42 | 9.62 | 8.67 |
| CE | 17.48 | 5.58 | 30.31 |
| LP-SFT | 20.88 | 9.52 | 30.06 |
| SRP-SFT | 21.46 | 8.33 | 29.23 |
Table 15: AIME 2021–2025 pass@1 results for Ministral-3-3B Instruct, Gemma-3-4B it, and SmolLM3-3B Instruct.
Instruction-tuned comparison. Across Tables 14 and 15, SRP-SFT leads on Ministral, CE leads on SmolLM3, LP-SFT leads on Granite, and the untouched Base leads on Gemma. These comparisons use the complete set of pre-specified arms for every backbone.
Independent reasoning checks. Table 16 groups Qwen3.5-2B Base, Qwen3.5-0.8B Base, and Granite-4.1-3B Instruct. Table 17 contains Ministral-3-3B Instruct, Gemma-3-4B it, and SmolLM3-3B Instruct. Both tables use the same backbone grouping and report GSM8K and MATH-500 pass@1/pass@16. AIME is reported separately in Tables 14 and 15.
| Method | GSM8K | MATH-500 | ||
|---|---|---|---|---|
| pass@1 | pass@16 | pass@1 | pass@16 | |
| Qwen3.5-2B Base | ||||
| Base | 80.70 | 96.51 | 69.25 | 89.40 |
| CE | 73.46 | 94.69 | 56.95 | 88.60 |
| LP-SFT | 76.46 | 95.75 | 65.59 | 91.80 |
| SRP-SFT | 78.13 | 96.21 | 70.39 | 92.40 |
| Qwen3.5-0.8B Base | ||||
| Base | 56.11 | 91.58 | 45.16 | 77.00 |
| CE | 52.48 | 90.07 | 43.70 | 80.40 |
| LP-SFT | 57.32 | 90.45 | 45.35 | 79.80 |
| SRP-SFT | 55.49 | 90.83 | 45.60 | 78.60 |
| Granite-4.1-3B Instruct | ||||
| Base | 88.53 | 94.31 | 67.04 | 91.00 |
| CE | 89.40 | 97.42 | 75.67 | 93.80 |
| LP-SFT | 91.12 | 96.44 | 81.45 | 95.20 |
| SRP-SFT | 91.16 | 96.06 | 80.75 | 96.00 |
Table 16: Reasoning checks for Qwen3.5-2B Base, Qwen3.5-0.8B Base, and Granite-4.1-3B Instruct (percentages). Columns report GSM8K and MATH-500 pass@1/pass@16.
Adaptation depends on the benchmark. For Qwen3.5-2B, SRP-SFT exceeds the untouched Base on both MATH-500 metrics but not on GSM8K. Granite also separates the two tasks: SRP-SFT has the highest GSM8K pass@1 and MATH-500 pass@16, while LP-SFT leads MATH-500 pass@1. Keeping all four metrics visible avoids reducing these distinct outcomes to a single model ranking.
| Method | GSM8K | MATH-500 | ||
|---|---|---|---|---|
| pass@1 | pass@16 | pass@1 | pass@16 | |
| Ministral-3-3B Instruct | ||||
| Base | 80.20 | 97.35 | 66.53 | 93.80 |
| CE | 88.03 | 96.97 | 73.69 | 91.60 |
| LP-SFT | 89.93 | 97.27 | 74.76 | 91.80 |
| SRP-SFT | 90.36 | 97.42 | 75.30 | 91.20 |
| Gemma-3-4B it | ||||
| Base | 89.58 | 96.06 | 76.39 | 91.80 |
| CE | 77.79 | 96.89 | 57.55 | 85.00 |
| LP-SFT | 86.52 | 97.27 | 63.94 | 92.00 |
| SRP-SFT | 86.52 | 96.36 | 61.59 | 91.80 |
| SmolLM3-3B Instruct | ||||
| Base | 77.79 | 96.97 | 71.12 | 92.20 |
| CE | 89.63 | 96.44 | 80.76 | 93.60 |
| LP-SFT | 90.13 | 97.04 | 80.64 | 93.80 |
| SRP-SFT | 90.01 | 97.42 | 80.92 | 93.80 |
Table 17: Reasoning checks for Ministral-3-3B Instruct, Gemma-3-4B it, and SmolLM3-3B Instruct (percentages). Columns report GSM8K and MATH-500 pass@1/pass@16.
Sampling comparisons. For Ministral, SRP-SFT leads GSM8K pass@1/pass@16 and MATH-500 pass@1, while the untouched Base leads MATH-500 pass@16. On SmolLM3, SRP-SFT leads MATH-500 pass@1 and ties LP-SFT at pass@16, whereas LP-SFT leads GSM8K pass@1. Gemma shows a different trade-off: the untouched Base leads GSM8K and MATH-500 pass@1, while LP-SFT leads MATH-500 pass@16.
We also evaluate code generation after domain-specific SFT on rStar-Coder with 4,096-token sequences. Values below are EvalPlus pass@1 percentages.
Scope of the code comparison. Granite's SRP-SFT HumanEval+ score, 76.22, is close to the untouched Base's 76.25, whereas its MBPP+ score remains lower. Ministral also shows different orderings across the two tasks: SRP-SFT leads HumanEval+, while the Base leads MBPP+. Gemma and SmolLM3 also have complete two-task comparisons: SRP-SFT matches the Gemma Base on HumanEval+ and trails it on MBPP+. On SmolLM3, SRP-SFT exceeds Base on Hu-
| Method | Qwen3.5-2B Base | Qwen3.5-0.8B Base | ||
|---|---|---|---|---|
| Human Eval+ | MBPP+ | Human Eval+ | MBPP+ | |
| Base | 38.17 | 37.51 | 20.67 | 19.64 |
| CE | 30.61 | 23.86 | 16.65 | 15.09 |
| LP-SFT | 38.75 | 34.27 | 21.34 | 18.64 |
| SRP-SFT | 39.76 | 35.21 | 21.89 | 20.17 |
Table 18: rStar-Coder adaptation on the two base-model backbones (EvalPlus pass@1 percentages).
| Method | HumanEval+ | MBPP+ | Mean |
|---|---|---|---|
| Granite-4.1-3B Instruct | |||
| Base | 76.25 | 59.33 | 67.79 |
| CE | 65.49 | 51.71 | 58.60 |
| LP-SFT | 73.05 | 55.87 | 64.46 |
| SRP-SFT | 76.22 | 56.73 | 66.48 |
| Ministral-3-3B Instruct | |||
| Base | 66.68 | 56.52 | 61.60 |
| CE | 54.24 | 47.57 | 50.91 |
| LP-SFT | 68.11 | 55.54 | 61.83 |
| SRP-SFT | 69.73 | 54.93 | 62.33 |
| Gemma-3-4B it | |||
| Base | 63.02 | 67.78 | 65.40 |
| CE | 44.63 | 35.98 | 40.31 |
| LP-SFT | 58.93 | 61.57 | 60.25 |
| SRP-SFT | 63.02 | 64.70 | 63.86 |
| SmolLM3-3B Instruct | |||
| Base | 56.95 | 49.87 | 53.41 |
| CE | 47.90 | 44.37 | 46.14 |
| LP-SFT | 57.71 | 48.19 | 52.95 |
| SRP-SFT | 58.29 | 49.66 | 53.98 |
Table 19: rStar-Coder adaptation on four instruction-tuned backbones (EvalPlus pass@1 percentages). Mean averages HumanEval+ and MBPP+.
manEval+ but remains slightly below Base on MBPP+.
| Backbone | MATH | GSM8K | HE+ | MBPP+ |
|---|---|---|---|---|
| Granite | -0.70 | +0.04 | +3.17 | +0.86 |
| SmolLM3 | +0.28 | -0.12 | +0.58 | +1.47 |
| Ministral | +0.54 | +0.43 | +1.62 | -0.61 |
| Gemma | -2.35 | +0.00 | +4.09 | +3.13 |
| Qwen 2B | +4.80 | +1.67 | +1.01 | +0.94 |
| Qwen 0.8B | +0.25 | -1.83 | +0.55 | +1.53 |
Table 20: Direct cross-backbone in pass@1 percentage points, using the same source data as Figure 5. Negative values are retained.
G Parameter Sensitivity and Ablation
The parameter study separates three choices in SRP-SFT: the margin-demand level , the loss weight , and the number of teacher alternatives . We use the held-out diagnostic for the structural measures and report MATH-500 and EvalPlus scores under the same fixed evaluation protocol. Figure 4 makes the response curves visible across all reported arms. The completed scores peak at and . Among the seven arms (), is highest. The arm is included in the tabulated sweep with matching training, MATH-500, EvalPlus, and held-out diagnostic measurements.
The sensitivity and ablation grid was evaluated on the held-out diagnostic. “MATH” is MATH-500 pass@1, “Code” is the mean of HumanEval+ and MBPP+ pass@1, and “Avg.” is the arithmetic mean of these two domain scores. The compact sensitivity table retains the main performance and directional-preservation measures. Redundant per-dataset and auxiliary diagnostics are omitted for readability. Flip and Violation are fractions. Contr. is the mean positive logit-margin contraction in logit units. The sensitivity reference setting is , , and K = 10. The headline SRP-SFT checkpoint uses , , and K = 10 as disclosed above. In Table 21, the task scores are that headline evaluation: MATH pass@1 matches the main table, and Code avg. is the mean of its HumanEval+ and MBPP+ pass@1. The row is likewise the headline CE checkpoint. A zero auxiliary weight leaves only the target-token cross-entropy, on the same 478-step schedule as the other cells. Every remaining row is the checkpoint trained for that sensitivity cell. The reference is one of those checkpoints and is reused by the loss screen below.
To make the one-factor design explicit, the sweep varies while holding and . The sweep varies while holding and . And the sweep varies while holding and . Training settings other than the varied coefficient stay fixed. is one such cell: its candidate set contains one non-target token, so it forms no ordered pair and the auxiliary term is zero. Held-out flip and contraction are 0.1541 and 0.6007, next to 0.1540 and 0.5995 for headline CE. MATH pass@1 is 28.58, next to 27.98. With deterministic attention and a locked RNG state, CE and agree exactly over eight optimizer steps (Appendix C).
Reading the sweeps. Each block in Table 21 varies one control around the stated sensitivity reference setting. Increasing past the highest ob-
| Grid | Value | MATH p@1 ↑ | Code avg. ↑ | Avg. ↑ | Flip ↓ | Contr. ↓ |
|---|---|---|---|---|---|---|
| ρ | 0.00 | 41.02 | 53.08 | 47.05 | .0828 | .4123 |
| 0.25 | 47.80 | 53.57 | 50.69 | .0740 | .3549 | |
| 0.50 | 50.12 | 54.65 | 52.39 | .0666 | .2663 | |
| 0.75 | 52.78 | 58.56 | 55.67 | .0596 | .1563 | |
| 1.00 | 54.56 | 59.54 | 57.05 | .0565 | .1098 | |
| 1.25 | 56.83 | 61.51 | 59.17 | .0583 | .0950 | |
| 1.50 | 58.56 | 63.21 | 60.89 | .0627 | .0982 | |
| 1.75 | 57.70 | 62.89 | 60.29 | .0700 | .1130 | |
| 2.00 | 58.75 | 62.77 | 60.76 | .0774 | .1325 | |
| 2.25 | 59.04 | 63.45 | 61.24 | .0865 | .1618 | |
| 2.50 | 60.45 | 62.68 | 61.56 | .0937 | .1891 | |
| 2.75 | 58.61 | 61.66 | 60.14 | .1009 | .2218 | |
| 3.00 | 58.05 | 61.44 | 59.75 | .1070 | .2540 | |
| μ | 0.00 | 27.98 | 44.42 | 36.20 | .1540 | .5995 |
| 0.10 | 34.15 | 48.13 | 41.14 | .1160 | .4061 | |
| 0.30 | 38.88 | 52.46 | 45.67 | .0971 | .3513 | |
| 1.00 | 50.12 | 54.65 | 52.39 | .0666 | .2663 | |
| 3.00 | 52.83 | 57.29 | 55.06 | .0453 | .2131 | |
| 5.00 | 49.40 | 56.54 | 52.97 | .0397 | .1998 | |
| 10.00 | 39.92 | 57.17 | 48.55 | .0356 | .1908 | |
| K | 1 | 28.58 | 45.62 | 37.10 | .1541 | .6007 |
| 2 | 33.88 | 47.54 | 40.71 | .1359 | .4843 | |
| 3 | 49.95 | 55.53 | 52.74 | .0829 | .3196 | |
| 5 | 50.66 | 55.79 | 53.23 | .0718 | .2833 | |
| 7 | 48.23 | 55.81 | 52.02 | .0683 | .2720 | |
| 10 | 50.12 | 54.65 | 52.39 | .0666 | .2663 | |
| 20 | 49.48 | 55.01 | 52.24 | .0668 | .2678 |
Table 21: One-factor sensitivity of , , and . MATH is MATH-500 pass@1. Code avg. Averages HumanEval+ and MBPP+ pass@1. Avg. Averages the two domains. Flip and Contr. are lower-is-better diagnostics.
served overall setting continues to reduce Flip.
Figure 7 summarizes the performance–geometry trade-off. The point has the highest observed overall score (61.56), while has score 60.89 and lower contraction (0.0982). Relative to , improves Avg. From 57.05 to 61.56 while increasing Flip from 0.0565 to 0.0937 and contraction from 0.1098 to 0.1891. Neither measured preservation nor performance is monotone in . The sweep covers seven values, including .
| Variant | UF NLL | Math/ Code | Flip | Contr. | KL |
|---|---|---|---|---|---|
| CE | .917 | 38.94 | .1540 | .5995 | .3592 |
| .919 | 49.06 | .0828 | .4123 | .0797 | |
| Include-GT | .922 | 52.58 | .0705 | .2750 | .0564 |
| (sensitivity ref.) | .922 | 53.14 | .0666 | .2663 | .0523 |
| Adjacent-rank pairs | .927 | 55.26 | .0573 | .3238 | .0470 |
| Top1-vs-rest | .919 | 50.72 | .0946 | .2961 | .0873 |
Table 22: Objective and sparse-pair ablations around the sensitivity reference. The Random- arm is omitted.
Pair selection. Adjacent-rank pairs in Table 22 give a different trade-off, with higher Math/Code

Bubble area encodes the active-pair rate; lower contraction is preferable.
Figure 7: Performance–geometry frontier over the reported sweep. Bubble area is the active-pair rate. Lower contraction is preferable.
than the sensitivity reference and higher contraction. The comparison reports task scores together with Flip, contraction, and KL.
G.1 Headline Pair-Graph Controls
| Variant | MATH p@1 | MATH p@4 | Code mean | Flip | Contr. | KL |
|---|---|---|---|---|---|---|
| Full pairs | 54.56 | 80.50 | 69.50 | 0.0565 | 0.1098 | 0.0748 |
| Adjacent | 57.65 | 82.02 | 69.04 | 0.0520 | 0.1346 | 0.0431 |
Table 23: SRP pair-graph controls at , , (training seed 1234). Full pairs is the headline checkpoint, and its task scores are the main-table evaluation. Adjacent pairs is a separately trained checkpoint. Task scores are percentages. Code mean averages the four matched HumanEval+/MBPP+ pass@1/pass@4 metrics. Diagnostics use the 998-example held-out cache. Both checkpoints have 478 training steps. Flip is a fraction. Contr. is in logit units.
The pair-graph comparison in Table 23 uses the headline full-pair checkpoint and a separately trained adjacent-rank checkpoint. Adjacent pairs have higher MATH scores and a slightly lower code mean, with lower Flip and KL but higher contraction. The two runs share the training implementation, environment, and common hyperparameters. The pair set is the changed factor.
Full and adjacent graphs use 45 and 9 pairs at , respectively. In this pilot the adjacent graph records 6,514 tokens/s and 19.91 GiB, against 6,625 tokens/s and 19.91 GiB for the full graph. The adjacent checkpoint's downstream scores are in Table 23. Both graphs reuse the same top- cache, whose 56 NumPy arrays occupy 1.143 GiB. CE reads the supervised cache fields. LP-SFT and SRP-SFT additionally read the top-
| Method | Pairs | Tokens/s | Wall (s) | Peak (GiB) |
|---|---|---|---|---|
| CE | - | 6748 | 175.31 | 19.91 |
| LP-SFT | - | 6743 | 180.81 | 19.91 |
| SRP full | 45 | 6625 | 176.41 | 19.91 |
| SRP adjacent | 9 | 6514 | 181.48 | 19.91 |
Table 24: Measured 20-step efficiency pilots with the same eight-GPU allocation and training configuration. Throughput excludes the first five warmup steps and checkpoint I/O. Wall time covers the training run. Peak is the maximum allocated memory over ranks. Pairs counts auxiliary rank constraints per position. CE and LP-SFT have no auxiliary pairs.
fields. A new timed reconstruction of the shared full cache takes 486.63 seconds on eight GPUs, including model loading, tokenization, teacher computation, and writing. Of 61,135 requested rows, 61,095 are valid and 40 empty rows are skipped. The 56 arrays occupy 1.143 GiB. This measurement is the reconstruction of the shared cache used by LP-SFT and both SRP pair graphs.
G.2 LP-SFT/ListNet Equivalence and Training Audit
For frozen teacher probabilities and student probabilities on the same candidate set,
With matching temperature, candidate mask, reduction, and coefficient, . Both objectives include the same target CE outside the alternatives.
We checked the current implementation on identical logits through the full CE-plus-auxiliary code path, with coefficient one and temperature one. Eight cases cover FP32/BF16 logits, valid/padded/empty positions, and target exclusion. The student gradients are bitwise equal in these CPU checks. The loss difference equals the reduced teacher entropy to floating-point precision.
Controlled training audit. We also compare LP-SFT and ListNet over eight optimizer updates of Qwen3-4B-Base using BF16 DeepSpeed ZeRO-2 on eight ranks. Both runs use seed 1234, the same initialization, cache, data order, optimizer and scheduler, with , temperature one, and . The microbatch size is one per rank, with 16 accumulation steps and effective batch size 128. We enable deterministic algorithms and SDPA math attention, and disable communication overlap. Table 25 summarizes the paired traces: all 1,024 microbatches have matching input, RNG, candidate-mask, and selected-logit-gradient hashes. CE losses and optimizer-step gradient norms agree exactly. Parameter hashes recorded on rank 0 match at initialization and after every update. The maximum residual in is . These results verify the predicted equivalence through eight updates of the controlled training execution.
| Paired check | Pairs | Result |
|---|---|---|
| Input and RNG hashes | 1,024 | All match |
| Candidate-mask hashes | 1,024 | All match |
| Selected-logit-gradient hashes | 1,024 | All match |
| Maximum CE loss difference | 1,024 | 0 |
| Maximum loss-entropy residual | 1,024 | |
| Maximum update gradient-norm difference | 64 | 0 |
| Parameter hashes (rank 0) | 9 | All match |
Table 25: LP-SFT/ListNet training identity audit. Microbatch checks cover 8 ranks × 8 updates × 16 accumulation steps. Gradient norms cover all 64 rank-update pairs. The nine parameter snapshots comprise initialization and eight post-update states on rank 0. The loss residual subtracts the reduced teacher entropy from the ListNet-minus-LP total objective. Its absolute tolerance is .
The reported LP and ListNet runs use a 478-step schedule, with micro-batch one and accumulation 16. They use the same training implementation, environment, data-loader configuration, and common training hyperparameters. ListNet is a separately trained instance of the LP-equivalent objective. The matched training audit above directly verifies implementation identity.
G.3 Ranking-Loss Form Ablation
The parameter grid above varies SRP hyperparameters. We additionally compare the loss form at fixed coefficients and a shared Qwen3-4B-Base initialization. All rows share the same training implementation, environment, and common training hyperparameters. Candidate-set details are described in the full screen below. Table 27 shows representative alternatives. The complete fixed-configuration screen is given in Appendix H. Table 26 gives the four-metric code mean for ListMLE, Margin-MSE, and SRP-SFT at .
RankOnly lowers inversion relative to CE but remains below the margin-aware SRP variants in this screen. SRP-full has the strongest three-task mean, whereas Margin-MSE has fewer inversions (0.0380 versus 0.0565). The RLKD-style top-K approximation is specified in Appendix H.
| Method | MATH | HE+ | MBPP+ | Code mean | |||
|---|---|---|---|---|---|---|---|
| p@1 | p@4 | p@1 | p@4 | p@1 | p@4 | ||
| ListMLE | 52.21 | 79.58 | 62.35 | 83.85 | 55.46 | 73.74 | 68.85 |
| Margin-MSE | 49.19 | 79.77 | 61.52 | 84.66 | 54.85 | 74.64 | 68.92 |
| SRP-SFT | 54.56 | 80.50 | 62.84 | 83.87 | 56.24 | 75.06 | 69.50 |
Table 26: One-epoch ranking controls at (seed 1234, percentages).
| Loss | MATH | HE+ | MBPP+ | Mean | Flip ↓ | Contr. ↓ |
|---|---|---|---|---|---|---|
| CE | 27.98 | 44.18 | 44.66 | 38.94 | 0.1540 | 0.5995 |
| LP-SFT | 49.56 | 57.90 | 51.87 | 53.11 | 0.0741 | 0.2681 |
| RankOnly (ρ = 0) | 41.89 | 55.37 | 49.96 | 49.07 | .0828 | .4124 |
| RankNet | 46.41 | 59.09 | 52.63 | 52.71 | .0853 | .1872 |
| ListMLE | 52.15 | 61.71 | 56.18 | 56.68 | .0691 | .1271 |
| Margin-MSE | 48.68 | 61.07 | 54.72 | 54.82 | .0380 | .1522 |
| SRP-full (ρ = 1) | 54.56 | 62.84 | 56.24 | 57.88 | .0565 | .1098 |
| SRP-SFT (ρ = .5) | 50.12 | 57.23 | 52.08 | 53.14 | .0666 | .2663 |
Table 27: Representative ranking-loss screen. MATH, HE+, and MBPP+ are pass@1. Mean averages them. Flip is a fraction and Contr. is in logit units. SRP-full ( ) is the headline checkpoint and matches Table 2. SRP-SFT ( ) is the sensitivity-reference checkpoint in Table 21. Its HumanEval+ and MBPP+ pass@1 average to that table's code score of 54.65 before rounding.
H Full Ranking-Loss Ablation
Table 4 in Section 7.2 reports the full downstream performance panel for the headline method and the other loss-form controls. This appendix retains the companion relation and directional diagnostics. The RLKD-style row is a controlled top- variant of the cited method. The fixed-candidate rows reuse the teacher top- non-target cache, target exclusion, CE reduction, and valid-token normalization. BiLD T+S and RLKD-style union additionally change the candidate set and use a teacher-logit floor for student-only candidates. All methods use the same training implementation, environment, and common training hyperparameters. Every auxiliary row uses . SRP-SFT uses the fixed headline configuration.
The following definitions specify the objectives used in Tables 4 and 27. For each supervised position , let be the cached teacher top- non-target alternatives (), let for , and let . Thus the pairwise rows use every teacher-preferred ordered pair and never add the reverse orientation. Invalid or padded positions are removed before reduction. Every auxiliary is averaged over the valid response positions and added to the ordinary target CE with . The screen uses the shared reference cache, a checkpoint after one processed epoch, seed 1234, effective batch size 128, peak AdamW learning rate , and 2,048-token context. All rows use a 478-step cosine horizon with 15 warmup steps. The CE row is the same target CE with no auxiliary term. These rows illustrate three kinds of supervision. LP-SFT and ListNet share the same one. Pointwise supervision gives an individual token a target label or score, as CE does for the observed response token. Pairwise supervision compares two candidates and uses their relation, as in RankOnly, RankNet, Margin-MSE, and SRP-SFT. Listwise supervision uses the full candidate set at once, as in ListNet and ListMLE. Pointwise supervision is the CE term already present in every row.
The distinction between the two listwise controls is also specific. ListNet matches a teacher probability distribution over the candidate set, whereas ListMLE uses only the teacher's sorted permutation and a Plackett–Luce likelihood. At matched temperature, candidate mask, reduction, and weight, LP-SFT's forward KL differs from ListNet only by the frozen teacher entropy. They therefore have the same student gradient and distribution-matching geometry.
Pairwise objectives. RankOnly is the special case of the SRP implementation, . It enforces order but has no teacher-margin target. SRP-full (the row, also called SRP-SFT in the main performance panel) uses , while the appendix SRP-SFT () row replaces the target by . Margin-MSE uses the symmetric exact-gap objective . RankNet (Burges et al., 2005) uses softplus on the same pairs with . Smooth-SRP uses the raw (unshifted) smooth hinge softplus with . Consequently it remains nonzero on the feasible side, unlike the hard SRP hinge. Kendall- is a controlled soft-concordance proxy, not the cited paper's official implementation: it averages with .
Listwise and correlation objectives. ListNet (Cao et al., 2007) forms and only over , and uses (temperature 1). ListMLE (Xia et al., 2008) sorts by descending teacher logit, , and uses the normalized Plackett–Luce negative log-likelihood . It uses the teacher permutation. Spearman first assigns each candidate the pairwise-sigmoid soft rank , then minimizes one minus the Pearson correlation of teacher and student soft ranks on (). It adapts the rank-correlation statistic (Spearman, 1904).
Cited-method approximations. BiLD teacher-led applies KL(softmax() || softmax()) to all pairs in with and the shared teacher top- set. It is therefore a teacher-led controlled approximation. BiLD T+S uses and adds a second branch over the student's target-excluded top-8. For a student-only token, the cached teacher logit is set to , exactly the floor used in the code. RLKD-style union uses differentiable Spearman on the deduplicated union of the teacher top-5 and student's target-excluded top-5 candidates. Student-only teacher logits use the same floor and the rank temperature is 1. LP-SFT is the separate local forward KL KL() on the same target-excluded candidate set, with the target CE retained outside that set.
| Relation and preservation diagnostics | |||
|---|---|---|---|
| Loss | Relation | Flip | Contr. |
| CE | None | 0.1540 | 0.5995 |
| LP-SFT | Distribution | 0.0741 | 0.2681 |
| RankOnly () | Pairwise order | .0828 | .4124 |
| RankNet | Pairwise order | .0853 | .1872 |
| ListMLE | Listwise order | .0691 | .1271 |
| Spearman | Rank correlation | .0757 | .2844 |
| ListNet | Distribution (LP-equivalent) | .0739 | .2675 |
| Margin-MSE | Pairwise gap | .0380 | .1522 |
| BiLD teacher-led | Diff-KL | .0539 | .2549 |
| BiLD T+S | Diff-KL | .0855 | .3415 |
| RLKD-style union | Rank correlation | .0682 | .2509 |
| Kendall- | Pair concordance | .0924 | .2352 |
| Smooth-SRP | Pairwise gap bound | .0732 | .1602 |
| SRP-SFT () | Pairwise gap bound | .0565 | .1098 |
| SRP-SFT () | Pairwise gap bound | .0666 | .2666 |
Table 28: Relation and directional diagnostics for the ranking-loss screen. Flip is a fraction and Contr. is in logit units. Both are lower-is-better. ListNet is LP-equivalent. Performance is in Table 4.
Relating performance and geometry. Tables 4 and 28 separate task performance from the preserved relation. Margin-MSE has the lowest displayed Flip rate, whereas SRP-SFT with has the highest three-task mean. These properties therefore select different rows. The supplementary arm and its performance remain in the compact appendix screen (Table 27).
RankNet continually rewards larger positive pairwise margins. SRP's auxiliary becomes inactive when the requested bound is met. The relation labels specify the controlled implementation compared, including the approximate BiLD and RLKD-style variants.
I Entropy-Matched Temperature Control
This appendix records the diagnostic behind Section 7.5. The downstream screen itself is Table 5.
| Method | H | Contr. | Flip | Viol. | ||
|---|---|---|---|---|---|---|
| CE | 0.906 | 1.081 | 0.925 | 0.600 | 0.154 | 0.501 |
| LP-SFT | 0.938 | 1.099 | 0.910 | 0.268 | 0.074 | 0.513 |
| SRP-SFT | 0.802 | 1 | 1 | 0.110 | 0.056 | 0.229 |
Table 29: Mechanism diagnostics on the held-out cache (280,908 response positions). is mean full-vocabulary entropy. Contr./Flip are contraction/inversion, and Viol. is the fraction below the margin. CE and LP-SFT match the SRP-SFT entropy.
I.1 Sharpness and the Fitted Scale
On 280,908 held-out response positions, the SRP-SFT mean full-vocabulary entropy is (Table 29). For each frozen baseline we solve
The LP solution is interior, . CE has an interior solution against the same SRP-SFT entropy. Equivalent model temperature is . Logits are multiplied by and then sampled at temperature 0.6 on MATH-500 and 0.8 on HumanEval+ and MBPP+. The fit uses the held-out SRP-SFT entropy as its only target.
I.2 Margin Geometry
The following two tables report per-pair margin ratios and violation-conditioned bins. The margin-geometry panel (Table 30) uses , not the 1.0993 scale used in the downstream control (Table 5). The geometry panel uses . The downstream control uses 1.0993. On teacher-preferred pairs with reference margin above 0.1 (9.90 million pairs), multiplying LP-SFT logits by multiplies the mean margin ratio by the same factor, , and leaves the coefficient of variation and the through-origin unchanged at 1.952 and 0.833. SRP-SFT has mean ratio 1.244, coefficient of variation 1.346, , and a below-margin rate of 0.229, compared with 0.447 for LP-TempMatch and 0.539 for unscaled LP-SFT. Global scaling moves every retained margin proportionally. SRP-SFT changes which margins fall short of the reference.
| Method | Mean ratio | CV | Below | |
|---|---|---|---|---|
| CE | 0.942 | 5.829 | 0.360 | 0.514 |
| LP-SFT | 0.934 | 1.952 | 0.833 | 0.539 |
| LP-TempMatch | 1.043 | 1.952 | 0.833 | 0.447 |
| SRP-SFT | 1.244 | 1.346 | 0.898 | 0.229 |
Table 30: Teacher-preferred margin geometry for . Mean ratio is . CV is its coefficient of variation. is the through-origin fit. LP-TempMatch uses .
I.3 Violation-Conditioned Diagnostics
The entropy differences also vary across positions (Table 31), grouped by the CE checkpoint's violation rate. In the highest bin, SRP-SFT has full-vocabulary entropy 0.165 below CE, while LP-SFT is 0.016 below CE. SRP-SFT's contraction and flip reductions are larger in higher CE-violation bins.
| CE viol. | n | LP - CE | SRP - CE | ||||
|---|---|---|---|---|---|---|---|
| ΔC | ΔF | ΔH | ΔC | ΔF | ΔH | ||
| (0,.25] | 10,898 | -.019 | -.011 | +.114 | -.117 | -.031 | -.044 |
| (.25,.50] | 123,110 | -.246 | -.061 | +.066 | -.425 | -.095 | -.096 |
| (.50,.75] | 133,563 | -.501 | -.107 | +.018 | -.780 | -.152 | -.143 |
| (.75,1] | 13,315 | -.705 | -.140 | -.016 | -1.098 | -.188 | -.165 |
Table 31: Diagnostic differences conditioned on the CE checkpoint's violation rate. and are contraction and flip relative to that CE checkpoint. The 22 zero-violation positions are omitted.
J Convergence Data
The following tables provide the numerical values plotted in Figure 6. MATH mean averages MATH-500 pass@1 and pass@4. Code mean averages HumanEval+ and MBPP+ pass@1 and pass@4. Values are percentages, and - denotes a checkpoint whose downstream evaluation was not available in the convergence report. The step-0 Base row is this run's evaluation of the untouched checkpoint. On MATH-500, this row and Table 1 share the evaluation manifest and the sampling protocol: revision 6e4ed1a2a79a, all 500 test problems, the same prompt, temperature 0.6, top-p 1, 16 samples, and a 4,096-token cap. Later checkpoints in this table use that same manifest and protocol. The generations are a separate draw, so pass@1/pass@4 are 48.43/72.06 here (mean 60.24) and 48.11/71.23 in the main table (mean 59.67). The trajectory is anchored to this draw. The code entry uses temperature 0.8, top-p 1, 20 samples, 768 new tokens, and a 2,048-token context (mean 59.17). Table 2 uses 4,096/8,192 and averages to 58.92.
| Epoch | Base | CE | LP-SFT | DFT | ASFT | SRP-SFT |
|---|---|---|---|---|---|---|
| 0.0 | 60.24 | - | - | - | - | - |
| 0.5 | - | 43.22 | 61.70 | 50.30 | 52.27 | 64.21 |
| 1.0 | - | 40.00 | 59.61 | 24.36 | 37.18 | 60.32 |
| 1.5 | - | 46.72 | 60.16 | 28.13 | 57.97 | 58.42 |
| 2.0 | - | 42.50 | 53.04 | 31.68 | 46.70 | 56.54 |
| 2.5 | - | 48.93 | 57.10 | 33.27 | 46.85 | 59.30 |
| 3.0 | - | 50.65 | 57.19 | 30.33 | 34.16 | 60.24 |
| 3.5 | - | 51.00 | 59.85 | 34.64 | 45.38 | 61.25 |
| 4.0 | - | 50.69 | 58.56 | 35.60 | 48.05 | 61.58 |
| 4.5 | - | 50.86 | 60.36 | 38.66 | 50.11 | 61.00 |
| 5.0 | - | 51.42 | 60.36 | 34.68 | 50.31 | 61.49 |
| 5.5 | - | 51.62 | 60.51 | 39.40 | 49.19 | 62.84 |
| 6.0 | - | 51.72 | 60.05 | 39.33 | 52.29 | 63.04 |
| 6.5 | - | 51.14 | 59.85 | 33.13 | 54.82 | 62.24 |
| 7.0 | - | 51.74 | 59.04 | 41.45 | 53.06 | 63.38 |
| 7.5 | - | 50.24 | 59.09 | 39.32 | 51.55 | 62.97 |
| 8.0 | - | 50.75 | 60.25 | 40.23 | 53.10 | 62.56 |
| 8.5 | - | 50.09 | 60.91 | - | 53.10 | 61.98 |
| 9.0 | - | 50.51 | 61.11 | - | 53.38 | 62.59 |
| 9.5 | - | 49.06 | 60.13 | - | 53.68 | 62.43 |
| 10.0 | - | 48.87 | - | - | 54.02 | 62.58 |
Table 32: MATH mean convergence values underlying Figure 6. Step 0 is this run's Base draw under the same MATH-500 manifest and sampling protocol as Table 1.
| Epoch | Base | CE | LP-SFT | DFT | ASFT | SRP-SFT |
|---|---|---|---|---|---|---|
| 0.0 | 59.17 | - | - | - | - | - |
| 0.5 | - | 55.66 | 66.12 | 61.03 | 66.34 | 66.31 |
| 1.0 | - | 52.87 | 64.32 | 60.12 | 66.66 | 65.25 |
| 1.5 | - | 58.47 | 65.75 | 61.47 | 65.56 | 65.46 |
| 2.0 | - | 58.01 | 65.73 | 60.98 | 65.66 | 66.47 |
| 2.5 | - | 61.91 | 67.44 | 60.83 | 67.99 | 68.13 |
| 3.0 | - | 60.57 | 67.85 | 59.07 | 66.36 | 68.62 |
| 3.5 | - | 60.87 | 68.55 | 58.47 | 65.83 | 68.95 |
| 4.0 | - | 60.73 | 68.20 | 57.87 | 67.04 | 69.71 |
| 4.5 | - | 62.92 | 68.84 | 58.76 | 65.17 | 69.77 |
| 5.0 | - | 62.77 | 69.43 | 59.06 | 66.23 | 70.11 |
| 5.5 | - | 62.26 | 68.98 | 58.96 | 66.91 | 69.98 |
| 6.0 | - | 62.53 | 68.98 | 59.74 | 66.48 | 70.27 |
| 6.5 | - | 61.75 | 69.28 | 61.22 | 67.05 | 69.74 |
| 7.0 | - | 63.21 | 69.25 | 60.03 | 67.52 | 70.40 |
| 7.5 | - | 62.19 | 69.87 | 61.17 | 66.13 | 70.24 |
| 8.0 | - | 62.32 | 69.74 | - | 67.38 | 70.69 |
| 8.5 | - | 62.05 | 70.22 | - | 67.22 | 70.67 |
| 9.0 | - | 61.80 | 70.03 | - | 66.86 | 70.58 |
| 9.5 | - | 61.18 | - | - | 67.09 | 70.56 |
| 10.0 | - | 61.48 | - | - | 67.20 | - |
Table 33: Code mean convergence values underlying Figure 6.