Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decoding Yuhao Shen1,2* , Tianyu Liu2,3* , Xinyi Hu2,1* , Quan Kong1 , Baolin Zhang2,1 , Jun Dai2 , Jun Zhang2,1† , Shuang Ge2 , Lei Chen2 , Yue Li2 , Mingcheng Wan2 and Cong Wang1† 1 Zhejiang University, 2 Qwen Applications Business Group of Alibaba, 3 University of Science and Technology of China
arXiv:2605.20104v1 [cs.LG] 19 May 2026
* Core Contribution. † Corresponding author.
Speculative decoding (SD) accelerates large language model inference by leveraging a draft-then-verify paradigm. To maximize the acceptance rate, recent methods construct expansive draft trees, which unfortunately incur severe VRAM bandwidth and computational overheads that bottleneck end-to-end speedups. While dynamic-depth pruning can reduce this latency by removing marginal branches, it also discards potentially valid candidates, preventing the acceptance rate from reaching the upper bound of dense trees. In this paper, we identify a critical opportunity in resource allocation: the transition from dense to pruned drafting frees up significant computational budget. To break this Pareto tradeoff, we introduce Graft, a compensation framework that couples pruning and retrieval as mutually reinforcing operations. Pruning supplies sufficient budget for retrieval, while retrieval compensates for pruning-induced coverage loss and recovers accepted length. By employing a sequential ‘prune-then-graft’ mechanism, Graft attaches highly predictive retrieved tokens into positions opened by pruning, filling the topological gaps with near-zero overhead. Graft is entirely training-free and lossless. Comprehensive evaluations show that Graft establishes a new Pareto frontier across practical deployment settings, including short-context generation, long-context generation, and large-scale models. On short-context benchmarks, it achieves up to 5.41× speedup and improves average speedup over EAGLE-3 by up to 21.8% on the large-scale Qwen3-235B. On long-context benchmarks, Graft reaches 3.22× average decoding speedup on LLaMA3.1-8B and outperforms EAGLE3-64K by 16.6% on Qwen3-14B. We also provide a preliminary exploration of applying Graft to the DFlash-style block drafting paradigm, offering initial evidence and insights for extending grafting beyond autoregressive draft trees.
1. Introduction Autoregressive decoding in large language models (LLMs) is inherently sequential: every generated token depends on the prefix produced so far (Brown et al., 2020). As LLMs scale toward larger parameter counts and longer context windows (Yang et al., 2025a; Guo et al., 2025), this sequential dependency becomes a persistent latency bottleneck. System-level optimizations, such as quantization, distillation, and efficient attention (Hinton et al., 2015; Dao et al., 2022; Choi et al., 2018), reduce the cost of each forward pass. However, they do not alter the token-by-token nature of generation. This problem is especially pronounced in real-world deployments, where long outputs and extensive KV-cache overhead amplify even minor inefficiencies in the decoding loop. Speculative decoding (SD) losslessly relieves this bottleneck via a draft-then-verify paradigm (Leviathan et al., 2023; Chen et al., 2023; Zhang et al., 2024a). Traditionally, a lightweight draft model proposes a sequential chain of candidate tokens, which the target model then verifies in a single parallel forward pass. To further increase the mean accepted length (MAT) per step, recent methods evolve this chain into a token tree, verifying multiple candidate branches simultaneously (Miao et al., 2024a). Notably, EAGLE-3 (Li et al., 2025) serves as a strong practical baseline. It reuses target-model features to predict subsequent tokens, thereby constructing high-quality draft trees. However, this tree-based expansion exposes a significant challenge. While incorporating more candidate branches provides broader coverage and higher MAT, it also heavily increases
Mean Accepted Length
Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decoding
GRAFT
3.1
retrieval grafting +speed, +length
3.0 EAGLE3
Dense EAGLE length bound
2.9 2.8
SVIP
DDD 2.2
better
Prune: faster, lower length
2.7
2.1
ECHO
2.3
2.4
2.5
Wall-time Speedup (×)
Figure 1 | Speed-accepted-length tradeoff on Qwen3-32B HumanEval. Each point reports wall-time speedup and mean accepted length. Dense EAGLE3 gives the accepted-length upper point for pruning-only subtrees. Dynamic pruning methods such as DDD, SVIP, and ECHO move rightward by reducing draft cost, but their accepted length falls below the dense-tree bound. Graft uses retrieval to fill the slots released by pruning, introducing candidates beyond the original subtree and breaking this pruning trade-off under the same verification budget.
draft-side search, memory bandwidth consumption, and verification workload. Consequently, the increased acceptance rate brought by a large draft tree often fails to translate into optimal end-to-end wall-clock speedups. Dynamic tree construction addresses this inefficiency through dynamic-depth pruning (Brown et al., 2024; Hu et al., 2026; Liu et al., 2026a; Zhang et al., 2024c). When the draft model is uncertain, the tree is pruned at a shallower depth to avoid wasted computation. Yet, this introduces a structural limitation: dynamic trees are strictly subtrees of the original static tree. Because confidence signals are noisy, fine-grained pruning inevitably causes misjudgments. The controller may prune away valid continuations, strictly bounding the MAT below the static-tree upper limit. This creates a strict latency-MAT frontier, as vividly illustrated in Figure 1. Dynamic pruning methods such as DDD, SVIP, and ECHO successfully run faster by reducing draft cost (moving rightward), but their accepted length inevitably falls below the dense EAGLE-3 bound. While such pruning errors are unavoidable, we argue that they can be mitigated by effectively repurposing the computational redundancy created by pruning. Our key observation is that pruning acts not merely as candidate removal but as a critical mechanism for budget release. Once low-confidence branches are pruned, the freed slots need not remain empty, nor should they be wasted on deeper uncertain drafting. Instead, they can be filled by a cheaper candidate source: retrieval. Prior retrieval-based SD methods have explored prompt lookup, external datastores, and cached transitions (Saxena, 2023; He et al., 2024; Luo et al., 2024; Fu et al., 2024). However, most act as standalone drafters or target-side auxiliary mechanisms. For instance, SAM-Decoding (Hu et al., 2025) only uses retrieval quality as a routing signal to decide whether to invoke a parametric tree drafter, rather than enriching the draft tree itself. Furthermore, many existing retrieval methods rely on CPU-side lookup or synchronization-heavy structures, creating overheads that easily negate speculation gains. By seamlessly integrating retrieval to fill the topological gaps left by pruning, we can compensate for misjudgments and create a new performance bound. Motivated by this observation, we introduce Graft, a training-free and lossless hybrid tree construction framework built around a prune-then-graft strategy under the principle of draft less, retrieve more. Graft first performs confidence-based pruning through calibrated pruning checkpoints: when draft confidence is low, it prunes the tree and releases the remaining candidate budget. It then grafts retrieval-based branches into the released slots, keeping the final verification budget identical to the original static tree. As shown in Figure 1, this allows Graft to introduce candidates beyond the original subtree, effectively breaking the pruning trade-off. The two steps are complementary by construction: pruning supplies budget for retrieval, while retrieval compensates for pruning-induced coverage loss with context-aware continuations. To ensure production viability, the retrieval branch is rooted at the current token and prepared in parallel with autoregressive drafting. Graft utilizes a GPU-resident adjacency matrix, initializes it via warm-up, and updates it online using target-model verification signals. This design preserves the standard tree-attention path, avoids extra target forward passes, and removes CPU-side synchronization. Crucially, this architecture naturally scales
2
Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decoding
to long-context generation. As the prompt extends, autoregressive drafting becomes increasingly expensive, making pruning more rewarding. Simultaneously, the extended context provides richer local transition patterns, which naturally boosts the retrieval hit rate without additional overhead. In summary, this paper makes the following contributions: (1) A budget-compensation view of dynamic tree pruning. We analyze the latency-MAT frontier of dynamic tree construction. We show that pruning-only methods, restricted to static subtrees, inevitably lose MAT. This motivates treating pruned slots as reusable computational budget rather than discarded candidates, establishing the foundation for effective retrieval integration. (2) Graft: GPU-friendly prune-then-graft construction. We propose grafting retrieved candidates into slots released by pruning. Pruning supplies budget for retrieval, while retrieval compensates for pruning-induced candidate loss. Utilizing root-centered parallel retrieval, a GPU-resident adjacency matrix, and online target-guided updates, Graft packs candidates into the standard verification path. This expands the candidate set beyond the original subtree while preserving the target verification budget and ensuring lossless decoding. (3) Scaling to deployment settings. Experiments show that Graft establishes a new speed-MAT frontier across short-context, long-context, and large-scale deployments. It achieves up to 5.41× speedup on shortcontext tasks and improves average speedup over EAGLE-3 by up to 21.8% on the large-scale Qwen3-235B. For long-context LLaMA3.1-8B, it reaches 3.22× average speedup, outperforming EAGLE3-64K by 16.6% on Qwen3-14B. As a bonus, we also provide a preliminary exploration of applying Graft to the DFlash-style block drafting paradigm, offering initial evidence and insights for extending grafting beyond autoregressive draft trees.
2. Preliminary Study 2.1. The Dynamic-Tree Frontier Standard SD and the dynamic-tree bound. Speculative decoding (SD) accelerates autoregressive generation through a draft-then-verify pipeline (Leviathan et al., 2023; Chen et al., 2023). At each step, the draft model proposes a token tree T for the current prefix 𝑥1:𝑡 , which the target model verifies in a single parallel forward pass (Miao et al., 2024b). The generation progress per step is measured by the mean accepted length (MAT), 𝑀 (T ) = 𝔼[ 𝐿 (T )], while the computational cost is 𝐶 (T ) = 𝑇draft (T ) + 𝑇verify (T ). A standard proxy for wall-clock speedup is: ( 𝑀 (T ) + 1)𝑇ar S(T ) = . (1) 𝐶 (T ) EAGLE-3 employs a dense tree T𝐸 to maximize 𝑀 (T ) through broader candidate coverage (Li et al., 2025). However, this dense structure substantially increases draft-side search, memory bandwidth, and verification workload. Dynamic-tree methods (e.g., DDD, SVIP, ECHO) mitigate this overhead through dynamic-depth pruning (Brown et al., 2024; Hu et al., 2026). While this reduces the cost denominator in Eq. 1, it introduces a strict structural ceiling. The pruned trees remain constrained as subtrees of the original dense tree: T𝜋 ⊆ T𝐸
=⇒
𝑀 (T𝜋 ) ≤ 𝑀 (T𝐸 ) .
(2)
This bound illustrates the core limitation of pruning-only designs. Removing nodes accelerates drafting but cannot introduce novel candidate paths. As a result, MAT is strictly capped by the dense-tree upper bound. Latency versus MAT. Dynamic-depth pruning imposes a strict trade-off rather than a pure acceleration. Relative to the dense tree, a dynamic policy 𝜋 modifies the speedup ratio as follows: S(T𝜋 ) 𝑀 (T𝜋 ) + 1 = · S(T𝐸 ) 𝑀 (T𝐸 ) + 1 | {z } MAT loss
𝐶 (T𝐸 ) 𝐶 (T𝜋 )
.
(3)
| {z } latency saving
The latency saving improves as pruning eliminates expensive draft computation. However, the MAT loss worsens when the controller over-prunes valid continuations. Since confidence is merely a proxy for target acceptance, 3
Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decoding