# D-REAL: Acceptance-Length Optimization with Unbiased Gradients for Speculative Decoding

DevFeed: [D-REAL: Acceptance-Length Optimization with Unbiased Gradients for Speculative Decoding](<https://devfeed.tech/articles/d-real-acceptance-length-optimization-with-unbiased-gradients-for-speculative-decoding-125942.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10432>)

Author: Meng Wei, Yefei Chen, Antong Li, Yanan Gao, Xingliang Shi, Xin Gao, Zhiling Ye, Yun Yue, Chunxiao Guo, Peng Wei

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Model Optimizer](<https://devfeed.tech/topics/model-optimizer.md>), [trl](<https://devfeed.tech/topics/trl.md>), [Decoding](<https://devfeed.tech/topics/decoding.md>)

Tags: [acceptance](<https://devfeed.tech/tags/acceptance.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [draft](<https://devfeed.tech/tags/draft.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [estimator](<https://devfeed.tech/tags/estimator.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [greedy](<https://devfeed.tech/tags/greedy.md>), [model](<https://devfeed.tech/tags/model.md>), [objectives](<https://devfeed.tech/tags/objectives.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [optimize](<https://devfeed.tech/tags/optimize.md>), [overlap](<https://devfeed.tech/tags/overlap.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [post-training](<https://devfeed.tech/tags/post-training.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [sampling](<https://devfeed.tech/tags/sampling.md>), [serving](<https://devfeed.tech/tags/serving.md>), [speculative-decoding](<https://devfeed.tech/tags/speculative-decoding.md>)

## AI overview

D-REAL directly trains a speculative decoding drafter to increase expected acceptance length, which token-level objectives do not directly optimize. It weights draft-target distributional overlap at each position by the probability that earlier draft tokens survive verification, and derives an unbiased gradient estimator that accounts for the proposal distribution's parameter dependence under stochastic verification. In tests with DSpark and DFlash2 using Qwen3-8B across ten benchmarks, one post-training epoch improved benchmark-averaged mean acceptance length by up to 0.23 tokens under both greedy and stochastic sampling, from baselines where that metric had plateaued. The reported end-to-end serving throughput gain was up to 9.4%.

## Source excerpt

arXiv:2611.10432v1 Announce Type: new Abstract: Speculative decoding efficiency depends on the number of consecutively accepted draft tokens, yet token-level training objectives do not directly optimize this quantity. We introduce D-REAL (Drafter Reinforcement of Expected Acceptance Length), a post-training method that directly optimizes expected acceptance length for a fixed decoding context. D-REAL weights position-wise draft-target distributional overlap by prefix survival probabilities along a draft-sampled prefix, faithfully capturing the sequential dependence of verification on earlier proposals. By accounting for the parameter dependence of the proposal distribution, we derive an unbiased gradient estimator for this single-round objective under stochastic verification. We evaluate D-REAL on DSpark and DFlash2 with Qwen3-8B as the target model across ten benchmarks. Starting from baselines whose mean acceptance length has plateaued, one epoch of D-REAL post-training consistently improves the benchmark-averaged mean acceptance length by up to 0.23 tokens across both architectures under greedy (T = 0.0) and stochastic (T = 1.0) sampling, translating into up to a 9.4% end-to-end serving throughput improvement.