Manuscript Offprint

arXiv:2610.01439

DRelay: Global Draft Context for Prefix-Aware Parallel Speculative Decoding Repair

Zhuoyu Wang, Junnan Huang, Xinyu Chen

ABSTRACT

Parallel drafting reduces the drafting overhead of speculative decoding for large language models (LLMs), but its gains remain limited by the accepted prefix length. Even when the correct token is present in the candidate pool, a single early selection error prevents subsequent predictions from being used. We propose DRelay, which uses global information from the entire draft block to perform prefix-aware selective repair of candidate selections before target-model verification. DRelay bases its decisions on both candidate correlations and the selected path: a global reader extracts predictive information across positions for each candidate. While a causal selector combines candidate-level information extracted by the global read with the tokens selected at preceding positions to determine whether the native choice at the current position is consistent with the global evidence and the selected prefix. It then decides whether to retain or replace the token, thereby repairing early errors and extending the accepted prefix. We further jointly train the draft backbone and the selector, combining candidate-support learning with a repair objective, while weighting the repair loss according to each block position's potential contribution to the consecutive accepted prefix. Across eight diverse benchmarks on an H800 GPU, DRelay consistently improves both average acceptance length and end-to-end decoding performance over DFlash, Domino, and DSpark. Under SGLang serving, DRelay improves average end-to-end speedup over DFlash, Domino, and DSpark by 14.7%–16.8%, 8.7%–9.3%, and 8.1%–9.3%, respectively.

1 INTRODUCTION

Speculative decoding reduces the overhead of token-by-token autoregressive inference in large language models through inexpensive drafting and batched verification. Parallel drafting further reduces drafting overhead by predicting multiple positions in a single forward pass (Leviathan et al., 2023; Chen et al., 2023). DFlash (Chen et al., 2026) adopts this approach to predict an entire masked draft block in parallel within a single forward pass. Building on this approach, Domino and DSpark (Huang et al., 2026; Cheng et al., 2026) model dependencies among draft tokens through a GRU state and transitions conditioned on preceding tokens, respectively, allowing subsequent predictions to condition on the selected prefix and thereby increasing acceptance length.

However, speculative decoding imposes a key constraint: each verification round can accept only a contiguous correct prefix starting at the first position of the draft block. Consequently, an error at an early position prevents subsequent tokens from being committed in the current round, even if those tokens have been predicted correctly. Moreover, when subsequent predictions are conditioned on an incorrect token, their conditioning context deviates from the correct prefix, so the early error may further affect suffix predictions. This creates an inherent limitation for methods such as Domino and DSpark that introduce additional autoregressive modules: they rely on forward causal dependencies to improve subsequent choices, but information in later predictions cannot directly revise choices already made at earlier positions.

In the base draft model, the correct token is often already present in the candidate set when an early prediction error occurs. Correcting an early selection can therefore enable acceptance of the current token and potentially a subsequent run of correctly predicted tokens. An underutilized opportunity lies in backward information flow within the draft block: global information can guide candidate selection.

Figure

Figure 1: End-to-end decoding speedup on Qwen3-4B. DFlash (Chen et al., 2026), Domino (Huang et al., 2026), DSpark (Cheng et al., 2026), and DRelay are compared against autoregressive decoding.

at earlier positions. After candidate generation, we focus on explicitly revisiting the distributions produced by that forward pass and using global information to repair early selections.

Our central idea is for the entire draft block to serve two roles simultaneously: proposing candidates at each position and providing context for candidate selection. Because predictions at later positions are already available before verification, we can identify the most suitable candidate at an earlier position by comparing candidates' compatibility with global information from the entire draft block and with subsequent predictions. Once a candidate is selected, that specific token should condition subsequent decisions, allowing later choices to follow the actual selected or repaired prefix.

We introduce DRelay, which implements this candidate repair process through the following key components and techniques: (1) A global reader first integrates candidate distributions across positions and then performs reads across positions for each candidate to construct a global context tailored to each alternative token. (2) A causal selector combines global context, the verified target-model history, and an addressable representation of the selected prefix to sequentially decide whether to retain the original draft token or select an alternative candidate. (3) We jointly train the backbone and the selector to learn candidate distributions and repair actions, respectively, and use these two factors to weight the repair loss, focusing training on choices that contribute more to the accepted prefix. As shown in Figure 1, DRelay outperforms DFlash, Domino, and DSpark across all displayed benchmarks on Qwen3-4B, achieving up to a 4.49× end-to-end speedup over autoregressive decoding. Our main contributions are:

• We propose DRelay, which uses the entire draft block to guide repairs to early selections and allows subsequent candidates to directly query the actual repaired prefix, completing candidate selection sequentially before verification.

• We design a joint training objective that simultaneously trains the draft model to propose correct candidates and the selector to make repair decisions, while weighting the repair loss according to prefix value.

• We evaluate DRelay on Qwen3-4B and Qwen3-8B across eight math, code, dialogue, and instruction-following benchmarks. Across target models and temperatures, its average end-to-end speedup exceeds that of the best-performing baseline among DFlash, Domino, and DSpark by 7.8–9.9%, while concurrent-serving throughput reaches up to 4.38× that of autoregressive decoding at matched concurrency.

References (34)