betaFeedback

WorksComputer Science

Directly Maximizing On-policy Expected Accepted Length for Speculative Decoding

Abstract

Speculative decoding accelerates large language model inference by using a lightweight draft model to propose tokens for verification by a target model. Draft training commonly optimizes token-level distribution alignment, but this does not directly optimize the length of the accepted prefix: once a draft token is rejected, all subsequent draft tokens are discarded. We propose FreDraft, an on-policy training method that directly maximizes the expected accepted length of drafts sampled from the current draft model. This objective accounts for first-rejection truncation and induces prefix-aware credit assignment, weighting each token by its contribution to the acceptance of the current and subsequent tokens. To optimize the objective efficiently, we analytically marginalize token-level acceptance rate, using the target model's vocabulary distribution to reduce gradient variance. We further redistribute part of this distribution-level gradient into an explicit penalty for sampled tokens whose probabilities are overestimated by the draft model, while preserving the expected gradient. Experiments across multiple benchmarks and target models show that FreDraft improves accepted length and decoding speedup over strong baselines, achieving faster on-policy training convergence.

Introduction

Large language models (LLMs) have achieved strong performance across a wide range of generation tasks, including reasoning, coding and agentic tasks [19, 50, 43]. But their autoregressive decoding process remains time-consuming because each new token requires one LLM forward pass [37, 10]. Speculative decoding accelerates LLM inference through a draft-verification paradigm (Figure 1 (a)): a lightweight draft model proposes multiple future tokens, and the target LLM verifies them in one forward pass with a rejection-sampling rule that preserves the target distribution [27, 7]. Since acceleration comes from accepting multiple draft tokens per target-model call, the speedup depends heavily on the acceptance rate of tokens in the draft [53, 54].

Figure 1. FReDraft trains on self-generated drafts and accounts for first-rejection truncation. Here α\alpha means token-level acceptance rate and τˉ\bar{\tau} means expected accepted length.

To train the draft model for higher acceptance rate, a typical approach is supervised finetuning (SFT) on target-generated sequences [32, 8, 28], minimizing token-level cross-entropy (CE) loss independently. However, token verification within a draft is not independent; instead, it exhibits “first-rejection truncation” property [21, 16]. Verification proceeds sequentially from the first draft token, and once a token is rejected, all subsequent tokens are discarded. Consequently, a later token contributes to speedup only if its entire prefix survives verification. Inspired by this, some works explore verification-aware draft model training [2]. For example, LK-Losses [40] maximizes exponential decay (ED) weighted token-level log acceptance rate, VSD [58] optimizes a variational objective as lower bound of draft tree utility, whereas DP-ACE [46] proposes to maximize the summed cumulative draft confidence at each position in target-generated sequences.

These verification-aware methods achieve draft model enhancement over naive SFT, but they actually optimize a metric of sequences under target-distribution as a surrogate, which does not match “first-rejection truncation” in practical verification (Figure 1 (b)). First, draft model is trained on sequences following target distribution (or hybrid of draft and target distribution), whereas evaluated on drafts proposed under its own policy, leading to exposure bias. Second, the optimized metrics do not necessarily mean later “first-rejection”. For example, optimizing cumulative draft confidence makes draft model diverge from target severely when target model itself is uncertain (See Appendix § 9.6 for systematic analysis). Recently, Draft-OPD (Lei et al., [26]) proposes on-policy paradigm to train the draft model on its own generated drafts, eliminating exposure bias (Hu et al., [22]) (Figure 1 (c)). However, it applies heuristically designed forward and reverse KL weighted by static ED. Such static schedules cannot capture actual importance of tokens, which depends on decoding context, and target-to-draft probability ratios encountered during verification. As a result, a token constituting the verification bottleneck may receive insufficient weight, whereas tokens following prefixes with low survival probability may be overemphasized, leading to inefficient allocation of the training signal.

Draft accepted length is a metric directly related to speedup ratio of speculative decoding (Sadhukhan et al., [39]; Zhang et al. [53]; An et al. [2]). Given a draft generated by draft model, its expected accepted length can be calculated precisely by summing the prefix survival rate of token at each position. Therefore, this metric intrinsically contains influence of verification result from earlier tokens to later ones (Figure 1 (c.2)), matching first-rejection truncation property (Hu et al., [22]; Wang et al. [45]). Inspired by the advantage of expected accepted length, we propose FReDraft, a draft model training method that directly maximizes the expected accepted length of draft generated by draft model itself, to model first-rejection truncation. The objective naturally matches on-policy paradigm, and derived gradient captures prefix survival and influence of earlier tokens to later tokens in practical verification. But directly optimizing draft model with this gradient remains inefficient. In practice, the gradient requires Monte Carlo (MC) sampling to estimate, from which we identify two factors that make optimization inefficient. First, only target model probabilities for sampled draft tokens can be used to estimate the gradient, leading to high gradient estimation variance and the vocabulary distribution output by target model during verification discarded. Second, over-sampled tokens, for which the draft model assigns higher probability than target model, receive zero gradient. Since on-policy training data is generated by the draft model itself, such over-sampled tokens are common and become ineffective in training. To tackle these difficulties, FReDraft proposes to marginalize single token acceptance rate expectation, which reduces the variance of gradient estimation and enables leveraging of target model vocabulary distribution to supervise draft model training. FReDraft also introduces penalty for over-sampled tokens, allowing frequently-appearing over-sampled tokens to receive non-zero gradient. We summarize the contributions as follows:

  • We formulate draft training as on-policy maximization of expected accepted length, aligning the objective with first-rejection truncation and deriving token-level credit assignment from each token’s contribution to prefix survival.

  • We develop token-level acceptance marginalization to reduce gradient variance with target vocabulary distribution and redistribute part of the resulting gradient into an explicit over-sampled token penalty, enabling efficient optimization while preserving the expected gradient.

  • Experiments across multiple target models and benchmarks show that FReDraft improves accepted draft length and decoding speedup over strong baselines, including Draft-OPD. It also exhibits faster convergence during on-policy training.

FReDraft

Section 2 introduces FReDraft, a draft model on-policy training method that maximizes self-generated drafts’ expected accepted length, enabling first-rejection-truncation-aware training signal allocation. Section 2.1 formulates the expected accepted length objective, characterizes its gradient and identifies two factors resulting in optimization inefficiency. To deal with the two factors, Section 2.2 develops optimization techniques for efficient training. We show the overall outline of Section 2 in Figure 2.

Figure 2. Overview of how FReDraft preserves the verification-aligned objective while constructing an efficient on-policy gradient estimator.

Verification-Aligned Objective

Objective Formulation

Let pp be the fixed target model and qθq_{\theta} the trainable draft model over vocabulary V\mathcal{V}, given a decoding context x∼P\mathbf{x} \sim\mathcal{P} (referring to Draft-OPD Lei et al., [26], P\mathcal{P} is the distribution of decoding context that will be visited by pp and qθq_{\theta} when conducting speculative decoding), speculative decoding first employs qθq_{\theta} to propose a length-LL (L>1L > 1) draft block y=(y1,…,yL)∼qθ\mathbf{y} = (y_1, \ldots, y_L) \sim q_{\theta}. Define ht=(x,y<t)\mathbf{h}_t = (\mathbf{x}, \mathbf{y}_{<t}) and pt(v)=p(v∣ht)p_t(v) = p(v \mid\mathbf{h}_t), qθ,t(v)=qθ(v∣ht)q_{\theta,t}(v) = q_{\theta}(v \mid\mathbf{h}_t) (qθ,t(v)=qθ(v∣x)q_{\theta,t}(v) = q_{\theta}(v \mid\mathbf{x}) for parallel draft model e.g. DFlash Chen et al., [8]). Then during verification, token yty_t is accepted with probability

αt(yt)=min⁡{1,pt(yt)qθ,t(yt)}.(1)\alpha_t(y_t) = \min\left\{1, \frac{p_t(y_t)}{q_{\theta,t}(y_t)}\right\}. \tag*{(1)}

Verification stops at the first rejection, so it evaluates an accepted prefix rather than independent token predictions [27, 7]. Consequently, token yty_t contributes only when every preceding token survives. To model such first-rejection truncation property of verification, we learn qθq_{\theta} by directly maximizing the expected accepted length of the drafts generated by qθq_{\theta}.

Definition 1 (Verification-aligned expected accepted-length objective). Given a decoding context x∼P\mathbf{x} \sim\mathcal{P} and a length- LL draft y=(y1,…,yL)∼qθ\mathbf{y} = (y_1, \ldots, y_L) \sim q_{\theta}, the verification-aligned objective is

Jθ=Ex∼P, y∼qθ[τˉθ(x,y)]=Ex∼P, y∼qθ[∑t=1LSt−1(y)αt(yt)].(2)\mathcal{J}_{\theta} = \mathbb{E}_{\mathbf{x}\sim\mathcal{P},\,\mathbf{y}\sim q_{\theta}}\left[\bar{\tau}_{\theta}(\mathbf{x},\mathbf{y})\right] = \mathbb{E}_{\mathbf{x}\sim\mathcal{P},\,\mathbf{y}\sim q_{\theta}}\left[\sum_{t=1}^{L} S_{t-1}(\mathbf{y})\alpha_t(y_t)\right]. \tag*{(2)}

where τˉθ(x,y)=∑t=1L∏j=1tαj(yj)\bar{\tau}_{\theta}(\mathbf{x},\mathbf{y}) = \sum_{t=1}^{L}\prod_{j=1}^{t}\alpha_j(y_j) is the expected accepted length of y\mathbf{y} (see Appendix C.1 for derivation), and St−1(y)=∏j=1t−1αj(yj)S_{t-1}(\mathbf{y}) = \prod_{j=1}^{t-1}\alpha_j(y_j), with S0(y)=1S_0(\mathbf{y}) = 1, is the probability that verification reaches position tt (i.e. prefix survival rate of prefix y<t\mathbf{y}_{<t}).

Definition 1 defines the expected accepted length maximization objective and further characterizes it as token-level acceptance rate maximization with prefix-survival St−1S_{t-1} as the coefficient, rather than treating all token positions independently. This objective aligns with verification process of speculative decoding in terms of following two aspects: (1) The verified drafts are generated by the draft model qθq_{\theta} itself, matching the real-world scenario and making the objective naturally suitable for on-policy training. (2) The maximized τˉθ(x,y)\bar{\tau}_{\theta}(\mathbf{x},\mathbf{y}) intrinsically captures the influence of earlier token verification result to later tokens, thus matching the first-rejection truncation property of verification.

Gradient Theoretical Characterization

Definition 1 provides a verification-aligned objective based on expected accepted length. We next identify the optimization direction induced from the objective by analyzing its gradient.

Proposition 1 (Prefix-aware gradient). Let Gt=1pt(yt)>qθ,t(yt)∇θlog⁡qθ,t(yt)G_t = \mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}\nabla_\theta\log q_{\theta,t}(y_t) be the gradient for token yty_t at position tt and g^dir(k,t)=SkGt\hat{g}_{\mathrm{dir}}^{(k,t)} = S_kG_t. The gradient of the objective in Equation (2) is

∇θJθ=Ex∼P, y∼qθ[∑t=1L∑k=tLg^dir(k,t)]=Ex∼P, y∼qθ[∑t=1L(∑k=tLSk)Gt].(3)\nabla_\theta J_\theta= \mathbb{E}_{x\sim\mathcal{P},\,y\sim q_\theta}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\hat{g}_{\mathrm{dir}}^{(k,t)}\right] = \mathbb{E}_{x\sim\mathcal{P},\,y\sim q_\theta}\left[\sum_{t=1}^{L}\left(\sum_{k=t}^{L}S_k\right)G_t\right]. \tag*{(3)}

In practice, P\mathcal{P} depends on qθq_\theta but ∇θP\nabla_\theta\mathcal{P} is too hard to estimate. Therefore, referring to Lei et al. [26], Equation (3) omits ∇θP\nabla_\theta\mathcal{P}, and what it actually optimizes is “expected accepted length of draft-model-generated draft for given decoding context x” (See Appendix § 9.§ 2 for derivation). Proposition 1 shows that the objective induces prefix-aware credit assignment. The weight ∑k=tLSk(y)\sum_{k=t}^{L} S_k(\mathbf{y}) for GtG_t aggregates the survival probabilities of all prefixes extending through position tt whose survival depends on token yty_t. Therefore, the optimization weight of a token reflects not only its own acceptance but also its influence on subsequent verification outcomes, matching the first-rejection mechanism.

However, directly training the draft model as Equation (3) remains inefficient, where we identify two key factors. First, the trajectory-dependent weight ∑k=tLSk(y)\sum_{k=t}^{L} S_k(\mathbf{y}) must be estimated through MC sampling and only target probabilities on sampled tokens can be used to estimate it. This leads to high variance and the target vocabulary distribution discarded during on-policy training. Second, over-sampled tokens satisfying pt(yt)<qθ,t(yt)p_t(y_t) < q_{\theta,t}(y_t) receive zero gradient due to the indicator 1pt(yt)>qθ,t(yt)\mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}. Moreover, such tokens frequently appear in training because the training data is generated by qθq_\theta.

Efficient Optimization

To deal with above two factors, as summarized in Figure 2, we develop two techniques, i.e. token-level acceptance rate marginalization (§ 2.2.1) and over-sampled-token penalty (§ 2.2.2), to make the optimization more efficient, while preserving the expected gradient of original objective.

Token-level Expected Acceptance Rate Marginalization

The expectation of gradient in Equation (3) requires Monte Carlo sampling to estimate, introducing high variance. It also leads to that only target probabilities for sampled tokens can be used to estimate the gradient, leaving target vocabulary distribution discarded. Actually, the token-level expected acceptance rate can be computed precisely with no need for MC sampling. Specifically, for a fixed decoding context x\mathbf{x} and draft prefix y<t\mathbf{y}_{<t}, the expected acceptance rate of the next token is given by

At:=Ey∼qθ,t[αt(y)]=∑v∈Vmin⁡{pt(v),qθ,t(v)}=1−DTV(pt,qθ,t).(4)A_t := \mathbb{E}_{y\sim q_{\theta,t}}[\alpha_t(y)] = \sum_{v\in\mathcal{V}}\min\{p_t(v),q_{\theta,t}(v)\} = 1-D_{\mathrm{TV}}(p_t,q_{\theta,t}). \tag*{(4)}

Here DTV(pt,qθ,t)=12∑v∈V∣pt(v)−qθ,t(v)∣D_{\mathrm{TV}}(p_t,q_{\theta,t}) = \frac{1}{2}\sum_{v\in\mathcal{V}}|p_t(v)-q_{\theta,t}(v)| is total variation distance (TVD) [44]. Unlike sampled acceptance event, AtA_t can be computed exactly according to vocabulary distribution of draft and target model, produced during verification. Marginalizing this expected acceptance rate from Equation (3) transforms part of the Monte-Carlo estimated gradient into precise computation, thus yielding a lower-variance estimator of the gradient as follows (See Appendix § 9.§ 3 for full derivation):

Proposition 2 (Expected acceptance rate marginalization). Define the gradient estimator

g^marg(k,t)={−St−1(y)∇θDTV(pt,qθ,t),k=t,AkSk−1Gt,k>t.(5)\hat{\mathbf{g}}_{\mathrm{marg}}^{(k,t)} = \begin{cases} -S_{t-1}(\mathbf{y})\nabla_\theta D_{\mathrm{TV}}(p_t,q_{\theta,t}), & k=t,\\ A_kS_{k-1}G_t, & k>t. \end{cases} \tag*{(5)}

Then Ex∼P, y∼qθ[∑t=1L∑k=tLg^marg(k,t)]=Ex∼P, y∼qθ[∑t=1L∑k=tLg^dir(k,t)]=∇θJθ\mathbb{E}_{x\sim\mathcal{P},\,y\sim q_\theta}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\hat{\mathbf{g}}_{\mathrm{marg}}^{(k,t)}\right] = \mathbb{E}_{x\sim\mathcal{P},\,y\sim q_\theta}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\hat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\right] = \nabla_\theta J_\theta. Under the same Monte Carlo sampling scheme and any fixed direction a\mathbf{a} of compatible dimension, Var⁡(aTg^marg(k,t)∣x,y<t)≤Var⁡(aTg^dir(k,t)∣x,y<t),∀1≤t≤k≤L\operatorname{Var}(\mathbf{a}^{\mathsf{T}}\hat{\mathbf{g}}_{\mathrm{marg}}^{(k,t)}\mid\mathbf{x},\mathbf{y}_{<t}) \leq\operatorname{Var}(\mathbf{a}^{\mathsf{T}}\hat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\mid\mathbf{x},\mathbf{y}_{<t}),\forall1\leq t\leq k\leq L, where Var⁡(⋅)\operatorname{Var}(\cdot) means variance.

Proposition 2 analytically marginalizes the terminal-token sampling in each current and future prefix-credit contribution while retaining trajectory-dependent credit assignment through the draft prefix. Equation (5) consists of two terms: The term with GtG_t is gradient for sampled token yty_t, while the term with ∇θDTV(pt,qθ,t)\nabla_\theta D_{\mathrm{TV}}(p_t,q_{\theta,t}) is gradient over the vocabulary. Equation 5 leverages the target vocabulary distribution available during verification to compute ∇θDTV(pt,qθ,t)\nabla_\theta D_{\mathrm{TV}}(p_t, q_{\theta,t}). Compared with KL, the gradient of TVD w.r.t logits does not shrink when two distributions are close, which has been associated with better optimization efficiency in this case [24, 40] (See Appendix C.5 for detailed discussion). Notably, variance reduction is for g^marg(k,t)\hat{g}_{\mathrm{marg}}^{(k,t)} rather than the summed estimator of ∇θJθ\nabla_\theta J_\theta, which also depends on covariance among draft positions and difficult to characterize theoretically. We provide empirical evidence for total variance reduction in § 4.5.

Over-Sampled Token Penalty

Token-level expected acceptance rate marginalization introduces dense distribution supervision over the vocabulary, but the gradient term for sampled tokens in Equation (5) remains gated by 1pt(yt)>qθ,t(yt)\mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}. Consequently, over-sampled tokens satisfying qθ,t(yt)>pt(yt)q_{\theta,t}(y_t)>p_t(y_t) receive no direct sampled-token correction, although they occur frequently under on-policy sampling. One possible remedy is sampling from a mixture of the target and draft distributions to reduce the ratio of over-sampled tokens and apply importance weighting [17] for unbiased estimation. However, this requires additional auto-regressive sampling from the target model and undermines efficiency. Instead, we redistribute the dense TVD gradient ∇θDTV(pt,qθ,t)\nabla_\theta D_{\mathrm{TV}}(p_t, q_{\theta,t}) available in Equation (5). Specifically, define G~t=1pt(yt)<qθ,t(yt)∇θlog⁡qθ,t(yt)\tilde{G}_t = \mathbb{1}_{p_t(y_t)<q_{\theta,t}(y_t)}\nabla_\theta\log q_{\theta,t}(y_t), then almost everywhere, it admits:

Eyt∼qθ,t[G~t]=∇θDTV(pt,qθ,t).(6)\mathbb{E}_{y_t\sim q_{\theta,t}}[\tilde{G}_t] = \nabla_\theta D_{\mathrm{TV}}(p_t, q_{\theta,t}). \tag*{(6)}

The two sides of Equation (6) have the same conditional expectation given the decoding context xx and draft prefix y<ty_{<t}. We can therefore replace a controlled fraction of the dense TVD term by its sampled representation without changing the expected gradient as follows (see Appendix C.4 for full proof):

Corollary 1 (Expectation-preserving over-sampled-token correction). For any β∈[0,1]\beta\in[0,1], define

g^β:=∑t=1L∑k=tLg^marg(k,t)+β∑t=1LSt−1(y)[∇θDTV(pt,qθ,t)−G~t].(7)\hat{g}_\beta:= \sum_{t=1}^{L}\sum_{k=t}^{L}\hat{g}_{\mathrm{marg}}^{(k,t)} + \beta\sum_{t=1}^{L}S_{t-1}(y)\left[\nabla_\theta D_{\mathrm{TV}}(p_t,q_{\theta,t})-\tilde{G}_t\right]. \tag*{(7)}

Then Ex∼P,y∼qθ[g^β]=Ex∼P,y∼qθ[∑t=1L∑k=tLg^marg(k,t)]=∇θJθ\mathbb{E}_{x\sim\mathcal{P},y\sim q_\theta}[\hat{g}_\beta]=\mathbb{E}_{x\sim\mathcal{P},y\sim q_\theta}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\hat{g}_{\mathrm{marg}}^{(k,t)}\right]=\nabla_\theta J_\theta.

Corollary 1 redistributes existing, rather than introduces additional, gradient information. Expanding Equation (7) gives the position weight wt(β)(y)=[∑k=t+1LAkSk−1(y)]1pt(yt)>qθ,t(yt)−[βSt−1(y)]1pt(yt)<qθ,t(yt)w_t^{(\beta)}(y)=\left[\sum_{k=t+1}^{L}A_kS_{k-1}(y)\right]\mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}-\left[\beta S_{t-1}(y)\right]\mathbb{1}_{p_t(y_t)<q_{\theta,t}(y_t)} for gradient of sampled token ∇θlog⁡qθ,t(yt)\nabla_\theta\log q_{\theta,t}(y_t). Intuitively, such a weight encourages the under-sampled tokens with pt(yt)>qθ,t(yt)p_t(y_t)>q_{\theta,t}(y_t) while penalizing over-sampled tokens with pt(yt)<qθ,t(yt)p_t(y_t)<q_{\theta,t}(y_t). The gradient of dense TVD term ∇θDTV(pt,qθ,t)\nabla_\theta D_{\mathrm{TV}}(p_t,q_{\theta,t}) is weighted by −(1−β)St−1(y)-(1-\beta)S_{t-1}(y). Thus, β=0\beta=0 recovers Equation (5), whereas increasing β\beta transfers more of the dense TVD gradient to explicit sampled-token penalty for over-sampled tokens, enabling them to receive non-zero gradient. This transformation does not introduce additional information for training. However, it weakens the stochastic optimization fluctuation of long-tailed unsampled tokens coupled with vocabulary TVD, but preserves the gradient of over-sampled tokens, which are usually bottleneck for draft accepted length. β\beta works here as a hyperparameter to balance the gradient for over-sampled tokens and vocabulary. See Appendix § 9.§ 5 for detailed discussion about effectiveness of penalty term.

On-Policy Optimization

The objective in Equation (2) is inherently on-policy because its expectation is taken over drafts generated by the current draft model qθq_\theta. Specifically, for a batch of prompts sampled from training dataset, we conduct the standard speculative decoding for them, during which we collect a series of draft blocks yy for each prompt, and corresponding target model distribution pp and draft model distribution qθq_\theta. Then we estimate the gradient with the collected information according to Equation (7). FReDraft reuses the distributions already computed during verification and requires neither auto-regressive target sampling nor additional target forward pass. For ∇θDTV\nabla_\theta D_{\mathrm{TV}},

Algorithm 1 On-Policy Optimization with FReDraft
Require: Prompt set Pp\mathcal{P}_p, frozen target model pp, initialized draft model qθq_\theta, coefficient β\beta, learning rate η\eta
Ensure: Optimized draft model qθq_\theta
1: while not converged do
2: Sample a prompt batch from Pp\mathcal{P}_p
3: Run speculative decoding with qθq_\theta and the frozen pp
4: Collect drafts and their target/draft distributions
5: Compute the batch estimator g^β\hat{g}_\beta with Equation (7)
6: θ←θ+ηg^β\theta\leftarrow\theta+\eta\hat{g}_\beta
7: end while
8: return qθq_\theta

we adopt the widely used top-K target tokens in OPD to estimate it to save memory in practice (Theoretical and empirical results show that top-K introduces negligible error compared with full vocabulary. See Appendix § 7.§ 2 for details) [13]. Compared with existing on-policy method (e.g. Draft-OPD), FReDraft requires no extra target model forward pass and achieves comparable per-training-step efficiency (See Appendix § 11.§ 5 for wall-clock time comparison). We summarize the proposed on-policy algorithm in Algorithm 1. To make the on-policy training more efficient and stable, we refer to Draft-OPD [26] and first warm up the draft model with SFT on target-generated sequences. Then we further finetune it as Algorithm 1.

Comparison with Representative Draft Training Methods

To position FReDraft, Table 1 compares it with representative draft-model training methods. Naive SFT [28, 32, 8] and off-policy verification-aware method (e.g. LK-Losses [40] and D-PACE [46]) train the draft model on target-generated sequences. The difference is that verification-aware methods introduce verification information into training objective. For example, LK-Losses optimizes token-level log acceptance rate, and D-PACE maximizes summed cumulative draft confidence on target-generated sequences (see appendix § 9.6 for more detailed discussion about D-PACE). However, objective of these methods does not come from practical verification and cannot necessarily enable later “first-rejection” in practical verification, due to exposure bias, and the gap between optimized surrogate and draft accepted length. Draft-OPD [26] adopts on-policy distillation [29] to mitigate exposure bias. But it applies ED to weight token-level KL, which can lead to inefficient training signal allocation. In contrast, FReDraft directly maximizes the expected accepted length of drafts generated by the draft model, achieving on-policy training. The derived credit assignment evaluates prefix survival and influence on subsequent verification outcomes in practical verification, matching the first-rejection truncation property of verification process. See Appendix § 6 for detailed discussion about more related works.

MethodObjectiveDataCreditV-PSV-SO
SFTToken-level cross entropyOff-policyUniform / ED××
D-PACESummed cumulative draft confidenceOff-policyAdaptive××
LK-LossesToken-level log acceptance rateOff-policyED××
Draft-OPDForward / Reverse KL divergenceOn-policyED××
FReDraftExpected accepted lengthOn-policyAdaptive✓✓

Table 1. Comparison of draft-model training methods. V-PS and V-SO denote practical-Verification-defined Prefix-Survival and influence on Subsequent verification Outcomes in credit assignment.

Experiments

Experiment Setup

Baselines. We use two draft model architectures: Eagle-3 [32] and DFlash [8]. For both architectures, we implement SFT to train them on target-generated sequences. Based on DFlash architecture (our experimental results show that DFlash performs better than Eagle-3), we implement recent SOTA representative methods with public DFlash implementations as baselines: off-policy verification-aware D-PACE [46], LK-Losses [40], and on-policy Draft-OPD [26]. See Appendix § 10.§ 1 for implementation details of baselines.

Benchmarks. We include the following benchmarks: (1) Mathematics: GSM8K [12], MATH-500 [20] and AIME25 [34]; (2) Coding: MBPP [3], HumanEval [9] and SWE-Lite [25]; (3) Multi-turn Chat: MT-Bench [55]. We report accepted length (τ\tau) and speedup ratio (SR) for benchmarks. See Appendix § 10.§ 3 for details of benchmarks.

Implementations. We use Qwen3-4B / -8B [50] as target model (See Appendix § 11.§ 4 for generalization to other targets). For SFT stage, we use the Qwen3-4B-Instruct-100K dataset released by DFlash [8] for draft model on Qwen3-4B. We leverage Qwen3-8B to regenerate responses for prompts in Qwen3-4B-Instruct-100K, and use the generated sequences as SFT dataset for draft model on Qwen3-8B. For on-policy training stage, we use 16K prompts released by Draft-OPD (Lei et al., [26]) as training set. While for off-policy baselines, we collect target-generated sequences on Qwen3-4B-Instruct-100K and the 16K prompts as training set. We evaluate with temperature set to 0 and 1 respectively. We set L=15L = 15 for training and inference, and select β=0.3\beta= 0.3 for FReDraft based on validation set. We refer to previous works ([8, 26]) and disable the thinking mode of target models (see Appendix § 11.§ 3 for results with thinking-mode-enabled). See Appendix § 7 for more implementation and hyperparameter selection.

Overall Performance

Main Results. According to Table 2, FReDraft achieves the highest average SR and τ\tau among all methods based on DFlash architecture, demonstrating the effectiveness of FReDraft. Specifically, (1) Compared with Eagle-3, DFlash has higher SR, because it generates multiple tokens of the draft in parallel, while Eagle-3 generates the draft tokens auto-regressively. (2) Compared with off-policy methods (DFlash, D-PACE and LK-Losses), on-policy methods (Draft-OPD and FReDraft) obtain draft model with higher average SR and τ\tau, showing the effectiveness of learning from drafts generated by the draft model itself. (3) FReDraft outperforms Draft-OPD, suggesting effectiveness of the proposed expected accepted length optimization method beyond on-policy training paradigm. Besides Table 2, we also evaluate FReDraft in the SGLang inference framework to assess deployment efficiency. See Appendix § 11.§ 1 for the results.

ModelMethodGSM8KMATH-500AIME25MBPPHumanEvalSWE-LiteMT-BenchSRτ\tau
Q3-4BEAGLE-31.99×1.83×1.79×1.78×1.84×1.62×1.74×1.80×5.32
Q3-4BDFlash3.59×4.04×3.43×3.23×3.45×2.14×2.02×3.13×5.73
Q3-4BD-PACE3.74×4.22×3.67×3.30×3.33×2.20×1.97×3.20×5.83
Q3-4BLK-Losses3.92×4.48×3.88×3.35×3.52×2.22×2.00×3.34×6.01
Q3-4BDraft-OPD4.24×4.74×4.00×3.42×3.52×2.16×2.06×3.45×6.23
Q3-4BFReDraft4.62×5.13×4.43×3.72×3.96×2.43×2.25×3.79×6.94
Q3-8BEAGLE-31.94×1.81×1.79×1.69×1.89×1.73×1.63×1.78×5.20
Q3-8BDFlash4.62×5.50×4.93×4.20×4.82×2.69×2.52×4.18×5.67
Q3-8BD-PACE4.87×5.76×5.12×4.33×4.80×2.72×2.43×4.29×5.72
Q3-8BLK-Losses5.14×6.06×5.38×4.52×4.96×2.88×2.69×4.52×6.03
Q3-8BDraft-OPD5.40×6.36×5.62×4.78×5.17×3.06×2.87×4.75×6.34
Q3-8BFReDraft5.82×6.82×6.01×5.14×5.52×3.23×3.08×5.09×7.08
Q3-4BEAGLE-31.89×1.75×1.64×1.69×1.74×1.48×1.70×1.70×5.01
Q3-4BDFlash3.31×3.24×2.44×3.03×3.25×1.90×1.90×2.72×5.34
Q3-4BD-PACE3.49×3.37×2.52×2.97×3.13×1.93×1.82×2.75×5.42
Q3-4BLK-Losses3.60×3.52×2.60×3.08×3.23×1.95×1.97×2.85×5.58
Q3-4BDraft-OPD3.81×3.82×2.88×3.16×3.27×1.91×1.94×2.97×5.70
Q3-4BFReDraft4.14×4.21×3.19×3.43×3.65×2.11×2.17×3.27×6.01
Q3-8BEAGLE-31.87×1.72×1.63×1.64×1.75×1.62×1.58×1.69×4.72
Q3-8BDFlash4.15×4.23×3.09×3.57×4.01×2.08×2.16×3.33×4.53
Q3-8BD-PACE4.27×4.39×3.20×3.69×3.94×2.17×2.10×3.39×4.64
Q3-8BLK-Losses4.52×4.64×3.55×3.84×4.33×2.30×2.28×3.64×4.92
Q3-8BDraft-OPD4.94×5.01×3.76×4.02×4.57×2.42×2.49×3.89×5.23
Q3-8BFReDraft5.38×5.50×4.11×4.36×4.85×2.79×2.74×4.25×5.71

Table 2. Decoding speedup ratio and average acceptance length (τ\tau) on Qwen3 models.

Ablation Study

To evaluate the effectiveness of two techniques in § 2.2 (i.e. token-level acceptance rate expectation marginalization and over-sampled token penalty) and two properties of the gradient in Equation (7) (i.e. prefix-aware credit assignment and TVD), we design the following variants of FReDraft: (1) w/o marg: removes the token-level acceptance rate expectation marginalization and uses the gradient in Equation (3); (2) w/o penalty: removes the over-sampled token penalty and uses the gradient in Equation (5); (3) FReDraft-ED: replaces the prefix-aware credit assignment with ED; (4) FReDraft-KL: replaces the TVD in gradient with forward / reverse KL for accepted and rejected tokens respectively, referring to Draft-OPD. Since KL does not satisfy Equation (6), we do not implement over-sampled token penalty in FReDraft-KL. So the only difference between FReDraft-KL and w/o penalty is the TVD and KL. See Appendix § 10.§ 2 for implementation details. We evaluate them on AIME25, HumanEval and MT-Bench, with DFlash architecture and Qwen3-4B as target model.

We report the results in Table 3, and summarize observations as follows: (1) Gradient estimator in Equation (3) underperforms naive DFlash SFT, indicating that it is not effective for on-policy training. (2) Token-level expected acceptance rate marginalization provides the dominant enhancement. w/o penalty substantially outperforms w/o marg, and performs similarly to FReDraft, indicating that the marginalization is the dominant factor for enhancing the draft model performance. (3) Penalty for over-sampled token can provide additional enhancement. The full FReDraft still outperforms w/o penalty, showing that the penalty for over-sampled token can provide additional enhancement for draft model training. (4) FReDraft-ED slightly underperforms Draft-OPD, which also applies ED to weight the gradient, indicating that only TVD without prefix-aware credit assignment cannot enhance performance stably. (5) FReDraft-KL surpasses Draft-OPD, showing that prefix-aware credit assignment can effectively enhance performance even coupled with KL. But FReDraft-KL still underperforms FReDraft and w/o penalty, indicating the effectiveness of whole FReDraft, where prefix-aware credit assignment is coupled with TVD.

MethodAIME25HumanEvalMT-Bench
SRτ\tauSRτ\tauSRτ\tau
w/o marg3.12×5.723.20×5.781.74×5.09
w/o penalty4.32×7.703.80×6.902.12×5.32
FReDraft-ED3.96×7.203.47×6.302.10×5.26
FReDraft-KL4.19×7.563.66×6.672.12×5.33
FReDraft4.43×7.963.96×7.182.25×5.45

Table 3. Ablation study on Qwen3-4B, temperature = 0.

Hyperparameter Sensitivity

Penalty Strength β\beta. We fix the draft length LL to 15 and set β\beta to {0.0,0.3,0.5,0.7,1.0}\{0.0, 0.3, 0.5, 0.7, 1.0\} respectively. We report τ\tau on AIME25, HumanEval, MT-Bench and the average metric across all seven benchmarks introduced in § 4.1 in Figure 3. The results show that with β\beta from 0 to 1, the performance exhibits a trend of first increasing and then decreasing. The optimal β\beta is different for different benchmarks, and β=0.3\beta= 0.3 achieves the best average performance. See § 4.5 about training dynamics for more analysis on influence of β\beta to training efficiency.

Figure 3. Influence of β\beta.

Draft Length LL. We fix β\beta to 0.3 and set LL to {7,11,15}\{7, 11, 15\} respectively during training and inference. We report the average τ\tau of DFlash, Draft-OPD and FReDraft on all seven benchmarks in Figure 4. The results show that under larger LL, FReDraft demonstrates stronger advantage over baselines. This is because larger LL introduces more gradient noise from later tokens in the draft, which are usually rejected or discarded in verification. However, the prefix-aware credit assignment in FReDraft adaptively assigns low weight to these tokens, leading to better advantage.

Influence of draft length

Figure 4. Influence of LL.

In-Depth Analysis

Training Dynamics Analysis. We report the training dynamics during on-policy stage to show the convergence efficiency of FReDraft. Specifically, we plot the average accepted length of the training-time collected draft blocks on training set and checkpoint at each epoch on evaluation benchmarks.

We also plot training-time normalized gradient variance (see Appendix § 10.§ 4 for implementation details) during training. The results are shown in Figure 5. We summarize observations as follows:

Average accepted length on training set, benchmarks and normalized gradient variance

Figure 5. Average accepted length on training set, benchmarks and normalized gradient variance.

(1) The accepted length of w/o marg improves extremely slowly. We observe that 87.7% of the tokens in the sampled draft receive zero gradient in w/o marg (i.e. gradient in Equation (3)). Its gradient variance is large, leading to low training efficiency. (2) Penalty for over-sampled tokens can further enhance convergence efficiency. Compared with FReDraft, though w/o penalty has similar accepted length curve during early training, its gradient variance increases much faster after middle training stage, and converges at lower accepted length, showing that penalty for over-sampled tokens can reduce the gradient noise from unsampled tokens and enhance convergence efficiency. (3) FReDraft and w/o penalty demonstrate higher convergence efficiency and final performance, showing the advantage of optimizing the draft expected accepted length. FReDraft, w/o penalty and Draft-OPD all leverage the target distribution to supervise draft model training. The difference is that the gradient of FReDraft and w/o penalty is derived from the expected accepted length of draft, while Draft-OPD is heuristically designed forward and reverse KL. Therefore, this comparison isolates the effectiveness of expected accepted length maximization and shows that it can enhance final performance. Moreover, compared with Draft-OPD, the gradient variance of FReDraft and w/o penalty increases more slowly in early training stage. See Appendix § 11.§ 5 for wall-clock time comparison of on-policy training.

Prefix Survival & Token Acceptance Rate Distribution.

To reveal the internal mechanism by which FReDraft improves draft accepted length during inference, we plot the average prefix survival rate and token-level acceptance rate distribution on different positions in all drafts collected on seven benchmarks.

According to the results on 15 draft-generated tokens in Figure 6, the prefix survival rate of all methods decreases as the position steps from 1 to 15. However, the decreasing rate of FReDraft is much slower than other methods, especially at positions 3–8. The slowly-decreasing prefix survival rate of FReDraft enables verification to proceed to later tokens in the draft, thus achieving larger accepted length and higher speedup ratio. In terms of token-level acceptance rate, all methods exhibit extremely high acceptance rate for first several tokens, while FReDraft still shows a slight advantage. For positions 3–8, FReDraft demonstrates significant acceptance-rate advantage over other methods, which is consistent with the observation of prefix survival rate. For later positions, some methods show higher token acceptance rate than FReDraft. But due to first-rejection truncation, verification process rarely reaches these positions, leading to that improvements in acceptance at these positions have limited impact on accepted length.

Figure 6. Token-acceptance & prefix-survival rate distribution.

Conclusion

We propose FReDraft, an on-policy draft-model training method that directly maximizes draft expected accepted length to model the first-rejection truncation property of verification. For efficient optimization, we introduce token-level acceptance-rate marginalization and over-sampled token penalty, enabling unbiased low-variance gradient estimation. Experiments across benchmarks and targets show that FReDraft consistently improves accepted length and speedup over strong baselines.

Detailed Discussion about Speculative Draft Models

Draft Model Architectures

Independent autoregressive drafters. The original speculative decoding and speculative sampling algorithms use a small, independently parameterized language model to generate a draft autoregressively, after which the target model verifies the complete draft in parallel [27, 7]. The draft and target can be developed and deployed independently, and the same verification rule also supports tree-structured proposals [35]. The main limitation is that autoregressive draft generation places a serial model invocation on the critical path for every proposed token. Consequently, increasing the draft length improves the amount of work amortized by one verification call, but also increases drafting latency.

Self-drafting and feature-based drafters. Another line of work reuses computation or representations from the target model. Draft&Verify skips selected target layers to construct a faster self-draft [52], while QSpec uses a complementary low-precision execution of the target as the drafter [54]. Medusa attaches multiple prediction heads to a frozen target model and produces a tree of candidates for several future positions [6]. The EAGLE family instead predicts future target-model features and then maps those features to token distributions [30 b]. Eagle-3 [32] improves candidate-tree construction and training-time feature alignment. These methods reduce or share draft computation, but their draft distributions still need to be aligned with the target distribution for high acceptance.

Parallel block drafters. DFlash formulates drafting as block diffusion: conditioned on features from the target-model prefix, a lightweight draft network predicts an entire masked block in parallel [8]. DSpark likewise uses semi-autoregressive generation with a confidence-aware schedule to expose more parallelism during draft construction [11]. Parallel block drafters remove most of the serial drafting cost and therefore make accepted length especially important: once a block has been produced, accepting a longer prefix adds little drafting overhead. Our experiments use DFlash because it provides this efficient parallel drafting path. The objective proposed in this paper is nevertheless defined over the induced draft distribution and is not tied to a particular neural architecture.

Draft Model Training Methods

Supervised fine-tuning. A common recipe trains the draft model with token-level cross-entropy on sequences generated by the target model [32, 8, 28]. This supervised finetuning (SFT) method is stable. However, it observes target prefixes during training whereas deployment conditions the draft model on its own proposals, leading to exposure bias.

Distribution distillation. Compared with SFT, white-box distillation provides the target distribution over vocabulary as supervision to train the draft, thereby conveying more information than a single hard token and typically achieves better draft model performance [18, 36]. For example, DistillSpec studies draft-model knowledge distillation with different data sources and distribution-divergence objectives [57]. OSD [33], OnlineSpec [38] and ReSpec [10] further model an online training problem for continuous adaptation of the draft model during deployment. They leverage the vocabulary distribution output by target model during deployment to train the draft model continuously.

Verification-aware training. Recent methods begin to explore incorporating property of speculative verification process into draft model training, rather than merely letting the draft model learn to imitate target-generated tokens or distributions. For example, LK-Losses proposes to directly optimize token-level acceptance rate during verification and derives the objective as minimizing the TVD between draft model and target model distribution [40]. However, LK-Losses optimizes the draft distribution at each position with static exponential decay as weight, without modeling the influence from earlier tokens to later tokens. Draft accepted length is a metric directly related to the speedup ratio of speculative decoding given other draft model, target model and device configurations [54, 52]. Therefore, some recent methods take accepted length into account when designing their training method [5, 16, 23, 4, 14]. PARD-2 [2] observes that cumulative confidence of target model over the preceding prefix is closely correlated to the token-level acceptance rate and it weights the gradient of tokens at different positions with the cumulative confidence. Similarly, D-PACE [46] observes that the draft-model summed cumulative confidence on target-generated sequence chunks is empirically related to the average accepted length of drafts, and D-PACE derives position weight in training data according to this surrogate. VSD [58] proposes a variational objective as lower bound of draft tree utility and implement Expectation-Maximization algorithm to optimize the objective. Besides these, two concurrent works VAT [16] and WTV [47] also take verification information into training objective. Despite effectiveness of above verification-aware training method compared with naive SFT, these methods, however, optimize a metric of sequences under target-distribution as surrogate, which does not match “first-rejection truncation” in practical verification. This results in exposure bias and gap between optimized objective and real verification process. Take VSD as an example, although it uses the draft model to propose training sequences, it further leverages the target model to filter and correct training samples for subsequent training process. Therefore, the trial-and-error samples, which are important for mitigating exposure bias, are excluded in training. Moreover, the optimized surrogate may not necessarily lead to later “first-rejection". For example, D-PACE optimizes summed cumulative draft confidence, which makes draft model diverge from target when target model itself is uncertain. In comparison, FReDraft directly optimizes the expected accepted length of draft generated by draft model itself, which naturally matches on-policy training paradigm, thus achieving better performance.

On-policy paradigm. On-policy paradigm trains the draft model on its own generated sequences, matching practical verification process and eliminating exposure bias. An early work is GTO [22] designed specifically for tree-structured draft (e.g. Eagle-3). It adopts semi-on-policy training by combining reinforcement learning (RL) with supervised finetuning. However, GTO implements its RL training recipe referring to GRPO [41], which leads to coarse-grained credit assignment. On-policy distillation (OPD) combines the advantage of on-policy training and dense supervision of distillation, thus becoming a widely-adopted training paradigm in LLM post-training stage [49, 48, 42, 51]. Inspired by the success of OPD in LLM post-training, Draft-OPD proposes to train the draft model on drafts collected by itself during speculative decoding [26]. Its released training recipe applies a forward-KL-style loss to accepted/committed tokens and a sampled reverse-KL estimator to invalidated draft suffixes, together with a static exponential decay over draft positions. On-policy collection removes the train–inference prefix mismatch, but the token-level divergences and static position decay do not represent the realized survival probability of each prefix, leading to inefficient training signal allocation [8, 46]. In contrast, FReDraft retains on-policy collection while deriving its credit assignment from the expected accepted length itself. The resulting weight of a proposal depends on both the acceptance of its prefix and the future accepted-length contributions that the proposal enables.

Implementation Details

Block-Level Estimator Construction

Algorithm 2 expands the estimator-computation step in Algorithm 1. The implementation uses a minimization surrogate whose negative gradient equals the ascent estimator in (7). Here sg⁡(⋅)\operatorname{sg}(\cdot) denotes stop-gradient. The reverse cumulative sum used to compute wtw_t excludes the current position, so ∑k=t+1LAkSk−1=0\sum_{k=t+1}^{L} A_k S_{k-1} = 0 for t=Lt=L; this is the implementation of the “beyond position tt” term in Proposition 2.

Memory-efficient distribution representation

On-policy training requires target-distribution information for collected draft proposals, including rejected tokens and their invalidated suffixes. For NN collected proposal positions and vocabulary V\mathcal{V}, retaining the full target distributions requires O(N∣V∣)O(N|\mathcal{V}|) memory. This storage cost can become prohibitive and cause out-of-memory errors when collecting and replaying many draft blocks. Fol-

Algorithm 2 Block-Level Construction of g^β\widehat{g}_{\beta}

Require: Complete collected draft blocks B\mathcal{B}, frozen target model pp, draft model qθq_{\theta}, penalty coefficient β\beta

Ensure: Batch estimator g^β\widehat{g}_{\beta}

  1. Initialize L←0\mathcal{L} \gets0 and M←0M \gets0

  2. for each y=(y1,…,yL)∈By = (y_1, \ldots, y_L) \in\mathcal{B} do

  3. &nbsp;&nbsp;&nbsp;&nbsp;for t=1,…,Lt = 1, \ldots, L do

  4. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Obtain ptp_t, qθ,tq_{\theta,t}, and the sampled token yty_t from verification / replay

  5. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;αt←exp⁡(min⁡{0,log⁡pt(yt)−log⁡qθ,t(yt)})\alpha_t \gets\exp(\min\{0, \log p_t(y_t) - \log q_{\theta,t}(y_t)\})

  6. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;At←1−DTV(K)(pt,qθ,t)A_t \gets1 - D_{\mathrm{TV}}^{(K)}(p_t, q_{\theta,t})

  7. &nbsp;&nbsp;&nbsp;&nbsp;end for

  8. &nbsp;&nbsp;&nbsp;&nbsp;S0←1S_0 \gets1 and St−1←∏j=1t−1αjS_{t-1} \gets\prod_{j=1}^{t-1} \alpha_j for t=2,…,Lt = 2, \ldots, L

  9. &nbsp;&nbsp;&nbsp;&nbsp;for t=1,…,Lt = 1, \ldots, L do

  10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wt←(∑k=t+1LAkSk−1)1pt(yt)>qθ,t(yt)−(βSt−1)1pt(yt)<qθ,t(yt)w_t \gets\left(\sum_{k=t+1}^{L} A_k S_{k-1}\right)\mathbf{1}_{p_t(y_t)>q_{\theta,t}(y_t)} - \left(\beta S_{t-1}\right)\mathbf{1}_{p_t(y_t)<q_{\theta,t}(y_t)}

  11. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ℓt←−sg⁡(wt)log⁡qθ,t(yt)+sg⁡((1−β)St−1)DTV(K)(pt,qθ,t)\ell_t \gets-\operatorname{sg}(w_t)\log q_{\theta,t}(y_t) + \operatorname{sg}((1-\beta)S_{t-1})D_{\mathrm{TV}}^{(K)}(p_t,q_{\theta,t})

  12. &nbsp;&nbsp;&nbsp;&nbsp;end for

  13. &nbsp;&nbsp;&nbsp;&nbsp;L←L+∑t=1Lℓt\mathcal{L} \gets\mathcal{L} + \sum_{t=1}^{L}\ell_t; M←M+1M \gets M + 1

  14. end for

  15. return g^β=−∇θ(L/M)\widehat{g}_{\beta} = -\nabla_{\theta}(\mathcal{L}/M)

lowing the use of target Top-KK entries in on-policy distillation [1, 13], we compress the stored target distributions to reduce this cost to O(NK)O(NK). Specifically, the implementation is as follows:

Implementation. At position tt, we retain the target top-KK tokens and the sampled draft token:

Kt:=TopK⁡(pt)∪{yt},Tt:=V∖Kt.\mathcal{K}_t := \operatorname{TopK}(p_t) \cup\{y_t\}, \qquad\mathcal{T}_t := \mathcal{V} \setminus\mathcal{K}_t.

During replay, we gather the draft probabilities at the same tokens, using the original vocabulary-wide normalization rather than renormalizing over Kt\mathcal{K}_t. All omitted tokens are aggregated into one residual category with target and draft masses

εp,t:=1−∑v∈Ktpt(v),\varepsilon_{p,t} := 1 - \sum_{v\in\mathcal{K}_t}p_t(v),
εq,t:=1−∑v∈Ktqθ,t(v),(8)\varepsilon_{q,t} := 1 - \sum_{v\in\mathcal{K}_t}q_{\theta,t}(v), \tag*{(8)}
εt:=min⁡{εp,t,εq,t}.\varepsilon_t := \min\{\varepsilon_{p,t},\varepsilon_{q,t}\}.

The resulting TVD on the common retained-token-plus-tail partition is

D~TV(K)(pt,qθ,t):=12[∑v∈Kt∣pt(v)−qθ,t(v)∣+∣εp,t−εq,t∣].\widetilde{D}_{\mathrm{TV}}^{(K)}(p_t,q_{\theta,t}) := \frac{1}{2}\left[\sum_{v\in\mathcal{K}_t}\left|p_t(v)-q_{\theta,t}(v)\right|+\left|\varepsilon_{p,t}-\varepsilon_{q,t}\right|\right].

This representation preserves normalization and all retained probability mass. The draft tail mass εq,t\varepsilon_{q,t} remains differentiable; neither it nor the retained draft probabilities are detached. Because yt∈Kty_t \in\mathcal{K}_t, the sampled-token acceptance ratio and under-/over-sampling indicators are computed from exact probabilities. The compression introduces no additional target-model forward pass.

For brevity, write

Dt:=DTV(pt,qθ,t),D~t:=D~TV(K)(pt,qθ,t),D_t := D_{\mathrm{TV}}(p_t,q_{\theta,t}), \qquad\widetilde{D}_t := \widetilde{D}_{\mathrm{TV}}^{(K)}(p_t,q_{\theta,t}),

and

At:=1−Dt,A~t:=1−D~t.A_t := 1-D_t, \qquad\widetilde{A}_t := 1-\widetilde{D}_t.

Here A~t\widetilde{A}_t is the approximation used for the marginalized acceptance coefficient in Algorithm 2.

Next, we provide theoretical analysis and empirical analysis to show that the approximation error is negligible in practice.

Theoretical bounds

The approximation error is controlled by the omitted probability mass, independently of vocabulary size. Throughout the analysis, the target distribution, sampled prefix, and realized retained set are held fixed during differentiation. The gradient statements apply away from the nondifferentiable equality boundaries of the absolute-value terms and concern tail aggregation in exact arithmetic.

Proposition 3 (TVD and logit-gradient error under tail aggregation). Let qθ,t=softmax⁡(zt)q_{\theta,t} = \operatorname{softmax}(z_t) and define εt\varepsilon_t as in Equation (8). Then

0≤Dt−D~t=A~t−At≤εt,(9)0 \le D_t - \widetilde{D}_t = \widetilde{A}_t - A_t \le\varepsilon_t, \tag*{(9)}
∥∇ztDt−∇ztD~t∥1≤2εt,(10)\left\lVert\nabla_{z_t}D_t - \nabla_{z_t}\widetilde{D}_t \right\rVert_1 \le2\varepsilon_t, \tag*{(10)}
∥∇ztDt−∇ztD~t∥2≤2εt.(11)\left\lVert\nabla_{z_t}D_t - \nabla_{z_t}\widetilde{D}_t \right\rVert_2 \le\sqrt{2}\varepsilon_t. \tag*{(11)}

Furthermore, with Jt:=∂zt/∂θJ_t := \partial z_t/\partial\theta,

∥∇θDt−∇θD~t∥2≤2∥Jt∥opεt,(12)\left\lVert\nabla_{\theta}D_t - \nabla_{\theta}\widetilde{D}_t \right\rVert_2 \le\sqrt{2}\left\lVert J_t \right\rVert_{\mathrm{op}}\varepsilon_t, \tag*{(12)}

where ∥⋅∥op\lVert\cdot\rVert_{\mathrm{op}} denotes the Euclidean operator norm.

Proposition 3 bounds both quantities affected by compression: the marginalized acceptance coefficient and the dense TVD gradient. Importantly, the bounds depend on the smaller omitted mass, rather than the sum of the target and draft tail masses. They hold pointwise for every realized retained set, including when that set contains the sampled token.

We can also bound the perturbation of the complete block-level gradient estimator. Let g^β\widehat{g}_{\beta} denote the full-vocabulary estimator in Equation (7), and let g^β(K)\widehat{g}_{\beta}^{(K)} denote its compressed implementation in Algorithm 2.

Corollary 2 (Compression error of the block-level estimator). Suppose that, for all relevant positions, prefixes, and tokens,

∥∇θlog⁡qθ,t(v)∥2≤C.(13)\left\lVert\nabla_{\theta}\log q_{\theta,t}(v) \right\rVert_2 \le C. \tag*{(13)}

For any β∈[0,1]\beta\in[0,1], evaluating the full and compressed estimators on the same sampled block gives

∥g^β(K)−g^β∥2≤C∑k=1L(k−β)Sk−1εk.(14)\left\lVert\widehat{g}_{\beta}^{(K)}-\widehat{g}_{\beta} \right\rVert_2 \le C\sum_{k=1}^{L}(k-\beta)S_{k-1}\varepsilon_k. \tag*{(14)}

Consequently, under on-policy draft sampling with the decoding-context distribution held fixed during differentiation,

∥E[g^β(K)]−∇θJ(θ;θˉ)∥2≤CE[∑k=1L(k−β)Sk−1εk],(15)\left\lVert\mathbb{E}\left[\widehat{g}_{\beta}^{(K)}\right]-\nabla_{\theta}J(\theta;\bar{\theta}) \right\rVert_2 \le C\mathbb{E}\left[\sum_{k=1}^{L}(k-\beta)S_{k-1}\varepsilon_k\right], \tag*{(15)}

where J(θ;θˉ)J(\theta;\bar{\theta}) is the fixed-context-distribution objective defined in Appendix § 9.§ 2.

Thus, the full-vocabulary estimator retains its exact expectation-preservation guarantee, while the compressed implementation has a tail-mass-dependent approximation error. The proofs of both results are provided after the following empirical discussion.

Empirical evidence

We use K=16K = 16 for FReDraft and its corresponding loss variants. Empirically, the target top-16 entries cover 99.7% of the target probability mass and 97.6% of the draft probability mass on average. Additionally retaining the sampled token can only decrease the omitted masses. Let E^\widehat{\mathbb{E}} denote averaging over the distributions used for these coverage measurements. Applying Proposition 3 pointwise and averaging gives

E^[Dt−D~t]≤E^[εt]≤E^[εp,t],\widehat{\mathbb{E}}\left[D_t-\widetilde{D}_t\right] \le\widehat{\mathbb{E}}[\varepsilon_t] \le\widehat{\mathbb{E}}[\varepsilon_{p,t}],
E^[∥∇ztDt−∇ztD~t∥2]≤2E^[εt]≤2E^[εp,t].\widehat{\mathbb{E}}\left[\left\lVert\nabla_{z_t}D_t-\nabla_{z_t}\widetilde{D}_t \right\rVert_2\right] \le\sqrt{2}\widehat{\mathbb{E}}[\varepsilon_t] \le\sqrt{2}\widehat{\mathbb{E}}[\varepsilon_{p,t}].

Using the reported rounded target-tail mass of 0.003, these inequalities give approximate upper bounds of 3.0×10−33.0 \times10^{-3} for the mean TVD error and 2×0.003≈4.24×10−3\sqrt{2} \times0.003 \approx4.24 \times10^{-3} for the mean Euclidean logit-gradient error. Equivalently, the average marginalized acceptance rate is overestimated by at most approximately 0.3 percentage points. These measurements support using K=16K = 16 as a memory-efficient approximation with small average absolute error.

Proofs

Proof of Proposition 3. Suppress the position index and write q=softmax⁡(z)q = \operatorname{softmax}(z). If the tail is empty, the full and compressed expressions coincide, so all bounds hold with zero error. Otherwise, define the positive and negative discrepancies within the tail:

U:=∑v∈T(q(v)−p(v))+,V:=∑v∈T(p(v)−q(v))+.U := \sum_{v \in\mathcal{T}} (q(v)-p(v))_{+}, \qquad V := \sum_{v \in\mathcal{T}} (p(v)-q(v))_{+}.

where (a)+:=max⁡{a,0}(a)_{+} := \max\{a,0\}. The retained terms are identical in DD and D~\widetilde{D}, while

∑v∈T∣q(v)−p(v)∣=U+V,εq−εp=U−V.\sum_{v \in\mathcal{T}} |q(v)-p(v)| = U+V, \qquad\varepsilon_q-\varepsilon_p = U-V.

Therefore,

D−D~=12(U+V−∣U−V∣)=min⁡{U,V}≤min⁡{εq,εp}=ε.D-\widetilde{D} = \frac{1}{2}(U+V-|U-V|)=\min\{U,V\}\leq\min\{\varepsilon_q,\varepsilon_p\}=\varepsilon.

Here U≤εqU \leq\varepsilon_q and V≤εpV \leq\varepsilon_p. Since A~−A=D−D~\widetilde{A}-A=D-\widetilde{D}, this proves Equation (9).

For the gradient, define

sv:=sign⁡(q(v)−p(v)),σ:=sign⁡(εq−εp).s_v := \operatorname{sign}(q(v)-p(v)), \qquad\sigma:= \operatorname{sign}(\varepsilon_q-\varepsilon_p).

Away from the equality boundaries, differentiating the full and compressed TVDs gives

Δz:=∇zD−∇zD~=12∑v∈T(sv−σ)∇zq(v).\Delta_z := \nabla_z D-\nabla_z\widetilde{D}=\frac{1}{2}\sum_{v \in\mathcal{T}}(s_v-\sigma)\nabla_z q(v).

Only tail tokens whose individual discrepancy has the opposite sign to the aggregate tail discrepancy contribute to this difference. Let

M:={v∈T:(q(v)−p(v))(εq−εp)<0},m:=q(M).\mathcal{M}:=\{v \in\mathcal{T}:(q(v)-p(v))(\varepsilon_q-\varepsilon_p)<0\}, \qquad m:=q(\mathcal{M}).

Then

Δz=−σ∑v∈M∇zq(v)=−σ∇zq(M).(16)\Delta_z=-\sigma\sum_{v \in\mathcal{M}}\nabla_z q(v)=-\sigma\nabla_z q(\mathcal{M}). \tag*{(16)}

If εq>εp\varepsilon_q>\varepsilon_p, every token in M\mathcal{M} satisfies q(v)<p(v)q(v)<p(v), and hence

m=q(M)≤p(M)≤εp.m=q(\mathcal{M})\leq p(\mathcal{M})\leq\varepsilon_p.

If εq<εp\varepsilon_q<\varepsilon_p, then m≤q(T)=εqm\leq q(\mathcal{T})=\varepsilon_q. Thus, in either case,

m≤min⁡{εp,εq}=ε.m\leq\min\{\varepsilon_p,\varepsilon_q\}=\varepsilon.

The softmax Jacobian gives

∂q(M)∂z(v)=q(v)(1v∈M−m)={q(v)(1−m),v∈M,−mq(v),v∉M.\frac{\partial q(\mathcal{M})}{\partial z(v)} =q(v)(\mathbb{1}_{v\in\mathcal{M}}-m) =\begin{cases} q(v)(1-m), & v\in\mathcal{M},\\ -mq(v), & v\notin\mathcal{M}. \end{cases}

Using Equation (16),

∥Δz∥1=(1−m)∑v∈Mq(v)+m∑v∉Mq(v)=2m(1−m)≤2ε.\begin{aligned} \lVert\Delta_z\rVert_1=(1-m)\sum_{v\in\mathcal{M}}q(v)+m\sum_{v\notin\mathcal{M}}q(v) \\ &=2m(1-m)\leq2\varepsilon. \end{aligned}

Similarly,

∥Δz∥22=(1−m)2∑v∈Mq(v)2+m2∑v∉Mq(v)2≤(1−m)2m2+m2(1−m)2=2m2(1−m)2≤2ε2.\begin{aligned} \lVert\Delta_z\rVert_2^2=(1-m)^2\sum_{v\in\mathcal{M}}q(v)^2+m^2\sum_{v\notin\mathcal{M}}q(v)^2 \\ &\leq(1-m)^2m^2+m^2(1-m)^2 \\ &=2m^2(1-m)^2\leq2\varepsilon^2. \end{aligned}

This proves Equations (10) and (11).

Finally, the chain rule yields

∇θDt−∇θD~t=JtT(∇ztDt−∇ztD~t).\nabla_\theta D_t-\nabla_\theta\widetilde{D}_t=\mathbf{J}_t^{\mathsf{T}}\left(\nabla_{z_t}D_t-\nabla_{z_t}\widetilde{D}_t\right).

Taking the Euclidean norm and applying Equation (11) proves Equation (12).

Proof of Corollary 2. Define

δt:=Dt−D~t,et:=∇θDt−∇θD~t.\delta_t := D_t - \widetilde{D}_t,\qquad e_t := \nabla_\theta D_t - \nabla_\theta\widetilde{D}_t.

By Proposition 3, 0≤δt≤εt0 \le\delta_t \le\varepsilon_t. The parameter-space counterpart of Equation (16), together with the score bound in Equation (13), gives

∥et∥2=∥∑v∈Mtqθ,t(v)∇θlog⁡qθ,t(v)∥2≤Cqθ,t(Mt)≤Cεt.\lVert e_t\rVert_2 = \left\lVert\sum_{v\in\mathcal{M}_t} q_{\theta,t}(v)\nabla_\theta\log q_{\theta,t}(v)\right\rVert_2 \le Cq_{\theta,t}(\mathcal{M}_t) \le C\varepsilon_t.

Recall that Gt=1pt(yt)>qθ,t(yt)∇θlog⁡qθ,t(yt)G_t = \mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}\nabla_\theta\log q_{\theta,t}(y_t) and that G~t\widetilde{G}_t is the corresponding over-sampled-token score term. Expanding Equation (7), the full-vocabulary estimator is

g^β=∑t=1L[(∑k=t+1LAkSk−1)Gt−(1−β)St−1∇θDt−βSt−1G~t].\widehat{g}_\beta= \sum_{t=1}^{L}\left[\left(\sum_{k=t+1}^{L} A_kS_{k-1}\right)G_t-(1-\beta)S_{t-1}\nabla_\theta D_t-\beta S_{t-1}\widetilde{G}_t\right].

The compressed implementation replaces AkA_k by A~k\widetilde{A}_k and DtD_t by D~t\widetilde{D}_t. The quantities St−1S_{t-1}, GtG_t, and G~t\widetilde{G}_t remain unchanged because the sampled-token probabilities are exact. Since A~k−Ak=δk\widetilde{A}_k-A_k=\delta_k, subtracting the two estimators on the same sampled block gives

g^β(K)−g^β=(1−β)∑t=1LSt−1et+∑t=1L∑k=t+1LSk−1δkGt.\widehat{g}^{(K)}_\beta-\widehat{g}_\beta=(1-\beta)\sum_{t=1}^{L}S_{t-1}e_t +\sum_{t=1}^{L}\sum_{k=t+1}^{L}S_{k-1}\delta_kG_t.

The score assumption implies ∥Gt∥2≤C\lVert G_t\rVert_2\le C. Therefore,

∥g^β(K)−g^β∥2≤C(1−β)∑t=1LSt−1εt+C∑t=1L∑k=t+1LSk−1εk=C∑k=1L(k−β)Sk−1εk.(17)\begin{aligned} \left\lVert\widehat{g}^{(K)}_\beta-\widehat{g}_\beta\right\rVert_2 \le C(1-\beta)\sum_{t=1}^{L}S_{t-1}\varepsilon_t +C\sum_{t=1}^{L}\sum_{k=t+1}^{L}S_{k-1}\varepsilon_k \\ &= C\sum_{k=1}^{L}(k-\beta)S_{k-1}\varepsilon_k. \tag*{(17)} \end{aligned}

This proves Equation (14).

Under the stated on-policy and fixed-context-distribution assumptions, Corollary 1 gives

E[g^β]=∇θJ(θ;θˉ).\mathbb{E}[\widehat{g}_\beta]=\nabla_\theta J(\theta;\bar{\theta}).

Taking expectations in Equation (17) and using ∥E[X]∥2≤E[∥X∥2]\lVert\mathbb{E}[X]\rVert_2\le\mathbb{E}[\lVert X\rVert_2] proves Equation (15). □

Hyperparameters and β\beta Selection

Table 4 summarizes the on-policy training configuration used for FReDraft and its loss ablations. Unless a sensitivity experiment explicitly varies LL or β\beta, the same values are used for all methods in the comparison. The target is frozen throughout this stage and only the DFlash draft-network parameters are optimized. In Table 4, L=15L=15 is a widely used experiment setting in previous works, including DFlash and Draft-OPD (Notably, the two works set DFlash block size as 16, with one anchor token generated by target model. So the draft length is also 15). To select penalty coefficient β\beta, we randomly sample 10% prompts from the 16K prompts released by Draft-OPD as validation set. Then with the selected β=0.3\beta=0.3, we use all 16K prompts to conduct FReDraft on-policy training to obtain results in § 4.

Other Key Implementation Details

Draft initialization and DFlash replay. We initialize from the SFT DFlash checkpoints described in § 4.1. For both Qwen3 targets, the DFlash drafter contains five transformer layers and consumes hidden states from target layers {1,9,17,25,33}\{1, 9, 17, 25, 33\}. Its configured block size is 16: the first entry is an already available anchor and the remaining 15 entries are future-token proposals predicted in parallel. For the first speculative block, response token zero—sampled during target prefill—is the anchor; subsequent blocks are anchored at the preceding verification boundary. This reproduces the layout used by DFlash inference.

HyperparameterValue
Target modelsQwen3-4B and Qwen3-8B
Draft architecture5-layer DFlash
Draft length LL15
Target distribution retained support KK16
Penalty coefficient β\beta0.3
ED coefficient (FReDraft-ED only)0.8
Training epochs8
Prompt batch size12
Micro-batch size per draft worker1
Update-accumulation steps10
Learning rate2×10−42 \times10^{-4}
Training proposal samplingtemperature 1.0, top-pp = 1.0

Table 4. On-policy training hyperparameters.

During rollout, we record every verification boundary, every proposed token, its offset within the block, its target log-probability, and the retained target-distribution entries. Accepted proposals are present in the committed response, whereas the first rejected proposal and its remaining invalidated suffix are carried in rejected-suffix metadata. During training replay, the two streams are joined by (sample, anchor, offset) to reconstruct the original on-policy block. We use response-anchor stride one, disable random anchor subsampling, and do not cap the number of rejected-suffix tokens. A block is used only if all proposal offsets are recovered; this prevents a truncated suffix from being interpreted as a shorter draft.

Distribution capture and numerical stability. The frozen target logits used for the loss are captured from the verification/replay computation already required to obtain DFlash target features. The draft probabilities at the same token IDs are gathered from the trainable draft logits, and the remaining draft mass is computed by subtraction. Consequently, constructing the FReDraft loss requires no additional target-model forward pass relative to the on-policy DFlash replay. Probability ratios are evaluated in log space as exp⁡(min⁡{0,log⁡pt(yt)−log⁡qθ,t(yt)})\exp(\min\{0, \log p_t(y_t) - \log q_{\theta,t}(y_t)\}). The frozen target and the draft network use the same tokenizer and vocabulary.

Training and evaluation systems. Training is implemented on top of the VERL on-policy distillation pipeline with FSDP for the draft learner and SGLang for DFlash rollout. In the Qwen3-4B configuration, three A100-80GB GPUs host draft-model workers and one A100-80GB GPU hosts the frozen target worker. The target model is always run in evaluation mode, and thinking mode is disabled unless explicitly stated. For evaluation, all methods use the same tokenizer, prompt template, stopping criteria, DFlash block size, and target-only baseline. We report results at temperatures 0 and 1 as specified in § 4.1; greedy evaluation uses top-kk = 1, while temperature-1 evaluation uses the untruncated categorical distribution. Accepted length counts the number of output tokens accepted per target verification call, without the resampling token or anchor token generated by the target model.

Theoretical Analysis

Derivation of Expected Acceptance Length of Given Draft

Fix a context x\mathbf{x} and a draft y=(y1,…,yL)\mathbf{y}=(y_1,\ldots,y_L). Let Zt∈{0,1}Z_t \in\{0,1\} indicate that the token at position tt is accepted by speculative verification, and let

It:=∏j=1tZjI_t := \prod_{j=1}^{t} Z_j

indicate that the first tt draft tokens are all accepted. Since verification stops at the first rejection, the number of accepted draft tokens is

τ(x,y)=∑t=1LIt.(18)\tau(\mathbf{x},\mathbf{y})=\sum_{t=1}^{L} I_t. \tag*{(18)}

Conditioned on reaching position jj, the acceptance probability of yjy_j is αj(yj)\alpha_j(y_j) as defined in Equation (1). Applying the chain rule of conditional probability therefore gives

Pr⁡(It=1∣x,y)=∏j=1tαj(yj).\Pr(I_t=1\mid\mathbf{x},\mathbf{y})=\prod_{j=1}^{t}\alpha_j(y_j).

Taking the conditional expectation of Equation (18) and using linearity of expectation yields

E[τ(x,y)∣x,y]=∑t=1LPr⁡(It=1∣x,y)=∑t=1L∏j=1tαj(yj)=τˉθ(x,y).\mathbb{E}[\tau(\mathbf{x},\mathbf{y})\mid\mathbf{x},\mathbf{y}] =\sum_{t=1}^{L}\Pr(I_t=1\mid\mathbf{x},\mathbf{y}) =\sum_{t=1}^{L}\prod_{j=1}^{t}\alpha_j(y_j) =\bar{\tau}_{\theta}(\mathbf{x},\mathbf{y}).

Thus, averaging τˉθ\bar{\tau}_{\theta} over contexts and drafts gives the objective in Equation (2).

Derivation of (3)

The decoding-context distribution P\mathcal{P} is induced by on-policy rollouts and therefore changes with the draft model qθq_{\theta} across training iterations, but ∇θP\nabla_{\theta}\mathcal{P} is too hard to estimate. Therefore, previous on-policy method Draft-OPD [26] does not differentiate P\mathcal{P} in the gradient. FReDra​​ft follows this implementation in practice. Specifically, within each learner update, the decoding contexts have already been collected and are treated as fixed when computing the block-level gradient. Formally, let θˉ\bar{\theta} denote the behavior parameters used to generate the current rollout batch, and write the corresponding context distribution as Pθˉ\mathcal{P}_{\bar{\theta}}. The objective optimized in one learner update can be written as

J(θ;θˉ):=Ex∼Pθˉ[Jθ(x)],Jθ(x):=Ey∼qθ(⋅∣x)[τˉθ(x,y)].J(\theta;\bar{\theta}) := \mathbb{E}_{\mathbf{x}\sim\mathcal{P}_{\bar{\theta}}}[J_{\theta}(\mathbf{x})], \qquad J_{\theta}(\mathbf{x}) := \mathbb{E}_{\mathbf{y}\sim q_{\theta}(\cdot\mid\mathbf{x})}[\bar{\tau}_{\theta}(\mathbf{x},\mathbf{y})].

The gradient is taken with respect to the learner parameters θ\theta while keeping the rollout parameters θˉ\bar{\theta} fixed, giving

∇θJ(θ;θˉ)=Ex∼Pθˉ[∇θJθ(x)].(19)\nabla_{\theta}J(\theta;\bar{\theta})=\mathbb{E}_{\mathbf{x}\sim\mathcal{P}_{\bar{\theta}}}[\nabla_{\theta}J_{\theta}(\mathbf{x})]. \tag*{(19)}

After the draft model is updated, new on-policy rollouts refresh Pθˉ\mathcal{P}_{\bar{\theta}}, so the context distribution tracks the current draft model across training iterations.

In contrast, if one defines a fully coupled trajectory-level objective

Jtraj(θ):=Ex∼Pθ[Jθ(x)],J_{\mathrm{traj}}(\theta):=\mathbb{E}_{\mathbf{x}\sim\mathcal{P}_{\theta}}[J_{\theta}(\mathbf{x})],

then its total derivative contains an additional visitation-distribution term,

∇θJtraj(θ)=Ex∼Pθ[∇θJθ(x)]+Ex∼Pθ[Jθ(x)∇θlog⁡Pθ(x)].\nabla_{\theta}J_{\mathrm{traj}}(\theta)=\mathbb{E}_{\mathbf{x}\sim\mathcal{P}_{\theta}}[\nabla_{\theta}J_{\theta}(\mathbf{x})]+\mathbb{E}_{\mathbf{x}\sim\mathcal{P}_{\theta}}[J_{\theta}(\mathbf{x})\nabla_{\theta}\log\mathcal{P}_{\theta}(\mathbf{x})].

The second term assigns credit to earlier draft decisions through their influence on future verification boundaries and hence on which decoding contexts are subsequently visited. Estimating this term would require trajectory-level credit assignment across multiple speculative-decoding blocks, rather than the block-level credit assignment studied in this work, and would introduce additional long-horizon Monte Carlo variance and result in unstable training according to previous works about on-policy distillation [1]. We therefore optimize the conditional block objective in Equation (19), while refreshing the context distribution through repeated on-policy rollout.

We now derive ∇θJθ(x)\nabla_\theta J_\theta(x) for a fixed decoding context xx. The outer expectation over x∼P‾θx \sim\overline{\mathcal{P}}_\theta can then be restored according to Equation (19). According to the definition of decoding context distribution P\mathcal{P} referring to Draft-OPD, P\mathcal{P} also depends on the draft model qθq_\theta. Write mt(v):=min⁡{pt(v),qθ,t(v)}m_t(v) := \min\{p_t(v), q_{\theta,t}(v)\}. For every length-kk prefix, its proposal probability multiplied by its survival probability satisfies

qθ(y1:k∣x)∏j=1kαj(yj)=∏j=1kmj(yj).(20)q_\theta(y_{1:k} \mid x) \prod_{j=1}^{k} \alpha_j(y_j) = \prod_{j=1}^{k} m_j(y_j). \tag*{(20)}

Consequently, the conditional objective can be written as the finite sum

Jθ(x)=∑k=1L∑y1:k∈Vk∏j=1kmj(yj).(21)J_\theta(x) = \sum_{k=1}^{L} \sum_{y_{1:k} \in\mathcal{V}^k} \prod_{j=1}^{k} m_j(y_j). \tag*{(21)}

The target model is fixed, and, away from the measure-zero boundaries pt(v)=qθ,t(v)p_t(v) = q_{\theta,t}(v),

∇θmt(v)=1pt(v)>qθ,t(v)∇θqθ,t(v)=mt(v)1pt(v)>qθ,t(v)∇θlog⁡qθ,t(v).(22)\nabla_\theta m_t(v) = \mathbb{1}_{p_t(v)>q_{\theta,t}(v)} \nabla_\theta q_{\theta,t}(v) = m_t(v) \mathbb{1}_{p_t(v)>q_{\theta,t}(v)} \nabla_\theta\log q_{\theta,t}(v). \tag*{(22)}

Differentiating Equation (21) with the product rule and then using Equations (20) and (22) gives

∇θJθ(x)=∑k=1L∑y1:k(∏j=1kmj(yj))∑t=1k1pt(yt)>qθ,t(yt)∇θlog⁡qθ,t(yt)=Ey∼qθ[∑t=1L∑k=tL(∏j=1kαj(yj))1pt(yt)>qθ,t(yt)∇θlog⁡qθ,t(yt)]=Ey∼qθ[∑t=1L∑k=tLSk(y)Gt]=Ey∼qθ[∑t=1L∑k=tLg^dir(k,t)].\begin{aligned} \nabla_\theta J_\theta(x) &= \sum_{k=1}^{L} \sum_{y_{1:k}} \left(\prod_{j=1}^{k} m_j(y_j)\right) \sum_{t=1}^{k} \mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)} \nabla_\theta\log q_{\theta,t}(y_t) \\ &= \mathbb{E}_{y\sim q_\theta}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\left(\prod_{j=1}^{k}\alpha_j(y_j)\right)\mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}\nabla_\theta\log q_{\theta,t}(y_t)\right] \\ &= \mathbb{E}_{y\sim q_\theta}\left[\sum_{t=1}^{L}\sum_{k=t}^{L} S_k(y)G_t\right] = \mathbb{E}_{y\sim q_\theta}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\widehat{g}_{\mathrm{dir}}^{(k,t)}\right]. \end{aligned}

Here tt indexes the token receiving gradient credit, while k≥tk \ge t indexes the surviving prefix whose contribution is assigned to that token. Restoring the outer expectation over x∼Px \sim\mathcal{P} proves Equation (3).

Proof of Proposition 2

For compactness, define Gt:=1pt(yt)>qθ,t(yt)∇θlog⁡qθ,t(yt)G_t := \mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}\nabla_\theta\log q_{\theta,t}(y_t), St:=∏j=1tαj(yj)S_t := \prod_{j=1}^{t}\alpha_j(y_j), and Fr:=σ(x,y<r)\mathcal{F}_r := \sigma(x,y_{<r}). Recall that g^dir(k,t)=SkGt\widehat{g}_{\mathrm{dir}}^{(k,t)} = S_kG_t for $1 \le t \le k \le L$. We show that each term in Equation (5) is the exact conditional expectation of its corresponding direct prefix-credit contribution.

First consider the current contribution k=tk=t and condition on Ft\mathcal{F}_t, i.e., on (x,y<t)(x,y_{<t}). Since St−1S_{t-1} is then fixed and αt(v)=1\alpha_t(v)=1 whenever pt(v)>qθ,t(v)p_t(v)>q_{\theta,t}(v),

Eyt∼qθ,t[g^dir(t,t)∣Ft]=Eyt∼qθ,t[StGt∣Ft]=St−1∑v:pt(v)>qθ,t(v)∇θqθ,t(v)=−St−1∇θDTV(pt,qθ,t)=g^marg(t,t).(23)\begin{aligned} \mathbb{E}_{y_t\sim q_{\theta,t}}\left[\widehat{g}_{\mathrm{dir}}^{(t,t)} \mid\mathcal{F}_t\right] &= \mathbb{E}_{y_t\sim q_{\theta,t}}\left[S_tG_t \mid\mathcal{F}_t\right] \\ &= S_{t-1}\sum_{v:p_t(v)>q_{\theta,t}(v)}\nabla_\theta q_{\theta,t}(v) \\ &= -S_{t-1}\nabla_\theta D_{\mathrm{TV}}(p_t,q_{\theta,t}) = \widehat{g}_{\mathrm{marg}}^{(t,t)}. \tag*{(23)} \end{aligned}

The penultimate equality follows, almost everywhere, from

∇θDTV(pt,qθ,t)=∑v:qθ,t(v)>pt(v)∇θqθ,t(v)=−∑v:pt(v)>qθ,t(v)∇θqθ,t(v),(24)\nabla_\theta D_{\mathrm{TV}}(p_t,q_{\theta,t}) = \sum_{v:q_{\theta,t}(v)>p_t(v)}\nabla_\theta q_{\theta,t}(v) = -\sum_{v:p_t(v)>q_{\theta,t}(v)}\nabla_\theta q_{\theta,t}(v), \tag*{(24)}

where the second identity uses ∑v∇θqθ,t(v)=0\sum_v\nabla_\theta q_{\theta,t}(v)=0.

For a future contribution k>tk>t, condition on Fk\mathcal{F}_k, i.e., on (x,y<k)(x,y_{<k}). Both Sk−1S_{k-1} and GtG_t are measurable with respect to this prefix. Hence, by Equation (4),

Eyk∼qθ,k[g^dir(k,t)∣Fk]=Eyk∼qθ,k[SkGt∣Fk]=Sk−1GtEyk∼qθ,k[αk(yk)]=AkSk−1Gt=g^marg(k,t).(25)\begin{aligned} \mathbb{E}_{y_k\sim q_{\theta,k}}\left[\widehat{g}_{\mathrm{dir}}^{(k,t)} \mid\mathcal{F}_k\right] &= \mathbb{E}_{y_k\sim q_{\theta,k}}\left[S_kG_t \mid\mathcal{F}_k\right] \\ &= S_{k-1}G_t\mathbb{E}_{y_k\sim q_{\theta,k}}\left[\alpha_k(y_k)\right] \\ &= A_kS_{k-1}G_t = \widehat{g}_{\mathrm{marg}}^{(k,t)}. \tag*{(25)} \end{aligned}

Combining Equations 23 and 25, for every $1 \le t \le k \le L$,

g^marg(k,t)=E[g^dir(k,t)∣Fk].(26)\widehat{\mathbf{g}}_{\mathrm{marg}}^{(k,t)}=\mathbb{E}\left[\widehat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\mid\mathcal{F}_k\right]. \tag*{(26)}

Taking expectations in (26), summing over tt and kk, and using Proposition 1 gives

E[∑t=1L∑k=tLg^marg(k,t)]=E[∑t=1L∑k=tLg^dir(k,t)]=∇θJθ.(27)\mathbb{E}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\widehat{\mathbf{g}}_{\mathrm{marg}}^{(k,t)}\right]=\mathbb{E}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\widehat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\right]=\nabla_\theta J_\theta. \tag*{(27)}

It remains to establish the termwise variance claim. Fix $1 \le t \le k \le L$ and any fixed direction a\mathbf{a} of compatible dimension, and assume the corresponding scalar gradient contribution has finite second moment. Because Ft⊆Fk\mathcal{F}_t \subseteq\mathcal{F}_k, the conditional law of total variance gives

Var⁡(a⊤g^dir(k,t)∣Ft)=Var⁡(E[a⊤g^dir(k,t)∣Fk]∣Ft)+E[Var⁡(a⊤g^dir(k,t)∣Fk)∣Ft]=Var⁡(a⊤g^marg(k,t)∣Ft)+E[Var⁡(a⊤g^dir(k,t)∣Fk)∣Ft].\begin{aligned} \operatorname{Var}\left(\mathbf{a}^{\top}\widehat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\mid\mathcal{F}_t\right) &=\operatorname{Var}\left(\mathbb{E}\left[\mathbf{a}^{\top}\widehat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\mid\mathcal{F}_k\right]\mid\mathcal{F}_t\right)+\mathbb{E}\left[\operatorname{Var}\left(\mathbf{a}^{\top}\widehat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\mid\mathcal{F}_k\right)\mid\mathcal{F}_t\right]\\ &=\operatorname{Var}\left(\mathbf{a}^{\top}\widehat{\mathbf{g}}_{\mathrm{marg}}^{(k,t)}\mid\mathcal{F}_t\right)+\mathbb{E}\left[\operatorname{Var}\left(\mathbf{a}^{\top}\widehat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\mid\mathcal{F}_k\right)\mid\mathcal{F}_t\right]. \end{aligned}

The second term on the right-hand side is nonnegative, and therefore

Var⁡(a⊤g^marg(k,t)∣x,y<t)≤Var⁡(a⊤g^dir(k,t)∣x,y<t).\operatorname{Var}\left(\mathbf{a}^{\top}\widehat{\mathbf{g}}_{\mathrm{marg}}^{(k,t)}\mid\mathbf{x},\mathbf{y}_{<t}\right)\le\operatorname{Var}\left(\mathbf{a}^{\top}\widehat{\mathbf{g}}_{\mathrm{dir}}^{(k,t)}\mid\mathbf{x},\mathbf{y}_{<t}\right).

Thus, marginalization removes the single-token sampling variance associated with each current or future prefix-credit contribution. This is a termwise guarantee for each (k,t)(k,t); it does not imply a general variance ordering after summing correlated contributions over kk and tt.

Proof of Corollary 1

We first prove (6). Conditioned on (x,y<t)(\mathbf{x},\mathbf{y}_{<t}), define the sampled over-sampled-token score term

G~t:=1pt(yt)<qθ,t(yt)∇θlog⁡qθ,t(yt).\widetilde{G}_t:=\mathbb{1}_{p_t(y_t)<q_{\theta,t}(y_t)}\nabla_\theta\log q_{\theta,t}(y_t).

Then the score-function identity gives

E[G~t∣x,y<t]=∑v:pt(v)<qθ,t(v)qθ,t(v)∇θlog⁡qθ,t(v)=∑v:pt(v)<qθ,t(v)∇θqθ,t(v)=∇θDTV(pt,qθ,t),\begin{aligned} \mathbb{E}[\widetilde{G}_t\mid\mathbf{x},\mathbf{y}_{<t}] &=\sum_{v:p_t(v)<q_{\theta,t}(v)}q_{\theta,t}(v)\nabla_\theta\log q_{\theta,t}(v)\\ &=\sum_{v:p_t(v)<q_{\theta,t}(v)}\nabla_\theta q_{\theta,t}(v)\\ &=\nabla_\theta D_{\mathrm{TV}}(p_t,q_{\theta,t}), \end{aligned}

where the last equality is valid almost everywhere and follows from (24).

Because St−1(y)S_{t-1}(\mathbf{y}) depends only on (x,y<t)(\mathbf{x},\mathbf{y}_{<t}),

E[St−1(y)(∇θDTV(pt,qθ,t)−G~t)]=0.(28)\mathbb{E}\left[S_{t-1}(\mathbf{y})\left(\nabla_\theta D_{\mathrm{TV}}(p_t,q_{\theta,t})-\widetilde{G}_t\right)\right]=0. \tag*{(28)}

Summing (28) over tt and multiplying by any β∈[0,1]\beta\in[0,1] shows that the over-sampled-token correction added once per token position has zero expectation. Together with (27), this yields

E[g^β]=E[∑t=1L∑k=tLg^marg(k,t)]=∇θJθ,\mathbb{E}[\widehat{\mathbf{g}}_\beta]=\mathbb{E}\left[\sum_{t=1}^{L}\sum_{k=t}^{L}\widehat{\mathbf{g}}_{\mathrm{marg}}^{(k,t)}\right]=\nabla_\theta J_\theta,

which proves Corollary 1 for the sampled over-sampled-token representation in (6).

Discussion of Over-Sampled Token Penalty

We further discuss why the dense TVD gradient alone is not always desirable, and why redistributing part of it to the sampled over-sampled-token penalty can improve optimization, even though the sampled representation itself introduces additional Monte Carlo variance. For a fixed decoding context and draft prefix ht=(x,y<t)h_t = (x, y_{<t}), denote

dt:=∇θDTV(pt,qθ,t),G~t:=1pt(yt)<qθ,t(yt)∇θlog⁡qθ,t(yt).d_t := \nabla_\theta D_{\mathrm{TV}}(p_t, q_{\theta,t}), \qquad\widetilde{G}_t := \mathbb{1}_{p_t(y_t)<q_{\theta,t}(y_t)} \nabla_\theta\log q_{\theta,t}(y_t).

Equation (6) gives

E[G~t∣ht]=dt.\mathbb{E}[\widetilde{G}_t \mid h_t] = d_t.

Therefore, the corresponding current-token TVD contribution in Equation (7) can be written as

−St−1[(1−β)dt+βG~t].-S_{t-1}\left[(1-\beta)d_t + \beta\widetilde{G}_t\right].

Hence, β\beta does not introduce a new optimization signal in expectation, but controls how the same expected TVD gradient is represented: β=0\beta= 0 uses the fully dense and analytically computed TVD gradient, whereas increasing β\beta redistributes an increasing fraction of this gradient to an explicit score-function update on the actually sampled over-sampled token.

Why the dense TVD gradient alone can be suboptimal. An important property of TVD is that its gradient remains strong even when the draft and target distributions become close. To see this more clearly, consider the gradient with respect to the draft logits ztz_t, with qθ,t=softmax⁡(zt)q_{\theta,t} = \operatorname{softmax}(z_t), and define

Ot:={v:qθ,t(v)>pt(v)},QOt:=∑v∈Otqθ,t(v).\mathcal{O}_t := \{v : q_{\theta,t}(v) > p_t(v)\}, \qquad Q_{\mathcal{O}_t} := \sum_{v \in\mathcal{O}_t} q_{\theta,t}(v).

Away from the boundaries pt(v)=qθ,t(v)p_t(v) = q_{\theta,t}(v),

DTV(pt,qθ,t)=∑v∈Ot(qθ,t(v)−pt(v)),D_{\mathrm{TV}}(p_t, q_{\theta,t}) = \sum_{v \in\mathcal{O}_t} \left(q_{\theta,t}(v) - p_t(v)\right),

and its logit gradient is

∂DTV(pt,qθ,t)∂zt(v)=qθ,t(v)(1v∈Ot−QOt).(29)\frac{\partial D_{\mathrm{TV}}(p_t, q_{\theta,t})}{\partial z_t(v)} = q_{\theta,t}(v)\left(\mathbb{1}_{v\in\mathcal{O}_t} - Q_{\mathcal{O}_t}\right). \tag*{(29)}

Unlike the forward-KL logit gradient,

∇ztDKL(pt∥qθ,t)=qθ,t−pt,\nabla_{z_t}D_{\mathrm{KL}}(p_t\mathbin{\|}q_{\theta,t}) = q_{\theta,t} - p_t,

whose magnitude continuously vanishes as qθ,t→ptq_{\theta,t} \to p_t, the TVD gradient in Equation (29) does not shrink merely because the probability discrepancy ∣qθ,t(v)−pt(v)∣\lvert q_{\theta,t}(v) - p_t(v)\rvert becomes small. This non-vanishing property is beneficial for directly optimizing speculative acceptance, since

At=1−DTV(pt,qθ,t),A_t = 1 - D_{\mathrm{TV}}(p_t, q_{\theta,t}),

and therefore TVD continues to provide an effective optimization signal even in the late stage of training.

However, the same property can also introduce an undesirable late-stage effect. When the draft distribution is already close to the target distribution, many vocabulary coordinates may have only tiny probability discrepancies, while the dense TVD gradient still applies non-negligible updates according to the sign of these discrepancies. Moreover, the active over-sampled set Ot\mathcal{O}_t depends on the sign of qθ,t(v)−pt(v)q_{\theta,t}(v) - p_t(v). For coordinates close to equality, small changes in the sampled prefix, model parameters, or local distribution can switch a token between the over- and under-sampled sets, changing the direction of its TVD gradient. Consequently, across different on-policy sampled prefixes, a large number of individually small discrepancies can induce fluctuating vocabulary-wide gradient directions. We refer to this effect as late-stage dense-gradient jitter. It provides a possible explanation for the empirical observation in Figure 5 that the normalized gradient variance of w/o penalty grows substantially faster in the later stage of training, even though it uses the analytically marginalized TVD gradient.

Redistributing TVD gradient toward trajectory-relevant tokens. The over-sampled-token penalty alleviates this issue by reducing the strength of the dense vocabulary-wide TVD component from dtd_t to (1−β)dt(1-\beta)d_t, while reallocating the remaining fraction to G~t\widetilde{G}_t. For an actually sampled over-sampled token yty_t, the logit-space score is

∇ztlog⁡qθ,t(yt)=eyt−qθ,t.\nabla_{z_t} \log q_{\theta,t}(y_t) = e_{y_t} - q_{\theta,t}.

where eyte_{y_t} is the one-hot vector of the sampled token. Thus, compared with the dense TVD gradient, the sampled representation places a much stronger direct correction on the token that actually appears in the current on-policy trajectory. It does not completely eliminate updates to unsampled logits because of the softmax coupling through −qθ,t-q_{\theta,t}, but it substantially reduces the vocabulary-wide component and concentrates more of the optimization signal on the sampled coordinate.

Such a redistribution is particularly well aligned with speculative decoding. For an over-sampled token v∈Otv \in\mathcal{O}_t, its acceptance probability is

αt(v)=pt(v)qθ,t(v)<1.\alpha_t(v) = \frac{p_t(v)}{q_{\theta,t}(v)} < 1.

Its contribution to the expected rejection probability is

qθ,t(v)(1−pt(v)qθ,t(v))=qθ,t(v)−pt(v).q_{\theta,t}(v)\left(1-\frac{p_t(v)}{q_{\theta,t}(v)}\right)=q_{\theta,t}(v)-p_t(v).

Summing over all over-sampled tokens gives

∑v∈Ot(qθ,t(v)−pt(v))=DTV(pt,qθ,t)=1−At.\sum_{v\in\mathcal{O}_t}\left(q_{\theta,t}(v)-p_t(v)\right)=D_{\mathrm{TV}}(p_t,q_{\theta,t})=1-A_t.

Therefore, over-sampled tokens exactly carry the rejection mass of speculative verification. Moreover, because on-policy trajectories sample yt∼qθ,ty_t \sim q_{\theta,t}, over-sampled tokens with large draft probability are encountered more frequently and can repeatedly become verification bottlenecks. Assigning an explicit penalty to the actually sampled over-sampled token therefore focuses optimization on discrepancies that are directly realized by the current draft trajectory, rather than distributing the entire correction over all vocabulary coordinates.

Variance trade-off and control-variate interpretation. Conditioned on hth_t, dtd_t is deterministic, whereas G~t\widetilde{G}_t is stochastic, so replacing part of dtd_t by G~t\widetilde{G}_t necessarily introduces additional conditional sampling variance for this component. The benefit instead arises from its interaction with the complete stochastic gradient estimator.

Specifically, define the zero-mean correction

Z:=∑t=1LSt−1(dt−G~t),E[Z]=0,Z := \sum_{t=1}^{L} S_{t-1}(d_t-\widetilde{G}_t), \qquad\mathbb{E}[Z]=0,

so that Equation (7) can be written as

g^β=g^marg+βZ.\widehat{g}_{\beta}=\widehat{g}_{\mathrm{marg}}+\beta Z.

For any fixed gradient direction aa, let

X=aTg^marg,Za=aTZ.X=a^{\mathsf{T}}\widehat{g}_{\mathrm{marg}}, \qquad Z_a=a^{\mathsf{T}}Z.

Then

Var⁡(X+βZa)=Var⁡(X)+2βCov⁡(X,Za)+β2Var⁡(Za).(30)\operatorname{Var}(X+\beta Z_a)=\operatorname{Var}(X)+2\beta\operatorname{Cov}(X,Z_a)+\beta^2\operatorname{Var}(Z_a). \tag*{(30)}

The last term in Equation (30) is the additional variance introduced by the sampled penalty, whereas the covariance term can be negative because the correction redistributes gradient mass from dense vocabulary-wide updates toward sampled-token updates that are complementary to the existing sampled gradient terms. Thus, the penalty acts as an expectation-preserving, control-variate-like variance-shaping mechanism rather than as a component-wise variance-reduction technique. A moderate β\beta can reduce the variance of the complete stochastic gradient when the favorable covariance outweighs the newly introduced sampling variance, while an excessively large β\beta eventually makes the β2Var⁡(Za)\beta^2\operatorname{Var}(Z_a) term dominate. Empirical results in § 4.5 show that normalized gradient variance of w/o penalty increases to a much higher level than FReDraft, which can partially act as an evidence supporting the interpretation above. This also explains why an intermediate value of β\beta performs best empirically, rather than either β=0\beta=0 or fully replacing the dense TVD contribution.

To further support above claim, we conduct an additional same-checkpoint, paired comparison of raw gradient variance between FReDraft and w/o penalty on last 3 checkpoints of FReDraft. Compared with the variance in Figure 5, the variance here is measured on the same last 3 checkpoints (i.e. checkpoints at epoch 6, 7 and 8) of FReDraft and the variance is not normalized. The measured gradient variance of FReDraft and w/o penalty on last 3 checkpoints of FReDraft are 0.1669, 0.1642, 0.1729, and 0.3877, 0.4181 and 0.4100 respectively. The raw gradient variance of w/o penalty is much higher than that of FReDraft with the same training data and checkpoint. Considering that FReDraft introduces β2Var⁡(Za)\beta^{2}\operatorname{Var}(Z_a) in the total variance compared with w/o penalty, this comparison supports the interpretation that a negative covariance contribution can more than offset the additional variance introduced by the sampled correction, yielding lower total estimator variance.. Notably, the variance measured here does not reflect practical training process for w/o penalty, because These measurements evaluate both estimators at checkpoints from the FReDraft training trajectory and they do not describe the raw variance along the separately trained w/o penalty trajectory. The comparison just aims to support above claim.

Relation to KL-based gradients. The above redistribution also retains an attractive property of TVD compared with common sampled KL gradients. For the sampled TVD representation, the stochastic weight is only the binary indicator 1pt(yt)<qθ,t(yt)\mathbb{1}_{p_t(y_t)<q_{\theta,t}(y_t)}. In logit space,

∥∇ztlog⁡qθ,t(yt)∥2=∥eyt−qθ,t∥2≤2,\left\lVert\nabla_{z_t}\log q_{\theta,t}(y_t)\right\rVert_2 = \left\lVert e_{y_t}-q_{\theta,t}\right\rVert_2 \le\sqrt{2},

so the per-position sampled correction is bounded and contains neither an importance ratio nor a log-ratio multiplier. In contrast, sample-based KL estimators may involve factors such as pt(yt)/qθ,t(yt)p_t(y_t)/q_{\theta,t}(y_t) or log⁡(qθ,t(yt)/pt(yt))\log(q_{\theta,t}(y_t)/p_t(y_t)), which can amplify stochastic updates when the two probabilities are highly mismatched. Therefore, FReDraft preserves the non-vanishing, verification-aligned optimization signal of TVD while using β\beta to trade part of its dense vocabulary-wide update for a bounded and trajectory-focused sampled correction.

Overall, the over-sampled-token penalty serves two complementary roles. First, it gives frequently occurring over-sampled tokens an explicit correction that is absent from the sampled term of Equation (5). Second, it attenuates late-stage vocabulary-wide TVD updates whose directions can fluctuate when many small probability discrepancies change sign across on-policy prefixes. This provides a mechanism consistent with the empirical results: w/o penalty remains competitive in early training, but develops substantially larger normalized gradient variance in the later stage, whereas FReDraft with a moderate penalty coefficient maintains a lower-noise optimization trajectory and converges to a better accepted length.

Discussion about Comparison with D-PACE

We first clarify what D-PACE optimizes. For a target-generated block z⋆=(z1⋆,…,zL⋆)\boldsymbol{z}^{\star}=(z^{\star}_{1},\ldots,z^{\star}_{L}), define the draft probability assigned to its token at position tt as

rθ,t:=qθ(zt⋆∣x,z<t⋆).r_{\theta,t}:=q_{\theta}(z^{\star}_{t}\mid\boldsymbol{x},\boldsymbol{z}^{\star}_{<t}).

If a sequence is sampled from the draft model, the probability that it matches the first kk tokens of z⋆\boldsymbol{z}^{\star} is

Pr⁡z∼qθ(z1:k=z1:k⋆∣x)=∏i=1krθ,i.\Pr_{\boldsymbol{z}\sim q_{\theta}}(\boldsymbol{z}_{1:k}=\boldsymbol{z}^{\star}_{1:k}\mid\boldsymbol{x})=\prod_{i=1}^{k}r_{\theta,i}.

Therefore, the expected length for which the fixed target-generated block is reachable under the draft distribution is

Rθ(x,z⋆):=∑k=1L∏i=1krθ,i.(31)\mathcal{R}_{\theta}(\boldsymbol{x},\boldsymbol{z}^{\star}):=\sum_{k=1}^{L}\prod_{i=1}^{k}r_{\theta,i}. \tag*{(31)}

Its gradient can be written as

∇θRθ=∑t=1LWt∇θlog⁡rθ,t,Wt:=∑k=tL∏i=1krθ,i.\nabla_{\theta}\mathcal{R}_{\theta}=\sum_{t=1}^{L}W_t\nabla_{\theta}\log r_{\theta,t},\qquad W_t:=\sum_{k=t}^{L}\prod_{i=1}^{k}r_{\theta,i}.

Consequently, without smoothing, the detached weighted cross-entropy

Lreach(θ)=−∑t=1Lsg⁡(Wt)log⁡rθ,t\mathcal{L}_{\mathrm{reach}}(\theta)=-\sum_{t=1}^{L}\operatorname{sg}(W_t)\log r_{\theta,t}

has gradient −∇θRθ-\nabla_\theta\mathcal{R}_\theta. This shows that the position weights of D-PACE are obtained by optimizing the reachability of target-generated sequences under the draft distribution, rather than the accepted length of drafts sampled from the draft model. In its stabilized implementation, D-PACE computes the detached weights from r~θ,t=(1−ρ)rθ,t+ρ\widetilde{r}_{\theta,t} = (1-\rho)r_{\theta,t}+\rho while retaining the unsmoothed cross-entropy −log⁡rθ,t-\log r_{\theta,t} ([46]); this is a smoothed approximation to the reachability-gradient construction above.

We next relate this reachability objective to our proposed verification-aligned objective. For a fixed context x\mathbf{x}, Equation (21) gives

Jθ(x)=∑k=1L∑z1:k∼p∏i=1kmin⁡{pi(zi),qθ,i(zi)}.\mathcal{J}_\theta(\mathbf{x}) = \sum_{k=1}^{L}\sum_{\mathbf{z}_{1:k}\sim p}\prod_{i=1}^{k}\min\{p_i(z_i),q_{\theta,i}(z_i)\}.

Using the target model as an importance-sampling proposal for every length-kk prefix, we obtain the exact identity

Jθ(x)=∑k=1LEz1:k∼p[∏i=1kmin⁡{pi(zi),qθ,i(zi)}pi(zi)]=Ez⋆∼p[∑k=1L∏i=1kmin⁡{1,qθ,i(zi⋆)pi(zi⋆)}].(32)\begin{aligned} \mathcal{J}_\theta(\mathbf{x}) &= \sum_{k=1}^{L}\mathbb{E}_{\mathbf{z}_{1:k}\sim p}\left[\prod_{i=1}^{k}\frac{\min\{p_i(z_i),q_{\theta,i}(z_i)\}}{p_i(z_i)}\right] \\ &= \mathbb{E}_{\mathbf{z}^{\star}\sim p}\left[\sum_{k=1}^{L}\prod_{i=1}^{k}\min\left\{1,\frac{q_{\theta,i}(z_i^{\star})}{p_i(z_i^{\star})}\right\}\right]. \tag*{(32)} \end{aligned}

Now make the one-hot-target approximation that the target probability of every target-generated token is 1.0, i.e., pi(zi⋆)=1p_i(z_i^\star)=1. Since qθ,i(zi⋆)≤1q_{\theta,i}(z_i^\star)\le1, Equation (32) reduces to

Jθ(x)≈Ez⋆∼p[∑k=1L∏i=1kqθ,i(zi⋆)]=Ez⋆∼p[Rθ(x,z⋆)].\mathcal{J}_\theta(\mathbf{x}) \approx\mathbb{E}_{\mathbf{z}^{\star}\sim p}\left[\sum_{k=1}^{L}\prod_{i=1}^{k}q_{\theta,i}(z_i^\star)\right] = \mathbb{E}_{\mathbf{z}^{\star}\sim p}\left[\mathcal{R}_\theta(\mathbf{x},\mathbf{z}^\star)\right].

Thus, the D-PACE reachability objective is an importance-sampling estimation and one-hot-target approximation to our objective after replacing the target distribution on target-generated tokens by a point mass. Empirical averaging over a corpus of target-generated blocks provides the corresponding Monte Carlo estimate. However, importance sampling introduces larger variance and the one-hot-target approximation also introduces bias.

Counterexample under the target-generated training distribution. The mismatch between reference reachability and verification-aligned accepted length persists even after averaging over the complete target-generated training-data distribution. Consider a length-2 block with vocabulary V={A,B}\mathcal{V}=\{A,B\}. Assume that the target distribution is independent across positions and satisfies

p(A)=0.6,p(B)=0.4.p(A)=0.6,\qquad p(B)=0.4.

The corresponding target-generated training distribution is therefore

p(AA)=0.36,p(AB)=0.24,p(BA)=0.24,p(BB)=0.16.p(AA)=0.36,\qquad p(AB)=0.24,\qquad p(BA)=0.24,\qquad p(BB)=0.16.

Consider two position-independent draft distributions

q(1)=(0.6,0.4),q(2)=(0.9,0.1),q^{(1)}=(0.6,0.4),\qquad q^{(2)}=(0.9,0.1),

where q(1)=pq^{(1)}=p exactly matches the target distribution.

For an arbitrary position-independent draft distribution qq, let

c(q):=Ez∼p[q(z)]=∑v∈Vp(v)q(v).c(q):=\mathbb{E}_{z\sim p}[q(z)]=\sum_{v\in\mathcal{V}}p(v)q(v).

Averaging the reachability in Equation (31) over the target-generated training distribution gives

Ez⋆∼p[Rθ(x,z⋆)]=c(q)+c(q)2.\mathbb{E}_{\mathbf{z}^{\star}\sim p}\left[\mathcal{R}_\theta(\mathbf{x},\mathbf{z}^{\star})\right]=c(q)+c(q)^2.

For the two draft distributions above,

c(q(1))=0.6×0.6+0.4×0.4=0.52,c(q^{(1)})=0.6\times0.6+0.4\times0.4=0.52,
c(q(2))=0.6×0.9+0.4×0.1=0.58,c(q^{(2)})=0.6\times0.9+0.4\times0.1=0.58,

and hence

Ez⋆∼p[R(q(1),z⋆)]=0.52+0.522=0.7904,\mathbb{E}_{\mathbf{z}^\star\sim p}\left[\mathcal{R}(q^{(1)},\mathbf{z}^\star)\right] = 0.52 + 0.52^2 = 0.7904,
Ez⋆∼p[R(q(2),z⋆)]=0.58+0.582=0.9164.\mathbb{E}_{\mathbf{z}^\star\sim p}\left[\mathcal{R}(q^{(2)},\mathbf{z}^\star)\right] = 0.58 + 0.58^2 = 0.9164.

Thus, after averaging over all target-generated training blocks, the reachability objective prefers q(2)q^{(2)} over q(1)q^{(1)}.

However, speculative verification depends on the probability overlap between the target and draft distributions. By Equation (4), the expected token acceptance rate is

A(q)=∑v∈Vmin⁡{p(v),q(v)}.A(q) = \sum_{v \in\mathcal{V}} \min\{p(v), q(v)\}.

Since the two positions are independent and identically distributed, the expected accepted length is

J(q)=A(q)+A(q)2.\mathcal{J}(q) = A(q) + A(q)^2.

For q(1)=pq^{(1)} = p, we have A(q(1))=1A(q^{(1)}) = 1 and therefore

J(q(1))=2.\mathcal{J}(q^{(1)}) = 2.

For q(2)q^{(2)},

A(q(2))=min⁡{0.6,0.9}+min⁡{0.4,0.1}=0.7,A(q^{(2)}) = \min\{0.6, 0.9\} + \min\{0.4, 0.1\} = 0.7,

which gives

J(q(2))=0.7+0.72=1.19.\mathcal{J}(q^{(2)}) = 0.7 + 0.7^2 = 1.19.

Consequently,

Ez⋆∼p[R(q(2),z⋆)]≥Ez⋆∼p[R(q(1),z⋆)],J(q(2))<J(q(1)).\mathbb{E}_{\mathbf{z}^\star\sim p}\left[\mathcal{R}(q^{(2)},\mathbf{z}^\star)\right] \ge\mathbb{E}_{\mathbf{z}^\star\sim p}\left[\mathcal{R}(q^{(1)},\mathbf{z}^\star)\right], \qquad\mathcal{J}(q^{(2)}) < \mathcal{J}(q^{(1)}).

Therefore, averaging reference reachability over the target-generated training distribution does not in general preserve the preference induced by the true verification objective. In particular, q(1)q^{(1)} already achieves perfect speculative acceptance because it exactly matches pp, whereas the reachability surrogate assigns a larger value to q(2)q^{(2)}.

The underlying reason is that target-data averaging turns reference-token confidence into ∑vp(v)q(v)\sum_v p(v)q(v), which rewards concentrating additional draft probability on frequently sampled target tokens. Speculative verification instead depends on ∑vmin⁡{p(v),q(v)}\sum_v \min\{p(v),q(v)\}: once q(v)q(v) exceeds p(v)p(v), assigning additional probability to vv no longer improves its acceptance and instead creates excess proposal mass that can cause rejection. Thus, reference reachability can mistake confidence on likely target-generated tokens for verification quality, whereas the verification-aligned objective directly evaluates the probability overlap encountered by draft-generated proposals. This counterexample isolates the mismatch of the unsmoothed reachability objective in Equation (31); the stabilized D-PACE implementation additionally smooths the detached reachability weights as described above.

Experiment Details

Baselines

We select the baselines in § 4.1 because they are recent SOTA representative off-policy verification-aware methods and on-policy method. We do not choose other methods discussed in Appendix § 6.§ 2 (e.g. VSD, GTO, VAT, etc.), because they are either designed specifically for Eagle-style tree-structured drafts and there is no public open-source DFlash implementation, or they are concurrent works. For the selected baselines, we summarize their implementation details as follows:

Eagle-3. We refer to its official open-source code 1 to implement the training pipeline. We use both Qwen3-4B-Instruct-100K and the 16K prompts released by Draft-OPD to SFT Eagle-3. DFlash. We use the official open-source weights 2 trained on Qwen3-4B-Instruct-100K as the initial model and further SFT it on 16K prompts released by Draft-OPD referring to the implementation provided by SpecForge 3.

D-PACE. We use the official open-source weights trained on Qwen3-4B-Instruct-100K as the initial model and further train it on 16K prompts released by Draft-OPD referring to the official open-source code 4.

LK-Losses. We use the official open-source weights 5 trained on Qwen3-4B-Instruct-100K as the initial model and further SFT it on 16K prompts released by Draft-OPD referring to the implementation provided by SpecForge 6.

Draft-OPD. We use the official open-source weights 7 trained on Qwen3-4B-Instruct-100K as the initial model and further train it on 16K prompts released by Draft-OPD referring to the official open-source code 8.

Ablation Variants

All ablations use the same SFT initialization as the full method. We implement the four variants as follows.

w/o marg. This variant implements the direct Monte Carlo estimator in Equation (3). For each block, it computes St=∏j=1tαj(yj)S_t = \prod_{j=1}^{t} \alpha_j(y_j) and the inclusive reverse cumulative sum

Ut=∑k=tLSk.U_t = \sum_{k=t}^{L} S_k.

The minimized block loss is

Lw/o marg=−∑t=1Lsg⁡(Ut1pt(yt)>qθ,t(yt))log⁡qθ,t(yt).\mathcal{L}_{\mathrm{w/o\ marg}} = -\sum_{t=1}^{L} \operatorname{sg}\left(U_t \mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}\right)\log q_{\theta,t}(y_t).

In particular, UL=SLU_L = S_L is retained. The variant has neither a dense TVD term nor an over-sampled-token penalty; it uses only the exact target and draft probabilities of sampled tokens.

w/o penalty. We set β=0\beta= 0 in the full implementation, and define

bt=∑k=t+1LAkSk−1.b_t = \sum_{k=t+1}^{L} A_k S_{k-1}.

Then the resulting w/o penalty loss is

Lw/o penalty=∑t=1L[−sg⁡(bt1pt(yt)>qθ,t(yt))log⁡qθ,t(yt)+sg⁡(St−1)DTV(pt,qθ,t)].\mathcal{L}_{\mathrm{w/o\ penalty}} = \sum_{t=1}^{L}\left[-\operatorname{sg}\left(b_t\mathbb{1}_{p_t(y_t)>q_{\theta,t}(y_t)}\right)\log q_{\theta,t}(y_t) + \operatorname{sg}(S_{t-1})D_{\mathrm{TV}}(p_t,q_{\theta,t})\right].

which corresponds to the marginalized estimator in Equation (5) under the compressed distribution representation. Thus, over-sampled tokens still participate in the dense distribution-alignment term, but receive no explicit sampled-token correction.

FReDraft-ED. This variant removes prefix-aware credit assignment and replaces it with the static exponential weight et=ρt−1e_t = \rho^{t-1}, using ρ=0.8\rho= 0.8 as in the position-decay configuration. It retains the same TVD-gradient redistribution as the full method:

LED=∑t=1Let[β1pt(yt)>qθ,t(yt)log⁡qθ,t(yt)+(1−β)DTV(pt,qθ,t)].\mathcal{L}_{\mathrm{ED}} = \sum_{t=1}^{L} e_t \left[\beta\mathbf{1}_{p_t(y_t)>q_{\theta,t}(y_t)} \log q_{\theta,t}(y_t) + (1-\beta)D_{\mathrm{TV}}(p_t,q_{\theta,t})\right].

The negative expected gradient of the bracketed expression is the exponentially weighted ascent direction for distribution overlap. Neither the sampled prefix survival St−1S_{t-1} nor the acceptance-to-go btb_t is used as a loss coefficient, thereby isolating the effect of adaptive prefix-aware weighting.

FReDraft-KL. This variant retains the sampled prefix survival St−1S_{t-1} and marginalized AkSk−1A_kS_{k-1} for sampled token and St−1S_{t-1} for vocabulary gradient, but replaces the dense TVD loss with the mixed KL recipe used by Draft-OPD. For a proposal that is accepted in the realized verification, we use a forward KL on the sampled token. For a rejected or discarded proposal, we use the reverse KL.

Let κt\kappa_t select forward KL for accepted proposals and reverse KL otherwise. The implemented loss is

LKL=∑t=1L[−sg⁡(bt1pt(yt)>qθ,t(yt))log⁡qθ,t(yt)+sg⁡(St−1)κt].\mathcal{L}_{\mathrm{KL}} = \sum_{t=1}^{L} \left[-\operatorname{sg}(b_t\mathbf{1}_{p_t(y_t)>q_{\theta,t}(y_t)})\log q_{\theta,t}(y_t) + \operatorname{sg}(S_{t-1})\kappa_t\right].

We do not apply the β\beta correction in this variant because the expectation-preserving identity in (6) is specific to TVD. This construction therefore isolates the choice of distribution discrepancy while preserving FReDraft’s prefix-aware credit assignment. Compared with w/o penalty, the only difference is that the dense TVD term is replaced by a mixed KL term.

Benchmarks

We use the public evaluation splits of GSM8K9, MATH-50010, AIME2511, MBPP12, HumanEval13, SWE-Lite (SWE-bench Lite)14, and MT-Bench15. Table 5 summarizes the evaluation size of each benchmark. For MT-Bench, one prompt denotes one two-turn conversation; thus, its 80 prompts contain 160 user turns in total.

CategoryBenchmarkNumber of prompts
MathematicsGSM8K1,319
MathematicsMATH-500500
MathematicsAIME2530
CodingMBPP500
CodingHumanEval164
CodingSWE-Lite300
ChatMT-Bench80

Table 5. Statistics of the evaluation benchmarks.

Normalized Gradient Variance

We use normalized gradient variance to quantify the amount of Monte Carlo noise in the stochastic learning signal produced by different training objectives and gradient estimators. Raw gradient variance alone is not sufficient for this comparison because it scales quadratically with the overall gradient magnitude: an estimator with uniformly smaller gradients can exhibit a smaller raw variance even when its noise is large relative to its useful optimization signal. We therefore normalize the gradient variance by the squared magnitude of the corresponding mean gradient.

Concretely, for each measurement context cc and a model checkpoint, we keep the input context and model parameters unchanged and independently sample NN draft sequences from the current draft distribution. Let

gc(m)=∇θL(m),m=1,…,N,\mathbf{g}_{c}^{(m)} = \nabla_{\theta}\mathcal{L}^{(m)}, \qquad m = 1,\ldots,N,

denote gradient at draft position tt under the mm-th Monte Carlo sample. The sample mean gradient is

gˉc,t=1N∑m=1Ngc(m).\bar{\mathbf{g}}_{c,t} = \frac{1}{N}\sum_{m=1}^{N}\mathbf{g}_{c}^{(m)}.

We estimate the trace of the gradient covariance by

V^c=1N−1∑m=1N∥gc(m)−gˉc∥22.\widehat{V}_{c} = \frac{1}{N-1}\sum_{m=1}^{N}\left\|\mathbf{g}_{c}^{(m)}-\bar{\mathbf{g}}_{c}\right\|_{2}^{2}.

This quantity equals the sum of the coordinate-wise gradient variances and therefore measures the total stochastic fluctuation of the gradient at position tt.

The squared norm of the sample mean, ∥gˉc,t∥22\left\|\bar{\mathbf{g}}_{c,t}\right\|_{2}^{2}, is an upward-biased estimator of the squared norm of the true mean gradient because the sample mean itself contains Monte Carlo noise. We remove this finite-sample bias using

S^c=∥gˉc∥22−V^cN,\widehat{S}_{c} = \left\|\bar{\mathbf{g}}_{c}\right\|_{2}^{2} - \frac{\widehat{V}_{c}}{N},

which estimates ∥E[gc]∥22\left\|\mathbb{E}[\mathbf{g}_{c}]\right\|_{2}^{2}. We then aggregate signal and noise before taking their ratio and report

NGV^=∑cV^c∑cmax⁡(S^c,0)+ϵ.\widehat{\mathrm{NGV}} = \frac{\sum_{c}\widehat{V}_{c}}{\sum_{c}\max\left(\widehat{S}_{c},0\right)+\epsilon}.

where ϵ=10−5\epsilon= 10^{-5} is a small constant for numerical stability. Aggregating before normalization is important: individually dividing by S^c\widehat{S}_{c} can become unstable for positions whose expected gradient is close to zero and can cause a few nearly-zero-signal positions to dominate the reported statistic. The above form is equivalently the ratio between the trace of the covariance of the concatenated parameter gradient vector and the squared norm of its mean, i.e., the inverse of the squared-gradient signal-to-noise ratio. A smaller normalized gradient variance therefore indicates less sampling noise per unit of useful gradient signal.

For every measurement, all NN Monte Carlo samples use the same context and the same model parameters and differ only in the sampled draft tokens. We set N=256N = 256 and evaluate the normalized gradient variance every 250 training steps. We use the same measurement contexts and the same number of Monte Carlo samples for all methods. This protocol isolates stochasticity introduced by draft-token sampling rather than changes in data or model state. Normalization further makes the statistic invariant to a global rescaling of the loss or gradient: if every gradient is multiplied by a constant aa, both the numerator and denominator are multiplied by a2a^{2}. The statistic is approximately invariant to global gradient rescaling when the stabilization constant is negligible. Consequently, the metric is more suitable than raw variance for comparisons across training stages or methods whose gradient magnitudes differ.

For the direct and marginalized estimators of the same expected accepted-length objective, both estimators target the same expected gradient, so a smaller normalized gradient variance directly indicates a lower-noise Monte Carlo estimator of the same optimization signal. When comparing objectives that do not share exactly the same expected gradient (e.g., external baselines), normalized gradient variance should instead be interpreted as a scale-normalized diagnostic of optimization noise, rather than by itself as evidence that one objective is superior. In the main text, we therefore use it together with convergence and accepted-length results to characterize optimization efficiency.

Extra Experiment Results

Deployment Efficiency on SGLang.

Referring to DFlash (Chen et al., [8] and Draft-OPD (Lei et al., [26], we also evaluate FReDraft on open-source inference framework SGLang [56] to demonstrate the efficiency of our method in practical deployment scenarios. We report the average accepted length and throughput under concurrency across 1 to 32 in Table 6. All experiments are conducted on a single A100 GPU. FReDraft consistently outperforms DFlash and Draft-OPD in terms of average accepted length and throughput under different concurrency, demonstrating the effectiveness of our proposed draft model training method in practical deployment.

TaskMethodQ3-4B Concurrency 1Q3-4B Concurrency 4Q3-4B Concurrency 8Q3-4B Concurrency 16Q3-4B Concurrency 32Q3-4B Avg. τ\tauQ3-8B Concurrency 1Q3-8B Concurrency 4Q3-8B Concurrency 8Q3-8B Concurrency 16Q3-8B Concurrency 32Q3-8B Avg. τ\tau
AIME25DFlash47814402574455862346.0632610031876319251237.22
AIME25Draft-OPD50815602748486267037.2436811242003357856017.89
AIME25FReDraft53215942852500568307.9639712062179379659148.18
HumanEvalDFlash49014682627461263236.103139891832309950036.40
HumanEvalDraft-OPD50715122698473765256.4333610481930327152746.66
HumanEvalFReDraft52315652784488966907.1834810922013339254626.85
MT-BenchDFlash41013082496427759015.222117611353221741383.38
MT-BenchDraft-OPD41813322536433359725.272298201477239844923.50
MT-BenchFReDraft42313472566440060475.452378521512246245963.65

Table 6. Throughput (tok/s) and average acceptance length (τ\tau) on SGLang.

Spearman Correlation of Different Metrics to Speedup Ratio

We examine how closely different draft-quality metrics track decoding speedup. Using Qwen3-4B as the target and the DFlash drafter trained with FReDraft, we collect query-level statistics on the seven benchmarks in Appendix § 10.§ 3. We use temperature 1.0 with thinking mode disabled, so that the comparison includes stochastic verification. For each query, speedup is the ratio of target-only decoding time to speculative decoding time under the same evaluation configuration. We compare the following four metrics:

  • Average acceptance rate. We average the token-level acceptance probabilities αt(yt)\alpha_t(y_t) over all positions in all collected draft blocks, including positions after the first rejection. This measures token-level alignment, as targeted by LK-Losses, without weighting a position by the probability that verification reaches it.

  • Expected reachable length. We average Rθ(x,z∗)R_\theta(x, z^*) from Equation (31) over length-LL chunks of target-only responses to the same queries. This is the un smoothed reachability quantity underlying D-PACE; it measures the likelihood of matching a target-generated prefix under the draft distribution.

  • Accepted length. We average the realized number of accepted draft tokens per verification call, denoted by τ\tau. As in the main experiments, this excludes the target-generated correction or bonus token and the anchor token.

  • Expected accepted length. We average τˉθ(x,y)=∑t=1L∏j=1tαj(yj)\bar{\tau}_\theta(x, y) = \sum_{t=1}^{L} \prod_{j=1}^{t} \alpha_j(y_j) over the same collected draft blocks. This is the conditional expectation in Equation (2), which FReDraft optimizes under on-policy draft sampling.

We compute Spearman’s rank correlation ρs\rho_s between each metric and query-level speedup, assigning average ranks to ties. Table 7 reports correlations within each benchmark and across all pooled queries; the pooled value is computed from the pooled ranks, rather than by averaging benchmark-level correlations.

BenchmarkAverage acceptance rateExpected reachable lengthExpected accepted lengthAccepted length
GSM8K0.730.850.970.98
MATH-5000.700.820.960.98
AIME250.660.790.950.97
MBPP0.740.860.970.99
HumanEval0.720.840.970.98
SWE-Lite0.630.770.940.96
MT-Bench0.600.740.930.95
Pooled0.690.810.960.98

Table 7. Spearman correlation with query-level speedup on Qwen3-4B at temperature 1.0.

The correlations follow the same ordering across benchmarks: average acceptance rate << expected reachable length << expected accepted length << realized accepted length. In particular, expected accepted length is closely associated with speedup, with a pooled correlation of 0.96, compared with 0.98 for realized accepted length. The weaker association of average acceptance rate is consistent with its omission of first-rejection truncation: improving a late token has limited effect when its prefix rarely survives. Expected reachable length accounts for prefix structure, but evaluates target-generated chunks through their draft probabilities, rather than the actual verification ratios of on-policy drafts.

Although realized accepted length has the highest correlation with the speedup of the same decoding run, it also depends on the random acceptance decisions made during verification. For a fixed context and sampled draft, τˉθ\bar{\tau}_{\theta} integrates out these decisions exactly, removing this source of sampling variance while retaining the dependence on prefix survival. Randomness from sampled drafts and visited contexts remains. Thus, expected accepted length provides a less noisy training signal than a single realized acceptance outcome while remaining closely related to the decoding quantity of interest. This motivates its use as an optimization objective; the correlation alone does not imply that it captures every hardware- or workload-dependent contribution to speedup.

Results on Thinking Mode

We further evaluate Qwen3-4B and Qwen3-8B with thinking mode enabled. We use the same trained draft checkpoints, seven benchmarks, and draft length L=15L = 15 as in Table 2, and report both greedy decoding (temperature 0) and stochastic decoding (temperature 1.0). The target-only baseline also uses thinking mode, and decoding time includes the generated reasoning trace as well as the final answer. Within each comparison, all methods share the prompt template, generation limit, and stopping criteria. This evaluation tests how the trained drafters perform when the target generates explicit reasoning trajectories.

Table 8 follows the overall trend in Table 2. DFlash provides higher speedup than EAGLE-3, and on-policy training improves the mean performance of the DFlash drafter. FReDraFT achieves the highest speedup on each benchmark and the largest mean accepted length in all four model–temperature configurations. For Qwen3-4B, its mean speedups are 4.34×4.34\times and 3.69×3.69\times at temperatures 0 and 1.0, respectively, compared with 4.01×4.01\times and 3.47×3.47\times for Draft-OPD. For Qwen3-8B, the corresponding values are 5.75×5.75\times and 4.84×4.84\times, compared with 5.37×5.37\times and 4.46×4.46\times.

ModelMethodGSM8KMATH-500AIME25MBPPHumanEvalSWE-LiteMT-BenchMean SRτ\tau
Q3-4BEAGLE-32.28×2.12×2.14×1.99×2.11×1.89×1.93×2.07×6.12
Q3-4BDFlash4.02×4.72×4.28×3.52×3.83×2.61×2.26×3.61×6.57
Q3-4BD-PACE4.21×4.97×4.55×3.68×3.76×2.68×2.22×3.72×6.75
Q3-4BLK-Losses4.40×5.20×4.78×3.76×3.97×2.76×2.32×3.88×6.94
Q3-4BDraft-OPD4.69×5.48×4.92×3.85×4.03×2.74×2.38×4.01×7.13
Q3-4BFReDraft4.87×5.89×5.41×4.10×4.54×3.01×2.59×4.34×7.91
Q3-8BEAGLE-32.24×2.14×2.16×1.95×2.18×2.02×1.85×2.08×6.03
Q3-8BDFlash5.20×6.26×5.84×4.57×5.20×3.17×2.80×4.72×6.55
Q3-8BD-PACE5.48×6.52×6.02×4.76×5.16×3.25×2.73×4.85×6.68
Q3-8BLK-Losses5.73×6.85×6.35×4.95×5.41×3.45×3.03×5.11×6.98
Q3-8BDraft-OPD6.01×7.19×6.61×5.23×5.67×3.64×3.22×5.37×7.32
Q3-8BFReDraft6.39×7.73×7.08×5.61×6.05×3.89×3.47×5.75×8.14
Q3-4BEAGLE-32.13×2.00×1.96×1.88×1.96×1.71×1.88×1.93×5.68
Q3-4BDFlash3.68×3.87×3.26×3.30×3.57×2.28×2.11×3.15×6.02
Q3-4BD-PACE3.90×4.05×3.36×3.24×3.48×2.32×2.04×3.20×6.17
Q3-4BLK-Losses4.01×4.20×3.48×3.39×3.62×2.38×2.24×3.33×6.35
Q3-4BDraft-OPD4.23×4.51×3.79×3.50×3.70×2.35×2.21×3.47×6.52
Q3-4BFReDraft4.36×4.71×4.08×3.66×4.13×2.51×2.40×3.69×6.94
Q3-8BEAGLE-32.11×1.97×1.94×1.85×1.98×1.85×1.77×1.92×5.39
Q3-8BDFlash4.64×4.91×3.97×3.88×4.37×2.49×2.39×3.81×5.24
Q3-8BD-PACE4.78×5.10×4.10×4.03×4.33×2.62×2.36×3.90×5.42
Q3-8BLK-Losses5.06×5.38×4.48×4.22×4.76×2.77×2.57×4.18×5.74
Q3-8BDraft-OPD5.49×5.79×4.74×4.42×5.02×2.93×2.80×4.46×6.10
Q3-8BFReDraft5.99×6.34×5.11×4.74×5.35×3.26×3.10×4.84×6.67

Table 8. Decoding speedup and average accepted draft length (τ\tau) on Qwen3 models with thinking mode enabled.

All methods also have higher speedup and mean accepted length than in the corresponding non-thinking configuration. One possible explanation is that explicit reasoning changes the generated token patterns in ways that make longer prefixes easier to predict; longer responses can additionally amortize fixed decoding overhead. These are possible contributing factors, rather than mechanisms isolated by this comparison. The continued advantage of FReDraFT is consistent with prefix-aware optimization remaining useful when thinking mode changes the distribution of decoding contexts.

Generalization to Other Target Models

To assess generalization beyond the Qwen3 family, we repeat the comparison with Llama-3.2-3B-Instruct [15]16, abbreviated as L3-3B in Table 9. We train target-specific draft models using the same prompt sets and training recipes, regenerating the supervised responses with the new target. The drafter uses the target’s tokenizer and compatible hidden-state features; the draft length remains L=15L = 15, and FReDraft retains β=0.3\beta= 0.3. We evaluate all seven benchmarks at temperatures 0 and 1.0, using autoregressive decoding by the same Llama target as the speedup baseline. This comparison evaluates the portability of the training method across target families, with a separately trained drafter for each target.

ModelMethodGSM8KMATH-500AIME25MBPPHumanEvalSWE-LiteMT-BenchSRτ\tau
Speedup Ratio (SR)Mean
MathCodeChat
GSM8KMATH-500AIME25MBPPHumanEvalSWE-LiteMT-BenchSRτ\tau
Temperature = 0
L3-3BEAGLE-31.82×1.75×1.61×1.69×1.78×1.53×1.66×1.69×4.92
L3-3BDFlash3.08×3.44×2.91×2.86×3.03×1.98×1.89×2.74×5.13
L3-3BD-PACE3.19×3.61×3.04×2.94×2.99×2.03×1.85×2.81×5.27
L3-3BLK-Losses3.35×3.80×3.25×3.04×3.16×2.10×1.99×2.96×5.48
L3-3BDraft-OPD3.60×4.01×3.47×3.18×3.32×2.14×2.06×3.11×5.76
L3-3BFReDraft3.87×4.36×3.82×3.43×3.64×2.31×2.22×3.38×6.31
Temperature = 1.0
L3-3BEAGLE-31.70×1.62×1.48×1.56×1.64×1.42×1.53×1.56×4.46
L3-3BDFlash2.79×2.98×2.34×2.61×2.74×1.71×1.70×2.41×4.49
L3-3BD-PACE2.90×3.12×2.47×2.67×2.69×1.78×1.67×2.47×4.62
L3-3BLK-Losses3.04×3.27×2.60×2.78×2.88×1.84×1.79×2.60×4.81
L3-3BDraft-OPD3.23×3.49×2.78×2.92×3.02×1.91×1.88×2.75×5.02
L3-3BFReDraft3.46×3.78×3.05×3.14×3.31×2.06×2.03×2.98×5.48

Table 9. Decoding speedup and average accepted draft length (τ\tau) on Llama3.2-3B-Instruct.

The ranking in Table 9 is consistent with the Qwen3 results. DFlash improves speedup over EAGLE-3, and both on-policy methods outperform the off-policy DFlash-based baselines on average. FReDraft obtains the highest SR and τ\tau on all seven benchmarks at both temperatures. At temperature 0, its mean speedup increases from Draft-OPD’s 3.11× to 3.38×, while mean accepted length increases from 5.76 to 6.31. At temperature 1.0, the corresponding improvements are from 2.75× to 2.98× and from 5.02 to 5.48. The same qualitative advantage across the two target families supports the applicability of expected accepted-length optimization beyond the Qwen3 configuration, although the magnitude of the gain depends on the target and workload.

Wall-Clock Time Efficiency

We compare the on-policy training cost of Draft-OPD and FReDraft on Qwen3-4B using the hardware and training pipeline described in Appendix B.4. Both methods start from the same SFT checkpoint and use the same prompts, batch size, draft length, sampling configuration, and response-length limit. Rollout time includes draft generation and target verification; update time includes training replay, loss construction, backpropagation, and the optimizer update. We synchronize workers at timing boundaries and exclude evaluation and checkpoint-writing time.

To distinguish the cost of processing a draft from the amount of work needed for a query, we report amortized times at both levels. For accumulated rollout and update times TrollT_{\mathrm{roll}} and TupdateT_{\mathrm{update}}, processing NdraftN_{\mathrm{draft}} drafts from NqueryN_{\mathrm{query}} queries, the per-draft times are Troll/NdraftT_{\mathrm{roll}}/N_{\mathrm{draft}} and Tupdate/NdraftT_{\mathrm{update}}/N_{\mathrm{draft}}. The total time per query is (Troll+Tupdate)/Nquery(T_{\mathrm{roll}}+T_{\mathrm{update}})/N_{\mathrm{query}}. These are amortized training costs, rather than the latency of an individual query under concurrent execution. We also report the mean number of drafts per query and their mean accepted length to help interpret the timing.

Table 10 shows comparable per-draft costs for the two methods: rollout time is unchanged at the reported precision, while update time increases by approximately 1.3% for FReDraft. This is consistent with reusing the target distributions already collected during verification; the prefix-survival and penalty computations add a small amount of arithmetic to the shared training pipeline. The comparable costs are an empirical observation under this configuration, rather than a consequence guaranteed solely by using the same number of target-model forward passes.

MetricDraft-OPDFReDraft
Rollout time / draft (ms)15.015.0
Update time / draft (ms)8.08.1
Total time per draft (ms)23.023.1
Mean drafts per query80.074.0
Mean accepted length τ\tau5.405.92
Rollout time / query (s)1.2001.110
Update time / query (s)0.6400.599
Total time per query (s)1.8401.709

Table 10. Amortized on-policy training cost on Qwen3-4B. Rollout and update times are reported separately.

Despite the slightly higher update cost per draft, FReDraft reduces the amortized total time per query from 1.840 s to 1.709 s, a reduction of approximately 7.1%. The accompanying increase in accepted length is consistent with the decrease from 80.0 to 74.0 drafts per query, or 7.5% fewer blocks to generate, verify, and replay. For comparable response lengths, accepting more tokens per block reduces the number of verification rounds and can therefore lower both rollout and update work per query. Together with the training dynamics in Figure 5, this comparison supports the practical efficiency of the proposed objective: its additional loss computations have modest per-draft cost, while improved draft quality can reduce the amount of work required during on-policy collection.

References

  1. [1]Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In ICLR, 2024.arxiv.org/abs/2306.13649
  2. [2]Zihao An, Taichi Liu, Ziqiong Liu, Dong Li, Ruofeng Liu, and Emad Barsoum. PARD-2: Target-aligned parallel draft model for dual-mode speculative decoding. arXiv preprint arXiv:2605.08632, 2026.arxiv.org/abs/2605.08632
  3. [3]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021.arxiv.org/abs/2108.07732
  4. [4]Gregor Bachmann, Sotiris Anagnostidis, Albert Pumarola, Markos Georgopoulos, Artsiom Sanakoyev, Yuming Du, Edgar Schönfeld, Ali Thabet, and Jonas K Kohler. Judge decoding: Faster speculative sampling requires going beyond model alignment. In ICLR, 2025.arxiv.org/abs/2501.19309
  5. [5]Shrenik Bhansali and Larry Heck. Draft, verify, and improve: Toward training-aware speculative decoding. arXiv preprint arXiv:2510.05421, 2025.arxiv.org/abs/2510.05421
  6. [6]Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. Medusa: Simple LLM inference acceleration framework with multiple decoding heads. In ICML, 2024.arxiv.org/abs/2401.10774
  7. [7]Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318, 2023.arxiv.org/abs/2302.01318
  8. [8]Jian Chen, Yesheng Liang, and Zhijian Liu. DFlash: Block diffusion for flash speculative decoding. In ICML, 2026a.arxiv.org/abs/2602.06036
  9. [9]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.arxiv.org/abs/2107.03374
  10. [10]Qiaoling Chen, Zijun Liu, Peng Sun, Shenggui Li, Guoteng Wang, Ziming Liu, Yonggang Wen, Siyuan Feng, and Tianwei Zhang. ReSpec: Towards optimizing speculative decoding in reinforcement learning systems. Proceedings of Machine Learning and Systems, 8:367–379, 2026b.arxiv.org/abs/2510.26475
  11. [11]Xin Cheng, Xingkai Yu, Chenze Shao, Jiashi Li, Yunfan Xiong, Yi Qian, Jiaqi Zhu, Shirong Ma, Xiaokang Zhang, Jiasheng Ye, et al. DSpark: Confidence-scheduled speculative decoding with semi-autoregressive generation. arXiv preprint arXiv:2607.05147, 2026.arxiv.org/abs/2607.05147
  12. [12]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
  13. [13]Yuqian Fu, Haohuan Huang, Kaiwen Jiang, Jiacai Liu, Zhuo Jiang, Yuanheng Zhu, and Dongbin Zhao. Revisiting on-Policy distillation: Empirical failure modes and simple fixes. In Third Conference on Language Modeling, 2026.arxiv.org/abs/2603.25562
  14. [14]Roman Garipov, Fedor Velikonivtsev, Ivan Ermakov, Ruslan Svirschevski, Vage Egi azarian, and Max Ryabinin. AutoJudge: Judge decoding without manual annotation. NeurIPS, 2025.arxiv.org/abs/2504.20039
  15. [15]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhari, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
  16. [16]Geonmo Gu, Byeongho Heo, HeeJae Jun, Yoohoon Kang, Sangmin Lee, Sangdoo Yun, and Dongyoon Han. Verification-aware training for speculative decoding. arXiv preprint arXiv:2608.30135, 2026.arxiv.org/abs/2608.30135
  17. [17]Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. MiniLLM: Knowledge distillation of large language models. In ICLR, 2024.
  18. [18]Lujun Gui, Bin Xiao, Lei Su, and Weipeng Chen. Boosting lossless speculative decoding via feature sampling and partial alignment distillation. arXiv preprint arXiv:2408.15562, 2024.arxiv.org/abs/2408.15562
  19. [19]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirin Mo, Xiao Bi, et al. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.DOI
  20. [20]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In NeurIPS Datasets and Benchmarks Track (Round 2), 2021.
  21. [21]Shijing Hu, Jingyang Li, Xingyu Xie, Zhihui Lu, Kim-Chuan Toh, and Pan Zhou. GRIFFIN: Effective token alignment for faster speculative decoding. NeurIPS, 2025.arxiv.org/abs/2502.11018
  22. [22]Shijing Hu, Jingyang Li, Zhihui Lu, and Pan Zhou. Bridging draft policy misalignment: Group tree optimization for speculative decoding. In ICLR, 2026.arxiv.org/abs/2509.22134
  23. [23]Kaixuan Huang, Xudong Guo, and Mengdi Wang. SpecDec++: Boosting speculative decoding via adaptive candidate lengths. arXiv preprint arXiv:2405.19715, 2024.arxiv.org/abs/2405.19715
  24. [24]Haozhe Ji, Pei Ke, Zhipeng Hu, Rongsheng Zhang, and Minlie Huang. Tailoring language generation models under total variation distance. In ICLR, 2023.arxiv.org/abs/2302.13344
  25. [25]Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R Narasimhan. SWE-bench: Can language models resolve real-world github issues? In ICLR, 2024.arxiv.org/abs/2310.06770
  26. [26]Haodi Lei, Yafy Li, Haoran Zhang, Shunkai Zhang, Qianjia Cheng, Xiaoye Qu, Ganqu Cui, Bowen Zhou, Ning Ding, Yun Luo, et al. Draft-OPD: On-policy distillation for speculative draft models. arXiv preprint arXiv:2604.13016, 2026.
  27. [27]Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In ICML, 2023.arxiv.org/abs/2211.17192
  28. [28]Shenggui Li, Chao Wang, Yikai Zhu, Yubo Wang, Fan Yin, Shuai Shi, Yefei Chen, Xiaomin Dong, Qiaoling Chen, Jin Pan, et al. SpecForge: A flexible and efficient open-source training framework for speculative decoding. arXiv preprint arXiv:2603.18567, 2026a.arxiv.org/abs/2603.18567
  29. [29]Yaxuan Li, Yuxin Zuo, Bingxiang He, Jinqian Zhang, Chaojun Xiao, Cheng Qian, Tianyu Yu, Huan-ang Gao, Wenkai Yang, Zhiyuan Liu, et al. Rethinking on-policy distillation of large language models: Phenomenology, mechanism, and recipe. arXiv preprint arXiv:2604.13016, 2026b.arxiv.org/abs/2604.13016
  30. [30]Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. EAGLE: Speculative sampling requires rethinking feature uncertainty. In ICML, 2024a.arxiv.org/abs/2401.15077
  31. [32]Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle-3: Scaling up inference acceleration of large language models via training-time test. NeurIPS, 2025.arxiv.org/abs/2503.01840
  32. [33]Xiaoxuan Liu, Lanxiang Hu, Peter Bailis, Alvin Cheung, Zhijie Deng, Ion Stoica, and Hao Zhang. Online speculative decoding. In ICML, 2024.arxiv.org/abs/2310.07177
  33. [34]Mathematical Association of America. American invitational mathematics examination (aime) 2025, 2025. URL https://maa.org/math-competitions/american-invitational-mathematics-examination-aime.
  34. [35]Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Zhengxin Zhang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, et al. SpecInfer: Accelerating large language model serving with tree-based speculative inference and verification. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3, pp. 932–949, 2024.DOI
  35. [36]Siru Ouyang, Shuohang Wang, Minhao Jiang, Ming Zhong, Donghan Yu, Jiawei Han, and Yelong Shen. Temperature-centric investigation of speculative decoding with knowledge distillation. In Findings of the Association for Computational Linguistics: EMNLP 2024, pp. 13125–13137, 2024.
  36. [37]Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Jonathan Heek, Kefan Xiao, Shivani Agrawal, and Jeff Dean. Efficiently scaling transformer inference. Proceedings of machine learning and systems, 5:606–624, 2023.arxiv.org/abs/2211.05102
  37. [38]Yu-Yang Qian, Hao-Cong Wu, Yichao Fu, Hao Zhang, and Peng Zhao. When drafts evolve: Speculative decoding meets online learning. In ICML, 2026.arxiv.org/abs/2603.12617
  38. [39]Ranajoy Sadhukhan, Jian Chen, Zhuoming Chen, Vashisht Tiwari, Ruihang Lai, Jinyuan Shi, Ian En-Hsu Yen, Avner May, Taqi Chen, and Beidi Chen. MagicDec: Breaking the latency-throughput tradeoff for long context generation with speculative decoding. In ICLR, 2025.arxiv.org/abs/2408.11049
  39. [40]Alexander Samarin, Sergei Krutikov, Anton Shevtsov, Sergei Skvortsov, Filipp Fisin, and Alexander Golubev. LK losses: Direct acceptance rate optimization for speculative decoding. In ICML, 2026.arxiv.org/abs/2602.23881
  40. [41]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  41. [42]Kimi Team, Tongtong Bai, Yifan Bai, Yiping Bao, Jianfeng Cai, Xinyuan Cai, Peizhou Cao, Yuxuan Cao, Ziwei Chai, Y Charles, et al. Kimi k3: Open frontier intelligence. arXiv preprint arXiv:2607.24653, 2026a.
  42. [43]Kimi Team, Tongtong Bai, Yifan Bai, Yiping Bao, SH Cai, Yuan Cao, Y Charles, HS Che, Cheng Chen, Guanduо Chen, et al. Kimi k2.5: Visual agentic intelligence. arXiv preprint arXiv:2602.02276, 2026b.
  43. [44]Ramon Van Handel. Probability in high dimension. Technical report, PRINCETON UNIV NJ, 2014.DOI
  44. [45]Jikai Wang, Yi Su, Juntao Li, Qingrong Xia, Zi Ye, Xinyu Duan, Zhefeng Wang, and Min Zhang. Opt-tree: Speculative decoding with adaptive draft tree structure. Transactions of the Association for Computational Linguistics, 13:188–199, 2025.
  45. [46]Tianyu Wu, Yu Yao, Zhenting Qi, Han Zheng, Zhuohan Wang, Haoran Ma, Lawrence Liao, Himabindu Lakkaraju, Ju Li, and Yilun Du. D-PACE: Dynamic position-aware cross-entropy for parallel speculative drafting. arXiv preprint arXiv:2605.18810, 2026.arxiv.org/abs/2605.18810
  46. [47]Tianhua Xia, Mugilan Ganesan, Yifei Feng, Haiyu Wang, Maximilian Egger, and Sai Qian Zhang. Acceptance-aware draft model training for speculative decoding. arXiv preprint arXiv:2609.24150, 2026.arxiv.org/abs/2609.24150
  47. [48]Bangjun Xiao, Bingquan Xia, Bo Yang, Bofei Gao, Bowen Shen, Chen Zhang, Chenghong He, Chiheng Lou, Fuli Luo, Gang Wang, et al. Mimo-v2-flash technical report. arXiv preprint arXiv:2601.02780, 2026.arxiv.org/abs/2601.02780
  48. [49]Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochaо Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, et al. DeepSeek-V4: Towards highly efficient million-token context intelligence. arXiv preprint arXiv:2606.19348, 2026.arxiv.org/abs/2606.19348
  49. [50]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
  50. [51]Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, Qinkai Zheng, Bin Chen, Da Yin, Chendi Ge, Chenghua Huang, Chengxing Xie, et al. GLM-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763, 2026.arxiv.org/abs/2602.15763
  51. [52]Jun Zhang, Jue Wang, Huan Li, Lidan Shou, Ke Chen, Gang Chen, and Sharad Mehrotra. Draft& verify: Lossless large language model acceleration via self-speculative decoding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 11263–11282, 2024.
  52. [53]Yudi Zhang, Weilin Zhao, Xu Han, Tiejun Zhao, Wang Xu, Hailong Cao, and Conghui Zhu. Speculative decoding meets quantization: Compatibility evaluation and hierarchical framework design. arXiv preprint arXiv:2505.22179, 2025.arxiv.org/abs/2505.22179
  53. [54]Juntao Zhao, Wenhao Lu, Sheng Wang, Lingpeng Kong, and Chuan Wu. QSpec: Speculative decoding with complementary quantization schemes. In EMNLP, 2025.arxiv.org/abs/2410.11305
  54. [55]Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. Judging LLM as-a-judge with MT-bench and chatbot arena. In NeurIPS Datasets and Benchmarks Track, 2023.arxiv.org/abs/2306.05685
  55. [56]Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E. Gonzalez, Clark Barrett, and Ying Sheng. SLGang: Efficient execution of structured language model programs. In NeurIPS, 2024.arxiv.org/abs/2312.07104
  56. [57]Yongchao Zhou, Kaifeng Lyu, Ankit Singh Rawat, Aditya Krishna Menon, Afshin Rostamizadeh, Sanjiv Kumar, Jean-François Kagy, and Rishabh Agarwal. DistillSpec: Improving speculative decoding via knowledge distillation. In ICLR, 2024.arxiv.org/abs/2310.08461
  57. [58]Xiandong Zou, Jianshu Li, Jing Huang, and Pan Zhou. Variational speculative decoding: Rethinking draft training from token likelihood to sequence acceptance. In ICML, 2026.arxiv.org/abs/2602.05774

Paper details

vlnc:W_ua7c2bf2
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

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

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents