alphaFeedback

WorksComputer Science

Stochastic Pruning of the DPO Computation Graph: 1.4x Faster Training and Lower Peak Memory

AI contributions
  • a large language model
View details

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 1.426×1.426\times 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.

Stochastic interventions on the DPO computation graph

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).

ConfigurationRetentionStep (s)HBM (MB)
Full-concat1.017.08123,627
Selected head1.016.82714,722
Selected head0.616.79114,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 D={(x,yw,yl)}\mathcal{D} = \{(x, y_w, y_l)\} contain prompts xx with chosen and rejected responses yw,yly_w, y_l. Write πθ\pi_\theta for the policy with trainable parameters θ\theta and πref\pi_{\mathrm{ref}} for the fixed reference (Rafailov et al., 2023). For side b∈{w,l}b \in\{w,l\}, let Tb≥1T_b \ge1 count response tokens, excluding prompt and padding. At position tt, define the target-token log-ratio

ub,t=log⁡πθ(yb,t∣x,yb,<t)πref(yb,t∣x,yb,<t).(1)u_{b,t} = \log\frac{\pi_\theta(y_{b,t}\mid x,y_{b,<t})}{\pi_{\mathrm{ref}}(y_{b,t}\mid x,y_{b,<t})}. \tag*{(1)}

Here yb,ty_{b,t} is the target token and yb,<ty_{b,<t} its preceding response prefix. With mean rewards Rb=Tb−1∑t=1Tbub,tR_b = T_b^{-1}\sum_{t=1}^{T_b}u_{b,t}, margin Δ=Rw−Rl\Delta= R_w-R_l, and scale β>0\beta> 0, DPO minimizes the loss (Rafailov et al., 2023):

F(θ)=ED[LDPO]=ED[log⁡(1+e−βΔ)].(2)F(\theta) = \mathbb{E}_{\mathcal{D}}[\mathcal{L}_{\mathrm{DPO}}] = \mathbb{E}_{\mathcal{D}}[\log(1+e^{-\beta\Delta})]. \tag*{(2)}

This length normalization parallels SimPO (Meng et al., 2024), but retains policy–reference log-ratios.

Figure 1 separates three costs: dense vocabulary projection materializes Tb×VT_b \times V logits for vocabulary size VV (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 IM={1,…,M}\mathbb{I}_M = \{1,\ldots,M\}. On side bb, sequence pruning selects length Mb∈ITbM_b \in\mathbb{I}_{T_b} through cutoff fraction ρb∈(0,1]\rho_b \in(0,1], retaining y~b=yb,1:Mb\tilde{y}_b = y_{b,1:M_b}. Position pruning selects Sb⊆IMbS_b \subseteq\mathbb{I}_{M_b} with kb=∣Sb∣k_b = |S_b| controlled by retention α∈(0,1]\alpha\in(0,1]. Branch pruning selects b⋆∈{w,l}b^\star\in\{w,l\} with probabilities qw,ql>0q_w,q_l > 0, qw+ql=1q_w+q_l=1. All sampling laws are parameter-independent, and rewards average over selected positions. We use σ\sigma for the sigmoid and sg⁡\operatorname{sg} 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 Sb∼Select⁡(Mb,α)S_b \sim\operatorname{Select}(M_b,\alpha) by

kb=max⁡(1,⌈αMb⌉),(3)k_b = \max(1,\lceil\alpha M_b\rceil), \tag*{(3)}
Select⁡(Mb,α)=Unif⁡{S⊆IMb:∣S∣=kb}.(4)\operatorname{Select}(M_b,\alpha)=\operatorname{Unif}\{S\subseteq\mathbb{I}_{M_b}:|S|=k_b\}. \tag*{(4)}

Standalone position pruning uses Mb=TbM_b=T_b. Define the selected-position reward

Rb(Sb)=1kb∑t∈Sbub,t,(5)R_b(S_b)=\frac{1}{k_b}\sum_{t\in S_b}u_{b,t}, \tag*{(5)}

with masked margin Δ=Rw(Sw)−Rl(Sl)\Delta=R_w(S_w)-R_l(S_l). The subset is drawn before the language-model head, without computing policy probabilities. Applying the head only at SbS_b evaluates Eq. (5) exactly, skipping Mb−kbM_b-k_b 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 Uk\mathbb{U}_k be a uniform size-kk subset of IT\mathbb{I}_T and ϕt=∇θlog⁡πθ(yt∣x,y<t)\phi_t=\nabla_\theta\log\pi_\theta(y_t\mid x,y_{<t}). Let ΔU\Delta_U be the margin under independent side masks and Δfull\Delta_{\mathrm{full}} the full-response margin. At any fixed policy,

E[R(Uk)]=R(IT),\mathbb{E}[R(\mathbb{U}_k)] = R(\mathbb{I}_T),
E[1k∑t∈Ukϕt]=1T∑t=1Tϕt,(6)\mathbb{E}\left[\frac{1}{k}\sum_{t\in\mathbb{U}_k}\phi_t\right]=\frac{1}{T}\sum_{t=1}^{T}\phi_t, \tag*{(6)}

and

0≤E[ℓ(ΔU)]−ℓ(Δfull)≤β28Var⁡(ΔU),(7)0 \le\mathbb{E}[\ell(\Delta_U)]-\ell(\Delta_{\mathrm{full}})\le\frac{\beta^2}{8}\operatorname{Var}(\Delta_U), \tag*{(7)}

where Var⁡\operatorname{Var} is over the sampled masks and Var⁡(ΔU)=∑b:Tb>1Tb−kbkb(Tb−1)vb\operatorname{Var}(\Delta_U)=\sum_{b:T_b>1}\frac{T_b-k_b}{k_b(T_b-1)}v_b. Here uˉb=Tb−1∑tub,t\bar{u}_b=T_b^{-1}\sum_tu_{b,t} and vb=Tb−1∑t(ub,t−uˉb)2v_b=T_b^{-1}\sum_t(u_{b,t}-\bar{u}_b)^2 are the population mean and variance. Single-token sides contribute zero variance.

At α=1\alpha=1, 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 ∣ub,t∣≤U|u_{b,t}| \le U, ∥∇θub,t∥≤G\lVert\nabla_{\theta}u_{b,t}\rVert\le G, vb≤vˉv_b \le\bar{v}, and Tb≥T0≥2T_b \ge T_0 \ge2 on the analyzed region. The objectives are twice differentiable there and attain their minima.

Corollary 1 (Optimality gap of position pruning). Let θ∗\theta^* minimize the full-response objective FF and θA∗\theta_A^* minimize FA(θ)=EDES[ℓ(ΔU)]F_A(\theta)=\mathbb{E}_{D}\mathbb{E}_{S}[\ell(\Delta_U)]. Then

0≤F(θA∗)−F(θ∗)≤β28ED[Var⁡S(ΔU)].(8)0 \le F(\theta_A^*)-F(\theta^*) \le\frac{\beta^2}{8}\mathbb{E}_{D}\left[\operatorname{Var}_{S}(\Delta_U)\right]. \tag*{(8)}

The variance is evaluated at θ∗\theta^* over masks, then averaged over data. Since kb≥αTbk_b \ge\alpha T_b, Proposition 1 gives ED[Var⁡S(ΔU)]≤2vˉ rA\mathbb{E}_{D}[\operatorname{Var}_{S}(\Delta_U)] \le2\bar{v}\,r_A, where

rA:=1−αα(T0−1).(9)r_A := \frac{1-\alpha}{\alpha(T_0-1)}. \tag*{(9)}

Thus the bound decays as 1/T01/T_0 at fixed retention and vanishes at α=1\alpha=1. A sufficient condition for loss tolerance εF>0\varepsilon_F>0 is

α≥11+4εF(T0−1)/(β2vˉ).(10)\alpha\ge\frac{1}{1+4\varepsilon_F(T_0-1)/(\beta^2\bar{v})}. \tag*{(10)}

A second-order expansion also gives ∥∇FA−∇F∥=O(rA)\lVert\nabla F_A-\nabla F\rVert=O(r_A) (Appendix § 7.6). If ∇2F⪰μI\nabla^2F\succeq\mu I, μ>0\mu>0, along the segment joining interior stationary points of FAF_A and FF within the analyzed region, their displacement is O(rA)O(r_A) rather than O(rA)O(\sqrt{r_A}). 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 ρmin⁡∈(0,1)\rho_{\min}\in(0,1), draw (y~b,Mb)∼Prefix⁡(yb,ρmin⁡)(\widetilde{y}_b,M_b)\sim\operatorname{Prefix}(y_b,\rho_{\min}) by

ρb∼U(ρmin⁡,1),Mb=max⁡(1,⌈ρbTb⌉),y~b=yb,1:Mb.(11)\begin{aligned} \rho_b &\sim\mathcal{U}(\rho_{\min},1),\\ M_b &= \max(1,\lceil\rho_bT_b\rceil),\\ \widetilde{y}_b &= y_{b,1:M_b}. \tag*{(11)} \end{aligned}

Both models repack the prompt with y~b\widetilde{y}_b, removing suffix attention, activations, and recomputation. The reward is Rb=Mb−1∑t=1Mbub,tR_b=M_b^{-1}\sum_{t=1}^{M_b}u_{b,t}, and ρb≡1\rho_b\equiv1 recovers the full-response objective. § 4.3 evaluates ρmin⁡\rho_{\min}.

Prefix inclusion and length normalization favor earlier positions:

Lemma 1 (Implicit temporal weighting). For one response of length TT, let M∈{1,…,T}M\in\{1,\ldots,T\} be the sampled cutoff, with law q(m)=Pr⁡(M=m)q(m)=\Pr(M=m) and prefix reward RM=M−1∑t=1MutR_M=M^{-1}\sum_{t=1}^{M}u_t. Define the temporal weights wt:=∑m=tTq(m)/mw_t:=\sum_{m=t}^{T}q(m)/m. Then

EM[RM]=∑t=1Twtut.(12)\mathbb{E}_{M}[R_M]=\sum_{t=1}^{T}w_tu_t. \tag*{(12)}

The weights satisfy w1≥⋯≥wT≥0w_1\ge\cdots\ge w_T\ge0 and ∑t=1Twt=1\sum_{t=1}^{T}w_t=1. Uniform weights wt=1/Tw_t=1/T occur exactly when M=TM=T 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 ΔM\Delta_M be the random-prefix margin, μpref=E[ΔM]\mu_{\mathrm{pref}}=\mathbb{E}[\Delta_M] its mean, and Lpref=E[ℓ(ΔM)]L_{\mathrm{pref}}=\mathbb{E}[\ell(\Delta_M)] the expected prefix loss with Jensen gap JprefJ_{\mathrm{pref}}. Then

Lpref=ℓ(μpref)+Jpref,L_{\mathrm{pref}}=\ell(\mu_{\mathrm{pref}})+J_{\mathrm{pref}},
0≤Jpref≤β28Var⁡(ΔM).(13)0\le J_{\mathrm{pref}}\le\frac{\beta^2}{8}\operatorname{Var}(\Delta_M). \tag*{(13)}

Unlike position pruning, sequence pruning can shift the mean margin. The shift ℓ(μpref)−ℓ(Δfull)\ell(\mu_{\mathrm{pref}})-\ell(\Delta_{\mathrm{full}}) has no fixed sign, whereas Jpref≥0J_{\mathrm{pref}}\ge0 vanishes for deterministic cutoffs or β=0\beta=0 (Appendix § 7.§ 3). Parameter-independent cutoffs make ∇θℓ(ΔM)\nabla_{\theta}\ell(\Delta_M) unbiased for ∇θLpref\nabla_{\theta}L_{\mathrm{pref}}, 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 ρb=Mb/Tb\rho_b=M_b/T_b, Eq. (11) gives E[hb]≤(1−ρmin⁡)/2\mathbb{E}[h_b]\le(1-\rho_{\min})/2. Prefix and full mean rewards differ by at most 2Uhb2U h_b, and their gradients by 2Ghb2Gh_b. The β\beta-Lipschitz loss therefore yields

∣FP(θ)−F(θ)∣≤2βU(1−ρmin⁡).(14)|F_P(\theta)-F(\theta)|\le2\beta U(1-\rho_{\min}). \tag*{(14)}

where FP=E[Lpref]F_P=\mathbb{E}[L_{\mathrm{pref}}]. Consequently, F(θP∗)−F(θ∗)≤4βU(1−ρmin⁡)F(\theta_P^*)-F(\theta^*)\le4\beta U(1-\rho_{\min}). Unlike Eq. (8), this bound has no response-length decay. At the tested ρmin⁡=1/2\rho_{\min}=1/2, the optimality bound equals the full loss range over ∣Δ∣≤2U|\Delta|\le2U, 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 λ=βσ(−βΔ)\lambda= \beta\sigma(-\beta\Delta) and σ(z)=(1+e−z)−1\sigma(z) = (1 + e^{-z})^{-1}, the DPO gradient decomposes as Rafailov et al. (2023)

∇θLDPO=−λ∇θRw+λ∇θRl.(15)\nabla_\theta\mathcal{L}_{\mathrm{DPO}} = -\lambda\nabla_\theta R_w + \lambda\nabla_\theta R_l . \tag*{(15)}

Independently of positions and prefixes, draw the active backward-branch set and its probability, (B,q⋆)∼Branch⁡(qw)(\mathbb{B},q^\star) \sim\operatorname{Branch}(q_w), with ql=1−qwq_l = 1-q_w and

Pr⁡[(B,q⋆)=({b},qb)]=qb,b∈{w,l}.(16)\Pr[(\mathbb{B},q^\star) = (\{b\},q_b)] = q_b,\quad b \in\{w,l\}. \tag*{(16)}

Only b⋆∈Bb^\star\in\mathbb{B} retains a policy backward graph. The opposite side runs under no_grad, providing the other reward needed for λ\lambda. Disabling branch pruning sets B={w,l}\mathbb{B} = \{w,l\} and q⋆=1q^\star= 1. Inverse-probability weighting corrects each selected contribution. With ζ(z)=log⁡(1+ez)\zeta(z) = \log(1+e^z), use

L^w=1qwζ(−β(Rw−sg⁡(Rl))),\widehat{\mathcal{L}}_w = \frac{1}{q_w}\zeta\left(-\beta(R_w-\operatorname{sg}(R_l))\right),
L^l=1qlζ(−β(sg⁡(Rw)−Rl)).(17)\widehat{\mathcal{L}}_l = \frac{1}{q_l}\zeta\left(-\beta(\operatorname{sg}(R_w)-R_l)\right). \tag*{(17)}

The sampled loss L^=L^b⋆\widehat{\mathcal{L}}=\widehat{\mathcal{L}}_{b^\star} preserves the numerical margin and differentiates only the selected reward.

Proposition 2 (Conditional unbiasedness). Fix the sampled response positions and prefixes. Then Eb⋆[∇θL^]=∇θlog⁡(1+e−β(Rw−Rl))\mathbb{E}_{b^\star}[\nabla_\theta\widehat{\mathcal{L}}] = \nabla_\theta\log(1+e^{-\beta(R_w-R_l)}). With position and sequence pruning disabled, this is the full-response per-pair gradient in Eq. (2).

We default to qw=ql=0.5q_w=q_l=0.5 and sweep qw∈{0.3,0.5,0.7}q_w \in\{0.3,0.5,0.7\} 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 cw=−λ∇θRwc_w=-\lambda\nabla_\theta R_w, cl=λ∇θRlc_l=\lambda\nabla_\theta R_l. The estimator g^=cb⋆/qb⋆\hat{g}=c_{b^\star}/q_{b^\star} has mean cw+clc_w+c_l and variance

Var⁡(g^)=∥cw∥2qw+∥cl∥2ql−∥cw+cl∥2.(18)\operatorname{Var}(\hat{g})=\frac{\lVert c_w\rVert^2}{q_w}+\frac{\lVert c_l\rVert^2}{q_l}-\lVert c_w+c_l\rVert^2 . \tag*{(18)}

At qw=ql=1/2q_w=q_l=1/2, the variance is ∥cw−cl∥2≤4β2G2\lVert c_w-c_l\rVert^2 \le4\beta^2G^2 under the bounds of § 3.2. Averaging mm estimators independent in preference pairs, positions, prefixes, and branches divides the variance by mm. Re-drawing only the branch reduces only its variance component.

Branch pruning adds gradient noise without objective bias. For the optimized objective Φ\Phi, assume μ\mu-strong convexity and LL-smoothness on a closed convex region Θ\Theta with minimizer θ⋆\theta^\star in its interior. Starting from θ0∈Θ\theta_0\in\Theta, projected SGD with mm independent estimators per step and the schedule in Appendix § 7.9 gives E∥θN−θ⋆∥2=O(1/N)\mathbb{E}\lVert\theta_N-\theta^\star\rVert^2=\mathcal{O}(1/N). 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 (x,yw,yl)(\boldsymbol{x},y_w,y_l), policy πθ\pi_\theta, frozen πref\pi_{\mathrm{ref}}

Require: Rates α,ρmin⁡,qw\alpha,\rho_{\min},q_w, enabled pruning modes

  1. for b∈{w,l}b\in\{w,l\} do

  2. (y~b,Mb)←(yb,Tb)\left(\tilde{y}_b,M_b\right)\leftarrow(y_b,T_b)

  3. if sequence pruning then

  4. (y~b,Mb)∼Prefix⁡(yb,ρmin⁡)\left(\tilde{y}_b,M_b\right)\sim\operatorname{Prefix}(y_b,\rho_{\min}) ▹\triangleright Eq. (11)

  5. Sb←IMbS_b\leftarrow\mathbb{I}_{M_b}

  6. if position pruning then

  7. Sb∼Select⁡(Mb,α)S_b\sim\operatorname{Select}(M_b,\alpha) ▹\triangleright Eq. (3)

  8. B←{w,l}\mathbb{B}\leftarrow\{w,l\}

  9. q⋆←1q^\star\leftarrow1

  10. if branch pruning then

  11. (B,q⋆)∼Branch⁡(qw)(\mathbb{B},q^\star)\sim\operatorname{Branch}(q_w) ▹\triangleright Eq. (16)

  12. for b∈{w,l}b\in\{w,l\} do

  13. zb←LogProbs⁡(πθ,x,y~b,Sb,b∈B)z_b\leftarrow\operatorname{LogProbs}(\pi_\theta,\boldsymbol{x},\tilde{y}_b,S_b,b\in\mathbb{B})

  14. zbref←LogProbs⁡(πref,x,y~b,Sb,false)z_b^{\mathrm{ref}}\leftarrow\operatorname{LogProbs}(\pi_{\mathrm{ref}},\boldsymbol{x},\tilde{y}_b,S_b,\mathrm{false})

  15. Rb←mean⁡(zb−zbref)R_b\leftarrow\operatorname{mean}(z_b-z_b^{\mathrm{ref}}) ▹\triangleright Eq. (5)

  16. L←ℓ(Rw−Rl)/q⋆\mathcal{L}\leftarrow\ell(R_w-R_l)/q^\star ▹\triangleright Eq. (17)

  17. L.backward⁡()\mathcal{L}.\operatorname{backward}()

  18. Update θ\theta

For a policy or reference model π\pi, the scored log-probability vector is

LogProbs⁡(π,x,y,S,g)=(log⁡π(yt∣x,y<t))t∈S.(19)\operatorname{LogProbs}(\pi,\boldsymbol{x},\boldsymbol{y},S,g) = \left(\log\pi(y_t\mid\boldsymbol{x},y_{<t})\right)_{t\in S}. \tag*{(19)}

Both models score the same prefixes and positions, with entries in response order. Position pruning applies the head only at SS; otherwise, the full head is evaluated before gathering. The argument gg controls gradient recording through the backbone and head: only policy branches in B\mathbb{B} retain a backward graph, while the reference always runs without gradient. dients. Numerical values are unchanged. The outputs zbz_b, zbrefz_b^{\mathrm{ref}} give RbR_b by the mean difference in Eq. (5). The step loss is L=ℓ(Rw−Rl)/q⋆\mathcal{L} = \ell(R_w - R_l)/q^\star (Eq. (17)), recovering the per-pair loss in Eq. (2)` on the selected prefixes and positions when q⋆=1q^\star= 1.

The minimizer θAP⋆\theta^\star_{AP} of the composed objective FAPF_{AP} satisfies

F(θAP⋆)−F(θ⋆)≤β2vˉ(1−α)4α(M0−1)+4βU(1−ρmin⁡),(20)F(\theta^\star_{AP}) - F(\theta^\star) \le\frac{\beta^2\bar{v}(1-\alpha)}{4\alpha(M_0-1)} + 4\beta U(1-\rho_{\min}), \tag*{(20)}

where M0=max⁡(2,⌈ρmin⁡T0⌉)M_0 = \max(2,\lceil\rho_{\min}T_0\rceil). The position-pruning bias bound decays as 1/T01/T_0 at fixed retention. The prefix bound scales with 1−ρmin⁡1-\rho_{\min} without length decay, while branch pruning adds no objective bias and has the O(1/N)O(1/N) mean-squared optimization error above. Appendix B.10 proves the composed loss bound and Eqs. (44) and (46), which allocate a total tolerance across α\alpha, ρmin⁡\rho_{\min}, and NN.

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 β=1\beta= 1. 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 α=0.6\alpha= 0.6, ρb∼U(0.5,1)\rho_b \sim U(0.5,1), and qw=ql=0.5q_w = q_l = 0.5. The factorial and sweeps use training and selection seed 42. A second Qwen seed (43) and Mistral seed 42 test the Full–Branch comparison.

SelectionRetentionARCGSM8KTruthfulQABBHMATH-HardMMLU-ProMuSRMean accuracy (%)
Low/Low0.163.4885.8254.5755.5462.3942.2642.8658.13
Random/Random0.162.8886.7353.1155.4163.3642.0042.5958.01
Low/Low0.263.8286.5855.1955.3260.2942.3342.5958.02
Random/Random0.263.0586.3553.6255.0663.1442.0242.4657.96
Low/Low0.363.8287.2655.4955.4758.4742.3542.5957.92
Random/Random0.363.2386.5054.4655.5163.2042.0442.7258.24
Low/Low0.463.9988.0255.7055.4357.6742.3242.8658.00
Random/Random0.463.4086.8854.8555.6461.9242.1042.5958.20
Low/Low0.563.1487.1953.8155.6363.6642.2543.1258.40
Random/Random0.563.0586.5053.3855.6363.9242.2243.1258.26
Low/Low0.663.4087.2653.8555.6063.3342.2243.1258.40
Random/Random0.663.0586.8153.5255.7164.1142.2042.9958.34
Low/Low0.763.3187.2653.8855.5363.3942.2542.9958.37
Random/Random0.763.2386.8153.6755.7764.1742.2042.8658.39
Low/Low0.863.1487.3453.9155.6063.2842.2742.9958.36
Random/Random0.863.0587.4953.7655.7864.0142.2442.5958.42
Low/Low0.963.2387.2653.9255.5763.4342.3042.9957.55*
Random/Random0.963.1487.1153.8655.61–42.2643.1257.52*
Qwen3-4B–62.8085.9052.2755.5962.8041.9843.3957.82
Unmasked DPO–62.6387.5753.9155.6163.3342.3043.1258.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.

α\alphaLow/LowRandom/RandomDifference
Batch 32
0.158.1358.01+0.12
0.258.0257.96+0.06
0.357.9258.24−0.32
0.458.0058.20−0.20
Batch 64
0.558.4058.26+0.14
0.658.4058.34+0.06
0.758.3758.39−0.02
0.858.3658.42−0.06
0.957.5557.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 α\alpha. 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.

MethodWallSpeedARCGSM8KTQABBHMATHMMLUMuSRMean accuracy (%)MTAHWBMean generation score
Full187.81.000×62.5487.4153.8855.6463.5942.2842.9958.336.64950.123.139_49.33_
Position185.91.010×62.4686.4353.5155.5863.2642.1842.9958.066.82944.853.20048.38
Sequence186.41.008×62.3786.2853.4055.9263.2742.2042.8658.046.43245.803.18647.33
Branch128.41.463×62.0386.6653.0655.7363.6542.1643.2558.086.80050.113.26350.25
Position+Sequence185.01.015×62.2085.9753.06_55.74__63.63_42.0743.1257.976.89345.543.20848.85
Position+Branch127.81.469×61.9586.5052.9255.6463.3142.12_43.12_57.946.67645.803.19648.17
Sequence+Branch126.31.487×62.0386.2052.8455.6963.0642.05_43.12_57.866.60045.053.19747.67
Position+Sequence +Branch_127.0_1.479×62.0385.9752.7555.6562.2442.05_43.12_57.696.69345.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.

SettingARCGSM8KTQABBHMATHMMLUMuSRMean accuracy (%)MTAHWBMean generation score
Position α=0.3\alpha=0.362.2986.2053.1555.6162.7842.1543.1257.906.56845.563.19547.73
Position α=0.6\alpha=0.662.4686.4353.5155.5863.2642.1842.9958.066.82944.853.20048.38
Position α=0.9\alpha=0.962.5487.3453.8355.6463.5442.2643.1258.326.70748.003.08148.63
Sequence U(0.25,1)U(0.25,1)62.3786.3553.3055.8063.5342.1543.1258.096.55247.053.11747.91
Sequence U(0.5,1)U(0.5,1)62.3786.2853.4055.9263.2742.2042.8658.046.43245.803.18647.33
Sequence U(0.75,1)U(0.75,1)62.4686.2853.4456.0363.1642.1642.7258.046.87447.923.19349.53
Sequence fixed 0.7562.2986.7353.3855.9563.2342.1342.8658.086.56243.333.21447.03
Branch qw=0.3q_w=0.362.3787.3453.0355.4462.7042.1643.3958.066.66947.823.18948.80
Branch qw=0.5q_w=0.562.0386.6653.0655.7363.6542.1643.2558.086.80050.113.26350.25
Branch qw=0.7q_w=0.762.0386.5852.9755.7562.9242.1543.3957.976.75346.643.20548.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 / seedConfig.ARCGSM8KTQABBHMATHMMLUMuSRMean accuracy (%)MTAHWBMean generation score
Qwen3-4B / 42Full62.5487.4153.8855.6463.5942.2842.9958.336.64950.123.13949.33
Branch62.0386.6653.0655.7363.6542.1643.2558.086.80050.113.26350.25
Qwen3-4B / 43Full62.5487.0453.8855.5563.4542.3442.9958.266.62344.363.23347.64
Branch62.0386.2053.0555.5562.5742.1443.1257.816.75045.033.29548.49
Mistral-7B / 42Full67.0652.4664.8246.3712.5030.4740.3444.865.13024.602.36133.17
Branch65.2751.1862.8746.5112.9630.3242.7244.555.37324.002.40533.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.

Resource ratios at the default settings

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 settingTokensHBM (MB)Δ\DeltaHBMStep (s)
Full1.000×18,571—18.826
U(0.25,1)\mathcal{U}(0.25, 1)0.854×16,718−10.0%18.480
U(0.5,1)\mathcal{U}(0.5, 1)0.893×16,827−9.4%18.430
U(0.75,1)\mathcal{U}(0.75, 1)0.943×17,072−8.1%18.482
fixed 0.750.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 U(0.5,1)\mathcal{U}(0.5, 1).

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 ρb\rho_b.

AxisSettingResourceMean accuracy (%)Mean generation score
Positionα=0.30\alpha=0.3011,211 MB57.9047.73
Positionα=0.60\alpha=0.6011,320 MB58.0648.38
Positionα=0.90\alpha=0.9011,580 MB58.3248.63
SequenceU(0.25,1)\mathcal{U}(0.25, 1)16,718 MB58.0947.91
SequenceU(0.50,1)\mathcal{U}(0.50, 1)16,827 MB58.0447.33
SequenceU(0.75,1)\mathcal{U}(0.75, 1)17,072 MB58.0449.53
Sequencefixed 0.7516,561 MB58.0847.03
Branchqw=0.30q_w=0.30127.7 min58.0648.80
Branchqw=0.50q_w=0.50128.4 min58.0850.25
Branchqw=0.70q_w=0.70128.4 min57.9748.74

Table 3. Ablation on Qwen3-4B/HelpSteer3-Preference. Shading marks defaults. Means follow § 4.1. Full task scores: Table 10.

For Position, increasing α\alpha 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 ρb=0.75\rho_b = 0.75 and U(0.5,1)\mathcal{U}(0.5, 1) 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 qw=0.5q_w = 0.5. HBM was not measured across qwq_w. 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.

MethodWall (min)Mean accuracy (%)Mean generation score
Full187.858.33<u>49.33</u>
Position185.958.0648.38
Sequence186.458.0447.33
Branch128.4<u>58.08</u>50.25
Position+Sequence185.057.9748.85
Position+Branch127.857.9448.17
Sequence+Branch126.357.8647.67
Position+Sequence +Branch<u>127.0</u>57.6948.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.

Training time versus seven-task mean accuracy for the eight factorial runs

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)SpeedupMean acc. (%)Mean gen. score
Qwen3-4B, seed 42
Full187.81.000×58.3349.33
Branch128.41.463×58.0850.25
Qwen3-4B, seed 43
Full187.01.000×58.2647.64
Branch131.01.428×57.8148.49
Mistral-7B, seed 42
Full211.01.000×44.8633.17
Branch142.01.486×44.5533.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.

ConfigurationStep (s)HBM (MB)
Qwen3-4B
Full18.20418,571
Branch12.16117,319
Mistral-7B
Full22.43821,185
Branch14.88819,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 1.7×10−71.7 \times10^{-7}. 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 bb is suppressed, so TT, kk, RR, utu_t denote the corresponding side quantities.

Preference pairs and loss. DD is the preference dataset of prompts xx, chosen responses ywy_w, and rejected responses yly_l. The policy πθ\pi_\theta has trainable parameters θ\theta, and πref\pi_{\mathrm{ref}} is the fixed reference. For side b∈{w,l}b \in\{w,l\}, TbT_b is the response length, yb,ty_{b,t} the target token at position tt, and yb,<ty_{b,<t} its response prefix. The token log-ratio ub,tu_{b,t} gives the mean reward RbR_b and margin Δ=Rw−Rl\Delta= R_w - R_l. The scale β\beta defines ℓ(d)=log⁡(1+e−βd)\ell(d) = \log(1 + e^{-\beta d}), with per-pair loss LDPO=ℓ(Δ)\mathcal{L}_{\mathrm{DPO}} = \ell(\Delta) (§ 3.1).

Three pruning axes. Sequence pruning uses cut-off fraction ρb\rho_b to retain prefix y~b\tilde{y}_b of length MbM_b, with minimum fraction ρmin⁡\rho_{\min}. Position pruning selects Sb⊆IMb={1,…,Mb}S_b \subseteq\mathbb{I}_{M_b} = \{1,\ldots,M_b\} with count kbk_b controlled by retention α\alpha. Branch pruning samples backward branch b⋆b^\star with probability qbq_b (§ 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 B\mathbb{B}, and q⋆q^\star supplies the probability correction. The operator LogProbs⁡\operatorname{LogProbs} returns scored log-probabilities, with Boolean flag qq controlling gradient recording. Its policy and reference outputs are zbz_b and zbrefz_b^{\mathrm{ref}}, and L\mathcal{L} is the step loss. We write σ\sigma for sigmoid, sg⁡\operatorname{sg} for stop-gradient, and VV for vocabulary size (§ 3.1, § 3.4 and § 3.5).

Analysis. E\mathbb{E} and Var⁡\operatorname{Var} refer to the indicated sampling. UkU_k is a uniform size-kk position subset, ϕt\phi_t a token log-probability gradient, and ΔU\Delta_U and Δfull\Delta_{\mathrm{full}} the sampled and full margins (Proposition 1). The objectives FF, FAF_A, FPF_P, FAPF_{AP} correspond to full responses, position pruning, sequence pruning, and their composition, with minimizers θ⋆\theta^\star, θA⋆\theta_A^\star, θP⋆\theta_P^\star, θAP⋆\theta_{AP}^\star. The analysis uses token-score and gradient bounds UU, GG, variance bound vˉ\bar{v}, and length bounds T0T_0, M0M_0 (§ 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 I{E}\mathbb{I}\{E\} for the indicator of event EE, Eq. (5) follows from E[I{t∈Uk}]=k/T\mathbb{E}[\mathbb{I}\{t \in U_k\}] = k/T and sampling without replacement. Jensen’s inequality gives the lower bound in Eq. (7). Since 0≤ℓ′′(d)≤β2/40 \le\ell''(d) \le\beta^2/4, a second-order upper bound around Δfull\Delta_{\mathrm{full}} 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 ItI_t indicate membership in a uniform size-kk subset of TT positions. Then EIt=k/T\mathbb{E}I_t = k/T, and for i≠ji \ne j, E[IiIj]=k(k−1)/[T(T−1)]\mathbb{E}[I_iI_j] = k(k-1)/[T(T-1)]. These identities establish Eq. (6) and the variance in Proposition 1. For vector gradients and T>1T>1, let ϕˉ=T−1∑tϕt\bar{\phi}=T^{-1}\sum_t\phi_t be their population mean and Σϕ\Sigma_\phi their population covariance. Cov denotes covariance. Then

Cov⁡[1k∑tItϕt]=T−kk(T−1)Σϕ,(21)\operatorname{Cov}\left[\frac{1}{k}\sum_t I_t\phi_t\right]=\frac{T-k}{k(T-1)}\Sigma_\phi, \tag*{(21)}
Σϕ=1T∑t(ϕt−ϕˉ)(ϕt−ϕˉ)T.\Sigma_\phi=\frac{1}{T}\sum_t(\phi_t-\bar{\phi})(\phi_t-\bar{\phi})^{\mathsf{T}}.

For T=1T=1, the covariance is zero. These identities concern the side-reward gradient. The sampled loss gradient is −βσ(−βΔU)∇θΔU-\beta\sigma(-\beta\Delta_U)\nabla_\theta\Delta_U. 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 ptp_t be the current-policy target-token probability at position tt, and SS a selected set. The target-logit diagnostic Ez\mathcal{E}_z (subscript zz denotes the target logit) is Ez(S)=1∣S∣2∑t∈S(1−pt)2\mathcal{E}_z(S)=\frac{1}{|S|^2}\sum_{t\in S}(1-p_t)^2 on a fixed response. For the full position set IT\mathbb{I}_T, linearity gives

E[Ez(Uk)]=1kT∑t(1−pt)2,(22)\mathbb{E}[\mathcal{E}_z(U_k)]=\frac{1}{kT}\sum_t(1-p_t)^2, \tag*{(22)}
Ez(IT)=1T2∑t(1−pt)2.\mathcal{E}_z(\mathbb{I}_T)=\frac{1}{T^2}\sum_t(1-p_t)^2.

Their ratio is T/kT/k, not k/Tk/T. If a diagnostic instead reports the retained numerator fraction f(S)=∑t∈S(1−pt)2/∑t=1T(1−pt)2f(S)=\sum_{t\in S}(1-p_t)^2/\sum_{t=1}^{T}(1-p_t)^2, its normalized reward-derivative ratio is (T/k)2f(S)(T/k)^2f(S) 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 1/Tb1/T_b denominator would scale the selected mean by the realized fraction kb/Tbk_b/T_b. At a common realized fraction γ=kb/Tb\gamma=k_b/T_b on both sides, this equals selected-mean normalization at temperature γβ\gamma\beta. We use the 1/kb1/k_b mean throughout.

Proof of Lemma 1

Proof of Lemma 1. Exchange the order of summation:

EM[RM]=∑m=1Tq(m)1m∑t=1mut=∑t=1Tut∑m=tTq(m)m=∑t=1Twtut.(23)\begin{aligned} \mathbb{E}_M[R_M]=\sum_{m=1}^{T}q(m)\frac{1}{m}\sum_{t=1}^{m}u_t \\ &=\sum_{t=1}^{T}u_t\sum_{m=t}^{T}\frac{q(m)}{m}=\sum_{t=1}^{T}w_tu_t. \tag*{(23)} \end{aligned}

For 1≤t<T1\le t<T, wt−wt+1=q(t)/t≥0w_t-w_{t+1}=q(t)/t\ge0, and wT=q(T)/T≥0w_T=q(T)/T\ge0. Also, ∑t=1Twt=∑m=1Tq(m)∑t=1m1/m=1\sum_{t=1}^{T}w_t=\sum_{m=1}^{T}q(m)\sum_{t=1}^{m}1/m=1. Conversely, for a nonnegative, normalized, non-increasing vector w=(w1,…,wT)\boldsymbol{w}=(w_1,\ldots,w_T), set wT+1:=0w_{T+1}:=0 and q(t)=t(wt−wt+1)q(t)=t(w_t-w_{t+1}). Then q(t)≥0q(t)\ge0 and ∑t=1Tq(t)=∑t=1Tt(wt−wt+1)=∑t=1Twt=1\sum_{t=1}^{T}q(t)=\sum_{t=1}^{T}t(w_t-w_{t+1})=\sum_{t=1}^{T}w_t=1. Substitution recovers wt=∑m=tTq(m)/mw_t=\sum_{m=t}^{T}q(m)/m. Uniform weights wt=1/Tw_t=1/T give q(t)=0q(t)=0 for t<Tt<T and q(T)=1q(T)=1, so M=TM=T almost surely, recovering the fixed-cutoff case ρb≡1\rho_b\equiv1.

Proof of Lemma 2

Proof of Lemma 2. ℓ(d)=log⁡(1+e−βd)\ell(d)=\log(1+e^{-\beta d}) satisfies ℓ′(d)=−βσ(−βd)\ell'(d)=-\beta\sigma(-\beta d) and ℓ′′(d)=β2σ(βd)σ(−βd)\ell''(d)=\beta^2\sigma(\beta d)\sigma(-\beta d). For β>0\beta>0, 0<ℓ′′≤β2/40<\ell''\le\beta^2/4 and ℓ′<0\ell'<0, so ℓ\ell is strictly convex and strictly decreasing. For β=0\beta=0, ℓ≡log⁡2\ell\equiv\log2 with ℓ′=ℓ′′=0\ell'=\ell''=0. Assume β>0\beta>0 unless a degenerate case is named. Jensen’s inequality gives E[ℓ(ΔM)]≥ℓ(μpref)\mathbb{E}[\ell(\Delta_M)]\ge\ell(\mu_{\mathrm{pref}}), hence Jpref:=Lpref−ℓ(μpref)≥0J_{\mathrm{pref}}:=\mathcal{L}_{\mathrm{pref}}-\ell(\mu_{\mathrm{pref}})\ge0. For the upper bound, expand ℓ\ell to second order around μpref\mu_{\mathrm{pref}}: for each scalar margin xx, ℓ(x)=ℓ(μpref)+ℓ′(μpref)(x−μpref)+12ℓ′′(ξ)(x−μpref)2\ell(x)=\ell(\mu_{\mathrm{pref}})+\ell'(\mu_{\mathrm{pref}})(x-\mu_{\mathrm{pref}})+\frac{1}{2}\ell''(\xi)(x-\mu_{\mathrm{pref}})^2 for some ξ\xi between xx and μpref\mu_{\mathrm{pref}}. Taking the expectation removes the linear term, and ℓ′′≤β2/4\ell''\le\beta^2/4 gives

Jpref=12E[ℓ′′(ξ)(ΔM−μpref)2]≤β28Var⁡(ΔM).(24)J_{\mathrm{pref}}=\frac{1}{2}\mathbb{E}\left[\ell''(\xi)(\Delta_M-\mu_{\mathrm{pref}})^2\right]\le\frac{\beta^2}{8}\operatorname{Var}(\Delta_M). \tag*{(24)}

Subtracting the full-response loss from Eq. (13) gives

Lpref−ℓ(Δfull)=ℓ(μpref)−ℓ(Δfull)+Jpref.(25)\mathcal{L}_{\mathrm{pref}}-\ell(\Delta_{\mathrm{full}})=\ell(\mu_{\mathrm{pref}})-\ell(\Delta_{\mathrm{full}})+J_{\mathrm{pref}}. \tag*{(25)}

Because ℓ\ell is strictly decreasing, ℓ(μpref)−ℓ(Δfull)\ell(\mu_{\mathrm{pref}})-\ell(\Delta_{\mathrm{full}}) is positive precisely when the temporally reweighted mean margin μpref\mu_{\mathrm{pref}} is below the full-response margin, which is a data- and distribution-dependent event and therefore carries no fixed sign. Equation (11) gives μpref=∑twt(w)uw,t−∑twt(l)ul,t\mu_{\mathrm{pref}}=\sum_t w_t^{(w)}u_{w,t}-\sum_t w_t^{(l)}u_{l,t}, with the side-specific weights wt(b)w_t^{(b)}. Two degeneracies: a deterministic cutoff makes ΔM\Delta_M constant, so Var⁡(ΔM)=0\operatorname{Var}(\Delta_M)=0 and Jpref=0J_{\mathrm{pref}}=0. At β=0\beta=0 both terms of Eq. (25) vanish.

Finally, the cutoff variables MwM_w, MlM_l are drawn independently of θ\theta and have finite support, so the expectation in Lpref(θ)=E[ℓ(ΔM(θ))]\mathcal{L}_{\mathrm{pref}}(\theta)=\mathbb{E}[\ell(\Delta_M(\theta))] is a finite sum and differentiation passes through it exactly:

∇θLpref=E[∇θℓ(ΔM)].(26)\nabla_\theta\mathcal{L}_{\mathrm{pref}}=\mathbb{E}[\nabla_\theta\ell(\Delta_M)]. \tag*{(26)}

Thus ∇θℓ(ΔM)\nabla_\theta\ell(\Delta_M) is an unbiased stochastic gradient of Lpref\mathcal{L}_{\mathrm{pref}} 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 Lwsg=ζ(−β(Rw−sg⁡(Rl)))\mathcal{L}^{\mathrm{sg}}_w=\zeta(-\beta(R_w-\operatorname{sg}(R_l))). Because the stop-gradient blocks the flow into RlR_l, and because λ=βσ(−β(Rw−Rl))\lambda=\beta\sigma(-\beta(R_w-R_l)) is evaluated at the current parameters as a chain-rule coefficient (it is differentiated no further),

∇θLwsg=σ(−β(Rw−Rl))(−β)∇θRw=−λ∇θRw,(27)\nabla_\theta\mathcal{L}^{\mathrm{sg}}_w=\sigma(-\beta(R_w-R_l))(-\beta)\nabla_\theta R_w=-\lambda\nabla_\theta R_w, \tag*{(27)}

and symmetrically ∇θLlsg=+λ∇θRl\nabla_\theta\mathcal{L}^{\mathrm{sg}}_l=+\lambda\nabla_\theta R_l. With the 1/qb1/q_b importance factors, Eb⋆[∇Lb]=qw⋅(−λ/qw)∇Rw+ql⋅(λ/ql)∇Rl=−λ∇Rw+λ∇Rl=∇θlog⁡(1+e−β(Rw−Rl))\mathbb{E}_{b^\star}[\nabla\mathcal{L}_b]=q_w\cdot(-\lambda/q_w)\nabla R_w+q_l\cdot(\lambda/q_l)\nabla R_l=-\lambda\nabla R_w+\lambda\nabla R_l=\nabla_\theta\log(1+e^{-\beta(R_w-R_l)}). All quantities are those of the sampled response positions and prefixes: with sequence pruning active, RbR_b is the prefix mean over MbM_b. With position pruning active, it is the masked mean over SbS_b, 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 ∥⋅∥\lVert\cdot\rVert denoting the Euclidean norm, for fixed sampled rewards the single-branch estimator’s second moment is λ2(∥∇Rw∥2/qw+∥∇Rl∥2/ql)\lambda^2(\lVert\nabla R_w\rVert^2/q_w+\lVert\nabla R_l\rVert^2/q_l). Its variance-optimal probability therefore balances the branch gradient norms, the usual importance-sampling criterion [19]. We use qw=0.5q_w=0.5 as a symmetric default. The qw∈{0.3,0.5,0.7}q_w\in\{0.3,0.5,0.7\} 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 ℓ\ell is convex, Jensen’s inequality gives ES[ℓ(ΔU)]≥ℓ(ES[ΔU])=ℓ(Δfull)\mathbb{E}_S[\ell(\Delta_U)]\ge\ell(\mathbb{E}_S[\Delta_U])=\ell(\Delta_{\mathrm{full}}) at every θ\theta, so FA≥FF_A\ge F pointwise. Hence

F(θA∗)≤FA(θA∗)≤FA(θ∗)≤F(θ∗)+β28ED[Var⁡S(ΔU)],(28)F(\theta_A^\ast)\le F_A(\theta_A^\ast)\le F_A(\theta^\ast) \le F(\theta^\ast)+\frac{\beta^2}{8}\mathbb{E}_D[\operatorname{Var}_S(\Delta_U)], \tag*{(28)}

where the first step uses F≤FAF\le F_A, the second the optimality of θA∗\theta_A^\ast for FAF_A, and the third Eq. (7) evaluated at θ∗\theta^\ast. Subtracting F(θ∗)F(\theta^\ast) gives Eq. (8).

For Eq. (9), kb≥αTbk_b\ge\alpha T_b implies 1/kb≤1/(αTb)1/k_b\le1/(\alpha T_b) and Tb−kb≤(1−α)TbT_b-k_b\le(1-\alpha)T_b, while vb≤vˉv_b\le\bar v and Tb≥T0T_b\ge T_0 give

Var⁡S(ΔU)=∑b:Tb>1Tb−kbkb(Tb−1)vb≤∑b(1−α)TbαTb(T0−1)vˉ=2vˉrA.(29)\begin{aligned} \operatorname{Var}_S(\Delta_U)=\sum_{b:T_b>1}\frac{T_b-k_b}{k_b(T_b-1)}v_b \\ &\le\sum_b\frac{(1-\alpha)T_b}{\alpha T_b(T_0-1)}\bar v=2\bar v r_A. \tag*{(29)} \end{aligned}

The display is per response, so averaging over the dataset gives ED[Var⁡S(ΔU)]≤2vˉrA\mathbb{E}_D[\operatorname{Var}_S(\Delta_U)]\le2\bar v r_A. Requiring β28ED[Var⁡S(ΔU)]≤β2vˉ4rA≤εF\frac{\beta^2}{8}\mathbb{E}_D[\operatorname{Var}_S(\Delta_U)]\le\frac{\beta^2\bar v}{4}r_A\le\varepsilon_F and solving for α\alpha yields Eq. (10).

Proof of Eq. (31) and the stationary displacement

Proof. Fix one preference pair and abbreviate d=Δfulld=\Delta_{\mathrm{full}}, g=∇θΔfullg=\nabla_\theta\Delta_{\mathrm{full}}, δ=ΔU−d\delta=\Delta_U-d, and e=∇θΔU−ge=\nabla_\theta\Delta_U-g. Unbiasedness gives Eδ=0\mathbb{E}\delta=0 and Ee=0\mathbb{E}e=0, so Vu=Eδ2V_u=\mathbb{E}\delta^2 and Vg=E∥e∥2V_g=\mathbb{E}\lVert e\rVert^2. Since ∇θℓ(ΔU)=ℓ′(d+δ)(g+e)\nabla_\theta\ell(\Delta_U)=\ell'(d+\delta)(g+e) and ∇θℓ(d)=ℓ′(d)g\nabla_\theta\ell(d)=\ell'(d)g,

∇θℓ(ΔU)−∇θℓ(d)=[ℓ′(d+δ)−ℓ′(d)]g+ℓ′(d+δ)e.(30)\nabla_\theta\ell(\Delta_U)-\nabla_\theta\ell(d)=[\ell'(d+\delta)-\ell'(d)]g+\ell'(d+\delta)e. \tag*{(30)}

The linear term in the first bracket has zero mean, so only 12ℓ′′′(ξ)δ2\frac{1}{2}\ell'''(\xi)\delta^2 survives, and its norm is at most 12sup⁡∣ℓ′′′∣Vu∥g∥\frac{1}{2}\sup|\ell'''|V_u\lVert g\rVert. Because ℓ′′′=β3s(1−s)(1−2s)\ell'''=\beta^3s(1-s)(1-2s) with s=σ(βd)s=\sigma(\beta d) satisfies max⁡s∣s(1−s)(1−2s)∣=1/(63)\max_s|s(1-s)(1-2s)|=1/(6\sqrt{3}), we have sup⁡∣ℓ′′′∣=β3/(63)\sup|\ell'''|=\beta^3/(6\sqrt{3}). For the second term, centering with Ee=0\mathbb{E}e=0 and applying Cauchy–Schwarz with sup⁡∣ℓ′′∣=β2/4\sup|\ell''|=\beta^2/4 bounds it by β24VuVg\frac{\beta^2}{4}\sqrt{V_uV_g}. Therefore

∥E∇θℓ(ΔU)−∇θℓ(d)∥≤β3123Vu∥g∥+β24VuVg.(31)\left\lVert\mathbb{E}\nabla_\theta\ell(\Delta_U)-\nabla_\theta\ell(d)\right\rVert \le\frac{\beta^3}{12\sqrt{3}}V_u\lVert g\rVert +\frac{\beta^2}{4}\sqrt{V_uV_g}. \tag*{(31)}

Averaging over pairs replaces the single-pair quantities by their population counterparts. Substituting Vu≤2vˉrAV_u \le2\bar{v}r_A, Vg≤2G2rAV_g \le2G^2r_A, and ∥g∥≤2G\|g\| \le2G bounds the two terms by β3Gvˉ33rA\frac{\beta^3G\bar{v}}{3\sqrt{3}}r_A and β2Gvˉ2rA\frac{\beta^2G\sqrt{\bar{v}}}{2}r_A, so that

∥∇FA(θ)−∇F(θ)∥≤CArA,\|\nabla F_A(\theta)-\nabla F(\theta)\| \le C_A r_A,
CA:=β3Gvˉ33+β2Gvˉ2.(32)C_A := \frac{\beta^3G\bar{v}}{3\sqrt{3}}+\frac{\beta^2G\sqrt{\bar{v}}}{2}. \tag*{(32)}

Now let θA\theta_A be an interior stationary point of FAF_A and θ∗\theta^* an interior stationary point of FF, both in the analyzed region, and suppose ∇2F⪰μI\nabla^2F \succeq\mu I with μ>0\mu>0 along the segment joining them. Then ∥∇F(θA)∥=∥∇F(θA)−∇FA(θA)∥≤CArA\|\nabla F(\theta_A)\|=\|\nabla F(\theta_A)-\nabla F_A(\theta_A)\|\le C_A r_A. Integrating the Hessian along that segment gives ⟨∇F(θA),θA−θ∗⟩≥μ∥θA−θ∗∥2\langle\nabla F(\theta_A),\theta_A-\theta^*\rangle\ge\mu\|\theta_A-\theta^*\|^2; Cauchy–Schwarz together with the previous display yields ∥θA−θ∗∥≤CArA/μ\|\theta_A-\theta^*\|\le C_A r_A/\mu. □

Curvature constants from the margin geometry

Suppose ∣βΔθ∣≤C|\beta\Delta_\theta|\le C on the analyzed convex region, ED[∇θΔ∇θΔ⊤]⪰νI\mathbb{E}_D[\nabla_\theta\Delta\nabla_\theta\Delta^\top]\succeq\nu I, and ∥∇θ2Δ∥op≤H\|\nabla_\theta^2\Delta\|_{\mathrm{op}}\le H. With mC=σ(C)σ(−C)m_C=\sigma(C)\sigma(-C), the chain rule gives

∇2F=E[ℓ′′(Δ)∇θΔ∇θΔ⊤+ℓ′(Δ)∇θ2Δ]⪰(β2mCν−βH)I.(33)\nabla^2F=\mathbb{E}\left[\ell^{\prime\prime}(\Delta)\nabla_\theta\Delta\nabla_\theta\Delta^\top+\ell'(\Delta)\nabla_\theta^2\Delta\right] \succeq(\beta^2m_C\nu-\beta H)I. \tag*{(33)}

because ℓ′′≥β2mC\ell^{\prime\prime}\ge\beta^2m_C on the region and ∣ℓ′∣≤β|\ell'|\le\beta. Hence β2mCν>βH\beta^2m_C\nu>\beta H is a sufficient stability condition and one may take μ=β2mCν−βH\mu=\beta^2m_C\nu-\beta H. In a linear-margin model H=0H=0, so μ>0\mu>0 as soon as the comparison matrix has positive smallest eigenvalue ν\nu.

Proof of (14)

Proof. Let hb=1−Mb/Tbh_b=1-M_b/T_b. Since Mb=max⁡(1,⌈ρbTb⌉)M_b=\max(1,\lceil\rho_bT_b\rceil) and ρb∼U(ρmin⁡,1)\rho_b\sim\mathcal{U}(\rho_{\min},1),

E[hb]=1−EMbTb≤1−EρbTbTb=1−1+ρmin⁡2=1−ρmin⁡2.(34)\mathbb{E}[h_b]=1-\frac{\mathbb{E}M_b}{T_b}\le1-\frac{\mathbb{E}\rho_bT_b}{T_b} =1-\frac{1+\rho_{\min}}{2} =\frac{1-\rho_{\min}}{2}. \tag*{(34)}

For one realization, split the reward difference into its retained and removed parts:

Rb,Mb−Rb=(1Mb−1Tb)∑t≤Mbub,t−1Tb∑t>Mbub,t.(35)R_{b,M_b}-R_b= \left(\frac{1}{M_b}-\frac{1}{T_b}\right)\sum_{t\le M_b}u_{b,t} -\frac{1}{T_b}\sum_{t>M_b}u_{b,t}. \tag*{(35)}

so ∣Rb,Mb−Rb∣≤(1−MbTb)U+(1−MbTb)U=2Uhb|R_{b,M_b}-R_b|\le(1-\frac{M_b}{T_b})U+(1-\frac{M_b}{T_b})U=2Uh_b. The same argument with ∥∇θub,t∥≤G\|\nabla_\theta u_{b,t}\|\le G gives ∥∇θRb,Mb−∇θRb∥≤2Ghb\|\nabla_\theta R_{b,M_b}-\nabla_\theta R_b\|\le2Gh_b. The margin difference is the difference of the two sides, so ∣ΔM−Δfull∣≤2U(hw+hl)|\Delta_M-\Delta_{\mathrm{full}}|\le2U(h_w+h_l) and ∥∇θΔM−∇θΔfull∥≤2G(hw+hl)\|\nabla_\theta\Delta_M-\nabla_\theta\Delta_{\mathrm{full}}\|\le2G(h_w+h_l).

The loss is β\beta-Lipschitz, so ∣ℓ(ΔM)−ℓ(Δfull)∣≤2βU(hw+hl)|\ell(\Delta_M)-\ell(\Delta_{\mathrm{full}})|\le2\beta U(h_w+h_l); taking expectations gives the loss bound of Eq. (14). For the gradient, decompose

ℓ′(ΔM)∇θΔM−ℓ′(Δfull)∇θΔfull=[ℓ′(ΔM)−ℓ′(Δfull)]∇θΔM+ℓ′(Δfull)[∇θΔM−∇θΔfull].(36)\ell'(\Delta_M)\nabla_\theta\Delta_M-\ell'(\Delta_{\mathrm{full}})\nabla_\theta\Delta_{\mathrm{full}} = [\ell'(\Delta_M)-\ell'(\Delta_{\mathrm{full}})]\nabla_\theta\Delta_M +\ell'(\Delta_{\mathrm{full}})[\nabla_\theta\Delta_M-\nabla_\theta\Delta_{\mathrm{full}}]. \tag*{(36)}

Each side’s mean-reward gradient is an average of token gradients of norm at most GG, so ∥∇θΔM∥≤2G\|\nabla_\theta\Delta_M\|\le2G at every truncation, with no truncation-dependent factor. The first term is therefore at most β24⋅2U(hw+hl)⋅2G=β2UG(hw+hl)\frac{\beta^2}{4}\cdot2U(h_w+h_l)\cdot2G=\beta^2UG(h_w+h_l), using sup⁡∣ℓ′′∣=β2/4\sup|\ell^{\prime\prime}|=\beta^2/4, and the second at most β⋅2G(hw+hl)\beta\cdot2G(h_w+h_l). Taking expectations and using E[hw+hl]≤1−ρmin⁡\mathbb{E}[h_w+h_l]\le1-\rho_{\min} from above gives an expected gradient bias of at most G(β2U+2β)(1−ρmin⁡)G(\beta^2U+2\beta)(1-\rho_{\min}), which is the constant CPC_P used in Sec. B.10.

For the optimality statement, F≤FP+ΔF\le F_P+\Delta with Δ=2βU(1−ρmin⁡)\Delta=2\beta U(1-\rho_{\min}), so F(θP∗)≤FP(θP∗)+Δ≤FP(θ∗)+Δ≤F(θ∗)+2ΔF(\theta_P^*)\le F_P(\theta_P^*)+\Delta\le F_P(\theta^*)+\Delta\le F(\theta^*)+2\Delta. 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 ∇2F⪰μI\nabla^2F\succeq\mu I with μ>0\mu>0 along the joining segment.

The loss bound is a scaling statement, not a guarantee at the tested setting. Since ∣Rb∣≤U|R_b|\le U we have ∣Δ∣≤2U|\Delta|\le2U, so the total range of the loss on the relevant interval is ℓ(−2U)−ℓ(2U)=2βU\ell(-2U)-\ell(2U)=2\beta U. At ρmin⁡=1/2\rho_{\min}=1/2 the optimality-gap bound 4βU(1−ρmin⁡)4\beta U(1-\rho_{\min}) reaches 2βU2\beta U, exactly that range, so it is vacuous at the stated cutoff; the loss bound itself is 2βU(1−ρmin⁡)=βU2\beta U(1-\rho_{\min})=\beta U, half that range. Both become restrictive only for cutoffs closer to one. □

Proof of Proposition 3 and (42)

Proof. With cw,clc_w,c_l as defined in Proposition 3, E[g^]=cw+cl\mathbb{E}[\hat{g}]=c_w+c_l follows from Proposition 2, and

E∥g^∥2=qw∥cw∥2qw2+ql∥cl∥2ql2=∥cw∥2qw+∥cl∥2ql.(37)\mathbb{E}\|\hat{g}\|^2 =q_w\frac{\|c_w\|^2}{q_w^2}+q_l\frac{\|c_l\|^2}{q_l^2} =\frac{\|c_w\|^2}{q_w}+\frac{\|c_l\|^2}{q_l}. \tag*{(37)}

so Var⁡(g^)=E∥g^∥2−∥cw+cl∥2\operatorname{Var}(\hat{g})=\mathbb{E}\lVert\hat{g}\rVert^2-\lVert c_w+c_l\rVert^2 is Eq. (18). At qw=ql=1/2q_w=q_l=1/2 it equals 2∥cw∥2+2∥cl∥2−∥cw+cl∥2=∥cw−cl∥22\lVert c_w\rVert^2+2\lVert c_l\rVert^2-\lVert c_w+c_l\rVert^2=\lVert c_w-c_l\rVert^2. Because ∣λ∣=βσ(−βΔ)≤β|\lambda|=\beta\sigma(-\beta\Delta)\le\beta and ∥∇θRb∥≤G\lVert\nabla_\theta R_b\rVert\le G, we have ∥cw∥,∥cl∥≤βG\lVert c_w\rVert,\lVert c_l\rVert\le\beta G, hence Var⁡(g^)≤4β2G2\operatorname{Var}(\hat{g})\le4\beta^2G^2, and at the symmetric default also ∥g^∥=∥cw∥/qw≤2βG\lVert\hat{g}\rVert=\lVert c_w\rVert/q_w\le2\beta G. Averaging mm estimators divides the variance by mm when the mm 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 qw=ql=1/2q_w=q_l=1/2 so that each step’s noise has second moment at most 4β2G2/m4\beta^2G^2/m. Let θΦ∗\theta_\Phi^* minimize Φ\Phi and Dn=E∥θn−θΦ∗∥2D_n=\mathbb{E}\lVert\theta_n-\theta_\Phi^*\rVert^2. Projection is non-expansive and θΦ∗∈Θ\theta_\Phi^*\in\Theta, so

Dn+1≤Dn−2ηnE⟨∇Φ(θn),θn−θΦ∗⟩+ηn2(E∥∇Φ(θn)∥2+4β2G2m).(38)D_{n+1}\le D_n-2\eta_n\mathbb{E}\langle\nabla\Phi(\theta_n),\theta_n-\theta_\Phi^*\rangle+\eta_n^2\left(\mathbb{E}\lVert\nabla\Phi(\theta_n)\rVert^2+\frac{4\beta^2G^2}{m}\right). \tag*{(38)}

Let AA be the average Hessian along the segment from θΦ∗\theta_\Phi^* to θn\theta_n. Strong convexity gives A⪰μIA\succeq\mu I and smoothness gives A⪯LIA\preceq LI, so A2⪯LAA^2\preceq LA. Since ∇Φ(θn)=A(θn−θΦ∗)\nabla\Phi(\theta_n)=A(\theta_n-\theta_\Phi^*),

∥∇Φ(θn)∥2≤L⟨∇Φ(θn),θn−θΦ∗⟩.(39)\lVert\nabla\Phi(\theta_n)\rVert^2\le L\langle\nabla\Phi(\theta_n),\theta_n-\theta_\Phi^*\rangle. \tag*{(39)}

Substituting this and using ⟨∇Φ,θ−θΦ∗⟩≥μDn\langle\nabla\Phi,\theta-\theta_\Phi^*\rangle\ge\mu D_n together with ηnL≤1\eta_nL\le1, which t0≥2L/μt_0\ge2L/\mu ensures,

Dn+1≤(1−μηn)Dn+4β2G2mηn2.(40)D_{n+1}\le(1-\mu\eta_n)D_n+\frac{4\beta^2G^2}{m}\eta_n^2. \tag*{(40)}

Insert ηn=2/[μ(n+t0)]\eta_n=2/[\mu(n+t_0)], write s=n+t0s=n+t_0, and suppose Dn≤AB/sD_n\le A_B/s. Then

Dn+1≤AB(s−2)s2+16β2G2μ2ms2≤AB(s−1)s2≤ABs+1,(41)\begin{aligned} D_{n+1}\le\frac{A_B(s-2)}{s^2}+\frac{16\beta^2G^2}{\mu^2ms^2} \\ &\le\frac{A_B(s-1)}{s^2}\le\frac{A_B}{s+1}, \tag*{(41)} \end{aligned}

where the middle step uses AB≥16β2G2/(μ2m)A_B\ge16\beta^2G^2/(\mu^2m) and the last uses (s−1)(s+1)≤s2(s-1)(s+1)\le s^2. Since D0≤AB/t0D_0\le A_B/t_0, induction gives

E∥θN−θΦ∗∥2≤ABN+t0,\mathbb{E}\lVert\theta_N-\theta_\Phi^*\rVert^2\le\frac{A_B}{N+t_0},
AB:=max⁡{t0∥θ0−θΦ∗∥2,16β2G2μ2m},(42)A_B:=\max\left\{t_0\lVert\theta_0-\theta_\Phi^*\rVert^2,\frac{16\beta^2G^2}{\mu^2m}\right\}, \tag*{(42)}

for ηn=2/[μ(n+t0)]\eta_n=2/[\mu(n+t_0)] and t0≥max⁡{2,2L/μ}t_0\ge\max\{2,2L/\mu\}. Markov’s inequality applied to ∥θN−θΦ∗∥2\lVert\theta_N-\theta_\Phi^*\rVert^2 gives Pr⁡(∥θN−θΦ∗∥>εθ)≤AB/[(N+t0)εθ2]\Pr(\lVert\theta_N-\theta_\Phi^*\rVert>\varepsilon_\theta)\le A_B/[(N+t_0)\varepsilon_\theta^2].

Proof of the composed bias and error budget

Proof. Write rA∣P=(1−α)/[α(M0−1)]r_{A\mid P}=(1-\alpha)/[\alpha(M_0-1)]. Write ∇FAP−∇F=(∇FAP−∇FP)+(∇FP−∇F)\nabla F_{AP}-\nabla F=(\nabla F_{AP}-\nabla F_P)+(\nabla F_P-\nabla F). Conditioned on the executed lengths (Mw,Ml)(M_w,M_l), 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

∑t≤T(ut−uˉT)2=∑t≤M(ut−uˉM)2+∑t>M(ut−uˉ>M)2+M(T−M)T(uˉM−uˉ>M)2.(43)\sum_{t\le T}(u_t-\bar{u}_T)^2=\sum_{t\le M}(u_t-\bar{u}_M)^2+\sum_{t>M}(u_t-\bar{u}_{>M})^2+\frac{M(T-M)}{T}(\bar{u}_M-\bar{u}_{>M})^2. \tag*{(43)}

so MvM≤TvTMv_M\le Tv_T and hence vM≤(T/M)vTv_M\le(T/M)v_T, with the suffix terms read as zero when M=TM=T. Second, for Mb=max⁡(1,⌈ρbTb⌉)M_b=\max(1,\lceil\rho_bT_b\rceil) with ρb∼U(ρmin⁡,1)\rho_b\sim\mathcal{U}(\rho_{\min},1), prefixes of length one carry zero variance and the remaining lengths satisfy E[1{Mb>1}Tb/(Mb(Mb−1))]≤1/(M0−1)\mathbb{E}[\mathbf{1}_{\{M_b>1\}}T_b/(M_b(M_b-1))]\le1/(M_0-1) with M0=max⁡(2,⌈ρmin⁡T0⌉)M_0=\max(2,\lceil\rho_{\min}T_0\rceil). Combining the two bounds the prefix-averaged position-pruning bias by CArA∣PC_A r_{A\mid P}, the factor two accounting for the two sides. The second difference is the prefix bias of Eq. (14), contributing CP(1−ρmin⁡)C_P(1-\rho_{\min}) with CP=G(β2U+2β)C_P=G(\beta^2U+2\beta). Adding the two gives

∥∇FAP−∇F∥≤CArA∣P+CP(1−ρmin⁡),\lVert\nabla F_{AP}-\nabla F\rVert\le C_A r_{A\mid P}+C_P(1-\rho_{\min}),
CP:=G(β2U+2β).(44)C_P:=G(\beta^2U+2\beta). \tag*{(44)}

If the composed objective has interior minimizer θAP∗\theta^*_{AP} and FF has curvature at least μF\mu_F on the relevant segment, the segment argument of Sec. B.6 gives

∥θAP∗−θ∗∥≤CArA∣P+CP(1−ρmin⁡)μF.(45)\lVert\theta^*_{AP}-\theta^*\rVert\le\frac{C_A r_{A\mid P}+C_P(1-\rho_{\min})}{\mu_F}. \tag*{(45)}

The L2L^2 triangle inequality ∥θN−θ∗∥≤∥θN−θAP∗∥+∥θAP∗−θ∗∥\lVert\theta_N-\theta^*\rVert\le\lVert\theta_N-\theta^*_{AP}\rVert+\lVert\theta^*_{AP}-\theta^*\rVert, combined with Eq. (42) applied to the composed objective, yields

E∥θN−θ∗∥2≤CArA∣P+CP(1−ρmin⁡)μF+AB,APN+t0,AP(46)\sqrt{\mathbb{E}\lVert\theta_N-\theta^*\rVert^2}\leq\sqrt{\frac{C_A r_{A|P}+C_P(1-\rho_{\min})}{\mu_F}}+\sqrt{\frac{A_{B,A_P}}{N+t_{0,A_P}}} \tag*{(46)}

where μF\mu_F bounds the curvature of FF on the relevant segment and AB,AP,t0,APA_{B,A_P},t_{0,A_P} are the constants of Eq. (42) evaluated for the composed objective. For the composed optimal loss, FAP≥FPF_{A_P}\geq F_P by Jensen’s inequality in the position masks and F≤FP+2βU(1−ρmin⁡)F\leq F_P+2\beta U(1-\rho_{\min}). Chaining these as in Sec. B.5 gives

F(θAP∗)−F(θ∗)≤β2vˉ4rA∣P+4βU(1−ρmin⁡).(47)F(\theta^*_{A_P})-F(\theta^*)\leq\frac{\beta^2\bar{v}}{4}r_{A|P}+4\beta U(1-\rho_{\min}). \tag*{(47)}

□

Shared-Parameter Analysis

This appendix expands the shared-parameter coupling discussed in the introduction.

Shared-Parameter Updates and Signed Token Movement

Let ii index token positions across a pair, pip_i be the current-policy target-token probability, and ϕi=∇θlog⁡pi\phi_i=\nabla_\theta\log p_i its log-probability gradient. Set ci=1/kwc_i=1/k_w for a selected chosen token, ci=−1/klc_i=-1/k_l for a selected rejected token, and ci=0c_i=0 otherwise. Within a region of fixed mask membership,

g=∇θΔ=∑iciϕi.(48)g=\nabla_\theta\Delta=\sum_i c_i\phi_i. \tag*{(48)}

For a small gradient-descent step of size η>0\eta>0 on the pair loss, the parameter change is ηβσ(−βΔ)g\eta\beta\sigma(-\beta\Delta)g. Writing δ\delta for the resulting change, to first order

δlog⁡pi=ηβσ(−βΔ)ϕiTg+O(η2),(49)\delta\log p_i=\eta\beta\sigma(-\beta\Delta)\phi_i^{\mathsf{T}}g+O(\eta^2), \tag*{(49)}
δΔ=ηβσ(−βΔ)∥g∥2+O(η2).\delta\Delta=\eta\beta\sigma(-\beta\Delta)\lVert g\rVert^2+O(\eta^2).

The pair margin increases to first order, yet an individual chosen probability can decrease if ϕiTg<0\phi_i^{\mathsf{T}}g<0. 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 5×10−75\times10^{-7}, DPO β=0.1\beta=0.1, 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 1.5×10−61.5\times10^{-6}, β=0.5\beta=0.5, 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 7.5×10−77.5\times10^{-7}, β=0.5\beta=0.5, 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.

BenchmarkAll/AllRandom/RandomHigh/HighLow/Low
Qwen3-4B
ARC62.80±1.4162.80 \pm1.4162.97±1.4162.97 \pm1.4162.46±1.4262.46 \pm1.4262.97±1.4162.97 \pm1.41
BBH56.16±3.0156.16 \pm3.0156.16±3.0156.16 \pm3.0156.08±3.0156.08 \pm3.0156.33±3.0156.33 \pm3.01
MMLU-Pro42.46±0.4542.46 \pm0.4542.25±0.4542.25 \pm0.4542.24±0.4542.24 \pm0.4542.50±0.4542.50 \pm0.45
MuSR42.46±1.7342.46 \pm1.7343.39±1.7443.39 \pm1.7442.72±1.7442.72 \pm1.7443.25±1.7443.25 \pm1.74
TruthfulQA37.94±1.7037.94 \pm1.7038.07±1.7038.07 \pm1.7036.11±1.6836.11 \pm1.6838.56±1.7038.56 \pm1.70
IFEval43.99±2.1443.99 \pm2.1440.67±2.1140.67 \pm2.1144.36±2.1444.36 \pm2.1443.56±2.1043.56 \pm2.10
GSM8K74.15±1.2174.15 \pm1.2174.98±1.1974.98 \pm1.1968.76±1.2868.76 \pm1.2875.36±1.1975.36 \pm1.19
MATH-Hard37.94±3.4437.94 \pm3.4439.39±3.4539.39 \pm3.4537.25±3.3637.25 \pm3.3639.50±3.4639.50 \pm3.46
Mean accuracy (%)49.7449.7448.7550.25
Qwen3-8B
ARC68.17±1.3668.17 \pm1.3668.09±1.3668.09 \pm1.3668.34±1.3668.34 \pm1.3668.29±1.3668.29 \pm1.36
BBH60.84±2.9860.84 \pm2.9860.80±2.9860.80 \pm2.9860.55±2.9960.55 \pm2.9961.34±2.9861.34 \pm2.98
MMLU-Pro47.63±0.4647.63 \pm0.4647.70±0.4647.70 \pm0.4647.61±0.4647.61 \pm0.4647.68±0.4647.68 \pm0.46
MuSR43.39±1.7743.39 \pm1.7743.78±1.7743.78 \pm1.7742.86±1.7742.86 \pm1.7743.39±1.7743.39 \pm1.77
TruthfulQA36.72±1.6936.72 \pm1.6936.96±1.6936.96 \pm1.6936.84±1.6936.84 \pm1.6936.84±1.6936.84 \pm1.69
IFEval25.88±1.8825.88 \pm1.8825.32±1.8725.32 \pm1.8724.03±1.8424.03 \pm1.8426.06±1.8926.06 \pm1.89
GSM8K78.09±1.1478.09 \pm1.1477.63±1.1577.63 \pm1.1577.86±1.1477.86 \pm1.1478.62±1.1378.62 \pm1.13
MATH-Hard46.25±3.4546.25 \pm3.4547.13±3.4447.13 \pm3.4446.38±3.4946.38 \pm3.4947.29±3.4647.29 \pm3.46
Mean accuracy (%)50.8750.9350.5651.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.

MethodARCBBHMMLU-ProMuSRIFEvalTruthfulQAMean accuracy (%)
All/All25.51±1.2725.51 \pm1.2728.46±2.6428.46 \pm2.6410.59±0.2810.59 \pm0.2835.85±1.7135.85 \pm1.7111.46±1.3711.46 \pm1.3722.40±1.4622.40 \pm1.4622.38
Random/Random28.16±1.3128.16 \pm1.3127.47±2.5527.47 \pm2.5510.86±0.2810.86 \pm0.2836.64±1.7236.64 \pm1.7215.53±1.5615.53 \pm1.5625.09±1.5225.09 \pm1.5223.96
Low/Low27.73±1.3127.73 \pm1.3128.47±2.6928.47 \pm2.6910.84±0.2810.84 \pm0.2839.95±1.7339.95 \pm1.7311.46±1.3711.46 \pm1.3727.54±1.5627.54 \pm1.5624.33
Low/High24.91±1.2624.91 \pm1.2628.92±2.6928.92 \pm2.6911.66±0.2911.66 \pm0.2935.58±1.7035.58 \pm1.7018.30±1.6618.30 \pm1.6622.64±1.4722.64 \pm1.4723.67
High/Low26.11±1.2826.11 \pm1.2829.47±2.7229.47 \pm2.7211.66±0.2911.66 \pm0.2934.79±1.6934.79 \pm1.6912.57±1.4312.57 \pm1.4323.01±1.4723.01 \pm1.4722.93
High/High25.51±1.2725.51 \pm1.2729.99±2.7629.99 \pm2.7611.16±0.2911.16 \pm0.2934.39±1.6834.39 \pm1.6812.20±1.4112.20 \pm1.4123.13±1.4823.13 \pm1.4822.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 β=1\beta= 1, LoRA rank 64 and alpha 128, dropout 0.05 on attention and MLP projections, BFloat16 computation, FlashAttention2, gradient checkpointing, AdamW at learning rate 10−610^{-6}, 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 α=0.6\alpha= 0.6 (uniform response-position sub-sets, selected-token mean reward). Sequence pruning uses ρb∼U(0.5,1.0)\rho_b \sim\mathcal{U}(0.5, 1.0) (prefix truncation with repacking and a matching reference cutoff). Branch pruning uses qw=ql=0.5q_w = q_l = 0.5 (one backward branch per pair, opposite branch forwarded without gradient, 1/qb1/q_b 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 ρb\rho_b 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 (α\alpha=0.6, U(0.5,1)\mathcal{U}(0.5, 1), qwq_w=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 qwq_w = 0.3/0.5/0.7). For sequence pruning, the sampled cutoff matches its distribution (mean ρb\rho_b 0.632/0.755/0.877 against theory 0.625/0.750/0.875, and ρb\rho_b = 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 ρb\rho_b. Peak HBM was not measured across qwq_w, 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 −0.27-0.27, −0.07-0.07, −0.14-0.14, and −0.17-0.17 pp over Full, Sequence, Branch, and Sequence+Branch, respectively. Adding sequence pruning changes it by −0.29-0.29, −0.09-0.09, −0.22-0.22, and −0.25-0.25 pp over Full, Position, Branch, and Position+Branch. Adding branch pruning changes it by −0.26-0.26, −0.12-0.12, −0.19-0.19, and −0.28-0.28 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 −0.95-0.95, +1.52+1.52, −2.07-2.07, and +0.68+0.68 in the four pairings above. Sequence pruning gives −2.01-2.01, +0.47+0.47, −2.58-2.58, and +0.17+0.17. Branch pruning gives +0.92+0.92, −0.21-0.21, +0.35+0.35, and −0.50-0.50. All twelve mean accuracy contrasts are negative. The branch-pruning effect on training wall-clock is consistent in sign: −59.4-59.4, −58.1-58.1, −60.1-60.1, and −58.0-58.0 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 2×4×82 \times4 \times8 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 2×4×82 \times4 \times8 geometry without a batch-size change. Branch pruning uses qw=ql=0.5q_w=q_l=0.5, 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. [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. [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. [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. [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. [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. [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. [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. [8]Tri Dao. 2023. FlashAttention-2: Faster attention with better parallelism and work partitioning. Preprint, arXiv:2307.08691.arxiv.org/abs/2307.08691
  9. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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

Paper details

vlnc:W_k9rnuzz4
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

a large language model · View statement →

Looking for related papers…
Contents