DForkTree: Accelerating Speculative Decoding with Fork-Aware Block Diffusion Draft Trees

Zhicheng Zheng, Cheng Zhang, Chenkai Tang

TL;DR

DForkTree is a training-free method that significantly accelerates LLM inference by correcting a fundamental flaw in block diffusion drafters: their tendency to "lose the plot" once a draft branch deviates from their most likely prediction. By using simple n-gram statistics to "re-anchor" these branches, DForkTree achieves up to a 4.75× speedup over standard decoding, outperforming existing state-of-the-art tree-based methods.

What Problem Does This Paper Address?

Speculative decoding is a popular technique to speed up Large Language Models (LLMs). It uses a small, fast "drafter" model to guess several future tokens, which the large "target" model then verifies in a single parallel pass. Modern "block diffusion" drafters (like DFlash) are incredibly fast because they predict an entire block of tokens at once.

However, these drafters have a blind spot. Because they predict all positions simultaneously, their predictions for later tokens are conditioned on the drafter's own most likely continuation—what the authors call the "spine."

The problem arises when we build a draft tree to explore multiple possible paths. As soon as a branch "forks" away from the spine, the drafter's accuracy plummets. On the spine, top-1 accuracy is a solid 89%; immediately after a fork, it drops to just 18%. The drafter is essentially trying to predict the future of a sentence while still thinking it's writing a different version of that sentence.

Figure 2. Where the marginals fail on Qwen3.5-4B. (a) Top-1 accuracy of the drafter’s marginal and of DForkTree’s score by node group, over 1.03M events from 155 development trajectories. (b) Top-1 accuracy at the first three tokens after the first fork on the target’s true continuation (20K, 5K and 5K nodes), with the drafter re-run from the fork token as the next round would. (c) Share of positions on A210 whose true token is in the top 16 while all earlier ones are.

Methods

The authors introduce DForkTree, which "re-anchors" these off-spine branches without requiring expensive retraining or additional neural network passes.

  1. Path Statistics from Self-Generated Text: The system pre-calculates n-gram statistics (unigrams, bigrams, and trigrams) from a corpus of the target model's own previous outputs.
  2. Pointwise Mutual Information (PMI) Scoring: Instead of using raw probabilities, DForkTree uses PMI to adjust the drafter's scores. This effectively asks: "Given these specific tokens on this specific branch, how much more likely is this next candidate than usual?" This avoids "double-counting" the general frequency of tokens already captured by the drafter.
  3. Fork-Aware Weighting: The authors observe that the drafter needs very little help on the spine but a lot of help after a fork. They apply a higher weight ($\lambda$) to the PMI correction for off-spine nodes.
  4. GPU-Optimized Tree Construction: To keep overhead low, the optimal tree is built entirely on the GPU using a layer-wise search. This allows the system to find the best $B$ prefixes for the draft tree in less than 1ms.
  5. Hybrid Verification: They implement an efficient verifier for hybrid models like Qwen3.5, which uses Gated DeltaNet layers, speeding up the verification step by up to 6×.
Figure 3. Overview of the DForkTree pipeline: from re-anchoring scores with PMI to efficient GPU tree construction and verification.

Datasets

The authors evaluated DForkTree on Qwen3.5-4B and 9B models across seven diverse benchmarks:

  • GSM8K & MATH-500: Mathematical reasoning.
  • HumanEval & MBPP: Python coding tasks.
  • LiveCodeBench (LCB): Competitive programming.
  • MT-Bench: Multi-turn conversation.
  • AlpacaEval: General instruction following.

The n-gram statistics were gathered from a separate corpus of 100k responses generated by the target model.

Key Insights and Ideas

  • The "Spine" Insight: The most critical finding is that the drafter's failure on branches isn't due to a lack of "knowledge," but rather a lack of "context." If you re-run the drafter starting from the fork token, its accuracy recovers to 84%. DForkTree's PMI correction acts as a "poor man's re-run," providing that missing context for free.
  • Training-Free is Competitive: Despite being a purely statistical, training-free method, DForkTree outperforms complex, trained "selectors" and "edge scorers." This suggests that the inherent knowledge in the drafter is sufficient if properly steered.
  • Optimal Tree Optimality: The authors prove that the "best-first" optimality of previous methods (like DDTree) holds even with their new path-dependent scores, and they show how to compute this efficiently in parallel on hardware.

Key Results

DForkTree emerged as the fastest tree-based speculative decoding method on every benchmark tested.

  • Overall Speedup: It achieved average speedups of up to 4.75× over standard autoregressive decoding.
  • Comparison to Baselines: It was up to 15.1% faster than DDTree and 9.9% faster than EAGLE-3, the previous state-of-the-art.
  • Efficiency: A full decoding round with DForkTree is only ~1% longer than a simple chain-based draft, meaning the extra intelligence comes with almost zero computational penalty.
Figure 1. Speedup over autoregressive decoding at temperature 0 on seven benchmarks (MATH is MATH-500), with the numbers of

Limitations and Future Work

  • Corpus Dependency: DForkTree requires a corpus of target model generations. While the authors show that even 1,000 responses provide a significant boost, the method's performance is tied to the quality and domain-relevance of this data.
  • Batch Size: The experiments were conducted with a batch size of one. The authors note that gains might shift in heavily batched serving environments where GPU compute is more saturated.
  • Drafter Specificity: The analysis focused on block diffusion drafters. While the "spine" problem likely exists in other non-autoregressive drafters, it hasn't been tested there yet.
  • Future Direction: The authors suggest that "drafters that condition on the branch they extend" (i.e., truly autoregressive block drafters) are the natural next step for the field.

Summary updated

Abstract

Speculative decoding speeds up language models by letting a lightweight drafter propose several future tokens that the target model verifies in parallel. Block diffusion drafters such as DFlash draft a whole block in one forward pass, and DDTree builds a draft tree from their per-position distributions. Each of these distributions assumes that the drafter's own most likely continuation is correct. A tree, however, gains over a chain only on branches that leave this continuation, where the drafter's top-1 accuracy drops from 89% to 18% and its candidate lists miss the right token far more often. When re-run from the fork token, the same drafter is usually correct, so the errors come from the prefix that the distributions condition on rather than from what the drafter knows. We introduce DForkTree, a training-free method that re-anchors each branch on its own tokens. DForkTree adds n-gram statistics from the target model's own outputs to the drafter's scores as pointwise mutual information, weights them more after the fork, and builds the optimal tree under these scores exactly on the GPU. On Qwen3.5-4B and 9B, with all tree methods sharing one drafter, tree pipeline and verifier, DForkTree is the fastest tree method on every benchmark. It is up to 41.5% faster than DFlash and 15.1% faster than DDTree in the same setting, with average speedups of up to 4.75x over autoregressive decoding.
BibTeX
@misc{zheng2026dforktree,
  author = {Zhicheng Zheng and Cheng Zhang and Chenkai Tang},
  title = {{DForkTree: Accelerating Speculative Decoding with Fork-Aware Block Diffusion Draft Trees}},
  year = {2026},
  eprint = {2611.12356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.12356},
}
Figure