D-REAL: Acceptance-Length Optimization with Unbiased Gradients for Speculative Decoding
Meng Wei, Yefei Chen, Antong Li, Yanan Gao, Xingliang Shi, Xin Gao, Zhiling Ye, Yun Yue, Chunxiao Guo, Peng Wei
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.
Create a lesson
Related papers
Speculative Decoding Is Less Speculative Than You Think
Shared title terminology · Guanning Zeng, Andrea Zanette
Vega-Fafnir: Is Greedy Decoding the Same Decoding? Where Rounding Noise in Speculative Verification Comes From and What Removing It Costs
Shared title terminology · Mohammed Nayeem Khan, Navin Kumar R
Multi-Future Drafting: Mixture Block Drafters for Tree-Verified Speculative Decoding
Shared title terminology · Haoyu Huang, Jialiang Kang, Linlin Yang et al.
DForkTree: Accelerating Speculative Decoding with Fork-Aware Block Diffusion Draft Trees
Shared title terminology · Zhicheng Zheng, Cheng Zhang, Chenkai Tang et al.
Infrathon: Benchmarking Language Agents for Real-World, Long-Horizon AI Infra Optimization
Shared title terminology · Zhengyu Hu, Zheyuan Xiao, Yike Wang et al.
SAE-Audit: Clinical-Trial Prediction via Inference-Time Optimization of Black-Box LLMs Audited by Sparse Autoencoder Evidence
Shared title terminology · Junbo Shen