Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

TreeFlash: Parallel AR-Approximation for Faster Speculative Decoding

About

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.

Peer Rheinboldt, Fr\'ed\'eric Berdoz, Roger Wattenhofer• 2026

Related benchmarks

TaskDatasetResultRank
Code GenerationHumanEval (test)--
701
Code GenerationMBPP (test)--
411
Speculative DecodingGSM8K
Average Generation Length (τ)9.43
109
Speculative DecodingMT-Bench
Tau (τ)5.42
81
Speculative DecodingMATH 500
Speedup7.99
52
Speculative DecodingHumanEval
Speedup Factor6.85
52
Speculative DecodingMBPP
Speedup6.44
52
Showing 7 of 7 rows

Other info

Follow for update