AdaTree: Serving-Aware Adaptive Tree Construction for Speculative Decoding

Soohyun Cha, Jungi Lee, Jaewoong SimNeurIPS 2026

TL;DR

Generating text with massive LLMs is notoriously slow, and while "speculative decoding" speeds things up by having a tiny model guess future words in branching trees, fixed tree shapes choke when real-world server traffic fluctuates. AdaTree is a lightweight plug-in that dynamically reshapes these token trees on the fly based on current server load and prompt difficulty. By using decision trees to predict GPU bottlenecks before they happen, it keeps LLMs running at peak efficiency—even when traffic spikes.

What Problem Does This Paper Address?

Autoregressive LLM generation has a fundamental speed limit: generating one token at a time leaves GPU compute cores sitting idle while waiting on memory bandwidth to load massive model weights. Speculative decoding (SD) bypasses this by having a tiny, fast "draft" model guess several upcoming tokens, which the massive "target" model then verifies in parallel during a single forward pass.

State-of-the-art methods like EAGLE-2 organize these guesses into a branching token tree rather than a single chain to maximize the number of accepted tokens per step.

Figure 1: Draft tree construction and verification in EAGLE-2. (a) Tree expansion through successive forward passes of the draft model. (b) Node selection to form the final draft tree. (c) Tree verification by the target model.

Here is the catch: existing systems use static tree configurations (e.g., always verifying 60 tokens at a depth of 8). In a live serving environment using continuous batching, conditions change millisecond by millisecond:

  • Traffic fluctuations: When server traffic is low, GPUs have spare compute, so verifying a massive tree is basically free. When traffic spikes and batch sizes grow, verifying large trees pushes the GPU from being memory-bound to compute-bound, causing latency to skyrocket.
  • Prompt predictability: Writing boilerplate code is predictable, justifying a deep draft tree. Answering open-ended questions is harder to guess, meaning deep drafting just wastes time on tokens the target model will ultimately reject.

Methods

The authors introduce AdaTree, a plug-in scheduler that wraps around existing tree-based speculative decoding pipelines (specifically extending EAGLE-3 with continuous batching). At every decoding step, AdaTree aims to maximize per-iteration throughput—the expected number of accepted tokens divided by total execution time—by dynamically tuning two knobs: tree size (which taxes target model verification) and tree depth (which taxes draft model generation).

Instead of guessing, AdaTree builds the draft tree one level at a time and decides whether to keep going using two novel estimators:

  1. Calibrated Acceptance Length: Standard methods estimate how many tokens will be accepted using the draft model's raw probabilities. Because tiny models are notoriously overconfident, AdaTree applies temperature scaling (smoothing the logits) so it doesn't get tricked into building wasteful, overly deep trees.
  2. Execution Time via XGBoost: GPU latency isn't linear—it stays flat while memory-bound, then shoots up sharply once compute-bound. Instead of flawed linear regression, AdaTree uses a lightweight XGBoost ensemble of decision trees trained on batch size, max context length, and token count to predict exact draft and target execution times.

After expanding one level of the draft tree, AdaTree queries its estimators. If expanding another level is predicted to boost overall throughput, it continues; the moment returns diminish, it halts drafting, prunes the tree to the optimal size, and sends it to the target model.

Datasets

No new datasets are introduced; AdaTree is evaluated across established benchmarks covering diverse tasks and traffic patterns:

  • Spec-Bench: Includes MT-Bench (multi-turn chat), WMT (translation), CNN/DailyMail (summarization), NQA (question answering), GSM8K (math), and DPR (RAG).
  • Code & Chat: HumanEval (code completion) and ShareGPT (conversations).
  • Real-World Traffic: The Azure LLM inference trace (providing realistic, bursty request arrival times and lengths) paired with PG-19 prompts matched to the trace's input lengths.

Key Insights and Ideas

  • Optimal tree size shrinks as traffic grows: Larger batch sizes saturate GPU compute much faster during parallel verification, meaning high-traffic servers actually run faster with smaller speculative trees.
Figure 2: (a) Speedup of tree-based SD over AD under varying tree sizes for three different request rates. (b) Acceptance length of tree-based SD across tree sizes. (c) Verification time normalized to that of AD for three batch sizes, representing the average batch size at each request rate.
  • Task type dictates tree depth: Structured tasks like HumanEval coding benefit from deeper trees (peaking at depth 5), whereas diverse QA tasks like NQA plateau early (depth 4), turning extra draft steps into pure overhead.
  • Long contexts raise the stakes: In long-context workloads (like reasoning models or agents), attention eats up memory bandwidth and long outputs cause requests to linger, bloating batch sizes. Getting the tree shape right finishes requests earlier, shrinking the active batch size and creating a compounding speedup.

Key Results

Evaluated primarily using Llama-3.1-8B-Instruct on an NVIDIA RTX Pro 6000 Blackwell GPU against standard autoregressive decoding (AD), static chains (SpS), and static trees (EAGLE-3):

  • Varying Traffic: Across fluctuating request rates on GSM8K, AdaTree outperforms all baselines, hitting up to a 1.2$\times$ speedup over the best static baseline by cutting verification time by 1.3$\times$ compared to EAGLE-3 while beating SpS on acceptance length.
  • Varying Tasks: Across eight diverse datasets, AdaTree delivers an average 1.26$\times$ speedup (up to 1.3$\times$ on long-context CNN summarization) over the best static baseline. On long-context MT-Bench, early request completion drops average batch sizes from 28.6 down to 5.9.
  • Surviving Real-World Spikes: On the bursty Azure trace, static EAGLE-3 actually degrades performance to 0.73$\times$ (slower than no speculation at all!) because massive batches (averaging 59) make its 60-token trees severely compute-bound. AdaTree automatically throttles tree sizes, achieving a 1.60$\times$ speedup over AD (1.32$\times$ over the best baseline) while improving P99 tail latency from 109.6s (AD) and 139.0s (EAGLE-3) down to 80.5s.

Limitations and Future Work

AdaTree is currently built and tested exclusively for separate, autoregressive transformer draft models. The authors note that adapting it to non-transformer drafters, self-drafting architectures, or newer block diffusion drafters—which generate multiple draft positions in parallel rather than step-by-step—will require rethinking how draft model execution time is modeled. Additionally, under extreme compute-bound conditions (like heavy real-world traces), absolute speculative speedups remain inherently capped by the GPU's compute-to-memory-bandwidth ratio.

Summary updated

Abstract

Speculative decoding accelerates generative inference of large language models (LLMs) by using a small draft model to propose multiple candidate tokens, which are then verified in parallel with the target model in a single decoding iteration. While the state-of-the-art method of tree-based speculative decoding helps improve generation throughput over non-speculative inference, deploying it in LLM serving systems often yields suboptimal performance due to dynamically changing serving conditions. In particular, our analysis shows that the optimal tree configuration---the one that maximizes performance---varies with two key serving conditions: request rate and per-request characteristics. Based on the analysis, we present AdaTree, a plug-in component for LLM serving systems that dynamically adapts tree configurations to varying serving conditions. AdaTree predicts model execution time and acceptance length across different tree configurations and selects the one that maximizes speculative decoding efficiency. To capture the non-linear relationship between tree configuration and model execution time, AdaTree employs decision trees as its core modeling primitive. Our evaluation shows that AdaTree consistently outperforms both chain-based and static tree-based speculative decoding across diverse serving conditions.
BibTeX
@inproceedings{cha2026adatree,
  author = {Soohyun Cha and Jungi Lee and Jaewoong Sim},
  title = {{AdaTree: Serving-Aware Adaptive Tree Construction for Speculative Decoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=NnEEkVzU8t},
}
Figure