arXiv(opens in a new tab)cs.CLSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.39972

UBTree: Parallel Tree Drafting via Unigram and Bigram Models for Speculative Decoding

Chumeng Liang, Linxuan Wang, Xinyu Peng, Huabin Liu, Yuxin Chen, Ge Liu, Guang Lin, Qifan Song, Jianguo Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Speculative decoding accelerates language model inference by verifying multiple draft tokens in a single target-model pass. Recent parallel drafters have achieved breakthrough performance in frontier production models, but their effectiveness deteriorates as the entropy of target distributions increases due to insufficient draft diversity. To overcome this bottleneck without sacrificing parallelism, we introduce UBTree, a parallel drafter that couples a Unigram proposer with a Bigram selector to construct drafting Trees. The unigram proposer is trained with the standard cross-entropy objective to generate candidate tokens independently for each position, while a lightweight bigram selector predicts transition scores between adjacent candidate pairs. Unlike the proposer, the selector is trained with a renormalized KL objective on high-temperature data. This tree-native training broadens the supervision beyond the greedy path, encouraging plausible alternative branches that improve the chance of accepting additional tokens during tree verification. Across seven standardized benchmarks with Qwen3-4B and Qwen3-8B, UBTree achieves an average speedup of 5.84–6.94×5.84–6.94\times over autoregressive decoding and outperforms DARTree in all 28 comparisons. Production-scale evaluation further demonstrates UBTree's advantage over frontier baselines such as DSpark.

(a) Benchmark speedup

Qwen3-8B

Figure

(b) Benchmark speedup

Qwen3.8-27B

Figure

DSpark

UBTree

(c) Long-context acceptance

LongBench-v2 -o- SWE-bench

Figure

Prompt tokens (K)

Figure 1: (a) Speedups on Qwen3-8B: Speedup over autoregressive decoding across seven benchmarks on Qwen3-8B instruct at Tinfer=1T_{infer} = 1. (b) Speedups on Qwen3.8-27B: Serving speedup in SGLang on Qwen3.8-27B at Tinfer=1T_{infer} = 1. (c) Long-context acceptance: Acceptance length τ\tau on Ling3-Flash-124B for LongBench-v2 and SWE-bench over different context lengths. UBTree outperforms competing methods across most benchmarks and model scales.

∗^{*}Equal contribution. †^{\dagger}Corresponding authors.

This work was done during Chumeng's and Linxuan's internship at Inclusion AI.

1 Introduction

Speculative decoding (Leviathan et al., 2023; Chen et al., 2023) offers a lossless approach to accelerating large language models (LLMs): a lightweight drafter proposes multiple future tokens, and the target model verifies them together while preserving its output distribution. The benefit of speculative decoding depends not only on the acceptance length of the draft by the target model but also on the computational cost. Longer accepted drafts do not necessarily yield greater speedup if producing them incurs substantial latency.

Recent advances in speculative decoding have been driven by breakthroughs in parallel drafting (Liu et al., 2026; Chen et al., 2026). While their autoregressive counterparts (Li et al., 2024a; 2026d) condition each draft token sequentially on preceding choices, parallel drafters predict all future positions in a drafting block with a single proposer-backbone forward pass. Parallelism reduces the sequential overhead of using larger proposer backbones which increases the acceptance length. However, parallel drafters lack draft diversity. Consequently, their performance degrades when high-entropy target distributions inherently produce different paths. Moreover, the missing token-wise dependency may worsen the degradation by mixing these different paths. Existing approaches try to complement this drawback by restoring token-wise dependencies to improve precisions of the single-path draft through lightweight autoregressive correction heads (Huang et al., 2026; Cheng et al., 2026) or intra-backbone designs (Inco AI, 2026). However, these strategies do not fundamentally solve the diversity bottleneck because there is still only one single draft path covered. This particularly limits the further improvement of parallel drafters and their applications under scenarios with high entropy target distributions (Devic et al., 2025; Yang et al., 2026). Draft diversity thus becomes a central bottleneck for current parallel speculative decoding.

A natural solution to this bottleneck is tree drafting (Miao et al., 2024; Cai et al., 2024; Li et al., 2024b), which retains multiple draft paths as tree branches, increasing the chance that target verification matches one of them. By providing diverse yet plausible candidate drafts, tree drafting is more robust in high-entropy scenarios. Combining tree drafting and parallel drafters by constructing budgeted trees from pretrained block-parallel drafters achieves considerable speedups (Ringel & Romano, 2026; Li et al., 2026c). Nevertheless, these methods exhibit two limitations. First, the tension between token-wise dependency and full parallelism constrains the tradeoff between draft quality and drafting latency. Existing tree-based methods use autoregressive heads to capture token-wise dependencies, which precludes full parallelization. Conversely, omitting token-wise dependency limits the acceptance length and, consequently, the end-to-end speedup. Second, tree-based parallel methods suffer from a train-inference mismatch: they directly apply parallel drafters trained for single-path drafting to multi-path tree verification. Such drafters are optimized to produce the top draft for single-path verification, but are suboptimal for proposing multiple plausible paths for tree verification. Consequently, although lower-ranked alternatives in the draft tree can populate additional branches, they are not sufficiently optimized to align with the target model's alternatives or worth allocating verification budget to.

We address these limitations with UBTree, a tree-based drafter with a parallel bigram selector to model token-wise dependencies and tree-native training to close the train–inference gap. We incorporate two designs in UBTree:

• Architecture. UBTree separates drafting into three complementary stages and keeps all neural computation parallel. First, we use DFlash (Chen et al., 2026) as a unigram proposer to independently generate candidate tokens for every position in a drafting block. Second, a redesigned bigram selector scores adjacent candidate-token pairs conditioned on the proposer hidden states. It derives predecessor and successor representations from frozen target embeddings through separate MLPs and learns depth-dependent weights for combining proposer logits and selector scores. Third, we use the resulting transition scores to construct the verification tree. By simplifying the token-wise dependency into bigram correlation, we overcome the challenge of parallelizing token-wise dependency in tree drafting.

• Training. Unlike other drafters trained on target-regenerated rollouts at the inference temperature, we use a renormalized KL training objective on high-temperature regenerated target trajectories to diversify the positive training labels. This tree-native training strategy allocates more supervision signals to plausible alternative paths in the target distribution and distinguishes them better from low-quality alternative paths in tree construction, thereby relieving the train–inference mismatch in tree drafting.

We extensively evaluate UBTree on both academic and production-scale benchmarks. UBTree outperforms all existing methods on both academic-scale and production benchmarks. It achieves an average decoding speedup of 5.84–6.94×5.84–6.94\times over autoregressive decoding on Qwen3-4B and Qwen3-8B with increased acceptance lengths. It also rivals frontier baselines such as DSpark (Cheng et al., 2026) in the acceleration of production LLMs like Ling3-Flash-124B. Additionally, UBTree shows outstanding durability on long-context tasks compared to baselines. In summary, UBTree provides a frontier solution for accelerating LLMs in both academic settings and production environments.

References (61)