TL;DR
Generating text with massive LLMs is agonizingly slow, so engineers use smaller "draft" models to guess whole trees of upcoming words for the big model to verify in a single gulp. This paper uncovers a hidden flaw in how we build those trees: branching out immediately wastes compute on easy, obvious guesses, starving the deeper, harder predictions where multiple options actually help. By simply waiting a few steps before branching—and training a tiny neural network to decide when and how wide to branch on the fly—the authors boost LLM decoding throughput by up to 26% without losing a shred of accuracy.
What Problem Does This Paper Address?
Autoregressive LLMs generate text one token at a time, leaving powerful GPUs twiddling their thumbs waiting on memory bandwidth. Speculative decoding fixes this by having a tiny, fast draft model guess several tokens ahead, which the massive target model checks in parallel. Better yet, multi-path speculative decoding has the draft model propose a branching tree of possibilities, hedged against uncertainty.
To guarantee the final output is mathematically identical to what the target model would have produced alone (lossless sampling), you need a specialized verification algorithm to prune and accept branches. Researchers have invented plenty of these—mostly top-down methods based on Optimal Transport (OT), plus a bottom-up method called Traversal Verification. Yet, nobody had ever put them in a fair, controlled head-to-head race across identical models, tasks, and sampling temperatures. Which verifier actually wins, and why?
Methods
First, the authors run the first systematic benchmark of single-path and multi-path verification algorithms (like SpecInfer, SpecTr, NaiveTree, and Traversal) across Llama-3, Qwen-2.5, and Gemma-3 families.
Discovering that standard root-level branching hobbles OT-based verifiers, they introduce two novel techniques:
- Delayed Tree Expansion: Instead of immediately branching into $K$ parallel paths at the root context, the draft model generates a single chain of length $L_1$ first, and only then splits into $K$ independent branches of length $L_2$. Crucially, the authors prove this still preserves the exact target distribution.
- Neural Delayed Expansion (NDE): Because the ideal tree shape depends heavily on context—a predictable code snippet needs a different tree than creative fiction—a static $(K, L_1, L_2)$ configuration falls short. The authors train a lightweight two-layer MLP selector. Before drafting, it glances at cheap root-node features (previous hidden states, entropy, sampling settings, and hardware latency) and predicts the exact $(K, L_1, L_2)$ action that maximizes expected tokens-per-second.
Datasets
No new benchmarks are introduced, as the focus is evaluating generation speed across diverse workloads. For benchmarking and training the NDE selector (using 350 training prompts per dataset and held-out test sets), the authors use five datasets:
- MATH500 & OlympiadBench (mathematical reasoning)
- LiveCodeBench (code generation)
- LitBench (creative writing)
- Opus (translation across English, French, Spanish, and Italian)
To test out-of-distribution generalization, they also evaluate on CRAG (RAG), GovReport (summarization), and IFBench (instruction-following).
Key Insights and Ideas
- Bottom-up verification crushes top-down OT (at first): Under standard root-branching, Traversal Verification beats every OT-based method by ~15% in both accepted tokens and throughput. Why? Top-down OT methods must survive a gauntlet of sequential coin flips from the root, making deep traversal exponentially hard, whereas Traversal evaluates paths from the leaves up.
- Branching at the root is wasted effort: Looking at over 200,000 draft trees, the authors found that near the root (depth 0–1), the draft and target models largely agree. Around depth 2, their probability distributions sharply diverge ($L_1$ distance spikes), and token acceptance plummets. Standard multi-path drafting burns its branching budget right at the start where guesses are already ~95% accurate, rather than saving token diversity for deeper nodes where the draft model starts losing the plot.
- Big model-size gaps love dynamic trees: NDE delivers its biggest wins when the draft model is tiny compared to the target (like Gemma-3 27B paired with a 270M draft model). When proposal distributions wildly diverge depending on context difficulty, dynamically throttling or delaying tree expansion prevents massive compute waste.
Key Results
- Baseline Benchmark: Traversal Verification leads all existing methods with an average throughput of 15.89 tokens/sec across models, beating the best OT method, SpecInfer (13.55 tokens/sec).
- Redeeming OT Verifiers: Adding NDE boosts existing verifiers by ~10% in block efficiency and ~25% in throughput on average (reaching up to 2.17x faster on Gemma). With NDE, SpecInfer reaches 16.69 tokens/sec, outperforming standard Traversal Verification by 5% for the first time.
- New State-of-the-Art: Applying NDE to Traversal Verification improves its average throughput by 26% across Qwen, Gemma, Llama, and Olmo setups.
- Strong Generalization & Low Overhead: On unseen tasks (RAG, summarization, instruction following), SpecInfer-NDE achieves 2.30x to 2.79x throughput gains over static SpecInfer. At inference time, the neural selector adds just 0.55% wall-time overhead.
Limitations and Future Work
- Offline Setup Cost: Training NDE isn't free—collecting traces and estimating block efficiencies offline took roughly 400–480 GPU hours for Qwen (though traces can be reused across different GPUs with quick latency recalibration).
- Diminishing Returns for Strong Drafts: On Llama-3 (70B target / 8B draft), the 8B draft model is already so capable that the optimal tree depth hits the maximum limit 55% of the time, leaving less room for dynamic switching and requiring extra regularization to prevent the selector from overfitting Llama's large hidden states (yielding smaller 2%–12% gains).
- Future Directions: The authors suggest scaling evaluations to longer generation lengths, designing more robust block-efficiency training objectives, and combining NDE with deterministic/hybrid drafting frameworks like EAGLE.
Summary updated