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

SpecBlock: Block-Iterative Speculative Decoding with Dynamic Tree Drafting

Weijie Shi, Qiang Xu, Fan Deng, Yaguang Wu, Jiarun Liu, Yehong Xu, Hao Chen, Jia Zhu, Jiajie Xu, Xiangjun Huang, Jian Yang, Xiaofang Zhou

TL;DR

SpecBlock bridges the gap between slow, high-quality autoregressive drafters and fast, low-quality parallel drafters in speculative decoding. By generating blocks of dependent tokens in a single forward pass and dynamically growing a draft tree, it delivers an 8–13% speedup over state-of-the-art methods like EAGLE-3 while cutting drafting compute costs in half.

What Problem Does This Paper Address?

Large Language Model (LLM) inference is notoriously bottlenecked by memory bandwidth—loading massive model weights from memory takes far longer than the actual computation. Speculative decoding mitigates this by using a tiny, fast "draft" model to guess multiple future tokens, which the large "target" model verifies in a single parallel step.

However, existing draft models fall into two flawed camps:

  1. Autoregressive Drafters (e.g., EAGLE-3): They generate tokens one by one, preserving crucial token-to-token dependencies. While highly accurate, making sequential calls to the draft model for every single tree depth accumulates significant latency, consuming up to 30% of the total inference time.
  2. Parallel Drafters (e.g., Medusa): They predict multiple future tokens simultaneously in a single forward pass. While incredibly cheap, they predict each position independently without seeing the other guesses, leading to incoherent token sequences that the target model frequently rejects.

SpecBlock aims to achieve the best of both worlds: the path coherence of autoregressive drafting at the computational thrift of parallel drafting.

Figure 1: Three drafting paradigms. Autoregressive drafters (left) add one depth per drafter call. Parallel drafters (bottom-left) predict all depths independently in one call. SpecBlock (right) produces K dependent positions per call and batches blocks from multiple starting positions into each subsequent call, growing the tree iteratively.

Methods

SpecBlock introduces a block-iterative drafting paradigm. Instead of predicting one token or the entire sequence at once, it generates a block of $K$ dependent tokens in a single forward pass. The draft tree then grows iteratively through repeated block expansions.

To make this work, the authors designed several novel mechanisms:

  • Layer-wise Shift: To maintain token dependency within a single parallel forward pass, SpecBlock shifts the hidden state of position $k-1$ into position $k$ between consecutive decoder layers. This prevents the context from being diluted by standard causal attention.
  • Rank-Guided Tree Construction: Rather than using a fixed tree structure, a co-trained "rank head" predicts how well the target token will rank in the drafter's distribution. Confident positions get fewer branches, while uncertain positions get wider branching to maximize the chance of acceptance.
  • Valid-Prefix Curriculum Learning: During training, if an early token prediction in a block is wrong, supervising later tokens on the ground truth is a waste of capacity (since the verifier would reject the path anyway). SpecBlock uses a mask to dynamically drop the loss for subsequent positions once a path deviates.
  • Cost-Aware Serving-Time Adaptation: To handle domain shift during deployment, a bandit algorithm monitors free feedback from the verifier. It decides on a per-query basis whether to skip updating, update only the output heads (cheap), or update the full drafter (expensive), ensuring updates only happen if they net a throughput gain.
Figure 2: SpecBlock drafter architecture and block-iterative drafting. The first block (middle) fuses the target’s multi-layer hidden state, the verified token, and K position queries; prefix broadcast ( 1⃝) shares the target features across the K positions, and a layer-wise shift ( 2⃝) propagates position k−1’s state into position k between consecutive decoder layers. The lm head outputs draft distributions pk and the rank head outputs bucket labels bk that control per-position branching width. Branched candidates fill the expansion buffer and feed block 2 (right) as next-block starts.

Datasets

The draft models were trained using prompts from UltraChat-200K and ShareGPT, with completions re-generated by the target models to ensure alignment.

Evaluation was conducted across six standard benchmarks representing distinct capabilities:

  • MT-Bench (Multi-turn conversation)
  • HumanEval (Code generation)
  • MATH-500 (Competition mathematics)
  • Alpaca (Instruction following)
  • Natural Questions (NQ) (Open-domain question answering)
  • WMT-23 (Machine translation)

Key Insights and Ideas

  • Attention Dilution is the Enemy: Causal attention alone fails to maintain tight token-to-token relationships when generating multiple tokens in parallel because the history context overpowers the immediate token dependencies. Explicitly shifting hidden states horizontally across layers preserves this local coherence.
  • Dynamic Tree Shaping over Pruning: Fixed-width draft trees waste verifier compute on easy tokens and under-explore difficult ones. Predicting the rank bucket allows the tree to dynamically reshape itself on the fly.
  • Heads vs. Trunk Adaptation: When an LLM encounters a new domain, the internal representations of the draft model are often still salvageable; it is the output mapping that fails. The cost-aware bandit capitalizes on this by routing most online updates to the output heads, making serving-time adaptation computationally viable.

Key Results

SpecBlock was evaluated using Llama-3.1-8B, Qwen3-8B, and Qwen3-32B target models on an NVIDIA A100 GPU.

  • Speedup: SpecBlock achieved an 8–13% mean speedup over the state-of-the-art EAGLE-3 across all static configurations.
  • Drafting Cost Reduction: SpecBlock drastically cut drafting overhead, reducing the time share spent on drafting from ~31% (EAGLE-3) down to 11–16%. On Llama-3.1-8B, drafting time plummeted from 17ms to 7ms per iteration.
  • Online Adaptation Gains: Activating the cost-aware serving-time adaptation extended SpecBlock's performance lead over EAGLE-3 to 11–19% on streaming workloads.

Limitations and Future Work

  • Rank Head Dependency: The efficiency of the tree structure relies heavily on the accuracy of the rank head. If it mispredicts a bucket, it can bottleneck the tree with too few siblings or waste budget on too many.
  • Rigid Block Width: The block width ($K=4$) is hardcoded into the model's architecture at training time due to the layer-wise shift mechanism, meaning it cannot be dynamically adjusted at inference time based on hardware or workload changes. Future work could explore more elastic block configurations.

Summary updated

BibTeX
@inproceedings{shi2026specblock,
  author = {Weijie Shi and Qiang Xu and Fan Deng and Yaguang Wu and Jiarun Liu and Yehong Xu and Hao Chen and Jia Zhu and Jiajie Xu and Xiangjun Huang and Jian Yang and Xiaofang Zhou},
  title = {{SpecBlock: Block-Iterative Speculative Decoding with Dynamic Tree Drafting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=l6JgXCnnMq},
}
Figure