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.
Methods
The authors introduce DForkTree, which "re-anchors" these off-spine branches without requiring expensive retraining or additional neural network passes.
- 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.
- 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.
- 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.
- 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.
- 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×.
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.
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