TreeSpark: Calibrated, Load-Adaptive Draft Trees for Semi-Autoregressive Speculative Decoding

Huapeng Zhou, Huayu Wang, Xinyu Wang
8/12/2026
4 citations
cs.CL

Official code: PopSoda2002/TreeSpark (1 star, Python, MIT, last commit 2026-08-12).

Abstract

Speculative decoding accelerates language-model inference by letting a cheap drafter propose tokens that the target model verifies in parallel. Recent block drafters make drafting nearly free: a single backbone pass emits an entire block of draft tokens.

Show full abstract

Draft trees promise a further gain -- several alternative continuations verified in one target forward -- but existing constructions rank candidates by per-position marginals that ignore which parent a candidate extends, so on semi-autoregressive drafters wider trees mostly add mis-ranked nodes; and a tree of fixed size ignores how much speculation each decoding round, and each serving load, can support. We introduce TreeSpark, which reads a parent-conditioned distribution from the drafter's existing Markov head at negligible cost, calibrates it into an edge-acceptance estimate, and lets path survival govern everything else: best-first expansion, per-round stopping, and a load-adaptive serving policy. Sampling siblings without replacement, with matching residuals in recursive rejection, keeps decoding lossless at any temperature. Adaptive trees improve on matched fixed budgets at every temperature; against a tuned chain on the same drafter, TreeSpark accepts 15-25% more draft tokens per round and decodes 8-14% faster in single-request wall-clock, and under rising load it gracefully shrinks the tree back to the chain. Code and artifacts: https://github.com/PopSoda2002/TreeSpark

View on arXivView PDF

Code Implementations(1)

MIT

Calibrated, load-adaptive draft trees for semi-autoregressive speculative decoding

10PythonAug 12, 20263 months agoMIT

Similar Papers

Cite this paper

@article{zhou2026treespark,
  title  = {TreeSpark: Calibrated, Load-Adaptive Draft Trees for Semi-Autoregressive Speculative Decoding},
  author = {Huapeng Zhou and Huayu Wang and Xinyu Wang},
  year   = {2026},
  eprint = {2609.22098},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.22098v1}
}

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/2609.22098.svg)](https://codeofpaper.com/paper/2609.22098)

Discussion