WorksComputer Science
Stochastic Pruning of the DPO Computation Graph: 1.4x Faster Training and Lower Peak Memory
Abstract
Direct preference optimization (DPO) incurs training costs in output scoring, sequence execution, and backpropagation, so reducing supervision alone does not necessarily save computation. We introduce a unified framework for stochastic pruning of the DPO computation graph that independently samples response positions for scoring, response prefixes for execution, and preference branches for backpropagation. By making these selections before the corresponding operations, the framework omits computation at each stage of a training step. Our analysis characterizes the objective changes induced by position and sequence pruning and uses inverse-probability weighting to obtain a conditionally unbiased single-branch gradient estimator for the sampled objective. Controlled measurements show that position and sequence pruning primarily reduce peak memory, with most output-memory savings attributable to an implementation that retains full response supervision. Branch pruning yields a step-time speedup over a concatenated DPO baseline and reduces training time by about 30% relative to stock DPO across two model families, with slightly lower mean accuracy and benchmark-dependent changes in open-ended scores. These findings relate the resource benefits of stochastic graph pruning to the computation omitted and the resulting changes in the training objective.
Introduction
Direct preference optimization (DPO) formulates alignment as a logistic comparison of policy–reference likelihood ratios, with gradient contributions from both chosen and rejected responses Rafailov et al., 2023. In large-vocabulary language-model training, materialized logits can dominate memory consumption Wijmans et al., 2025, and attention I/O and operator fusion also affect memory use and training throughput Dao et al., [9]; Hsu et al., [13]. These costs motivate our question of which computations a preference-training step can omit.
Prior work changes token supervision through confidence-based token selection or weighting Yoon et al., 2025; Jiang et al., [18], reward-based selection Yang et al., 2025b, and weighting from contrastive model predictions Liu et al., 2025, while memory-efficient kernels change output-score computation Wijmans et al., 2025; Hsu et al., [13]. This distinction motivates our question: which parts of a DPO step can be omitted, and how do their resource savings relate to changes in the optimization objective?
Preference-objective structure affects optimization Chen et al., [4], while shared-parameter updates can couple response likelihoods Yuan et al., 2025 and reduce preferred-response probability Razin et al., 2025. Our token-level analysis examines this coupling (Appendix § 8.§ 1), and Proposition 1 separates reward preservation in expectation from the nonlinear loss.
We introduce a framework that samples the DPO computation graph to control training cost (Figure 1). Each training step jointly selects the executed response prefixes, the positions used to estimate rewards, and the branches that carry gradients. These selections precede sequence execution, vocabulary projection, and backpropagation, allowing computation to be omitted throughout the step. This view unifies position, sequence, and branch pruning through their effects on the sampled objective and its gradient. Our analysis characterizes the objective changes induced by reward sampling, while inverse-probability weighting makes the branch gradient conditionally unbiased for that objective.

Figure 1. Stochastic interventions on the DPO computation graph. The two response branches share policy parameters. Rewards average policy–reference log-ratios over scored response positions. Fixed-reference computations use matching prefixes and positions and are omitted. Sampling outcomes and counts are schematic.
Our contributions are:
a unified framework for sampling DPO computation across response execution, token scoring, and backpropagation, with separately configurable sampling decisions.
a characterization of the position and prefix objective changes, tolerance conditions that relate their optimal gaps to the retention rate and the truncation level, and a conditionally unbiased branch estimator with a stated convergence rate.
controlled comparisons showing that full supervision retains most output-memory savings, that branch pruning reduces training time across model families, and that mean accuracy is slightly lower while open-ended score changes vary by benchmark (§ 4.2, § 4.4 and § 4.5).
Related Work
Token-level credit in preference optimization. A growing family of methods changes where DPO assigns credit through confidence-based token selection (Yoon et al., 2025), confidence-dependent weighting of varied tokens [18], trained oracles for token rewards (Yang et al., 2025b), and contrastive token weights (Liu et al., 2025). Other approaches use optimal-transport reweighting (Li et al., 2025a), gradient-attribution priors (Yang et al., 2026), prefix-level ratio matching (Nguyen et al., 2026), implicit-reward credit (Zhao et al., 2026), attention-derived weights [15], minimal-edit emphasis in clinical dialogue [20], or token-level KL control (Zeng et al., 2024). Our framework places supervision selection within the computation of a complete DPO step. Matched selection controls motivate uniform membership (Sec. E.1), and full-retention controls distinguish supervision deletion from implementation savings (Table 1).
| Configuration | Retention | Step (s) | HBM (MB) |
| Full-concat | 1.0 | 17.081 | 23,627 |
| Selected head | 1.0 | 16.827 | 14,722 |
| Selected head | 0.6 | 16.791 | 14,080 |
Table 1. Qwen output-head attribution in a separate matched profile. Retention 1.0 preserves all response supervision. Shading highlights full-supervision selected-head execution. Details: Appendix § 9.7.
Efficient preference training. Cut Cross-Entropy avoids materializing the token-by-vocabulary logit matrix (Wijmans et al., 2025), and Liger-Kernel uses fusion and chunked cross-entropy computation to reduce memory and improve training throughput [13]. FlashAttention relates attention efficiency to memory accesses rather than FLOP counts alone [9], while activation checkpointing trades recomputation for lower activation storage [2]. Related efficiency work covers flow training [10] and diffusion inference (Li et al., 2025b). SePO reports reduced GPU training hours through offline token selection (Yang et al., 2025b). Our framework considers how sampling throughout a DPO step changes both executed computation and the training objective. Controlled profiles separate implementation savings from the effects of reduced supervision and execution (§ 4.2).
Stochastic computation and optimization dynamics. Dropout randomly removes units (Srivastava et al., 2014) and stochastic depth bypasses sampled layers [16], while importance sampling can reduce stochastic-gradient variance using gradient-dependent probabilities [19]. Preference-optimization analyses study gradient entanglement (Yuan et al., 2025), likelihood displacement (Razin et al., 2025), logit-space squeezing (Luo et al., 2026), and gated rejected contributions (Mouiche, 2026). Density-ratio estimation provides a distribution-comparison perspective [3] for preference objectives such as DDRO [12], whose update structure is analyzed alongside margin-based losses [4]. Our analysis separates objective changes from gradient-estimation noise under composed sampling (Proposition 2 and § 3.5). Shared-parameter response changes are analyzed in Appendix § 8.§ 1.
Stochastic Graph Pruning
Formulation
Let contain prompts with chosen and rejected responses . Write for the policy with trainable parameters and for the fixed reference (Rafailov et al., 2023). For side , let count response tokens, excluding prompt and padding. At position , define the target-token log-ratio
Here is the target token and its preceding response prefix. With mean rewards , margin , and scale , DPO minimizes the loss (Rafailov et al., 2023):
This length normalization parallels SimPO (Meng et al., 2024), but retains policy–reference log-ratios.
Figure 1 separates three costs: dense vocabulary projection materializes logits for vocabulary size (Wijmans et al., 2025), sequence execution computes attention and stores or recomputes activations [9, 2], and backpropagation includes both responses (Rafailov et al., 2023).
Write . On side , sequence pruning selects length through cutoff fraction , retaining . Position pruning selects with controlled by retention . Branch pruning selects with probabilities , . All sampling laws are parameter-independent, and rewards average over selected positions. We use for the sigmoid and for stop-gradient, which preserves values and blocks derivatives. Appendix § 6 summarizes the notation.
Stochastic Position Pruning
Position pruning retains a uniform subset of response positions for scoring while preserving the executed response as context. Draw by
Standalone position pruning uses . Define the selected-position reward
with masked margin . The subset is drawn before the language-model head, without computing policy probabilities. Applying the head only at evaluates Eq. (5) exactly, skipping vocabulary projections, their logits, and their backward traffic.
Uniform sampling preserves the mean reward, but the nonlinear loss introduces a gap.
Proposition 1. For a fully executed response, let be a uniform size- subset of and . Let be the margin under independent side masks and the full-response margin. At any fixed policy,
and
where is over the sampled masks and . Here and are the population mean and variance. Single-token sides contribute zero variance.
At , selected-head execution preserves the full-response objective while avoiding projection outside valid response positions (Table 1).
To bound the sampled optimum, assume throughout this subsection and Secs. B.5 and B.6 that , , , and on the analyzed region. The objectives are twice differentiable there and attain their minima.
Corollary 1 (Optimality gap of position pruning). Let minimize the full-response objective and minimize . Then
The variance is evaluated at over masks, then averaged over data. Since , Proposition 1 gives , where
Thus the bound decays as at fixed retention and vanishes at . A sufficient condition for loss tolerance is
A second-order expansion also gives (Appendix § 7.6). If , , along the segment joining interior stationary points of and within the analyzed region, their displacement is rather than . The loss bound requires no curvature assumption. Sufficient curvature conditions appear in Appendix § 7.7.
Stochastic Sequence Pruning
Sequence pruning truncates each response before policy and reference execution. For minimum retained fraction , draw by
Both models repack the prompt with , removing suffix attention, activations, and recomputation. The reward is , and recovers the full-response objective. § 4.3 evaluates .
Prefix inclusion and length normalization favor earlier positions:
Lemma 1 (Implicit temporal weighting). For one response of length , let be the sampled cutoff, with law and prefix reward . Define the temporal weights . Then
The weights satisfy and . Uniform weights occur exactly when almost surely.
Appendix § 7.§ 2 proves this identity and characterizes the cutoff laws. The nonlinear loss adds a Jensen gap:
Lemma 2 (Prefix Jensen gap). Let be the random-prefix margin, its mean, and the expected prefix loss with Jensen gap . Then
Unlike position pruning, sequence pruning can shift the mean margin. The shift has no fixed sign, whereas vanishes for deterministic cutoffs or (Appendix § 7.§ 3). Parameter-independent cutoffs make unbiased for , generally different from the full-response gradient. § 4.4 evaluates the resulting performance.
Assume causal execution with the prompt retained, so prefix token scores and gradients match full execution. For truncation fraction , Eq. (11) gives . Prefix and full mean rewards differ by at most , and their gradients by . The -Lipschitz loss therefore yields
where . Consequently, . Unlike Eq. (8), this bound has no response-length decay. At the tested , the optimality bound equals the full loss range over , making it vacuous. This comparison concerns theoretical bounds, not measured deviations. Appendix § 7.8 also derives gradient and displacement bounds.
Stochastic Branch Pruning
Branch pruning removes one backward graph while preserving the expected gradient conditional on the sampled positions and prefixes. With and , the DPO gradient decomposes as Rafailov et al. (2023)
Independently of positions and prefixes, draw the active backward-branch set and its probability, , with and
Only retains a policy backward graph. The opposite side runs under no_grad, providing the other reward needed for . Disabling branch pruning sets and . Inverse-probability weighting corrects each selected contribution. With , use
The sampled loss preserves the numerical margin and differentiates only the selected reward.
Proposition 2 (Conditional unbiasedness). Fix the sampled response positions and prefixes. Then . With position and sequence pruning disabled, this is the full-response per-pair gradient in Eq. (2).
We default to and sweep in § 4.3. Gradient norms govern importance-sampling variance Katharopoulos and Fleuret [19], as specialized in Appendix § 7.§ 4.
Proposition 3 (Branch estimator variance). Fix positions and prefixes, and set , . The estimator has mean and variance
At , the variance is under the bounds of § 3.2. Averaging estimators independent in preference pairs, positions, prefixes, and branches divides the variance by . Re-drawing only the branch reduces only its variance component.
Branch pruning adds gradient noise without objective bias. For the optimized objective , assume -strong convexity and -smoothness on a closed convex region with minimizer in its interior. Starting from , projected SGD with independent estimators per step and the schedule in Appendix § 7.9 gives . That appendix supplies the constants and a high-probability bound. Gradient unbiasedness does not imply unbiased finite-step parameters.
Composition
Alg. 1 composes the interventions in execution order: truncate the response, select scoring positions, then select the backward branch and apply its probability correction. Each mode is optional. Full disables all three, using full responses, all response scores, and both backward branches. Tables abbreviate the modes as Position, Sequence, and Branch, with “+” denoting composition.
Algorithm 1 Stochastic DPO step
Require: Pair , policy , frozen
Require: Rates , enabled pruning modes
for do
if sequence pruning then
Eq. (11)
if position pruning then
Eq. (3)
if branch pruning then
Eq. (16)
for do
Eq. (5)
Eq. (17)
Update
For a policy or reference model , the scored log-probability vector is
Both models score the same prefixes and positions, with entries in response order. Position pruning applies the head only at ; otherwise, the full head is evaluated before gathering. The argument controls gradient recording through the backbone and head: only policy branches in retain a backward graph, while the reference always runs without gradient. dients. Numerical values are unchanged. The outputs , give by the mean difference in Eq. (5). The step loss is (Eq. (17)), recovering the per-pair loss in Eq. (2)` on the selected prefixes and positions when .
The minimizer of the composed objective satisfies
where . The position-pruning bias bound decays as at fixed retention. The prefix bound scales with without length decay, while branch pruning adds no objective bias and has the mean-squared optimization error above. Appendix B.10 proves the composed loss bound and Eqs. (44) and (46), which allocate a total tolerance across , , and .
Experiments
Experimental Setup
We use Qwen3-4B, Qwen3-8B (Yang et al., 2025a), and Mistral-7B-Instruct-v0.3 (Jiang et al., [17]). The core resource profiles, eight-configuration factorial, and parameter sweeps use Qwen3-4B on HelpSteer3-Preference (Wang et al., 2025). LoRA (Hu et al., [14]) has rank 64, scaling 128, and dropout 0.05. Training uses FlashAttention-2 (Dao, [8]), gradient checkpointing (Chen et al., [2]), AdamW (Loshchilov and Hutter, 2019), DPO . Global batch is 64 with per-device batch 2, accumulation 4, and eight Ascend 910B accelerators with 32 GiB each. Optimizer and corpus details are in Appendix § 9.§ 2; matched token-selection controls are in Table 11 and Table 12. Defaults are , , and . The factorial and sweeps use training and selection seed 42. A second Qwen seed (43) and Mistral seed 42 test the Full–Branch comparison.
| Selection | Retention | ARC | GSM8K | TruthfulQA | BBH | MATH-Hard | MMLU-Pro | MuSR | Mean accuracy (%) |
| Low/Low | 0.1 | 63.48 | 85.82 | 54.57 | 55.54 | 62.39 | 42.26 | 42.86 | 58.13 |
| Random/Random | 0.1 | 62.88 | 86.73 | 53.11 | 55.41 | 63.36 | 42.00 | 42.59 | 58.01 |
| Low/Low | 0.2 | 63.82 | 86.58 | 55.19 | 55.32 | 60.29 | 42.33 | 42.59 | 58.02 |
| Random/Random | 0.2 | 63.05 | 86.35 | 53.62 | 55.06 | 63.14 | 42.02 | 42.46 | 57.96 |
| Low/Low | 0.3 | 63.82 | 87.26 | 55.49 | 55.47 | 58.47 | 42.35 | 42.59 | 57.92 |
| Random/Random | 0.3 | 63.23 | 86.50 | 54.46 | 55.51 | 63.20 | 42.04 | 42.72 | 58.24 |
| Low/Low | 0.4 | 63.99 | 88.02 | 55.70 | 55.43 | 57.67 | 42.32 | 42.86 | 58.00 |
| Random/Random | 0.4 | 63.40 | 86.88 | 54.85 | 55.64 | 61.92 | 42.10 | 42.59 | 58.20 |
| Low/Low | 0.5 | 63.14 | 87.19 | 53.81 | 55.63 | 63.66 | 42.25 | 43.12 | 58.40 |
| Random/Random | 0.5 | 63.05 | 86.50 | 53.38 | 55.63 | 63.92 | 42.22 | 43.12 | 58.26 |
| Low/Low | 0.6 | 63.40 | 87.26 | 53.85 | 55.60 | 63.33 | 42.22 | 43.12 | 58.40 |
| Random/Random | 0.6 | 63.05 | 86.81 | 53.52 | 55.71 | 64.11 | 42.20 | 42.99 | 58.34 |
| Low/Low | 0.7 | 63.31 | 87.26 | 53.88 | 55.53 | 63.39 | 42.25 | 42.99 | 58.37 |
| Random/Random | 0.7 | 63.23 | 86.81 | 53.67 | 55.77 | 64.17 | 42.20 | 42.86 | 58.39 |
| Low/Low | 0.8 | 63.14 | 87.34 | 53.91 | 55.60 | 63.28 | 42.27 | 42.99 | 58.36 |
| Random/Random | 0.8 | 63.05 | 87.49 | 53.76 | 55.78 | 64.01 | 42.24 | 42.59 | 58.42 |
| Low/Low | 0.9 | 63.23 | 87.26 | 53.92 | 55.57 | 63.43 | 42.30 | 42.99 | 57.55* |
| Random/Random | 0.9 | 63.14 | 87.11 | 53.86 | 55.61 | – | 42.26 | 43.12 | 57.52* |
| Qwen3-4B | – | 62.80 | 85.90 | 52.27 | 55.59 | 62.80 | 41.98 | 43.39 | 57.82 |
| Unmasked DPO | – | 62.63 | 87.57 | 53.91 | 55.61 | 63.33 | 42.30 | 43.12 | 58.35 |
Table 11. HelpSteer3-Preference task scores (%). Low and Random are compared within a retention level. Retentions 0.1–0.4 and 0.5–0.9 use different training schedules. Mean accuracy is the seven-task mean. *At 0.9 both means use six tasks, excluding MATH-Hard, which is missing for Random. The last two rows are baselines: the untrained Qwen3-4B starting checkpoint and unmasked DPO, which provides context but does not use a matched training schedule. A dash denotes a missing result.
| Low/Low | Random/Random | Difference | |
| Batch 32 | |||
| 0.1 | 58.13 | 58.01 | +0.12 |
| 0.2 | 58.02 | 57.96 | +0.06 |
| 0.3 | 57.92 | 58.24 | −0.32 |
| 0.4 | 58.00 | 58.20 | −0.20 |
| Batch 64 | |||
| 0.5 | 58.40 | 58.26 | +0.14 |
| 0.6 | 58.40 | 58.34 | +0.06 |
| 0.7 | 58.37 | 58.39 | −0.02 |
| 0.8 | 58.36 | 58.42 | −0.06 |
| 0.9 | 57.55 | 57.52 | +0.03* |
Table 12. Qwen3-4B on HelpSteer3-Preference: mean capability scores (%) for confidence-ranked (Low/Low) versus matched uniform (Random/Random) masks at retention . Comparisons are within rows. *At 0.9 both means use six tasks, excluding MATH-Hard, which is missing for Random. Differences use displayed means.
Metrics. We group benchmarks by evaluation protocol. Accuracy-based benchmarks comprise ARC-Challenge (Clark et al., [5]), GSM8K (Cobbe et al., [6]), TruthfulQA (Lin et al., 2022), BBH (Suzgun et al., 2023), MATH-Hard (Hendrycks et al., [11]), MMLU-Pro (Wang et al., 2024), and MuSR (Sprague et al., 2024). For open-ended generation, MiniMax-M3 (Lai et al., [20]) judges MT-Bench (MT, 0–10) (Zheng et al., 2023), Arena-Hard (AH, tie-adjusted win rate in %) (Li et al., 2024), and WildBench (WB, 1–10) (Lin et al., 2024). Mean Accuracy averages the seven accuracy-based benchmark percentages. Mean Generation Score equally averages 10 MT, AH, and 10 WB on a 100-point scale. Task-level means are retained in Table 9, Table 10 and Table 13.
| Method | Wall | Speed | ARC | GSM8K | TQA | BBH | MATH | MMLU | MuSR | Mean accuracy (%) | MT | AH | WB | Mean generation score |
| Full | 187.8 | 1.000× | 62.54 | 87.41 | 53.88 | 55.64 | 63.59 | 42.28 | 42.99 | 58.33 | 6.649 | 50.12 | 3.139 | _49.33_ |
| Position | 185.9 | 1.010× | 62.46 | 86.43 | 53.51 | 55.58 | 63.26 | 42.18 | 42.99 | 58.06 | 6.829 | 44.85 | 3.200 | 48.38 |
| Sequence | 186.4 | 1.008× | 62.37 | 86.28 | 53.40 | 55.92 | 63.27 | 42.20 | 42.86 | 58.04 | 6.432 | 45.80 | 3.186 | 47.33 |
| Branch | 128.4 | 1.463× | 62.03 | 86.66 | 53.06 | 55.73 | 63.65 | 42.16 | 43.25 | 58.08 | 6.800 | 50.11 | 3.263 | 50.25 |
| Position+Sequence | 185.0 | 1.015× | 62.20 | 85.97 | 53.06 | _55.74_ | _63.63_ | 42.07 | 43.12 | 57.97 | 6.893 | 45.54 | 3.208 | 48.85 |
| Position+Branch | 127.8 | 1.469× | 61.95 | 86.50 | 52.92 | 55.64 | 63.31 | 42.12 | _43.12_ | 57.94 | 6.676 | 45.80 | 3.196 | 48.17 |
| Sequence+Branch | 126.3 | 1.487× | 62.03 | 86.20 | 52.84 | 55.69 | 63.06 | 42.05 | _43.12_ | 57.86 | 6.600 | 45.05 | 3.197 | 47.67 |
| Position+Sequence +Branch | _127.0_ | 1.479× | 62.03 | 85.97 | 52.75 | 55.65 | 62.24 | 42.05 | _43.12_ | 57.69 | 6.693 | 45.86 | _3.225_ | 48.35 |
Table 9. Full factorial task scores underlying Table 4. Metrics and score units follow § 4.1. Bold/underline mark the best/second-best displayed column values.
| Setting | ARC | GSM8K | TQA | BBH | MATH | MMLU | MuSR | Mean accuracy (%) | MT | AH | WB | Mean generation score |
| Position | 62.29 | 86.20 | 53.15 | 55.61 | 62.78 | 42.15 | 43.12 | 57.90 | 6.568 | 45.56 | 3.195 | 47.73 |
| Position | 62.46 | 86.43 | 53.51 | 55.58 | 63.26 | 42.18 | 42.99 | 58.06 | 6.829 | 44.85 | 3.200 | 48.38 |
| Position | 62.54 | 87.34 | 53.83 | 55.64 | 63.54 | 42.26 | 43.12 | 58.32 | 6.707 | 48.00 | 3.081 | 48.63 |
| Sequence | 62.37 | 86.35 | 53.30 | 55.80 | 63.53 | 42.15 | 43.12 | 58.09 | 6.552 | 47.05 | 3.117 | 47.91 |
| Sequence | 62.37 | 86.28 | 53.40 | 55.92 | 63.27 | 42.20 | 42.86 | 58.04 | 6.432 | 45.80 | 3.186 | 47.33 |
| Sequence | 62.46 | 86.28 | 53.44 | 56.03 | 63.16 | 42.16 | 42.72 | 58.04 | 6.874 | 47.92 | 3.193 | 49.53 |
| Sequence fixed 0.75 | 62.29 | 86.73 | 53.38 | 55.95 | 63.23 | 42.13 | 42.86 | 58.08 | 6.562 | 43.33 | 3.214 | 47.03 |
| Branch | 62.37 | 87.34 | 53.03 | 55.44 | 62.70 | 42.16 | 43.39 | 58.06 | 6.669 | 47.82 | 3.189 | 48.80 |
| Branch | 62.03 | 86.66 | 53.06 | 55.73 | 63.65 | 42.16 | 43.25 | 58.08 | 6.800 | 50.11 | 3.263 | 50.25 |
| Branch | 62.03 | 86.58 | 52.97 | 55.75 | 62.92 | 42.15 | 43.39 | 57.97 | 6.753 | 46.64 | 3.205 | 48.74 |
Table 10. Per-task single-axis sweeps, one training seed. Shading marks defaults; rows specify settings. Metric units follow § 4.1. Evaluator standard errors (0.45–3.02 pp) do not test aggregate differences or training variability.
| Model / seed | Config. | ARC | GSM8K | TQA | BBH | MATH | MMLU | MuSR | Mean accuracy (%) | MT | AH | WB | Mean generation score |
| Qwen3-4B / 42 | Full | 62.54 | 87.41 | 53.88 | 55.64 | 63.59 | 42.28 | 42.99 | 58.33 | 6.649 | 50.12 | 3.139 | 49.33 |
| Branch | 62.03 | 86.66 | 53.06 | 55.73 | 63.65 | 42.16 | 43.25 | 58.08 | 6.800 | 50.11 | 3.263 | 50.25 | |
| Qwen3-4B / 43 | Full | 62.54 | 87.04 | 53.88 | 55.55 | 63.45 | 42.34 | 42.99 | 58.26 | 6.623 | 44.36 | 3.233 | 47.64 |
| Branch | 62.03 | 86.20 | 53.05 | 55.55 | 62.57 | 42.14 | 43.12 | 57.81 | 6.750 | 45.03 | 3.295 | 48.49 | |
| Mistral-7B / 42 | Full | 67.06 | 52.46 | 64.82 | 46.37 | 12.50 | 30.47 | 40.34 | 44.86 | 5.130 | 24.60 | 2.361 | 33.17 |
| Branch | 65.27 | 51.18 | 62.87 | 46.51 | 12.96 | 30.32 | 42.72 | 44.55 | 5.373 | 24.00 | 2.405 | 33.93 |
Table 13. Complete Full–Branch scores in the units of § 4.1. Qwen seed-42 values repeat the factorial evaluations in Table 4.
Resource Effects and Attribution
Baselines and measurement. Full denotes the unpruned DPO baseline using the original padded stack. Full-concat batches chosen and rejected responses together to reduce padding; both retain all response supervision and both backward graphs. Position, Branch, and Position+Branch profiles use Full-concat; Sequence and end-to-end trainings use Full. The concatenated profiler measures Full-concat at 17.343 s and 23,627 MB, vs. Full at 18.204 s and 18,571 MB: 1.049× faster with 27% more memory. The separate prefix profiler measures Full at 18.826 s. Timings are compared within a profiler. The concatenated profile uses 16 paired measured rounds. Peak high-bandwidth memory (HBM) is reset per step and maximized over 8 ranks.
Output head versus supervision. Position combines selected-head execution with random position pruning. In the separate attribution profile (Table 1), retaining all supervision already saves 8,905 MB; sampling adds only 642 MB. Thus selected-head execution accounts for 93.3% of the saving, vs. 6.7% from supervision deletion. Full-retention rewards match Full-concat exactly, and selected-head and dense-reduced rewards match under identical masks (Appendix § 9.7). The implementation supplies most memory savings, while deletion introduces the loss gap of Proposition 1.
Backward computation. Against Full-concat, Branch reduces step time by 29.9% (1.426× speedup) and peak HBM by 26.7%. Position+Branch reaches 1.443× speedup and 48.6% lower HBM (Figure 2). Its 11,471 MB saving is below the 15,855 MB sum of the separate savings; the cause of this sub-additivity remains unresolved.

Figure 2. Resource ratios at the default settings. Dashed lines mark each baseline. Panel (c) counts executed input tokens, including prompt and padding.
Sequence execution. Sequence pruning executes 0.85–0.94 of Full’s input tokens and saves 8–11% peak HBM (Table 2). Across random and fixed cutoffs, steps take 18.430–18.482 s, at most 2.1% below Full. Differences between cutoffs are smaller than the 0.18–0.44 s spread across repeated measurements of one configuration. Token reduction therefore has a much smaller timing effect than branch pruning at this geometry; its physical cause remains unresolved.
| Sequence setting | Tokens | HBM (MB) | HBM | Step (s) |
| Full | 1.000× | 18,571 | — | 18.826 |
| 0.854× | 16,718 | −10.0% | 18.480 | |
| 0.893× | 16,827 | −9.4% | 18.430 | |
| 0.943× | 17,072 | −8.1% | 18.482 | |
| fixed 0.75 | 0.894× | 16,561 | −10.8% | 18.471 |
Table 2. Sequence profile against Full. Tokens counts executed input, including prompt and padding, relative to Full. Shading marks the default .
Parameter Sensitivity
Table 3 varies one axis at a time using the factorial recipe. Realized pruning fractions are reported in Appendix § 9.§ 4. Sequence input counts include prompt and padding, so fractions are not comparable across axes or directly to .
| Axis | Setting | Resource | Mean accuracy (%) | Mean generation score |
| Position | 11,211 MB | 57.90 | 47.73 | |
| Position | 11,320 MB | 58.06 | 48.38 | |
| Position | 11,580 MB | 58.32 | 48.63 | |
| Sequence | 16,718 MB | 58.09 | 47.91 | |
| Sequence | 16,827 MB | 58.04 | 47.33 | |
| Sequence | 17,072 MB | 58.04 | 49.53 | |
| Sequence | fixed 0.75 | 16,561 MB | 58.08 | 47.03 |
| Branch | 127.7 min | 58.06 | 48.80 | |
| Branch | 128.4 min | 58.08 | 50.25 | |
| Branch | 128.4 min | 57.97 | 48.74 |
Table 3. Ablation on Qwen3-4B/HelpSteer3-Preference. Shading marks defaults. Means follow § 4.1. Full task scores: Table 10.
For Position, increasing from 0.3 to 0.9 raises mean accuracy from 57.90 to 58.32, while peak HBM changes little (11,211–11,580 MB) and AH is non-monotone (Table 10). This weak memory dependence agrees with the implementation-dominated attribution above. Sequence cutoffs track input work and HBM but barely affect step time. Fixed and execute similar token fractions yet differ in temporal weights and randomness, so their score difference cannot isolate the Jensen gap. Branch probabilities yield similar training times (127.7–128.4 min) and varying open-ended point estimates. We retain . HBM was not measured across . Position step times are 3.29–3.41 s in its separate paired, interleaved retention profiler; resource comparisons remain within each axis.
The Eight-Configuration Factorial
In Table 4, all four Branch configurations finish in 126–128 min vs. 185–188 min without Branch, preserving a 31–32% time saving across matched contrasts. Position and Sequence retain that benefit when composed with Branch. All 12 single-axis contrasts lower mean accuracy (unrounded contrasts in Appendix § 9.§ 4); Figure 3 shows the resulting time–accuracy tradeoff.
| Method | Wall (min) | Mean accuracy (%) | Mean generation score |
| Full | 187.8 | 58.33 | <u>49.33</u> |
| Position | 185.9 | 58.06 | 48.38 |
| Sequence | 186.4 | 58.04 | 47.33 |
| Branch | 128.4 | <u>58.08</u> | 50.25 |
| Position+Sequence | 185.0 | 57.97 | 48.85 |
| Position+Branch | 127.8 | 57.94 | 48.17 |
| Sequence+Branch | 126.3 | 57.86 | 47.67 |
| Position+Sequence +Branch | <u>127.0</u> | 57.69 | 48.35 |
Table 4. Qwen3-4B factorial, one training and one selection seed. Bold/underline mark best/second-best values, including ties. Full scores: Table 9.

Figure 3. Training time versus seven-task mean accuracy for the eight factorial runs. The gray staircase is the observed frontier of single-seed point estimates.
Open-ended scores move differently. Branch raises MT and WB point estimates with AH close to Full. Configurations containing Position or Sequence fall below Full on AH, while their MT changes depend on the base configuration. Generation means are descriptive single-seed summaries and do not establish score superiority.
Branch Pruning Across Seeds and Models
The matched Full–Branch trainings in Table 5 save 29.9–32.7% wall-clock across two Qwen seeds and Mistral, with mean accuracy lower by 0.25–0.45 pp. In the Mistral profile in Table 6, Branch gives 1.507× speedup and saves 1,347 MB (6.4%) against Full. The time benefit transfers across families.
| Config. | Wall (min) | Speedup | Mean acc. (%) | Mean gen. score |
| Qwen3-4B, seed 42 | ||||
| Full | 187.8 | 1.000× | 58.33 | 49.33 |
| Branch | 128.4 | 1.463× | 58.08 | 50.25 |
| Qwen3-4B, seed 43 | ||||
| Full | 187.0 | 1.000× | 58.26 | 47.64 |
| Branch | 131.0 | 1.428× | 57.81 | 48.49 |
| Mistral-7B, seed 42 | ||||
| Full | 211.0 | 1.000× | 44.86 | 33.17 |
| Branch | 142.0 | 1.486× | 44.55 | 33.93 |
Table 5. Full–Branch validation. Speedup uses each pair’s Full training time. Bold marks the better value within each pair. Score means follow § 4.1; task scores are in Table 13.
| Configuration | Step (s) | HBM (MB) |
| Qwen3-4B | ||
| Full | 18.204 | 18,571 |
| Branch | 12.161 | 17,319 |
| Mistral-7B | ||
| Full | 22.438 | 21,185 |
| Branch | 14.888 | 19,838 |
Table 6. Paired Full–Branch step-time and peak-memory profiles. Bold marks lower values within each model.
MT and WB checkpoint means rise in all three comparisons, while Mistral AH falls. These checkpoint scores are descriptive and do not establish superiority or characterize training-seed variability. Full task scores and scoring coverage are in Appendix D.7. Cross-family validation covers Branch only; Position, Sequence, and their compositions are evaluated on Qwen.
Branch-gradient consistency. We check the conditional expectation in Proposition 2 by enumerating both backward branches. On a small Mistral model in Float64, the probability-weighted average of both branch gradients matches Full to relative L2 error at most . On Mistral-7B in BFloat16, the gradient cosine is 0.9997 and the relative L2 error is 0.0236, against 0.0071 for repeated computation of the same configuration, which sets the numerical noise floor for this check. These checks disable LoRA dropout and retain gradient checkpointing using dropout 0.05.
Conclusion
We separate output scoring, sequence execution, and backward computation to locate where stochastic DPO computation saves resources and how it changes optimization. Most output-memory savings come from the implementation rather than from supervision deletion, the branch-pruning time benefit reproduces across Qwen seeds and Mistral, and both accompany lower mean accuracy with mixed open-ended results, so configuration choice should follow the resource constraint and the acceptable objective change.
Limitations
Evaluation covers parameter-efficient text preference training with an online reference on one eight-accelerator setup. Savings may vary with hardware, batch geometry, and reference execution.
Notation
We group the main notation below. Symbols specific to individual proofs are defined where introduced. In single-response results, the side index is suppressed, so , , , denote the corresponding side quantities.
Preference pairs and loss. is the preference dataset of prompts , chosen responses , and rejected responses . The policy has trainable parameters , and is the fixed reference. For side , is the response length, the target token at position , and its response prefix. The token log-ratio gives the mean reward and margin . The scale defines , with per-pair loss (§ 3.1).
Three pruning axes. Sequence pruning uses cut-off fraction to retain prefix of length , with minimum fraction . Position pruning selects with count controlled by retention . Branch pruning samples backward branch with probability (§ 3.2 to § 3.4).
Sampling and execution. Prefix, Select, and Branch denote the prefix, position, and branch sampling laws. The active backward branches form , and supplies the probability correction. The operator returns scored log-probabilities, with Boolean flag controlling gradient recording. Its policy and reference outputs are and , and is the step loss. We write for sigmoid, for stop-gradient, and for vocabulary size (§ 3.1, § 3.4 and § 3.5).
Analysis. and refer to the indicated sampling. is a uniform size- position subset, a token log-probability gradient, and and the sampled and full margins (Proposition 1). The objectives , , , correspond to full responses, position pruning, sequence pruning, and their composition, with minimizers , , , . The analysis uses token-score and gradient bounds , , variance bound , and length bounds , (§ 3.2 and § 3.5).
Proofs
This appendix collects the proofs of every stated result: Proposition 1 (Sec. B.1), Lemma 1 (Sec. B.2), Lemma 2 (Sec. B.3), Proposition 2 (Sec. B.4).
Proof of Proposition 1
Proof of Proposition 1. Writing for the indicator of event , Eq. (5) follows from and sampling without replacement. Jensen’s inequality gives the lower bound in Eq. (7). Since , a second-order upper bound around gives the upper bound. The variance is the finite-population variance of a without-replacement sample, summed over independent sides.
The finite-population identities behind the proposition are as follows. Let indicate membership in a uniform size- subset of positions. Then , and for , . These identities establish Eq. (6) and the variance in Proposition 1. For vector gradients and , let be their population mean and their population covariance. Cov denotes covariance. Then
For , the covariance is zero. These identities concern the side-reward gradient. The sampled loss gradient is . Its mask-dependent multiplier means that reward-gradient unbiasedness alone does not imply full-loss-gradient unbiasedness. Equation (6) quantifies the expected loss difference.
Remark (target-logit diagnostics). Let be the current-policy target-token probability at position , and a selected set. The target-logit diagnostic (subscript denotes the target logit) is on a fixed response. For the full position set , linearity gives
Their ratio is , not . If a diagnostic instead reports the retained numerator fraction , its normalized reward-derivative ratio is for that response. With varying response lengths and rounded counts, conversion must occur per response before aggregation. Neither quantity measures conditional KL or downstream quality.
Remark (alternative denominator). Keeping the denominator would scale the selected mean by the realized fraction . At a common realized fraction on both sides, this equals selected-mean normalization at temperature . We use the mean throughout.
Proof of Lemma 1
Proof of Lemma 1. Exchange the order of summation:
For , , and . Also, . Conversely, for a nonnegative, normalized, non-increasing vector , set and . Then and . Substitution recovers . Uniform weights give for and , so almost surely, recovering the fixed-cutoff case .
Proof of Lemma 2
Proof of Lemma 2. satisfies and . For , and , so is strictly convex and strictly decreasing. For , with . Assume unless a degenerate case is named. Jensen’s inequality gives , hence . For the upper bound, expand to second order around : for each scalar margin , for some between and . Taking the expectation removes the linear term, and gives
Subtracting the full-response loss from Eq. (13) gives
Because is strictly decreasing, is positive precisely when the temporally reweighted mean margin is below the full-response margin, which is a data- and distribution-dependent event and therefore carries no fixed sign. Equation (11) gives , with the side-specific weights . Two degeneracies: a deterministic cutoff makes constant, so and . At both terms of Eq. (25) vanish.
Finally, the cutoff variables , are drawn independently of and have finite support, so the expectation in is a finite sum and differentiation passes through it exactly:
Thus is an unbiased stochastic gradient of and need not coincide in expectation with the full-response gradient. The temporal shift and Jensen gap in Eq. (25) can cancel at a fixed policy. Equality of loss values at one point does not establish equality of gradients.
Proof of Proposition 2
Proof of Proposition 2. Write . Because the stop-gradient blocks the flow into , and because is evaluated at the current parameters as a chain-rule coefficient (it is differentiated no further),
and symmetrically . With the importance factors, . All quantities are those of the sampled response positions and prefixes: with sequence pruning active, is the prefix mean over . With position pruning active, it is the masked mean over , and the gradients flow only through the selected positions. When position and sequence pruning are disabled, the sampled computation is the full-response objective and the claim recovers the length-normalized loss in Eq. (2).
Remark (branch-estimator variance). With denoting the Euclidean norm, for fixed sampled rewards the single-branch estimator’s second moment is . Its variance-optimal probability therefore balances the branch gradient norms, the usual importance-sampling criterion [19]. We use as a symmetric default. The sweep (Table 3) has similar wall-clock times and differing quality point estimates.
Proof of Corollary 1 and the retention rule
Proof of Corollary 1. Since is convex, Jensen’s inequality gives at every , so pointwise. Hence
where the first step uses , the second the optimality of for , and the third Eq. (7) evaluated at . Subtracting gives Eq. (8).
For Eq. (9), implies and , while and give
The display is per response, so averaging over the dataset gives . Requiring and solving for yields Eq. (10).
Proof of Eq. (31) and the stationary displacement
Proof. Fix one preference pair and abbreviate , , , and . Unbiasedness gives and , so and . Since and ,
The linear term in the first bracket has zero mean, so only survives, and its norm is at most . Because with satisfies , we have . For the second term, centering with and applying Cauchy–Schwarz with bounds it by . Therefore
Averaging over pairs replaces the single-pair quantities by their population counterparts. Substituting , , and bounds the two terms by and , so that
Now let be an interior stationary point of and an interior stationary point of , both in the analyzed region, and suppose with along the segment joining them. Then . Integrating the Hessian along that segment gives ; Cauchy–Schwarz together with the previous display yields . □
Curvature constants from the margin geometry
Suppose on the analyzed convex region, , and . With , the chain rule gives
because on the region and . Hence is a sufficient stability condition and one may take . In a linear-margin model , so as soon as the comparison matrix has positive smallest eigenvalue .
Proof of (14)
Proof. Let . Since and ,
For one realization, split the reward difference into its retained and removed parts:
so . The same argument with gives . The margin difference is the difference of the two sides, so and .
The loss is -Lipschitz, so ; taking expectations gives the loss bound of Eq. (14). For the gradient, decompose
Each side’s mean-reward gradient is an average of token gradients of norm at most , so at every truncation, with no truncation-dependent factor. The first term is therefore at most , using , and the second at most . Taking expectations and using from above gives an expected gradient bias of at most , which is the constant used in Sec. B.10.
For the optimality statement, with , so . The displacement bound follows from the segment argument of Sec. B.6 applied to the gradient bound above, and inherits the same requirements: an interior stationary point of each objective lying in the analyzed region, and with along the joining segment.
The loss bound is a scaling statement, not a guarantee at the tested setting. Since we have , so the total range of the loss on the relevant interval is . At the optimality-gap bound reaches , exactly that range, so it is vacuous at the stated cutoff; the loss bound itself is , half that range. Both become restrictive only for cutoffs closer to one. □
Proof of Proposition 3 and (42)
Proof. With as defined in Proposition 3, follows from Proposition 2, and
so is Eq. (18). At it equals . Because and , we have , hence , and at the symmetric default also . Averaging estimators divides the variance by when the draws are independent in their preference pairs, response positions, prefixes and branches; if only the branch is re-drawn, only the branch component is reduced.
For the rate, take the symmetric default so that each step’s noise has second moment at most . Let minimize and . Projection is non-expansive and , so
Let be the average Hessian along the segment from to . Strong convexity gives and smoothness gives , so . Since ,
Substituting this and using together with , which ensures,
Insert , write , and suppose . Then
where the middle step uses and the last uses . Since , induction gives
for and . Markov’s inequality applied to gives .
Proof of the composed bias and error budget
Proof. Write . Write . Conditioned on the executed lengths , the first difference is the position-pruning bias of Eq. (32) evaluated at those lengths. A fixed prefix can have a larger token-score variance than the whole response, so this difference must be averaged over the cutoff law rather than bounded prefix by prefix. Two facts supply that average. First, the within-prefix sum of squares cannot exceed the whole-response sum of squares: splitting the total sum of squares into the prefix, the suffix and the part between their means gives
so and hence , with the suffix terms read as zero when . Second, for with , prefixes of length one carry zero variance and the remaining lengths satisfy with . Combining the two bounds the prefix-averaged position-pruning bias by , the factor two accounting for the two sides. The second difference is the prefix bias of Eq. (14), contributing with . Adding the two gives
If the composed objective has interior minimizer and has curvature at least on the relevant segment, the segment argument of Sec. B.6 gives
The triangle inequality , combined with Eq. (42) applied to the composed objective, yields
where bounds the curvature of on the relevant segment and are the constants of Eq. (42) evaluated for the composed objective. For the composed optimal loss, by Jensen’s inequality in the position masks and . Chaining these as in Sec. B.5 gives
□
Shared-Parameter Analysis
This appendix expands the shared-parameter coupling discussed in the introduction.
Shared-Parameter Updates and Signed Token Movement
Let index token positions across a pair, be the current-policy target-token probability, and its log-probability gradient. Set for a selected chosen token, for a selected rejected token, and otherwise. Within a region of fixed mask membership,
For a small gradient-descent step of size on the pair loss, the parameter change is . Writing for the resulting change, to first order
The pair margin increases to first order, yet an individual chosen probability can decrease if . Token confidence alone does not determine these inner products (Yuan et al., 2025; Razin et al., 2025). Minibatching and AdamW further change the actual update. The single-pair gradient calculation identifies the missing interaction rather than modeling that optimizer exactly.
Experimental Settings and Results
This appendix documents the experimental settings and additional results: the UltraFeedback motivation experiments (Sec. D.1), the HelpSteer3 corpus and recipe (Sec. D.2), the retention-sweep geometry (Sec. D.3), the factorial and parameter sweeps (Sec. D.4), the full per-task tables (Sec. D.5), the detailed HelpSteer3 tables (Sec. D.6), and the supplemental attribution and Full–Branch validation (Sec. D.7).
The UltraFeedback Experiments
The UltraFeedback collection uses sequence length 512, prompt length 256, one training epoch, AdamW, cosine decay, BFloat16 computation, 4-bit loading, gradient checkpointing, and LoRA on attention and MLP projections. The reference is the frozen policy initialization. Qwen thinking mode is disabled for evaluation. Experiments run on Ubuntu 22.04 with two NVIDIA RTX 5090 GPUs (32 GiB each), Python 3.12, PyTorch 2.8.0, and CUDA 12.8. Masks are selected independently on the two sides each step, with the chosen side ranked by current-policy confidence (Low) or uniformly (Random), and gradients bypass the discrete selection.
All three models use LoRA dropout 0.05. The principal comparison uses retention 0.8 and training seed 42 for each rule. Pythia-2.8B uses learning rate , DPO , LoRA rank 16 and scaling alpha 32, per-device batch size 2, 16 gradient accumulation steps, and warmup fraction 0.10. Qwen3-4B uses learning rate , , LoRA rank 64 and scaling alpha 128, per-device batch size 2, 16 gradient accumulation steps, and warmup fraction 0.08. Qwen3-8B uses learning rate , , LoRA rank 32 and scaling alpha 64, per-device batch size 1, 32 gradient accumulation steps, and warmup fraction 0.10.
The tasks include ARC Challenge (Clark et al., [5]), BBH (Suzgun et al., 2023), MMLU-Pro (Wang et al., 2024), MuSR (Sprague et al., 2024), TruthfulQA MCI (Lin et al., 2022), IFEval prompt-level strict accuracy (Zhou et al., 2023), GSM8K (Cobbe et al., [6]), and MATH-Hard drawn from the MATH dataset (Hendrycks et al., [11]). ARC uses 25-shot normalized accuracy, and GSM8K uses 5-shot exact-answer evaluation. The per-task tables (Table 7 and Table 8) preserve evaluator-reported standard errors, which do not measure training-seed variability. Mean accuracy is a point summary. Pythia’s mean accuracy excludes GSM8K and MATH-Hard because all its variants score zero on both. The summary averages cited in Sec. E.1 are: Low−All +1.95/ + 0.51/ + 0.32, Random−All +1.58/ + 0.00/ + 0.06, and Low−Random +0.37/ + 0.51/ + 0.26 points for Pythia-2.8B, Qwen3-4B, and Qwen3-8B, respectively. The High/High row and the cross-side rules (Low/High, High/Low) are shown for completeness only. They are not part of the matched Low–Random comparison and are not interpreted in the main text. The UltraFeedback and HelpSteer3 collections differ in recipe and evaluation protocol, so absolute scores are not comparable across them.
| Benchmark | All/All | Random/Random | High/High | Low/Low |
| Qwen3-4B | ||||
| ARC | ||||
| BBH | ||||
| MMLU-Pro | ||||
| MuSR | ||||
| TruthfulQA | ||||
| IFEval | ||||
| GSM8K | ||||
| MATH-Hard | ||||
| Mean accuracy (%) | 49.74 | 49.74 | 48.75 | 50.25 |
| Qwen3-8B | ||||
| ARC | ||||
| BBH | ||||
| MMLU-Pro | ||||
| MuSR | ||||
| TruthfulQA | ||||
| IFEval | ||||
| GSM8K | ||||
| MATH-Hard | ||||
| Mean accuracy (%) | 50.87 | 50.93 | 50.56 | 51.19 |
Table 7. UltraFeedback Qwen3 task scores (%) with evaluator-reported standard errors. Mean accuracy is the eight-benchmark point mean. Non-All rules use retention 0.8. These errors do not measure training variability.
| Method | ARC | BBH | MMLU-Pro | MuSR | IFEval | TruthfulQA | Mean accuracy (%) |
| All/All | 22.38 | ||||||
| Random/Random | 23.96 | ||||||
| Low/Low | 24.33 | ||||||
| Low/High | 23.67 | ||||||
| High/Low | 22.93 | ||||||
| High/High | 22.73 |
Table 8. UltraFeedback Pythia-2.8B task scores (%) at retention 0.8. Per-task errors are evaluator-reported standard errors. Mean accuracy is the six-task point mean; GSM8K and MATH-Hard are excluded because all variants score zero on both.
The HelpSteer3 Corpus and Recipe
Preference conversion and recipe. The preference conversion retains 36,264 of 38,459 training pairs and 1,917 of 2,017 validation pairs, removing ties and empty responses. The main experiments use Qwen3-4B with DPO , LoRA rank 64 and alpha 128, dropout 0.05 on attention and MLP projections, BFloat16 computation, FlashAttention2, gradient checkpointing, AdamW at learning rate , cosine decay, warmup fraction 0.05, and maximum gradient norm 0.5. Sequence and prompt limits are 2,048 and 1,024. Per-device batch is 2. The factorial and parameter sweeps use training and selection seed 42. The reference is computed online. The supplemental Full–Branch comparisons retain this recipe at Qwen3-4B seed 43 and Mistral-7B seed 42 (Sec. D.7).
Retention-Sweep Geometry
The sweep in Table 12 compares Low/Low and Random/Random at retentions 0.1–0.9, with masks recomputed every step. Gradient accumulation is 16 for retentions 0.1–0.4 and 4 for 0.5–0.9, giving effective batches of 32 (1,133 updates) and 64 (566 updates) for one epoch. Each Low–Random pair within a block shares its geometry and data order. Comparisons are therefore interpreted within each retention level, and the two blocks do not form one controlled dose-response curve. Table 11 gives the full per-task scores.
The Factorial and Parameter Sweeps
Factorial. The factorial of § 4.1 uses the same corpus and recipe with a fixed batch geometry: per-device batch 2, gradient accumulation 4, eight workers, global batch 64 pairs, 566 optimizer steps for one epoch. Position pruning uses (uniform response-position sub-sets, selected-token mean reward). Sequence pruning uses (prefix truncation with repacking and a matching reference cutoff). Branch pruning uses (one backward branch per pair, opposite branch forwarded without gradient, importance correction and stop-gradient surrogate). Composition follows Alg. 1: truncation first, then response-position pruning inside the retained prefix, then branch pruning. Policy and reference see identical truncations and masks. All eight configurations in Table 4 were trained end-to-end under this recipe and evaluated on all ten benchmarks.
Realized sparsity matches the nominal targets. With all three modes enabled, the selected fraction is 0.6013, the mean is 0.7545, and the response retention is 0.7662.
Parameter sweeps. The within-axis sweeps of Table 3 are ten trainings that share the factorial’s recipe and differ from it only in the ablated knob. The sweep midpoints (=0.6, , =0.5) coincide with the factorial’s Position, Sequence, and Branch rows. Table 2 gives the sequence-pruning resource profile in full. Realized sparsity matches nominal for position pruning (selected fraction 0.302/0.601/0.902) and branch pruning (global chosen fractions 0.298/0.498/0.699 for = 0.3/0.5/0.7). For sequence pruning, the sampled cutoff matches its distribution (mean 0.632/0.755/0.877 against theory 0.625/0.750/0.875, and = 0.750 exactly for the fixed-cutoff configuration), with corresponding response-token retention 0.65/0.77/0.88. The Tokens column in Table 2 (0.854/0.893/0.943/0.894) is a third quantity: the executed-sequence fraction, the ratio of executed sequence tokens, prompt and padding included, to the stock baseline. It lies above the response-token retention and must not be compared with the nominal . Peak HBM was not measured across , so branch pruning is compared on training wall-clock only. The per-task scores of all ten runs are in Table 10.
Mean generation score in every table uses the reported task means and the scaling in § 4.1.
Descriptive factorial contrasts. Raw differences of aggregate columns across the factorial are descriptive contrasts on single-seed runs. Contrasts use unrounded aggregates and can differ from differences of the displayed columns by 0.01. Adding position pruning changes mean accuracy by , , , and pp over Full, Sequence, Branch, and Sequence+Branch, respectively. Adding sequence pruning changes it by , , , and pp over Full, Position, Branch, and Position+Branch. Adding branch pruning changes it by , , , and pp over Full, Position, Sequence, and Position+Sequence.
Contrasts in mean generation score use the scaling in § 4.1 and have mixed signs. Position pruning gives , , , and in the four pairings above. Sequence pruning gives , , , and . Branch pruning gives , , , and . All twelve mean accuracy contrasts are negative. The branch-pruning effect on training wall-clock is consistent in sign: , , , and min in the four pairings.
Full Task Tables
Table 11 reports per-task scores for Low/Low and Random/Random at each retention level on HelpSteer3-Preference.
Detailed HelpSteer3 Tables
The following tables retain the count-matched motivation results and the per-axis parameter settings summarized in the main text; the completed factorial is in Table 4. All factorial and sweep configurations use seed 42.
Supplemental Attribution and Full–Branch Validation
The attribution and Full–Branch validation add four complete trainings and two resource profiles on the same eight-accelerator hardware. Results are in Table 1, Table 5 and Table 6; this section gives reproduction and scoring details.
Output implementation control. One Qwen profiler compares Full-concat, selected-head execution at retention 1.0, and selected-head execution at 0.6. The configurations share weights, inputs, reference computation, precision, and the training geometry (per-device batch 2, gradient accumulation 4, eight workers). Four warm-up rounds precede 16 measured rounds. Configuration order rotates within rounds, memory counters reset before each measurement, and peak HBM is the maximum over ranks. Full-retention selected-head rewards match Full-concat exactly, as do dense-reduced and selected-head rewards under identical masks. Numerical checks also compare LoRA gradients with a row-order control. Mean step times and peak HBM are reported in Table 1. Memory differences are computed within this profile: 8,905 MB for full-supervision selected-head execution and a further 642 MB for random deletion.
Matched training pairs. Qwen Full and Branch at seed 43 use the same initialization, dataset version, data order, training budget, optimizer, schedule, precision, attention backend, checkpointing, and online reference. Mistral-7B-Instruct-v0.3 uses the same recipe and 566-step budget at seed 42. Both models fit the geometry without a batch-size change. Branch pruning uses , with position and sequence pruning disabled. The global chosen-branch fractions are 0.5088 for Qwen seed 43 and 0.4956 for Mistral, averaged over all optimizer steps.
The Mistral setup is verified on chat template, prompt masking, EOS padding, the online reference, and the selected/no-gradient branches. The gradient checks in § 4.5 disable LoRA dropout while retaining checkpointing; the trainings use dropout 0.05.
Per-task results. Table 13 retains every benchmark score for the repeated Qwen pair and the Mistral pair. Table 13 retains the native open-ended scores; Table 5 reports category means. The conventional Branch-minus-Full differences are −0.25 and −0.45 pp for the two Qwen seeds (a descriptive mean of −0.35 pp), and −0.31 pp for Mistral.
Open-ended scoring. All supplemental generations are judged by MiniMax-M3. The evaluator reports valid-item means separately for each checkpoint. The supplemental WildBench suite has 260 prompts, four more than the main evaluation’s 256. The Qwen seed-43 Full Arena-Hard generation has 499 judged entries and 443 valid scores. Table 13 reports per-checkpoint scores. These summaries do not characterize training-seed variability.
Additional Token-Selection Analysis
This section reports the matched token-selection comparisons referenced in the main text.
Supervision Membership Is a Limited Lever
We compare selecting positions with the lowest current-policy target-token probabilities (Low) against uniform random selection (Random). Low/Low and Random/Random use the same selection rule on both chosen and rejected responses. At equal retained ratios, Low/Low exceeds Random/Random by 0.37, 0.51, and 0.26 mean-accuracy points on UltraFeedback ([7]) for Pythia-2.8B ([1]), Qwen3-4B, and Qwen3-8B. On HelpSteer3-Preference, the difference changes sign across retention levels and stays within 0.32 points (Table 12). Task differences are larger: at low retention, Low trails Random on MATH-Hard while leading TruthfulQA (Table 11). These comparisons motivate uniform position pruning before vocabulary projection. We compare selection rules at a fixed number of scored positions. The factorial experiment separately assesses the model-quality cost of reduced supervision relative to the Full baseline.
LLM Usage Disclosure
In answer to the submission questions on the use of large language models, a large language model was used to aid and polish the writing of this paper, for retrieval and discovery such as finding related work, and to draft and revise sections of the manuscript.
References
- [1]Stella Biderman, Hailey Schoelkopf, Quentin Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Afkhah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar van der Wal. 2023. Pythia: A suite for analyzing large language models across training and scaling. Preprint, arXiv:2304.01373.arxiv.org/abs/2304.01373
- [2]Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. 2016. Training deep nets with sublinear memory cost. Preprint, arXiv:1604.06174.arxiv.org/abs/1604.06174
- [3]Wei Chen, Shigui Li, Jiacheng Li, Junmei Yang, John Paisley, and Delu Zeng. 2025. Dequantified diffusion-schrödinger bridge for density ratio estimation. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 8427–8452. PMLR.arxiv.org/abs/2505.05034
- [4]Wei Chen, Yubing Wu, Junmei Yang, Delu Zeng, Qibin Zhao, John Paisley, Min Chen, and Zhou Wang. 2026. Towards disentangled preference optimization dynamics: Suppress the loser, preserve the winner. In International Conference on Machine Learning. ArXiv:2604.18239.arxiv.org/abs/2604.18239
- [5]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.arxiv.org/abs/1803.05457
- [6]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.arxiv.org/abs/2110.14168
- [7]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: Bootstrapping language models with scaled ai feedback. Preprint, arXiv:2310.01377.arxiv.org/abs/2310.01377
- [8]Tri Dao. 2023. FlashAttention-2: Faster attention with better parallelism and work partitioning. Preprint, arXiv:2307.08691.arxiv.org/abs/2307.08691
- [9]Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022. FlashAttention: Fast and memory-efficient exact attention with IO-awareness. In Advances in Neural Information Processing Systems, volume 35.arxiv.org/abs/2205.14135
- [10]Shian Du, Yihong Luo, Wei Chen, Jian Xu, and Delu Zeng. 2022. TO-FLOW: Efficient continuous normalizing flows with temporal optimization adjoint with moving speed. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12570–12580.arxiv.org/abs/2203.10335
- [11]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. Preprint, arXiv:2103.03874.
- [12]Rei Higuchi and Taiji Suzuki. 2025. Direct density ratio optimization: A statistically consistent approach to aligning large language models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 23219–23234. PMLR.arxiv.org/abs/2505.07558
- [13]Pin-Lun Hsu, Yun Dai, Vignesh Kothapalli, Qingquan Song, Shao Tang, Siyu Zhu, Steven Shimizu, Shivam Sahni, Haowen Ning, and Yanning Chen. 2025. Liger kernel: Efficient triton kernels for llm training. Preprint, arXiv:2410.10989.arxiv.org/abs/2410.10989
- [14]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. LoRA: Low-rank adaptation of large language models. Preprint, arXiv:2106.09685.arxiv.org/abs/2106.09685
- [15]Chengyu Huang, Zhuohang Li, Sheng-Yen Chou, and Claire Cardie. 2026. Token-weighted direct preference optimization with attention. Preprint, arXiv:2605.21883.arxiv.org/abs/2605.21883
- [16]Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q. Weinberger. 2016. Deep networks with stochastic depth. In Computer Vision – ECCV 2016, volume 9908 of Lecture Notes in Computer Science, pages 646–661. Springer.arxiv.org/abs/1603.09382
- [17]Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7B. Preprint, arXiv:2310.06825.arxiv.org/abs/2310.06825
- [18]Yuxin Jiang, Bo Huang, Yufei Wang, Xingshan Zeng, Liangyou Li, Yasheng Wang, Xin Jiang, Lifeng Shang, Ruiming Tang, and Wei Wang. 2025. Bridging and modeling correlations in pairwise data for direct preference optimization. In International Conference on Learning Representations, volume 2025, pages 85386–85405.arxiv.org/abs/2408.07471
- [19]Angelos Katharopoulos and Francois Fleuret. 2018. Not all samples are created equal: Deep learning with importance sampling. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 2525–2534. PMLR.arxiv.org/abs/1803.00942
- [20]Shuzhong Lai, Junhong Lai, Chenxi Li, Qing Zhou, Haifeng Li, Gang Pan, Lin Yao, and Yueming Wang. 2026a. Td-dpo: Difference-aware preference optimization for mitigating sycophancy in clinical autism intervention dialogue. Preprint, arXiv:2607.18304.arxiv.org/abs/2607.18304