Papers › TreeFlash: Parallel AR-Approximation for Faster Speculative Decoding

TreeFlash: Parallel AR-Approximation for Faster Speculative Decoding

2 Jun 2026arXiv:2606.03819added by Syntology

Peer Rheinboldt, Frédéric Berdoz, Roger Wattenhofer

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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 𝒪(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.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.03819")

Code

Syntology Ran 11 of 18 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 6 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ETH-DISCO/TreeFlash found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 11 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
6ran · fixture could not drive it
2ran
7unverified

Licence: 18 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ETH-DISCO/TreeFlash. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

SwiGLUApproximation ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 5ea2b3d0bd393b88 · report
_ar_approximation_name ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · 445625cc41768e52 · report
_build_candidate_tree_from_transition_tables ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 2d78b7ae74c67452 · report
_candidate_tokens ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · 39e6760001044741 · report
_compile_tree_attention_mask ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 1965ea40568355c3 · report
_compute_tree_acceptance ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · bf25271b68149b27 · report
_cuda_time ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · metamorphic tier: well formed no licence file found · pointer only · dcd98c1c9250dc1f · report
_treeflash_config ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · 7f2870e4ac60f4c2 · report
build_target_layer_ids ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · 0dc744c2b2fb89e2 · report
extract_context_feature ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · 5d0bf8328d86b399 · report
sample ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology ran · fixture could not drive it fingerprinted no licence file found · pointer only · 12b15cc84384fe5e · report
Qwen3DFlashAttention ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology unverified no licence file found · pointer only · 6359f88b4c146796 · report
Qwen3DFlashBackbone ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology unverified no licence file found · pointer only · a74eed0c1d064f7d · report
Qwen3DFlashDecoderLayer ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology unverified no licence file found · pointer only · 1d52ce02d7ac58f2 · report
TreeFlashDraftModel ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology unverified no licence file found · pointer only · 5a2e1317a43f4b39 · report
_compact_appended_window ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology unverified no licence file found · pointer only · 20b7d3b6431eaccb · report
_compact_dynamic_cache_tail ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology unverified no licence file found · pointer only · 38d45e75bdd70512 · report
apply_rotary_pos_emb ETH-DISCO/TreeFlash/tree_flash.py found in paper text by Syntology unverified no licence file found · pointer only · cce1f5188f2264e4 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.03819, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections