TreeFlash: Parallel AR-Approximation for Faster Speculative Decoding

Peer Rheinboldt, Frédéric Berdoz, Roger Wattenhofer
6/2/2026
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

One-shot block drafters for speculative decoding generate the full draft in a single forward pass, achieving strong throughput by eliminating sequential token generation. However, they predict each draft token conditioned only on the prefix context, with no dependence on previously drafted tokens. This non-autoregressive conditioning causes the drafter's distribution to diverge from the verifier's true autoregressive distribution as draft depth grows. This problem becomes more severe in tree-based drafting, where distinct branches are forced to share the same marginal distribution for subsequent tokens. We propose TreeFlash, which addresses this by incorporating an MLP layer conditioned on the drafter's hidden state and the previous token to approximate an autoregressive distribution. TreeFlash retains the $\mathcal{O}(1)$ decoding time complexity of one-shot drafters by employing a two-stage approximation mechanism. TreeFlash achieves state-of-the-art performance across a variety of tasks and models, improving over marginal tree drafting by $12\%$ higher block efficiency and $9\%$ higher speedup.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{rheinboldt2026treeflash,
  title  = {TreeFlash: Parallel AR-Approximation for Faster Speculative Decoding},
  author = {Peer Rheinboldt and Frédéric Berdoz and Roger Wattenhofer},
  year   = {2026},
  eprint = {2606.03819},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.03819v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.03819.svg)](https://codeofpaper.com/paper/2606.03819)

Discussion