arXiv(opens in a new tab)cs.CLOct 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2610.12570

Contextual Correction of Parallel Drafts for Speculative Decoding

Roy Eisenstadt, Harel Lidar, Tal Gonen, Omer Luxembourg, Itamar Zimerman, Lior Wolf, Eli David, Ilan Naiman

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

ABSTRACT

Speculative decoding accelerates large language model inference by using a lightweight drafter to propose multiple tokens that are subsequently verified in parallel by the target model. Recent diffusion-based drafters make this paradigm particularly attractive: deep attention-based neural backbones provide strong predictions, while drafting multiple future positions in parallel avoids the sequential cost of autoregressive generation. This parallelism, however, comes at a cost. Tokens within a draft block are predicted without access to the realized identities of preceding draft tokens, removing intra-block dependencies that would naturally be available under autoregressive generation. We introduce DCOCO (DFlash Contextual Corrector), a lightweight mechanism that restores these dependencies while preserving parallel drafting. Rather than committing to each position's top prediction, DCOCO retains multiple candidate tokens and evaluates their contextual compatibility across adjacent draft positions in parallel, enabling contextually informed token selection at low additional cost. Across four verifier backbones and ten benchmarks, DCOCO achieves the highest average throughput in every evaluated configuration, spanning greedy and stochastic decoding with and without extended reasoning, with speedups of up to 6.6× over vanilla decoding. Its advantage persists under concurrent serving: DCOCO outperforms the strongest competing method by 6–23% across 4–32 concurrent requests, while other sequential correctors fall below uncorrected DFlash at these loads. These results demonstrate that recovering intra-block dependencies through parallel contextual scoring delivers consistent acceleration across decoding regimes and serving loads.

Links: Code (GitHub) | Models (Hugging Face)

1 INTRODUCTION

Speculative decoding (SD) accelerates large language model inference by using a lightweight drafter to propose multiple future tokens, which are subsequently verified in parallel by the target model (Leviathan et al., 2023; Chen et al., 2023). Speculative verification preserves the target model's output distribution, so the benefit of a drafting method depends on the speedup it provides. This speedup depends on both how many draft tokens are accepted and the latency of draft generation. These two factors are often in tension: stronger drafting can increase acceptance, but better drafts may require more computation and therefore more latency.

This acceptance–latency trade-off has shaped the design of speculative drafters. Early SD methods use a smaller autoregressive language model to generate draft tokens sequentially (Leviathan et al., 2023; Chen et al., 2023). Subsequent approaches such as EAGLE (Li et al., 2024a;b; 2025b) improve the efficiency and quality of this drafting process by exploiting target-model features, while retaining autoregressive dependencies across draft positions. More recently, parallel diffusion-based drafters such as DFlash (Chen et al., 2026) take a different direction, generating multiple future positions within a single block pass. Autoregressive drafters condition on the realized prefix, whereas parallel diffusion drafters reduce latency by predicting the block jointly. This parallelism comes at the cost of weaker intra-block conditioning: each position is predicted without observing the realized token

1^{1} Stealth Startup, Tel Aviv

2^{2} Tel Aviv University

3^{3} Ben-Gurion University identities selected at preceding draft positions. As a result, individually plausible predictions may form a less consistent continuation and reduce draft acceptance.

Recent methods directly target this limitation. DSpark (Cheng et al., 2026) combines a parallel backbone with a lightweight sequential module, introducing intra-block dependencies through semi-autoregressive drafting. Domino (Huang et al., 2026) instead augments parallel block generation with a lightweight causal correction module that refines the draft using prefix-dependent information. Both recover acceptance, but both do so position by position. The added module is a recurrence over the block, so its latency cost sits on the critical path of every drafting cycle. This raises the central question of our work: can intra-block dependencies be restored without reintroducing a sequential module?

Two observations guide our approach. First, the parallel drafter has usually already suspected the correct token, even when it did not choose it: on Qwen3-8B the top-16 candidates contain the verifier's token at 59% of the slots where its top-1 is wrong ( §3§3). Correction can therefore be cast as re-selection within the drafter's existing candidates rather than generation of new tokens. Re-selection over K candidates per slot reduces to scoring K2K^{2} transitions between adjacent slots, all of which can be computed at once. Second, speculative verification imposes a strong asymmetry across draft positions. Verification accepts a contiguous prefix and stops at the first rejected token; therefore, an improvement at a later position is useful only if all preceding positions are also accepted. Correction should consequently prioritize the quality of the early prefix, rather than optimize an aggregate score over the entire proposed block.

These observations motivate DFlash Contextual Corrector (DCOCO), a lightweight contextual corrector for parallel diffusion drafts. DCOCO operates on a single DFlash block pass: rather than committing immediately to the top prediction at each position, it retains multiple candidate tokens and uses the drafter's existing hidden states and logits to score their contextual compatibility across adjacent positions. All candidate interactions are scored in parallel, without an additional drafter forward pass. The resulting candidate grid is then decoded using a prefix-first greedy selection rule. Rather than maximizing an aggregate score over the entire path, DCOCO selects candidates from left to right, prioritizing each position before proceeding to the next. This aligns selection with the prefix structure of speculative verification, where tokens after the first rejection provide no benefit. Importantly, only this lightweight selection is sequential, while neural scoring remains parallel. Unlike DSpark and Domino, no learned module runs position by position.

We evaluate DCOCO across multiple verifier backbones and ten benchmarks spanning mathematics, code, and general-purpose generation. DCOCO consistently improves end-to-end decoding throughput under both greedy and stochastic decoding, outperforming the strongest evaluated speculative decoding baseline by up to 18% and vanilla autoregressive decoding by up to 6.6×6.6\times. Because its correction is parallel, DCOCO keeps its advantage as serving load grows: from 1 to 32 concurrent streams its throughput stays 19–25% above DFlash under greedy decoding, while the per-cycle cost of the sequential correctors grows until both fall below the uncorrected drafter ( §5.2§5.2). Beyond aggregate throughput, we separately analyze draft acceptance and correction latency to characterize where these gains arise. We further compare alternative selection rules over the same learned candidate scores, isolating the effect of the decoding objective from the quality of the corrector itself. Our contributions are threefold:

• We introduce DCOCO, a lightweight contextual corrector for parallel diffusion drafts that scores candidate interactions using information from a single drafter pass, without additional drafter forward passes.

• We identify the prefix structure of speculative verification as a key consideration for correcting parallel drafts, and introduce a prefix-first greedy selection rule that aligns candidate selection with this structure.

• We establish state-of-the-art performance across multiple verifier backbones and diverse benchmarks, with and without extended thinking in both greedy and stochastic decoding and show that this advantage persists under concurrent serving load, where the sequential correctors lose theirs.

(a) Qwen3-8B, by k

Figure

(b) Gap, by verifier

Figure

Figure 1: Candidate coverage gains grow deeper in the block. Fraction of slots where DFlash's top-k candidates contain the verifier's committed token. (a) Qwen3-8B; shading marks the top-16–top-1 coverage gap. (b) The same gap across verifiers. Averages over the 15 slots appear in Tab. 18.

References (51)

  • Speed-bench: A unified and diverse benchmark for speculative decoding
  • Pard: Accelerating llm inference with low-cost parallel draft model adaptation
  • Hydra: Sequentially-dependent draft heads for medusa decoding
  • Program Synthesis with Large Language Models
  • Medusa: Simple LLM inference acceleration framework with multiple decoding heads
  • Accelerating large language model decoding with speculative sampling (opens arXiv in a new tab)
  • DFlash: Block diffusion for flash speculative decoding
  • Evaluating Large Language Models Trained on Code
  • Confidence-scheduled speculative decoding with semi-autoregressive generation (opens arXiv in a new tab)
  • Recurrent drafter for fast speculative decoding in large language models, 2024 (opens arXiv in a new tab)
  • Training Verifiers to Solve Math Word Problems
  • Non-autoregressive neural machine translation
  • Domino: Decoupling causal modeling from autoregressive drafting in speculative decoding (opens arXiv in a new tab)
  • Livecodebench: Holistic and contamination free evaluation of large language models for code
  • Efficient memory management for large language model serving with pagedattention
  • Flow map language models: One-step language modeling via continuous denoising (opens arXiv in a new tab)
  • Fast inference from transformers via speculative decoding
  • From crowdsourced data to high-quality benchmarks: Arena-hard and benchbuilder pipeline
  • EAGLE: Speculative sampling requires rethinking feature uncertainty
  • Eagle-2: Faster inference of language models with dynamic draft trees
  • Eagle-3: Scaling up inference acceleration of large language models via training-time test
  • Let's verify step by step
  • NVIDIA. Nvidia nemotron nano 2: An accurate and efficient hybrid mamba-transformer reasoning model, 2025. URL https://arxiv.org/abs/2508.14444.12 (opens arXiv in a new tab)
  • Stanford alpaca: An instruction-following llama model
  • Speculative decoding with ctc-based draft model for llm inference acceleration
  • Learning harmonized representations for speculative sampling
  • American invitational mathematics examination (aime) 2025, 2025
  • Advances in neural information processing systems, 36:46595–46623, 2023
  • The mask $m_p \in \{0,1\}$ is 1 only when both verifier tokens lie inside their slots' top-K candidate sets and both slots pass the alignment mask; transitions the drafter cannot reach are dropped from supervision rather than taught
  • All methods use AdamW with learning rate $6 \times 10^{-4}$, no weight decay, and a cosine learning-rate schedule with 4% warmup
  • To rule out budget rather than the corrector as the source of the gains, we continue each baseline (DFlash, Domino, DSpark) to twelve epochs under its own objective and recipe, unchanged
  • Baselines show no more than 2% improvement from a second six epochs; the joint phase accounts for our arm's improvement
  • Each ablation cell reports its value with the change relative to DCOCO in parentheses
  • For request i, let $n_i$ denote the number of generated output tokens and $L_i$ the request latency in seconds, including prefill
  • $\tau$ explains the TPS movement; the corrector's own overhead is visible only in throughput
  • Same format as Table 1
  • Domino attains best $\tau$ on some datasets here, yet the lower average throughput (Table 10), the $\tau$-vs-TPS trade at the aggregate level
  • DCOCO leads $\tau$ in 19 of 20 cells and both averages
  • at the first drafted slot the top-16 pool contains the committed token about 95% of the time and the drafter's own first choice about 81%, while by the last slot the pool still holds it in 57–61% of cases but the first choice finds it only about one time in five
  • Top-1 is the drafter's own per-slot accuracy; DCOCO uses $K=16$
  • Qwen3-4B throughput at (a) T = 0 and (b) T = 1, averaged over the ten suites
  • Qwen3-Coder-30B-A3B throughput at (a) T = 0 and (b) T = 1, averaged over the ten suites
  • This appendix extends the main-text view of Figures 3 and 4 to the remaining backbones
  • Conditional on the current context and the selected draft prefix, its proposal distribution is therefore a point mass:
  • Let $q_j(v) = q(v \mid x, \hat{y}_{<j})$ denote the verifier distribution after applying the target sampling settings, including temperature
  • Llama-3.1-8B throughput at (a) T = 0 and (b) T = 1, averaged over the ten suites
  • Accepted length $\tau$ (solid) and throughput (dashed), relative to DFlash; Shading highlights the separation between the accepted-length and throughput ratios
  • On rejection, its residual distribution simplifies to
  • Verification continues through accepted draft tokens, commits the residual sample at the first rejection, and discards the remaining draft suffix
  • DCOCO's transition scores need not be softmax-normalized, and no distribution over the retained candidates needs to be sampled or passed to the verifier
  • Bold: best method per row