BlockPilot: Instance-Adaptive Policy Learning for Diffusion-based Speculative Decoding
Hao Zhang, Yiming Hu, Yong Wang, Mingqiao Mo, Xin Xiao, Xiangxiang Chu
Abstract
Speculative decoding accelerates inference by using a lightweight draft model to generate candidate tokens in parallel, and are then verified by the target model, enabling lossless acceleration. Recently, diffusion-based speculative decoding further improves parallelism by generating multiple tokens per forward pass via block-level diffusion, achieving state-of-the-art (SOTA) performance. However, existing methods adopt a fixed inference block size and assume a uniform optimal decoding strategy across all inputs. In this paper, we show that this assumption is suboptimal, as the optimal block size varies across samples and plays a critical role in speculative decoding performance. Moreover, these values exhibit a clear local structure, concentrating around the training block size, which reduces the problem to a low-dimensional and structured decision space. Based on these insights, we propose BlockPilot, a sample-adaptive policy that predicts the optimal block size from the prefilling representation. Specifically, we formulate block size selection as a lightweight policy learning problem and propose an instance-adaptive decision mechanism that predicts the optimal block size based on the representation of the prefilling stage. The prediction is performed only once after prefilling, allowing for seamless integration. Extensive experiments demonstrate that our method is plug-and-play, introduces minimal overhead, and consistently improves efficiency, achieving an acceptance length of 5.92 and a 4.20 speedup on Qwen3-4B under temperature .
Create a lesson
Metadata
- Comments
- 16 pages
Related papers
Grammar-as-a-Draft: More Tokens per Speculative Decoding Step on Grammar-Constrained Structured Outputs
Shared title terminologycs.CLJohn Zhang, Silky Arora
Decoding Transformer Dynamics via Koopman Subspaces
Shared title terminologycs.CLSubhradeep Kayal, Ali Dashti
RES: Accelerating Diffusion Language Models with Rolling Entropy Sampling
Shared title terminologycs.CLPatrick Pynadath, Nicolas Perez-Nieves, Bobak Shahriari et al.
EmoRouter: Adaptive Modality Cascading for Multimodal Emotion Recognition
Shared title terminologycs.CLFangxu Yu, Lingzhi Yuan, Dehai Min et al.
Contrastive On-Policy Distillation via Dual-Branch Supervision
Shared title terminologycs.CLZhibo Hou, Fan Zhao, Yiping Li et al.
Auditing Post-Training Unlearning in Diffusion Language Models using Sparse Autoencoders
Shared title terminologycs.CLYunha Seo, Changhoon Kim