Manuscript Offprint
arXiv:2608.27514Trajectory-Level Speculative Decoding for Diffusion Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Diffusion-based language models (dLLMs) enable parallel token generation through iterative denoising, but existing decoding strategies collapse to single-token generation under low confidence, severely limiting throughput. Unlike autoregressive models where speculative decoding operates on token sequences in a fixed left-to-right order, dLLMs require speculating over denoising trajectories—sequences of multi-token updates with explicit positions and unmasking orders. We develop a trajectory-level speculative framework that constructs draft denoising trajectories via confidence-stratified tree exploration and verifies them through blockwise parallel evaluation with bidirectional attention masking. Our method further introduces inter-block speculation, exploiting diffusion models' bidirectional structure to perform cross-block lookahead. We formally characterize when this approach is exact and identify trajectory drift as the fundamental cost of increased parallelism. Building on Fast-dLLM's dual-cache infrastructure, our framework reduces denoising iterations by 30-40% and increases tokens-per-step from 2.6 to 4.3, achieving 7-14× speedup over vanilla dLLMs and 1.3× over Fast-dLLM with less than 1% accuracy change across reasoning and code benchmarks.
1. Introduction
Speculative decoding has emerged as a powerful technique for accelerating autoregressive language models (Leviathan et al., 2023; Chen et al., 2023), enabling multiple tokens to be generated per forward pass through draft-and-verify mechanisms. However, these methods fundamentally rely
*Equal contribution ¹Li Auto Inc., Shanghai, China. Correspondence to: Yaqian Li liyaqian@lixiang.com.
Proceedings of the 43rd International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

Figure 1. Visualization of low-confidence degeneration in parallel decoding for dLLMs. When confidence drops below threshold, existing methods collapse to single-token generation, severely limiting throughput despite dLLMs' inherent parallel capacity.
on the causal, left-to-right structure of autoregressive generation and cannot be directly applied to diffusion-based language models (dLLMs) (Nie et al., 2026; Ye et al., 2025), which generate text through iterative parallel denoising rather than sequential token prediction.
Diffusion language models offer parallelism advantages: unlike autoregressive models that generate tokens sequentially, dLLMs can decode multiple tokens per denoising step. However, existing strategies (threshold-based or top- selection) work well under high confidence but collapse to single-token generation when confidence is low—low-confidence degeneration—severely limiting throughput.
Motivating observation. Through empirical analysis on Fast-dLLM (Wu et al., 2025), we observe that low-confidence degeneration events occur in over 80% of decoding steps across reasoning and code-generation benchmarks. This severely limits throughput: while the model has the capacity to decode 32 tokens per step (one block), it often decodes only 1-3 tokens. Crucially, we find that even when a position has low confidence, the correct token frequently appears in the top- candidates (). This suggests an opportunity: rather than discarding low-confidence positions, we can speculate over multiple candidate trajectories in parallel and verify them jointly.
Why existing speculative decoding fails for dLLMs. Au-toregressive speculative decoding (Cai et al., 2024; Li et al., 2024) operates in token space: it constructs draft token sequences in a fixed left-to-right order and verifies them using causal masking. This design exploits the deterministic structure of causal generation. In contrast, diffusion models generate through trajectory space—iterative refinement where tokens are unmasked in arbitrary order via bidirectional attention. A "draft" in this setting must specify not just token identities, but also their positions and unmasking order across multiple denoising steps. This fundamental difference renders token-space speculation insufficient: diffusion models require trajectory-space speculation over sequences of multi-token updates, verified through blockwise attention that isolates competing denoising paths while preserving bidirectional dependencies.
Our approach: trajectory-level speculation. We develop a framework operating in trajectory space, constructing and verifying candidate denoising trajectories—complete sequences of block-level updates with explicit ordering and positions. This requires three components absent in token-space speculation:
(1) Tree-based draft trajectory construction. We construct a tree where each path encodes a complete denoising trajectory (not just token sequences). Nodes represent block-level updates, and paths capture alternative unmasking orders, exploiting the any-order generation capacity of diffusion models.
(2) Blockwise parallel verification. We design a blockwise attention masking scheme that isolates trajectory branches during verification while preserving bidirectional attention to context. This enables parallel evaluation of multiple independent denoising paths in a single forward pass—structurally different from causal verification in AR models.
(3) Inter-block speculation. Exploiting bidirectional visibility unique to diffusion models, we introduce cross-block lookahead: monitoring confidence in block while decoding , and triggering joint speculation when conditions allow. This segmented parallelism has no analog in left-to-right AR decoding.
Relationship to infrastructure and baselines. Our work builds on Fast-dLLM (Wu et al., 2025), which introduced a dual-cache mechanism that reduces per-step computation by reusing key-value activations of prefix and suffix tokens within each block. This provides the systems-level infrastructure on which our algorithmic contribution operates. Fast-dLLM's dual cache addresses per-step efficiency; our trajectory-level speculation addresses the number of steps required. The two optimizations are orthogonal and cumulative: Fast-dLLM reduces FLOP per step, while our method reduces steps overall. We evaluate our approach against
Fast-dLLM (Dual Cache) as the baseline, demonstrating a 30% reduction in end-to-end latency and a 40% reduction in denoising iterations on top of this already-optimized system.
Contributions. Our main contributions are:
-
We identify low-confidence degeneration as a fundamental bottleneck in parallel diffusion decoding and formulate it as a trajectory-space speculation problem—showing that correct tokens often appear in top- candidates even under low confidence.
-
We develop a trajectory-level speculative decoding framework for dLLMs that operates over complete denoising paths rather than token sequences, including: (1) tree-based trajectory construction with confidence-stratified expansion, (2) blockwise parallel verification that isolates trajectory branches while preserving bidirectional context, and (3) inter-block speculation exploiting cross-block lookahead unique to bidirectional models.
-
We establish formal conditions under which trajectory-space speculation is exact (Theorem 1), characterize trajectory drift as the fundamental cost of increased parallelism, and provide acceptance rate bounds that justify our hybrid tree design.
-
Empirically, our method reduces denoising steps by 30-40%, increases tokens-per-step from 2.6 to 4.3, and achieves speedup over vanilla dLLMs and over Fast-dLLM, with less than 1% accuracy change across reasoning and code benchmarks.
2.1. Masked Diffusion Language Models
Masked Diffusion Language Models (MDLMs) (Sahoo et al., 2024; Zheng et al., 2024) formulate text generation as an iterative denoising process. Given a target sequence , the forward diffusion gradually masks tokens:
where is the corruption rate. The reverse process progressively denoises masked positions back to concrete tokens. Representative models include LLaDA (Nie et al., 2026), Dream (Ye et al., 2025), and Seed (Song et al., 2025).
Parallel decoding strategies. Two primary approaches exist for parallel decoding in dLLMs: (1) Top- decoding (Nie et al., 2026) selects the most confident tokens at each step, guaranteeing fixed parallelism but risking accuracy when low-confidence tokens are included. (2) Threshold-based decoding (Wu et al., 2025) accepts all tokens exceeding confidence threshold , adapting parallelism to model certainty but collapsing to top-1 when no token passes the threshold.
Both strategies exhibit low-confidence degeneration: when faced with uncertain positions, they revert to single-token generation, severely limiting throughput.
2.2. Speculative Decoding in Autoregressive Models
Speculative decoding (Leviathan et al., 2023; Chen et al., 2023) accelerates autoregressive LLMs by drafting candidate continuations and verifying them in parallel. Representative methods include:
Multi-model approaches (Xia et al., 2023; Miao et al., 2024) use a lightweight draft model to propose candidates, which a target model then verifies. Self-speculative methods (Cai et al., 2024; Li et al., 2024) derive drafts from the target model itself using additional prediction heads or cached representations.
Why autoregressive speculation does not transfer to dLLMs. Autoregressive speculative decoding relies on three properties absent in diffusion models:
-
Fixed generation order: Tokens are always generated left-to-right, so draft construction is deterministic given the prompt.
-
Causal verification: A single forward pass with causal masking suffices to verify all draft positions in parallel.
-
Exact acceptance: The verification procedure is mathematically lossless—accepted tokens match exactly what the target model would have produced.
Diffusion models violate all three: they use bidirectional attention, generate tokens in arbitrary order, and support multiple valid denoising trajectories. A "draft" must therefore specify not just token identities but also their positions and unmasking order—a complete trajectory. Verification requires blockwise masking to isolate competing branches, and exactness cannot be guaranteed when altering the parallelism schedule.
2.3. Speculative Approaches for Diffusion Models
Recent work has begun exploring speculative techniques for diffusion models. De Bortoli et al. (2025); Hu et al. (2025) study speculative sampling for continuous denoising diffusion (DDPM), focusing on image generation. For discrete diffusion language models, several concurrent efforts have emerged:
Table 1. Comparison of speculative decoding methods for dLLMs.
| Property | Self-Spec | Spiffy | Ours |
|---|---|---|---|
| Speculation granularity | Token | Block | Trajectory |
| Cross-block lookahead | X | X | ✓ |
| Tree-based exploration | X | X | ✓ |
| Lossless verification | ✓ | ✓ | ~✓ |
| Calibration overhead | Low | High | Low |
| Speedup (7B models) | ~3.46× | ~7× | ~14× |
Self-speculative decoding (Gao et al., 2025) introduces token-level speculation for diffusion LMs, where the model drafts individual token predictions that are then verified. This approach operates at token granularity and focuses on single-step speculation.
Spiffy (Agrawal et al., 2025) proposes block-level speculative decoding for diffusion language models using graph-based calibration to maintain lossless verification. Their method performs parallel exploration over multiple draft blocks within a decoding block (intra-block speculation) and focuses on preserving exactness under speculative execution. In contrast, our method formulates speculation at the trajectory level, jointly modeling denoising trajectories that can span consecutive blocks through inter-block speculation.
Our approach differs in problem formulation and method design: (1) we identify and address low-confidence degeneration—showing that parallelism collapses not due to incorrectness but due to fixed decoding policies—whereas concurrent methods focus on either token-level drafting or calibration for exactness, (2) we explore multiple trajectory alternatives via tree-structured drafts to sustain parallelism under uncertainty, enabling broader speculation than single-block or token-level approaches, (3) we introduce inter-block speculation that exploits bidirectional attention to perform cross-block lookahead, which single-block designs cannot express, and (4) our tree-based verification is simpler than graph-based calibration and achieves higher acceptance rates (3.8-4.3 tokens/step vs. Spiffy's reported rates).
Table 1 contrasts key properties across the three approaches. Self-speculative decoding operates at token granularity, while both Spiffy and our method perform block-level speculative exploration for diffusion LMs. The key distinction is that Spiffy focuses on intra-block speculation with calibrated exact verification, whereas our method additionally introduces inter-block trajectory speculation across consecutive decoding blocks. We further report end-to-end TPS, latency, denoising steps, and accuracy together, while Spiffy primarily reports NFE-based speedup (see Appendix E for detailed comparison). We note that other concurrent approaches may exist, and the landscape of diffusion LM acceleration continues to evolve.

Figure 2. Overview of trajectory-level speculative decoding framework. The method constructs a tree of candidate denoising trajectories, verifies them in parallel using blockwise attention masking, and selects the longest valid path.
Complementarity with other acceleration techniques. Our trajectory-level speculation operates at the algorithmic level of the decoding process and is conceptually orthogonal to system-level optimizations such as KV cache management (Wu et al., 2025), architectural improvements (sparse attention, quantization), and hardware-specific optimizations. These methods target different components of the inference stack: we reduce the number of denoising iterations, while system optimizations reduce per-iteration cost. Combining these approaches is conceptually feasible and could yield cumulative benefits, though such integration is beyond the scope of this work.
3. Method
3.1. Overview
Our framework operates in three stages: (1) Candidate collection: Gather top- tokens at low-confidence positions from the previous denoising step. (2) Tree-based draft trajectory generation: Incrementally construct a tree of candidate trajectories, where each node represents a block of tokens and each path represents a possible denoising sequence. (3) Parallel verification and acceptance: Evaluate all draft blocks jointly using blockwise attention masking, then select the longest valid path via greedy or longest-path verification.
These stages reuse the model's forward pass: the verification of step simultaneously provides logits for drafting step , minimizing overhead.
3.2. Tree-Based Draft Trajectory Generation
Motivation: why low-confidence tokens matter. Existing parallel decoding strategies discard tokens below threshold
, treating low confidence as synonymous with incorrectness. This conflates two distinct phenomena: tokens with low confidence due to model uncertainty, and tokens excluded because they fall outside the parallelism budget. Our key observation: low confidence does not imply incorrectness—it often reflects ambiguity among several plausible alternatives (Kim et al., 2025). Empirically, we find that even at low-confidence positions, the correct token frequently appears within the top- candidates (). This motivates a principled approach: rather than abandoning parallelism at uncertain positions, we explore multiple candidate trajectories in parallel and verify them jointly, thereby sustaining throughput without compromising correctness guarantees.
Candidate collection. At each denoising step, we define token confidence as:
We collect top- candidates at positions where —i.e., tokens that are low-confidence but potentially correct. This forms the pool for trajectory exploration.
Tree construction. We organize candidates into a tree where each node corresponds to a block of tokens (e.g., 32 tokens). The root node contains all high-confidence tokens (those exceeding ). Children represent alternative continuations constructed from the candidate pool. To balance coverage and computational cost, we adopt a hybrid expansion strategy:
- Layer 1 (root): Expand with top- candidates to maximize diversity.
- Deeper layers: Expand each node with only its top-1 continuation, yielding a compact tree that concentrates exploration along high-probability paths.
This design keeps the tree compact () nodes for depth and width ) while preserving high-likelihood trajectories. For example, a W2D2(3) tree has width 2, depth 2, and 3 total children blocks. Ablation studies (Section 5.3) show this hybrid strategy achieves the best acceptance-rate-to-overhead trade-off.
Algorithm. Algorithm 1 implements confidence-stratified expansion: high-confidence tokens form the root block, low-confidence positions trigger branching with adaptive depth control, balancing exploration and overhead.
Complexity analysis. A fully expanded trajectory tree would incur exponential cost in the number of branches. Our method is specifically designed to avoid this regime through the constrained tree structure described above.
We adopt a hybrid expansion strategy:
- Only the root node branches with top- candidates, while all deeper levels follow top-1 expansion.
Algorithm 1 Confidence-Stratified Trajectory Tree Construction
1: Input: Token logits at step , confidence threshold , branching factor , tree depth , tree width
2: Output: Draft trajectory tree with root and leaf nodes
3: // Phase 1: Confidence stratification
4: High-confidence positions
5: Low-confidence positions
6: Initialize root node
7: // Phase 2: Speculative expansion
8: ; frontier
9: for to do
10: next_frontier
11: for each node do
12: if then
13: children Explore top- at root
14: else
15: children Greedy extension deeper
16: end if
17: next_frontier
18: end for
19: frontier Keep top- by confidence
20:
21: end for
22: return
-
Top- expansion at the root layer maximizes diversity where it matters most, while guaranteeing complexity instead of exponential scaling, where is the tree width and is the tree depth.
-
The resulting candidates can then be efficiently processed via parallel blockwise verification.
Concretely, with width and depth , this yields at most draft sequences per step, compared to for a fully expanded tree—a reduction in the number of branches due to top-1 expansion in deeper levels. Tree construction itself requires only tensor copies of the current block (each of length , the block size), amounting to memory operations, followed by a single concatenated forward pass over tokens. This represents a constant-factor overhead relative to a standard single-branch step. Moreover, relative to the total context length and generation length during inference, especially in long-sequence generation scenarios, the additional tokens introduced by tree construction
constitute a lightweight overhead.
This design is not merely a heuristic simplification, but is motivated by our key observation that uncertainty in dLLMs is highly concentrated at a small number of high-entropy positions, while later steps typically exhibit much higher confidence. Therefore, allocating branching capacity only at these critical positions is both efficient and sufficient. Empirically, this constrained tree achieves a strong balance between acceptance rate and computational cost, as shown in the ablation studies in Section 5.3. Given the increased overall latency and only marginal accuracy gains, we practically adopt the W3D3 (6) variant rather than the full-tree variant W3D3 (9).
3.3. Blockwise Parallel Verification
Attention masking for trajectory isolation. Unlike autoregressive models that use causal masking, we require a blockwise attention scheme that: (i) preserves bidirectional attention between draft blocks and cached prefix/suffix tokens, and (ii) isolates draft branches to prevent cross-interference.
Specifically, let and denote prefix (already-decoded) and suffix (remaining [MASK]) tokens. For each draft block in the tree, we construct a mask where:
-
All tokens in attend to all tokens in and .
-
Tokens in do not attend to tokens in other draft blocks ().
This design maintains the bidirectional structure required by diffusion models while ensuring independent evaluation of each trajectory branch. Figure 3 illustrates the blockwise attention mask construction for a tree with multiple draft branches.
Verification procedure. After concatenating all draft blocks with the input sequence, we perform a single forward pass with the blockwise attention mask. For each block, we check whether its tokens match the model's top predictions (or fall within top- / exceed ). We traverse the tree path-by-path, accepting the first valid continuation at each level (greedy search) or the longest valid path overall (longest-path search). In practice, both strategies yield similar performance; we default to greedy search for lower overhead.
3.4. Inter-Block Speculation
Motivation. The methods above accelerate decoding within a single block (intra-block speculation). However, diffusion models' bidirectional attention enables a further optimization: while decoding block , we can simultaneously monitor block . If early tokens in become confident before completes, we can initiate speculation for both blocks jointly.

Figure 3. Blockwise attention mask construction. Each draft block (shown in different colors) attends bidirectionally to cached prefix and suffix tokens (gray), but draft blocks remain isolated from each other to enable parallel verification of independent trajectories.

Figure 4. Inter-block speculation mechanism. When block exhibits high early confidence, we construct compact draft trees for both and and verify them jointly, exploiting the bidirectional attention structure to enable cross-block lookahead.
Trigger condition. Let and denote the top-1 confidence in blocks and . We trigger inter-block speculation when:
Joint tree construction. Upon triggering, we build a compact draft tree for (e.g., W1D3 with only 1-2 children blocks) and verify both trees jointly. The attention mask extends to preserve bidirectional visibility between the roots of and —i.e., draft tokens in attend to the root of , and vice versa. This leverages Fast-dLLM's observation (Wu et al., 2025) that prefix/suffix KV states remain stable across adjacent denoising steps. Figure 4 illustrates the inter-block speculation mechanism, showing how confidence in the next block can trigger joint speculative decoding across block boundaries.
Inter-block speculation applies only to pairs of consecutive blocks; extending further would incur excessive verification overhead with diminishing returns. Detailed attention masks and ablation studies are provided in Appendix D.
4. Theoretical Analysis
Unlike autoregressive speculative decoding, which is mathematically exact, our trajectory-level framework introduces potential trajectory drift due to altered parallelism schedules. We characterize exactness conditions, provide bounds on acceptance rates, and identify when deviations may occur.
4.1. Exactness Conditions
Theorem 1 (Exactness under idealized conditions). Under cached prefix-suffix KV states, no inter-block speculation, and deterministic top-1 decoding, our method produces a denoising trajectory identical to Fast-dLLM (Dual Cache), where denotes the position and the token selected at step .
Proof. We prove by strong induction on the number of denoising steps.
Base case (): Before the first denoising step, both decoders have identical initial states: all positions masked, no tokens decoded. Thus the trajectories match trivially.
Inductive hypothesis: Assume that for all steps , both decoders have produced identical trajectories: .
Inductive step: We show that at step , both decoders select the same position-token pair .
Let denote the set of masked positions at step , and let be the set of unmasked tokens. By the inductive hypothesis, both decoders have identical and .
Key observation: Under cached KV states and no inter-block speculation, both decoders evaluate identical conditional distributions at step . Specifically, for each position , the probability distribution over tokens is:
where denotes the cached prefix and suffix KV states, and is the model's logit function.
Since both decoders use the same model , the same cached context , and have identical unmasked tokens , they compute identical logits:
Under deterministic top-1 decoding, position is selected as:
and token is selected as:
Since both decoders compute identical distributions, they must select identical . This completes the inductive step.
Conclusion: By strong induction, the trajectories match at all steps, hence the full denoising sequences are identical.
Implications. Theorem 1 establishes that trajectory-space speculation can be made exact under controlled conditions, formally characterizing when our method preserves the baseline's output distribution. This provides a principled foundation: all deviations stem exclusively from increased parallelism (trajectory drift), not from the speculation mechanism itself. The theorem identifies the exactness boundary and clarifies that any accuracy-speed trade-offs arise from choosing higher parallelism, not from algorithmic approximation.
This formalization has practical consequences for algorithm design: to maximize speedup while maintaining exactness guarantees, we must (1) preserve cached KV states across speculative branches to ensure logit consistency, (2) disable inter-block speculation when exactness is required, and (3) verify that tree construction explores only positions and tokens that would be reachable under the baseline's conditional distributions. Our implementation respects these constraints, enabling deployment modes ranging from exact (matching baseline) to high-throughput (controlled drift).
Empirically, we verify this by running both decoders in top-1 mode on HumanEval and GSM8K; outputs and logits match exactly (see Appendix F, Table A3), confirming that our implementation correctly preserves the idealized behavior characterized by the theorem.
4.2. Acceptance Rate Analysis
The effectiveness of our approach depends on the acceptance rate of draft trajectories. We provide a probabilistic characterization:
Proposition 2 (Acceptance rate lower bound). Let be a draft tree with depth and let denote the probability that a draft node at level matches the verifier's top-1 prediction. The expected number of accepted tokens is lower-bounded by:
where is the block size at level .
Proof sketch. Consider a path from root to level . The probability that all nodes along this path are accepted is (assuming independence). If accepted, this path contributes tokens. Summing over all paths and applying linearity of expectation yields the lower bound.
Design implications. This bound shows that acceptance rates compound multiplicatively across tree depth. This motivates our hybrid expansion strategy: using top- at the root maximizes (the most important factor), while using top-1 deeper keeps the tree compact without severely degrading for .
Empirical validation. We measure acceptance probabilities on HumanEval: for high-confidence root blocks and for secondary branches. With block size , this yields an expected acceptance of tokens per tree, explaining our observed 3.8 tokens-per-step in Table 4 (accounting for verification overhead and rejected branches).
5. Experiments
5.1. Experimental Setup
Models and baselines. We evaluate on LLaDA-Instruct-7B (Nie et al., 2026) and Dream-Instruct-7B (Ye et al., 2025). Our baseline is Fast-dLLM (Dual Cache) (Wu et al., 2025), which caches prefix and suffix KV states within each block to reduce per-step computation. We compare against vanilla dLLMs, Fast-dLLM (single cache), and concurrent work (Spiffy (Agrawal et al., 2025), DPad (Chen et al., 2025)).
Benchmarks. We use mathematical reasoning (GSM8K, MATH) and code generation (HumanEval, MBPP) tasks. Generation length is fixed to 512 tokens with block size 32 to ensure fair comparison. Unless otherwise noted, we use the W2D2(3) tree structure on A800 GPUs, as it provides the best latency-efficiency trade-off (Section 5.4). This configuration represents typical deployment settings for current discrete diffusion LLMs; we analyze longer generation lengths (up to 2048 tokens) in Appendix A.9, finding consistent speedup patterns.
Metrics. We report: (1) TPS (tokens per second) and latency, (2) tokens-per-step, (3) denoising steps, and (4) task accuracy. All experiments use a single A800 GPU unless specified.
5.2. Main Results
Tables 2 and 3 summarize performance on LLaDA and Dream across four benchmarks. Our method consistently reduces denoising steps by 30-43% relative to Fast-dLLM (Dual Cache) and increases tokens-per-step from 2.6 to 3.8-4.3. This translates to additional speedup on top of Fast-dLLM's already-optimized baseline, achieving end-to-end speedup over vanilla dLLMs. Accuracy remains within 1% of the baseline, confirming that trajectory drift is minimal.
Task-specific analysis. Performance varies by task charac-
Table 2. Performance on LLaDA-7B-Instruct (A800).
| Benchmark | Method | TPS | Steps | Acc. | Speedup |
|---|---|---|---|---|---|
| GSM8K | Vanilla | 4.1 | 512.0 | 76.6 | 1.0 |
| Fast-dLLM (DC) | 48.8 | 110.3 | 75.6 | 11.9 | |
| Ours | 55.7 | 71.3 | 75.5 | 13.6 | |
| HumanEval | Vanilla | 13.8 | 512.0 | 43.9 | 1.0 |
| Fast-dLLM (DC) | 70.6 | 179.2 | 45.7 | 5.1 | |
| Ours | 94.4 | 106.7 | 46.3 | 6.8 | |
| MBPP | Vanilla | 4.8 | 512.0 | 14.8 | 1.0 |
| Fast-dLLM (DC) | 48.5 | 132.8 | 13.6 | 10.1 | |
| Ours | 56.4 | 81.7 | 13.4 | 11.8 | |
| MATH | Vanilla | 7.2 | 512.0 | 36.8 | 1.0 |
| Fast-dLLM (DC) | 60.7 | 167.1 | 35.7 | 8.4 | |
| Ours | 73.5 | 96.8 | 36.0 | 10.2 |
Table 3. Performance on Dream-7B-Instruct (A800).
| Benchmark | Method | TPS | Steps | Acc. | Speedup |
|---|---|---|---|---|---|
| GSM8K | Vanilla | 9.0 | 512.0 | 76.8 | 1.0 |
| Fast-dLLM (DC) | 50.6 | 280.6 | 74.6 | 5.6 | |
| Ours | 62.2 | 164.9 | 73.7 | 6.9 | |
| HumanEval | Vanilla | 16.9 | 512.0 | 54.2 | 1.0 |
| Fast-dLLM (DC) | 52.3 | 295.0 | 51.2 | 3.1 | |
| Ours | 78.1 | 180.7 | 54.3 | 4.6 |
teristics. For GSM8K (mathematical reasoning with structured outputs), our method achieves the highest speedup (13.6× on LLaDA) due to predictable token patterns that enable reliable tree acceptance. For HumanEval (code generation), moderate speedup (6.8×) reflects the challenge of speculating syntax-heavy sequences where single-token errors propagate. For MATH (complex multi-step reasoning), speedup (10.2×) balances between GSM8K's predictability and HumanEval's sensitivity. On MBPP (Python programming), we observe similar patterns to HumanEval, with 11.8× speedup and high accuracy maintenance (13.4% vs. 13.6% Fast-dLLM).
5.3. Ablation: Tree Structure and Inter-Block
Table 4 ablates tree configurations and inter-block speculation on HumanEval. Larger trees (W3D3) provide higher acceptance rates but incur heavier per-step verification cost, resulting in worse latency on A800. Inter-block speculation further reduces steps by ~12% and increases token-per-step to 4.28, demonstrating the value of cross-block lookahead.
5.4. Computational Overhead Analysis
Figure 5 analyzes per-step latency as a function of the number of draft blocks. On A800, exploring up to 4 draft blocks keeps overhead acceptable (<30%), aligning with our observed 30-40% step reduction. On H800, higher compute headroom enables larger structures (W3D3) to achieve better end-to-end latency. This roofline-style analysis confirms
Table 4. Ablation on LLaDA-7B (HumanEval, A800).
| Configuration | Tokens/Step | Steps | Latency (s) |
|---|---|---|---|
| Fast-dLLM (DC) | 2.61 | 179.2 | 6.6 |
| + Intra W1D1(1) | 3.51 | 134.5 | 5.6 |
| + Intra W2D2(3) | 3.83 | 124.0 | 5.3 |
| + Intra W3D3(6) | 3.95 | 120.1 | 5.5 |
| + Inter W2D2(3) | 4.28 | 106.7 | 5.0 |
| + Inter W3D3(6) | 4.52 | 105.1 | 5.6 |

Figure 5. Computational overhead analysis. Per-step latency increases with the number of draft blocks, but the reduction in total steps yields net speedup. Dashed line indicates cumulative step reduction. Optimal tree size depends on hardware capability and the overhead-reduction trade-off.
that the optimal tree size depends on hardware capability and the step-reduction benefit.
Tree construction overhead. To quantify the non-model cost of tree construction, we measure the normalized overhead ratio (as a percentage of total forward pass time) on A100 across tree configurations and sequence lengths (Table 5). Tree construction time was measured using PyTorch CUDA Events and normalized against model forward passes. Model forward latency was profiled with Nsight Systems. For our default W2D2 configuration, overhead stays below 2% at sequence length 512 and decreases further at 2048. Overhead grows with tree size but remains consistently lightweight, confirming that constrained tree construction adds negligible cost beyond the model forward pass.
Attention kernel latency. For block-level inference, the chip's roofline characteristics provide redundant space, which allows to add more computational load within the same time cost until reaching the compute bound. Table 6 reports absolute fused multi-head attention kernel latency (in s) on A100 and H100. Compact configurations (W1D1 through W2D2) incur only marginal overhead relative to
Table 5. Tree construction overhead ratio (%) on A100 across sequence lengths.
| Configuration | Sequence Length | |||
|---|---|---|---|---|
| 32 | 128 | 512 | 2048 | |
| w1d1 | 2.52 | 3.50 | 1.27 | 0.86 |
| w2d1 | 7.57 | 6.94 | 1.69 | 1.15 |
| w3d1 | 6.50 | 5.80 | 1.54 | 1.08 |
| w2d2 | 8.25 | 6.72 | 1.86 | 1.29 |
| w2d3 | 7.64 | 4.97 | 1.80 | 1.35 |
| w3d3 | 8.22 | 5.15 | 1.99 | 1.39 |
| w7d1 | 7.87 | 4.83 | 2.04 | 1.48 |
| w8d1 | 6.01 | 4.05 | 1.84 | 1.28 |
| w9d1 | 6.07 | 4.10 | 1.92 | 1.38 |
Table 6. Fused multi-head attention latency (in µs) on A100 and H100.
| Configuration | A100 (µs) | H100 (µs) |
|---|---|---|
| w1d1 | 60.38 | 37.22 |
| w2d1 | 60.22 | 36.03 |
| w3d1 | 63.14 | 37.76 |
| w2d2 | 63.23 | 37.82 |
| w2d3 | 74.18 | 43.23 |
| w3d3 | 97.95 | 41.95 |
| w7d1 | 99.26 | 44.24 |
| w8d1 | 111.46 | 69.34 |
| w9d1 | 114.50 | 71.30 |
the single-block baseline (W1D1: ~60 µs on A100), while larger trees approach the roofline limit. The roofline critical points of A100 and H100 are around 200 and 300 concurrent tokens respectively, corresponding to approximately 6 and 9 additional draft blocks with block size 32—well above our default W2D2(3) configuration, leaving ample headroom before compute saturation. This analysis explains why larger trees such as W3D3 yield diminishing latency returns on A800 but remain beneficial on H800, as shown in Figure 5.
6. Discussion and Future Directions
Trajectory drift and exactness. Unlike autoregressive speculative decoding, our method introduces small trajectory deviations when increasing parallelism. Theorem 1 establishes that the method is exact under top-1 decoding, but higher parallelism can cause drift. Empirically, accuracy loss remains under 1%, and failures concentrate on problems requiring precise multi-step reasoning (Appendix G). Developing provably lossless verification for diffusion models remains an open challenge. Potential approaches include: (1) confidence-aware verification that adaptively reduces parallelism when trajectory drift risk is high, (2) rollback mechanisms that detect and correct divergence mid-generation, and (3) joint optimization of the diffusion schedule and speculation strategy to minimize drift while maintaining
speedup.
Adaptive tree construction. The acceptance rate of draft trajectories depends on model confidence, task difficulty, and tree structure. Currently, we rely on heuristic tree designs (e.g., W2D2). Learned acceptance predictors could dynamically adjust tree depth and width based on: (1) historical acceptance rates on similar prompts, (2) confidence distributions at the current step, and (3) task-specific patterns (e.g., code generation benefits from narrower trees). This would enable instance-adaptive speculation that maximizes efficiency per prompt.
7. Conclusion
We introduced trajectory-level speculative decoding, the first speculative framework designed specifically for diffusion language models. By constructing tree-structured draft trajectories, performing blockwise parallel verification, and introducing inter-block speculation, our method addresses the fundamental challenges that prevent autoregressive speculative techniques from transferring to dLLMs. Theoretical analysis establishes exactness conditions and identifies trajectory drift as the primary source of deviation. Empirically, we achieve 7-14× speedup over vanilla dLLMs and 1.3× over the Fast-dLLM baseline, with minimal accuracy loss.
Acknowledgements
We would like to sincerely thank the anonymous reviewers for their valuable comments and constructive suggestions, which have greatly helped us improve the quality and presentation of this paper. We also appreciate our colleagues for their insightful discussions and valuable feedback throughout the research work. We would like to thank Li Auto Inc. for providing financial support and research resources to this work.
Impact Statement
This paper presents work whose goal is to advance the field of machine learning by improving inference efficiency for diffusion-based language models. The acceleration techniques we propose could reduce computational costs and energy consumption for deploying these models. There are no specific ethical concerns unique to this work beyond those inherent to large language model deployment in general.
References
Agrawal, S., Garrepalli, R., Goel, R., Lee, M., Lott, C., and Porikli, F. Spiffy: Multiplying diffusion llm acceleration via lossless speculative decoding. arXiv preprint arXiv:2509.18085, 2025.
Cai, T., Li, Y., Geng, Z., Peng, H., Lee, J. D., Chen, D., and Dao, T. Medusa: Simple LLM inference acceleration framework with multiple decoding heads. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 5209–5235. PMLR, 21–27 Jul 2024.
Chen, C., Borgeaud, S., Irving, G., Lespiau, J.-B., Sifre, L., and Jumper, J. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318, 2023.
Chen, X., Huang, S., Guo, C., Wei, C., He, Y., Zhang, J., Li, H., Chen, Y., et al. Dpad: Efficient diffusion language models with suffix dropout. arXiv preprint arXiv:2508.14148, 2025.
De Bortoli, V., Galashov, A., Gretton, A., and Doucet, A. Accelerated diffusion models via speculative sampling. arXiv preprint arXiv:2501.05370, 2025.
Gao, Y., Ji, Z., Wang, Y., Qi, B., Xu, H., and Zhang, L. Self speculative decoding for diffusion large language models. arXiv preprint arXiv:2510.04147, 2025.
Hu, H., Das, A., Sadigh, D., and Anari, N. Diffusion models are secretly exchangeable: Parallelizing DDPMs via auto speculation. In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J. (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 24270–24289. PMLR, 13–19 Jul 2025.
Kim, J., Shah, K., Kontonis, V., Kakade, S. M., and Chen, S. Train for the worst, plan for the best: Understanding token ordering in masked diffusions. In Forty-second International Conference on Machine Learning, 2025.
Leviathan, Y., Kalman, M., and Matias, Y. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning, pp. 19274–19286. PMLR, 2023.
Li, Y., Wei, F., Zhang, C., and Zhang, H. EAGLE: Speculative sampling requires rethinking feature uncertainty. In International Conference on Machine Learning, 2024.
Miao, X., Oliaro, G., Zhang, Z., Cheng, X., Wang, Z., Zhang, Z., Wong, R. Y. Y., Zhu, A., Yang, L., Shi, X., et al. Specinfer: Accelerating large language model serving with tree-based speculative inference and verification. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3, pp. 932–949, 2024.
Nie, S., Zhu, F., You, Z., Zhang, X., Ou, J., Hu, J., Zhou, J., Lin, Y., Wen, J.-R., and Li, C. Large language diffusion models. Advances in Neural Information Processing Systems, 38:50608–50646, 2026.
Sahoo, S., Arriola, M., Schiff, Y., Gokaslan, A., Marroquin, E., Chiu, J., Rush, A., and Kuleshov, V. Simple and effective masked diffusion language models. Advances in Neural Information Processing Systems, 37:130136–130184, 2024.
Song, Y., Zhang, Z., Luo, C., Gao, P., Xia, F., Luo, H., Li, Z., Yang, Y., Yu, H., Qu, X., et al. Seed diffusion: A large-scale diffusion language model with high-speed inference. arXiv preprint arXiv:2508.02193, 2025.
Wu, C., Zhang, H., Xue, S., Liu, Z., Diao, S., Zhu, L., Luo, P., Han, S., and Xie, E. Fast-dllm: Training-free acceleration of diffusion llm by enabling kv cache and parallel decoding. arXiv preprint arXiv:2505.22618, 2025.
Xia, H., Ge, T., Wang, P., Chen, S.-Q., Wei, F., and Sui, Z. Speculative decoding: Exploiting speculative execution for accelerating seq2seq generation. In The 2023 Conference on Empirical Methods in Natural Language Processing, 2023.
Ye, J., Xie, Z., Zheng, L., Gao, J., Wu, Z., Jiang, X., Li, Z., and Kong, L. Dream 7b: Diffusion large language models. arXiv preprint arXiv:2508.15487, 2025.
Zheng, L., Yuan, J., Yu, L., and Kong, L. A reparameterized discrete diffusion model for text generation. In First Conference on Language Modeling, 2024.
Zhou, J., Lu, T., Mishra, S., Brahma, S., Basu, S., Luan, Y., Zhou, D., and Hou, L. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023.
A. Detailed Experimental Configurations
All experiments use LLaDA-Instruct-7B and Dream-Instruct-7B with xFormers attention to support non-causal masks. Hardware: 8× NVIDIA A800 GPUs (CUDA 12.6.3). We fix generation length to 512 tokens and block size to 32 for all main experiments. The dual-cache mechanism follows Fast-dLLM: at each block boundary, we compute full KV states for prefix, suffix, and block root, then cache prefix/suffix KV for the entire block while updating only block-level KV during speculation.
B. Tree Construction Example
Figure 6 provides a concrete example of tree-based draft trajectory construction. The root block contains high-confidence tokens at positions 0-31. Child blocks explore alternative predictions at low-confidence positions (e.g., positions 12, 18, 24). Each path from root to leaf represents a complete denoising trajectory that can be verified in parallel.

Figure 6. Example of tree-based draft trajectory construction. The root block contains high-confidence tokens (positions 0-31). Child blocks explore alternative predictions at low-confidence positions 12, 18, 24. Each path represents a complete denoising trajectory verified in parallel.
C. Tree Expansion Strategies
We explored multiple tree expansion policies: (a) Hybrid (ours): top-k at root, top-1 deeper. (b) Full top-2: expand all layers with top-2. (c) Full tree: symmetric expansion. (d) Duplicate-allowed: sibling nodes may share candidates.
Table 7 shows that hybrid achieves the best latency-accuracy trade-off, as larger trees increase overhead without proportional step reduction.
Table 7. Ablation of tree expansion strategies (HumanEval, A800).
| Strategy | Steps | Latency/Step (s) | Total Latency (s) |
|---|---|---|---|
| Hybrid W2D2(3) | 124.0 | 0.043 | 5.3 |
| + top-2 W2D2(4) | 123.9 | 0.045 | 5.6 |
| + full tree W2D2(4) | 124.9 | 0.045 | 5.6 |
| + duplicated W2D2(4) | 125.0 | 0.043 | 5.3 |
| Hybrid W3D3(6) | 120.1 | 0.046 | 5.5 |
| + top-2 W4D3(8) | 119.3 | 0.054 | 6.4 |
| + full tree W3D3(9) | 120.3 | 0.055 | 6.6 |
D. Inter-Block Speculation Details
Inter-block speculation triggers when or . We build a compact tree for (W1D3) and verify both trees jointly. The attention mask preserves bidirectional visibility between the roots of and , while draft tokens within each block remain mutually invisible. Table 8 shows that adding 1-2 inter-block draft blocks provides optimal speedup.
Table 8. Inter-block ablation (LLaDA, HumanEval, A800).
| Inter-Block Setting | Tokens/Step | Steps | Latency (s) |
|---|---|---|---|
| No inter-block | 3.83 | 124.0 | 5.3 |
| + 1 draft block | 4.29 | 109.1 | 5.0 |
| + 2 draft blocks | 4.38 | 106.7 | 5.0 |
| + 3 draft blocks | 4.53 | 103.0 | 5.1 |
E. Comparison with Concurrent Work
Spiffy (Agrawal et al., 2025) is concurrent work that also explores speculative decoding for diffusion language models through intra-block speculative execution with graph-based calibration. In contrast, our method focuses on trajectory-level speculation and additionally introduces inter-block speculation across consecutive decoding blocks.
Another key difference lies in evaluation protocol. Spiffy mainly reports NFE-based speedup, while we report end-to-end TPS, latency, denoising steps, and task accuracy together. Using the reported numbers from Spiffy and our reported decoding steps on LLaDA-Instruct-7B, we obtain the following reference comparison:
Table 9. Reference comparison with Spiffy on LLaDA-Instruct-7B.
| Benchmark | Spiffy | Ours |
|---|---|---|
| GSM8K | 3.04× | 7.18× |
| HumanEval | 2.88× | 4.87× |
| MBPP | 2.93× | 4.42× |
| MATH | 2.89× | 5.29× |
Our values are computed directly from the denoising steps reported in Table 9 using the same normalization convention, while Spiffy’s numbers are taken from its reported main results. Since Spiffy is not publicly open-sourced to the best of our knowledge, this comparison should be interpreted as a reported/reference comparison rather than a controlled reproduction study.
F. Exactness Proof and Empirical Verification
Theorem 1 (full statement). Under cached prefix-suffix KV, no inter-block speculation, and deterministic top-1 decoding, our method and Fast-dLLM (Dual Cache) produce identical token trajectories for all .
Proof. By induction on speculative steps. Base case: before step 1, both have empty history. Induction: if trajectories match through step , both evaluate the same distribution at step (since is cached and unchanged). Thus, top-1 selections match, and trajectories remain identical.
Empirical verification (Table 10). We run both decoders in top-1 mode on HumanEval and GSM8K; outputs and logits match exactly.
Table 10. Empirical exactness verification.
| Dataset | Token Match | Logit Error |
|---|---|---|
| HumanEval | 100% | 0.00 |
| GSM8K | 100% | 0.00 |
G. Failure Case Analysis
We analyze failures on MATH (levels 1-5). Overall accuracy drop is ~1%, concentrated on level-4 problems (Table 11). Inspection reveals that failures occur when early trajectory drift propagates through multi-step reasoning. Levels 1-3 show no degradation; level-5 (hardest) also shows minimal loss because both methods collapse to low parallelism on very hard problems.
Table 11. Accuracy by MATH difficulty level.
| Model | L1 | L2 | L3 | L4 | L5 | Avg |
|---|---|---|---|---|---|---|
| Fast-dLLM (DC) | 61.2 | 51.4 | 38.6 | 30.4 | 10.4 | 38.4 |
| Ours | 61.3 | 52.2 | 38.7 | 25.1 | 9.2 | 37.4 |
H. Long-Sequence Evaluation
Table 12 evaluates generation lengths 128-2048. Our method provides consistent speedup, though relative gains decrease at longer lengths due to early [EOS] emission causing both methods to revert to single-step-per-block decoding.
Table 12. Latency (s) across generation lengths (HumanEval).
| Length | Fast-dLLM (DC) | Ours |
|---|---|---|
| 128 | 1.5 | 1.0 |
| 256 | 3.2 | 2.3 |
| 512 | 6.6 | 5.0 |
| 1024 | 10.2 | 8.7 |
| 2048 | 22.4 | 21.2 |
I. Analysis of Incremental Speedup over Fast-dLLM
The speedup over Fast-dLLM (Wu et al., 2025) is directly governed by the prevalence of low-confidence tokens during inference. Fast-dLLM (Dual Cache) is already a highly optimized baseline with strong parallel decoding capability; achieving an additional ≈1.3× speedup on top of it is therefore non-trivial. Concretely, our method delivers ≈30–40% reduction in denoising steps, ≈30% reduction in end-to-end latency, and an increase in tokens-per-step from 2.6 to 4.3 (≈+65%) on top of this already-optimized system.
The role of low-confidence tokens. The two approaches address orthogonal bottlenecks: Fast-dLLM reduces per-step computation cost through dual-cache reuse and parallel execution of easy (high-confidence) tokens, while our method reduces the total number of denoising steps by addressing low-confidence degeneration through trajectory-level speculation. Consequently, our relative gains are strongest precisely when the task induces a high proportion of low-confidence tokens—the regime where threshold-based decoding collapses to near-single-token generation. Formally, let denote the fraction of decoding steps in which fewer than tokens exceed the confidence threshold . As (all steps are low-confidence), the step-count under Fast-dLLM approaches the sequence length, while our method maintains multi-token acceptance via speculative branching. As (all steps are high-confidence), both methods converge and the incremental benefit of speculation vanishes.
Supplementary evaluation on IFEval. To illustrate the above effect in a concrete low-confidence setting, we evaluate on IFEval (Zhou et al., 2023), a benchmark known for long-form instruction-following outputs that exhibit substantially lower model confidence than mathematical or code-generation tasks. All experiments are conducted on an H800 GPU with confidence threshold . As reported in Table 13, Fast-dLLM generates an average of only 1.3 tokens per step on this task (average generation length 277.2, 210.8 steps), confirming severe low-confidence degeneration. Our method (W2D2) reduces inference steps to 118.8—a 44% reduction—and achieves nearly 2× improvement in TPS (36.8 → 69.1), while maintaining comparable accuracy (53.97 → 54.71). This represents a substantially larger gain than the 1.2–1.4× observed on GSM8K and HumanEval, directly corroborating the prediction that our speedup scales with .
Implementation note. Our current implementation operates at the Python execution level, without hardware-specific kernel fusion or CUDA-level parallelization of branch verification. We reduce decoding steps by ≈40%, yet the per-step overhead from parallel branch verification is not yet fully amortized at the systems level. Further gains are achievable through more efficient implementations (e.g., fused CUDA kernels for blockwise attention masking), which we view as an engineering
Table 13. Performance on IFEval (LLaDA-7B-Instruct, H800, ). Fast-dLLM exhibits severe low-confidence degeneration (avg. 1.3 tokens/step), enabling our method to achieve nearly speedup.
| Method | TPS↑ | Steps↓ | Accuracy | Speedup |
|---|---|---|---|---|
| Fast-dLLM (DC) | 36.8 | 210.8 | 53.97±0.02 | 1.0× |
| Ours (W2D2) | 69.1 | 118.8 | 54.71±0.02 | 1.9× |
opportunity complementary to the algorithmic contributions presented in this work.