Manuscript Offprint

arXiv:2610.28355

Beyond the Point Mass: Acceptance-Derived Weights and Distributional Losses for Speculative Decoding

Tianyu Wu, Zhuohan Wang, Jonathan Geuter, Yu Yao, Weifan Jiang, Chengxi Zhang, Ju Li, Minlan Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In speculative decoding, a lightweight draft model proposes tokens that the target model verifies in parallel, speeding up generation without changing the target distribution. D-PACE (Wu et al., 2026) trains such drafters with a loss that weights each position by its contribution to the expected accepted length. Both its weights and its cross-entropy (CE) loss use only the draft's probability of the recorded target token, treating the target as a point mass. Under rejection sampling, however, a sampled draft token is accepted with probability equal to the overlap of the draft and target distributions, one minus their total variation (TV). We derive D-PAL (Dynamic Position-wise Acceptance Loss) from the exact expected accepted length, using this overlap as the acceptance signal. This yields overlap-based position weights with log acceptance (LA) as the per-position loss, and the objective reduces to D-PACE for a point-mass target. Since the weights are detached, any per-position loss can replace LA in practice. We show that forward KL divergence and Rényi divergence of order 1/2 match or exceed LA, and that Rényi-1/2 provably bounds the true acceptance rate from above and below. Replacing CE with Rényi-1/2 improves acceptance length under both D-PACE's weights and ours. On six benchmarks with a Qwen3-4B target, D-PAL raises mean acceptance length over D-PACE from 4.50 to 4.57 at T = 0 and from 4.20 to 4.28 at T = 1, and consistently achieves higher throughput at both temperatures.

1 Introduction

Speculative decoding accelerates autoregressive generation without changing the target model's output distribution (Leviathan et al., 2023; Chen et al., 2023): a lightweight draft model proposes tokens, and the target model verifies them in one parallel pass. DFlash drafts a whole block in one forward pass (Chen et al., 2026). Since verification stops at the first rejection, early block positions matter most. DFlash trains with cross-entropy (CE) and a fixed position decay, and DSpark and H-Spec add a total variation (TV) term to CE under the same decay (Cheng et al., 2026; Jiang et al., 2026). LK Losses optimizes acceptance directly, with the negative log acceptance or an adaptive mix of Kullback–Leibler (KL) divergence and TV, but still uses fixed decay (Samarin et al., 2026). D-PACE (Dynamic Position-Aware Cross-Entropy) instead derives position weights from a surrogate of the expected accepted length (Wu et al., 2026). SpecForge (SpecForge Contributors, 2026), Speculators (Speculators Contributors, 2026), and TorchSpec (TorchSpec Contributors, 2026) use it to train DFlash drafters.

D-PACE treats the target as a point mass on the recorded token yt∗y_t^*: it estimates acceptance by the draft's confidence qt(yt∗)q_t(y_t^*) and fits that token with CE. Under standard rejection sampling, however, acceptance depends on the full target distribution ptp_t through the overlap α^t=∑vmin⁡(pt,v,qt,v)=\widehat{\alpha}_t = \sum_v \min(p_{t,v}, q_{t,v}) =

1 – TV( ptp_t, qtq_t) (Leviathan et al., 2023). When the target is uncertain, confidence can underestimate this overlap by a wide margin. For example, if pt=qtp_t = q_t is uniform over kk tokens, the verifier always accepts a sampled draft token ( α^t=1\widehat{\alpha}_t = 1), yet qt(yt⋆)=1/kq_t(y_t^\star) = 1/k. CE likewise fits only the recorded token.

We propose D-PAL (Dynamic Position-wise Acceptance Loss), which we derive by differentiating the expected accepted length with the true acceptance signal 1−TV(pt,qt)1 - \text{TV}(p_t, q_t). The derivation yields overlap-based position weights paired with a log acceptance (LA) loss, −log⁡α^t-\log \widehat{\alpha}_t, as the local loss, which reduces to D-PACE when ptp_t is a point mass. Because D-PAL detaches the weights, we can swap LA for any local loss in practice. We write D-PAL[X] for D-PAL with local loss X. We show overlap bounds the acceptance of the argmax proposals that deployed DFlash uses (Proposition 1). Replacing CE with a distributional loss, Rényi divergence of order 1/21/2, raises mean acceptance length under both confidence and overlap weights. In our experiments, we show that LA is not the best local loss. It is not differentiable where a draft probability equals the target probability, and its gradient with respect to the draft logits does not shrink near qt=ptq_t = p_t, whereas the KL and Rényi gradients vanish there. Forward KL and Rényi-1/2 match or exceed LA, and Rényi-1/2, unlike KL, bounds overlap from both sides (Lemma 1). We also test TV-based losses, where pure TV collapses and CE+TV falls short, and analyze their gradients.

Our contributions are:

i) Derivation from expected accepted length. Differentiating the exact expected accepted length with the overlap as the acceptance signal gives overlap-based weights paired with LA. Proposition 1 connects the overlap to the argmax verification used in deployment. We show D-PAL[LA] improves on D-PACE, raising mean acceptance length on Qwen3-4B from 4.50 to 4.54 at T = 0 and from 4.20 to 4.24 at T = 1 (Table 1).

ii) Local loss beyond log acceptance. The derivation points to LA, but LA is not differentiable where the draft matches the target. Keeping the same weights, we replace it with forward KL and with Rényi-1/2, and both reach the same or higher acceptance length (Table 1). We also show Rényi-1/2 bounds overlap from above and below (Lemma 1).

iii) Consistent gains over D-PACE and DFlash. In experiments across temperatures, block sizes, draft depths, target models at the 4B and 8B scale, and thinking modes, we show that D-PAL consistently achieves longer acceptance lengths and higher throughputs than both D-PACE (up to 5%) and DFlash (up to 11%).

References (53)