NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

BlockPilot: Instance-Adaptive Policy Learning for Diffusion-based Speculative Decoding

Hao Zhang, Yiming Hu, Yong Wang, Mingqiao Mo, Xin Xiao, Xiangxiang ChuarXiv 2026

TL;DR

BlockPilot introduces an instance-adaptive approach to diffusion-based speculative decoding by dynamically predicting the optimal token block size for each unique input sequence. By leveraging the target model's prefilling representation, this lightweight policy network avoids the inefficiencies of fixed block sizes, delivering up to a $4.20\times$ speedup on Qwen3-4B with virtually zero inference overhead.

What Problem Does This Paper Address?

Speculative decoding has become a cornerstone technique for accelerating Large Language Model (LLM) inference. It works by using a smaller, faster "draft" model to guess a sequence of future tokens, which the larger "target" model then verifies in parallel. Recently, diffusion-based language models (dLLMs) have pushed this further by drafting entire blocks of tokens simultaneously rather than predicting them token-by-token.

However, existing diffusion-based speculative decoding methods suffer from a major limitation: they use a fixed block size during inference, typically inherited directly from training. This assumes a uniform decoding strategy for all inputs. In reality, text generation difficulty varies wildly. Easy, highly constrained prompts (like code syntax or math formulas) can tolerate large block sizes for massive parallel gains. Conversely, open-ended or complex prompts suffer from rapid error accumulation if the block size is too large, leading to wasted draft generations and low acceptance rates.

Methods

The authors propose BlockPilot, a sample-adaptive policy that treats block size selection as a lightweight classification problem.

Figure 1: Diffusion-based speculative decod- ing with a dLLM draft model. The dLLM proposes a block of tokens in parallel, while the target LLM verifies the block and accepts the longest consistent prefix.

The core workflow operates as follows:

  1. Feature Extraction: After the target LLM completes its initial prefilling stage, BlockPilot extracts the predictive probability distribution of the very last token. Because of the causal attention mechanism, this single token encapsulates the context and uncertainty of the entire sequence.
  2. Policy Prediction: This distribution is fed into a shallow, 2-layer Multilayer Perceptron (MLP) with a hidden dimension of 2048. The MLP outputs a probability distribution over a small, discrete set of candidate block sizes.
  3. Execution: The optimal block size is selected via an argmax operation. Crucially, this prediction happens only once immediately after the prefilling stage and remains fixed for the rest of the generation process, ensuring it adds negligible latency (around 7.34 ms).

Datasets

To train the BlockPilot predictor, the authors constructed a supervised dataset using prompts from ShareGPT, WSC, and COPA.

For evaluation, they tested the framework across a diverse suite of standard benchmarks spanning three categories:

  • Mathematics: GSM8K, MATH-500, and AIME24.
  • Code Generation: HumanEval, MBPP, and SWE-Bench.
  • Conversational Chat: MT-Bench.

Key Insights and Ideas

  • One Size Does Not Fit All: The authors empirically demonstrate that the optimal block size varies significantly across different samples and datasets, proving that static configurations leave substantial performance on the table.
  • The Locality Property: While the optimal block size varies, it isn't random. It exhibits a strong local structure, almost always concentrating within a narrow window ($B \pm 3$) around the original training block size $B$. This insight simplifies an otherwise unbounded global search into a low-dimensional classification task.
Figure 3: Analysis of optimal block size B∗. (a) Matching and mismatching proportions across datasets. (b-c) Distribution patterns demonstrating strong locality, where the range [B −3, B + 3] covers the optimal size for nearly all samples.
  • Prefilling Contains the Future: The predictive distribution of the final prefill token acts as an excellent sufficient statistic for future generation stability, capturing semantic constraints and local uncertainty simultaneously.

Key Results

BlockPilot consistently outperforms both traditional speculative decoding (like EAGLE-3) and state-of-the-art fixed-block diffusion methods (DFlash) across multiple model architectures, including Qwen3-4B, Qwen3-8B, Llama-3.1-8B-Instruct, and Qwen3-Coder-30B.

Figure 2: Speedup comparison across models under temperature T = 1. Our method achieves the highest acceleration across all settings. Here, DFlash(n) denotes DFlash with block size n.
  • Speedup Gains: On Qwen3-4B (at temperature $T=1$), BlockPilot achieved an average acceptance length of 5.92 tokens per step and a $4.20\times$ end-to-end speedup, outperforming the best fixed-block baseline.
  • Minimal Overhead: The predictor network requires only 0.32B parameters and a tiny memory footprint (0.62 GB), making it a highly practical, plug-and-play addition to existing inference pipelines.

Limitations and Future Work

The primary bottleneck of BlockPilot lies in its offline data construction phase. To find the ground-truth optimal block size for the training set, the authors must exhaustively simulate speculative decoding across all candidate block sizes. For a large 32B parameter model, this brute-force enumeration takes roughly 25 seconds per training sample.

While this overhead is strictly a one-time offline cost, the authors note that future work will explore more efficient search strategies, such as adaptive block-size pruning, early stopping mechanisms, or lightweight proxy metrics to estimate block efficiency without full execution.

Summary updated

BibTeX
@misc{zhang2026blockpilot,
  author = {Hao Zhang and Yiming Hu and Yong Wang and Mingqiao Mo and Xin Xiao and Xiangxiang Chu},
  title = {{BlockPilot: Instance-Adaptive Policy Learning for Diffusion-based Speculative Decoding}},
  year = {2026},
  eprint = {2606.31315},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.31315},
}
Figure