Why Branching Guesses Made AI Text Less Fast Than Expected, and a Training-Free Fix (DForkTree)
Speculative decoding, a way to make AI models write faster, has a simple deal at its heart. A small drafter model guesses the next tokens (chunks of text), the big model checks them in parallel, and anything the big model agrees with is free speed. The draft can be a chain, one token after another, or a tree, several branches at once. Trees should win, because they cover more possible futures per check. In practice they often do not win by as much as they should, and this paper finally pinned down why.
New to these terms? Every word is explained in the series glossary.
The problem is what the tree is built from. Block diffusion drafters like DFlash, which fill in a whole run of tokens at once instead of one by one, draft a whole block in one forward pass (one run of the model), and DDTree builds a draft tree from the per-position distributions (the odds for each possible token at each spot) that come out. Each of those distributions quietly assumes that the drafter's own most likely continuation is correct. A tree only gains over a chain on the branches that leave that continuation, and that is exactly where the drafter falls apart. On those off-path branches, its top-1 accuracy (how often its single best guess is right) drops from 89% to 18%, and its candidate lists miss the right token far more often.
Here is the part that surprised me. When you re-run the same drafter from the fork token, the token where the branch splits off, it is usually correct. The drafter knows the answer. The errors come from the prefix (the text before) the distributions condition on, not from what the drafter knows. The tree is built on scores (the numbers that rank each guess) that were computed as if the main path were true, and once you leave that path, the scores are stale.
DForkTree fixes this without any extra training, the costly learning phase. It re-anchors each branch on its own tokens, adds n-gram statistics (counts of short token runs) from the target model's own outputs to the drafter's scores as pointwise mutual information, a measure of how much more often things appear together than chance, weights those statistics more after the fork, and builds the optimal tree under these scores exactly on the GPU, the graphics chip that runs the models. Nothing about the drafter or the verifier, the model that checks drafts, changes. The tree just gets built from scores that are honest about where each branch actually starts.
flowchart TD A[Block diffusion drafter: one forward pass] --> B[Per position distributions] B --> C{Branch on the main path?} C -- Yes --> D[Scores fit: top 1 accuracy 89%] C -- No, off path --> E[Stale scores: top 1 accuracy 18%] E --> F[DForkTree: re anchor branch on its own tokens] F --> G[Add n gram PMI from target outputs] G --> H[Weight n grams more after the fork] D --> I[Build the optimal tree exactly on the GPU] H --> I I --> J[Same verifier checks the tree]
Diagram: Off the main path the drafter's scores are stale. DForkTree re anchors each branch before building the tree.
They tested it on Qwen3.5 models at 4B and 9B, meaning 4 and 9 billion parameters (learned numbers), and they kept everything else fixed: one drafter, one tree pipeline, one verifier for every tree method, so the only thing that changes is how the tree gets built. Under those conditions DForkTree comes out fastest on every benchmark (standard test set) they ran. Compared with DFlash it is up to 41.5% faster, and compared with DDTree up to 15.1% faster. Against plain one-token-at-a-time decoding, the average speedup reaches 4.75x. I trust these numbers more than most because nothing else was allowed to vary.
Drafter top-1 accuracy, on-path vs off-path branchesData from the sources listed below.
What I take from this is a debugging lesson as much as a speed result. When a method underperforms, the fault is often not in the model but in a hidden assumption baked into the pipeline. Here the assumption was that the drafter's best guess is the right conditioning for every branch. It is true on the main path and false everywhere else, and the whole tree was paying for it. Fix the assumption and the same drafter, the same verifier, the same hardware, suddenly runs much faster. The paper's code is public, so this is one I can try on my own serving setup this week.
Try this
These commands download the code with git clone, fetch the paper from arXiv with curl, and install the Transformers library with pip.
bashgit clone https://github.com/Perseus037/DForkTree curl -s https://arxiv.org/abs/2611.12356 pip install transformers
Sources
- DForkTree: Accelerating Speculative Decoding with Fork-Aware Block Diffusion Draft Trees, arXiv:2611.12356 - https://arxiv.org/abs/2611.12356
- Code - https://github.com/Perseus037/DForkTree
