Manuscript Offprint
arXiv:2608.29748ReTrace: Rejected-Trajectory Conditioning for Speculative Decoding
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Speculative decoding accelerates autoregressive language model inference by having a lightweight draft model propose multiple candidate tokens, which are then verified in parallel by a larger target model. However, after the first rejection, standard prefix-based verification discards the remaining draft suffix, so the computation spent generating and verifying those positions does not contribute to decoding progress. Focusing on DFlash, we show that rejected positions in a rejected suffix may still align with the target continuation, indicating that the draft model can retain useful semantic and structural information despite local token-level errors. Motivated by this observation and inspired by conditional diffusion, we introduce ReTrace, a rejected-trajectory conditioning method that conditions each draft block on the rejected suffix from the previous round rather than generating it from fresh mask placeholders alone. ReTrace retains the hidden representations of the rejected suffixes, aligns them with the next draft block, refines them using target-aware correction signals from the same verification pass, and admits them into the drafter's input embeddings through gated residual fusion. Because rejected tokens are never committed and target-side verification remains unchanged, ReTrace preserves the lossless property of speculative decoding without requiring an additional model forward pass. Experiments with Qwen3 models across mathematical reasoning, code generation, and open-ended dialogue demonstrate that ReTrace consistently improves average acceptance length and end-to-end decoding speed over its DFlash backbone. By introducing cross-round conditioning without modifying within-round proposal generation, ReTrace is largely orthogonal to existing drafting improvements and might be combined with them for further gains.
Date: September 1, 2026
Correspondence: Songwei Liu at 21831068@zju.edu.cn, Rongrong Ji at rrji@xmu.edu.cn
Introduction
The inference efficiency of large language models [1, 20, 22] is fundamentally constrained by autoregressive decoding. During standard generation, each token requires a new forward pass conditioned on the entire previously generated context, causing latency to grow with output length. This sequential process is particularly costly for long-form tasks such as mathematical reasoning, code generation,
multi-turn dialogue, and agentic workflows, and it also prevents modern GPUs from fully exploiting their parallel computing capacity. Reducing sequential computation during decoding without degrading generation quality has therefore become a central problem in efficient large language model inference.
Speculative decoding [12] addresses this bottleneck through a draft-then-verify paradigm. A lightweight draft model first proposes multiple candidate tokens, which are then verified in parallel by a larger target

Figure 1 An MT-Bench example with Qwen3-4B as the target model. Although verification stops at the first mismatch, later draft tokens realign with the target, suggesting that the rejected suffix retains useful predictive information.
model. When the proposed sequence agrees with the target model, multiple tokens can be committed in a single verification step, reducing the number of expensive target-model forward passes. Under standard verification, the final output remains controlled by the target model. However, the resulting speedup depends heavily on draft-target agreement. A long accepted prefix allows each verification step to advance multiple tokens, whereas an early mismatch causes the remaining candidates to be rejected and prevents the computation spent on drafting them from translating into actual decoding progress.
Existing studies primarily improve draft quality while controlling drafting overhead through better drafter architectures, candidate organization, and verification strategies [2, 3, 13, 16]. Representative directions include multi-head prediction [2], feature-level drafting [13], and tree-structured candidate construction [14]. More recently, diffusion-based parallel drafters such as DFlash [3] generate an entire candidate block in a single drafting pass without autoregressively conditioning on previously sampled draft tokens, achieving strong end-to-end speedups.
Despite these advances, a fundamental inefficiency remains in the draft-then-verify paradigm: each draft is used only for its current verification round. After the first mismatch, the remaining tokens and their hidden representations are discarded, even though the computation required to produce and verify them has already been incurred. This raises a natural question: does the rejected computation retain information about the target continuation, and can it be reused to condition the next draft?
In this work, we study this question using DFlash, whose diffusion-based parallel decoding provides a clean setting for examining information retained beyond the first mismatch. Figure 1 provides an illustrative example. Verification terminates at the first mismatch, resulting in a short accepted prefix. Nevertheless, despite local repetitions, omissions, and
incorrect predictions, later draft positions realign with the target continuation. This qualitative observation suggests that an early token-level error does not necessarily render all subsequent draft computation uninformative. Beyond this example, our quantitative analysis further shows that rejected-suffix representations retain predictive information about the target continuation.
To this end, we introduce ReTrace, a rejected-trajectory conditioning method for speculative decoding. ReTrace preserves the standard draft-then-verify paradigm while extending information flow across rounds. Instead of discarding the rejected trajectory after verification, it carries the corresponding hidden representations forward as auxiliary conditioning for the next proposal. Since all required draft and target representations are already available from standard drafting and verification, ReTrace requires no additional forward pass through either model. Our contributions are twofold. First, we identify and quantitatively analyze the predictive signal retained in rejected trajectories of DFlash, showing that representations beyond the first mismatch can remain informative about the target continuation. Second, we introduce ReTrace, a rejected-trajectory conditioning method that extends information flow across drafting rounds and improves speculative decoding with marginal drafting overhead.
Draft Reuse. Standard prefix verification discards the remaining draft suffix after the first rejection, motivating methods that reuse otherwise wasted draft computation. Token Recycling [17] caches discrete candidate-token transitions to construct future draft trees. More closely related to our work, Make Every Draft Count [5] introduces Lyanna, which fundamentally redesigns the drafter to autoregressively generate token-independent hidden-state trajectories, postpones token conditioning until sampling, and resamples candidate trees from the same hidden states after verification failures. The resampled candidates must then be verified together with a subsequent regular draft.
ReTrace differs from Lyanna in how the discarded computation is reused. Lyanna resamples candidate trees from reusable hidden trajectories after a verification failure, and these candidates must still undergo target-model verification. ReTrace instead uses the rejected states as conditioning signals for the next regular draft. Thus, the reused states need not themselves generate valid candidates; they only need to provide predictive information that improves subsequent drafting.
Predictive Signal in Rejected Trajectories
We ask whether the suffix strictly after the first rejected position retains predictive information about the target continuation. Using Qwen3-4B with its DFlash-b16 drafter under greedy decoding, we quantify the retained predictive signal in rejected suffixes from two perspectives: whether the target token remains near the top of the draft distribution, and whether the rejected draft states remain aligned with the corresponding target hidden trajectory.
Choice of Drafter. We focus on DFlash [3] because it provides a cleaner source of rejected trajectories for cross-round conditioning. First, in EAGLE-style autoregressive drafters [13, 15], later draft states are generated from earlier sampled tokens or features. An early error therefore changes the conditioning context of all descendant states and can propagate through the remainder of the branch. DFlash instead predicts a block in parallel: later positions may interact, but they are not generated autoregressively from the sampled token at the preceding position. A local rejection therefore does not necessarily invalidate all subsequent states.
Second, EAGLE distributes much of its drafting and verification computation across a shallow tree of alternative branches. Once one branch is selected, states on the remaining branches represent alternative continuations from earlier decision points rather than consecutive future positions along the realized continuation, making them difficult to reuse as position-aligned conditioning. DFlash instead produces a single, deeper block, so a rejection can leave a longer sequence of hidden states naturally aligned with subsequent draft positions. These properties make DFlash a particularly suitable setting for studying rejected-trajectory conditioning.
Token-Level Predictive Signal. Our first probe asks whether the target token remains plausible under the draft distribution at positions beyond the first mismatch. Although these positions no longer contribute to prefix acceptance, their draft distributions may still contain information about the target continuation. We measure this information by recording the rank of the target token at each suffix position. Specifically, for a suffix position , let be the draft logit for vocabulary token and let be the token that the target model actually produces at that position. Its rank over the vocabulary is
Rank one means that the target token is the drafter's top prediction, while a small rank means that only a few vocabulary tokens receive higher draft scores.
Figure 2 shows that 30.4% of target tokens remain the drafter's top prediction, while 75.2% fall within its top five. Thus, even after an earlier mismatch, the target token often remains among a small set of high-scoring alternatives, indicating that the rejected suffix retains coarse token-level predictive information.
Representation-Level Predictive Signal. Token ranks characterize the drafter's output distribution. We next ask whether the rejected hidden states retain information specific to the current continuation. For this offline analysis, we replay the target model's actual continuation and collect its hidden states at the same relative positions. We then compute the similarity between each rejected draft state and the

Figure 2 Cumulative coverage of the true target token's rank under the base DFlash logits. The first rejected proposal is excluded, and ranks are computed over the complete 151,936-token vocabulary. Each bar gives the fraction of analyzed rejected-suffix positions whose target token falls at or below the indicated rank range.
| Comparison | AIME25 | GSM8K | HumanEval | MT-Bench | Overall |
|---|---|---|---|---|---|
| True trajectory | 0.396 | 0.330 | 0.307 | 0.371 | 0.351 |
| Random | 0.171 | 0.121 | 0.105 | 0.115 | 0.128 |
| Gap | +0.225 | +0.209 | +0.202 | +0.256 | +0.223 |
Table 1 Cosine similarity between rejected draft hidden states and target hidden trajectories. Random target windows are drawn from other sequences in the same benchmark and matched by suffix length and generation progress. Overall is the macro-average across benchmarks.
corresponding target hidden state. For a block with a suffix of length , the same-position trajectory similarity is
where is a rejected draft state and its counterpart on the same sample's true target continuation. To distinguish continuation-specific alignment from generic hidden-space similarity, we additionally introduce a random baseline: we keep the rejected draft states fixed and replace the true target continuation with target hidden-state windows drawn from other sequences.
As shown in Table 1, rejected draft states are substantially more similar to their own target continuation than to random windows from other samples. The gap is positive on all four benchmarks, from 0.202 on HumanEval to 0.256 on MT-Bench, and the macro-average similarity rises from 0.128 to 0.351. These results provide strong evidence that rejected trajectories retain continuation-specific information. At the same time, the moderate absolute similarity indicates that their alignment with the target trajectory remains imperfect.
Together, the two probes establish a bounded form of reusability. The token-level analysis shows that the target token often remains among a small set of high-scoring alternatives, while the representation-level analysis shows that continuation-specific information persists in the rejected hidden states. The rejected suffix is therefore not reliable enough to accept or copy directly, but can provide auxiliary conditioning for subsequent drafting.
Method
Overview. The preceding analysis shows that the rejected suffix contains useful information, although its tokens are not reliable enough to accept directly. Inspired by conditional diffusion, ReTrace treats the corresponding hidden-state sequence as a rejected trajectory and uses it as auxiliary conditioning for the next masked draft block. This extends DFlash from conditioning each block only on the verified context to conditioning it also on information carried across drafting rounds.
Concretely, ReTrace injects the hidden representations of the rejected suffix into the drafter's input embeddings through a learned gate. More specifically, ReTrace retains and aligns the rejected-suffix representations with the next proposal positions. It then fuses each aligned draft state with the corresponding target representation already available from verification, providing additional target-side information. The resulting target-conditioned trajectory is injected into the next-round mask inputs through a learned gate. The accepted prefix and the first rejected position are excluded because both have already been resolved by verification, with the latter replaced by the target-side correction token. The conditioning lasts for one round, while the target model, verification rule, and token acceptance procedure remain unchanged. We elaborate on each component in the following text.
Rejected-Trajectory Construction and Alignment. At decoding round , the drafter produces a block of candidate tokens together with their final-layer representations,
Let denote the number of draft tokens accepted by the target model. When , the first rejected position is . ReTrace excludes the accepted-prefix representations , since their corresponding tokens have already been committed to the verified context. It also excludes , because the

Figure 3 Illustration of ReTrace. The target continuation is “The keys on the kitchen table, but he did not find them.” After drafting “kitchen desk but he” from the context “The keys on the”, the verifier accepts “kitchen”, rejects “desk”, and provides “table” as the target-side correction. Vanilla speculative drafting discards the hidden states of the remaining rejected suffix (“but he”), whereas ReTrace aligns them with the next block and conditions it on them after target-guided correction and gated residual fusion.
position is resolved by the target-side correction token. This information is available to the next drafting round through the standard context pathway.
ReTrace therefore carries forward only the representations strictly after the first rejected position:
These representations are not assumed to form a correct continuation. They serve as the conditioning signal for the upcoming drafting block, one that may preserve the semantic direction, formatting pattern, or local structure predicted by the drafter.
To use this signal in round , ReTrace aligns it with the proposal positions of the next draft block. After the target model commits the correction token at the rejection boundary, corresponds to the first unresolved position in the next round. We therefore define the aligned signal as
This alignment shifts the retained states to the be-
ginning of the next proposal block while preserving their original order. If the full block is accepted, or if no representation remains after excluding the first rejected position, then ReTrace reduces to the original drafting procedure.
Target-Aware Correction. The aligned rejected trajectory retains predictive information, but it reflects only the drafter's prediction and may carry errors from the failed draft path. The target representations produced during verification provide a complementary view of how the target model evaluates the same trajectory. ReTrace therefore adjusts each aligned draft state with its corresponding target representation to form a target-corrected trajectory, without requiring an additional target-model forward pass.
For each aligned position , let denote the target representation whose output logits score the candidate token at position . In a causal model the state at position is the one that predicts the token at position , so
where is the final-layer target representation produced during verification. Since the two representations come from different models, we let a lightweight projection map the pair into an update in the draft representation space:
where is learnable. The corrected signal is then
The residual formulation preserves the original suffix representation while allowing the correction module to make a target-aware adjustment. Here, controls the adjustment strength and is gradually increased during the initial training stage for optimization stability. At inference time, the fully activated coefficient is used.
Gated Residual Conditioning
The corrected signal carries information from the previous drafting round, but it should not replace the current mask input. ReTrace therefore admits it as a gated residual. Let denote the drafter's input representation at proposal position j of round , with j=0 the verified anchor. For each conditioned position, the conditioned input is
where and are learnable, is the element-wise sigmoid, and denotes element-wise multiplication. The gate is vector-valued, so it controls how much of the signal enters each hidden dimension. The anchor and the positions without an aligned signal keep their original inputs, .
The original draft input therefore remains the main pathway, and the conditioning signal enters only as a residual that the gate admits selectively. The conditioned inputs are passed through the original drafter to produce the next candidate block, and ReTrace introduces no further changes to the remaining draft computation. For stable optimization, is initialized to zero, so the residual vanishes at initialization and the drafter starts from its original behavior, gradually learning to condition on the rejected suffix when it benefits subsequent proposals.
Optimization and Inference
During training, cached draft and target representations are detached before being reused in the next decoding round, preventing gradients from propagating across rounds. The draft backbone, correction module, and gated injection module are jointly optimized using the current-round prediction loss, while the target model remains frozen.
At inference time, ReTrace reuses representations already produced by the standard drafting and verification passes. Each signal is retained for a single round and then replaced by the one derived from the latest rejected suffix. ReTrace introduces no additional target-model forward pass and leaves the target-side acceptance and output commitment procedures unchanged.
Experiments
Models and Benchmarks. We evaluate ReTrace on two target-model scales, Qwen3-4B and Qwen3-8B [19], using the corresponding DFlash-b16 checkpoints [3] as the base drafters. Our evaluation covers seven benchmarks from three representative generation categories. For mathematical reasoning, we use GSM8K [7], MATH [8], and AIME25 [18]. For code generation, we evaluate on HumanEval [4] and LiveCodeBench [11]. For open-ended dialogue and instruction following, we use MT-Bench [24] and Alpaca [21]. Unless otherwise specified, all methods use a draft block size of 16, and thinking mode is disabled during evaluation. Training data, optimization hyperparameters, hardware, and full generation configurations are deferred to the appendix.
Evaluation Metrics. We report average acceptance length , the mean number of draft tokens accepted per target verification step, and end-to-end speedup over standard autoregressive decoding.
Baselines. We compare ReTrace with EAGLE-3 [15], a strong feature-level speculative decoding method. Since ReTrace is implemented on top of DFlash, we also include the corresponding official DFlash-b16 model [3] as the direct backbone baseline. This comparison isolates the improvement introduced by rejected-suffix conditioning from that of the underlying parallel drafter. Standard autoregressive decoding is used as the reference for calculating end-to-end speedup. For each target-model scale, all applicable methods are evaluated on the same benchmark prompts with consistent generation settings.
| Model | Method | MATH | CODE | CHAT | OVERALL | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GSM8K | MATH-500 | AIME25 | HumanEval | LCB | MT-Bench | Alpaca | Avg. | ||||||||||
| Temperature = 0 | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | |||
| Qwen3-4B | EAGLE-3 (16) | 1.67× | 3.31 | 1.67× | 3.14 | 1.76× | 3.25 | 1.58× | 3.07 | 1.74× | 3.03 | 1.42× | 2.91 | 1.43× | 2.88 | 1.61× | 3.08 |
| EAGLE-3 (60) | 1.67× | 3.70 | 1.67× | 3.49 | 1.71× | 3.61 | 1.61× | 3.37 | 1.81× | 3.35 | 1.43× | 3.21 | 1.42× | 3.17 | 1.62× | 3.41 | |
| DFlash (16) | 3.37× | 6.36 | 5.18× | 8.25 | 5.32× | 8.66 | 4.15× | 6.69 | 4.68× | 7.35 | 1.85× | 4.07 | 1.66× | 3.48 | 3.74× | 6.41 | |
| ReTrace (16) | 3.73× | 7.36 | 5.47× | 8.88 | 5.44× | 8.94 | 4.27× | 6.90 | 4.85× | 7.80 | 1.99× | 4.40 | 1.73× | 3.69 | 3.93× | 6.85 | |
| Qwen3-8B | EAGLE-3 (16) | 1.85× | 3.24 | 2.04× | 3.15 | 2.23× | 3.65 | 1.93× | 3.21 | 1.86× | 2.86 | 1.67× | 2.73 | 1.50× | 2.60 | 1.87× | 3.06 |
| EAGLE-3 (60) | 1.92× | 3.61 | 2.18× | 3.52 | 2.06× | 3.65 | 1.96× | 3.55 | 1.86× | 3.14 | 1.71× | 3.01 | 1.53× | 2.80 | 1.89× | 3.33 | |
| DFlash (16) | 3.91× | 6.40 | 5.89× | 8.21 | 5.96× | 8.40 | 4.03× | 6.49 | 4.26× | 7.17 | 2.39× | 4.18 | 1.89× | 3.59 | 4.05× | 6.35 | |
| ReTrace (16) | 4.34× | 7.39 | 6.10× | 8.95 | 6.10× | 8.73 | 4.21× | 6.74 | 4.38× | 7.50 | 2.47× | 4.41 | 1.97× | 3.81 | 4.22× | 6.79 | |
| Temperature = 1 | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | Speedup | τ | |
| Qwen3-4B | EAGLE-3 (16) | 1.51× | 3.26 | 1.38× | 3.03 | 1.35× | 2.86 | 1.39× | 3.02 | 1.34× | 2.99 | 1.30× | 2.89 | 1.28× | 2.82 | 1.36× | 2.98 |
| EAGLE-3 (60) | 1.49× | 3.63 | 1.36× | 3.38 | 1.30× | 3.14 | 1.37× | 3.30 | 1.37× | 3.28 | 1.24× | 3.14 | 1.25× | 3.11 | 1.34× | 3.28 | |
| DFlash (16) | 2.84× | 6.00 | 3.23× | 6.99 | 2.46× | 5.18 | 2.96× | 6.04 | 2.92× | 7.04 | 1.59× | 3.96 | 1.45× | 3.43 | 2.49× | 5.52 | |
| ReTrace (16) | 3.15× | 6.82 | 3.39× | 7.50 | 2.60× | 5.41 | 2.99× | 6.30 | 3.56× | 7.60 | 1.62× | 4.16 | 1.44× | 3.56 | 2.68× | 5.91 | |
| Qwen3-8B | EAGLE-3 (16) | 1.69× | 3.14 | 1.60× | 2.94 | 1.52× | 2.76 | 1.68× | 3.10 | 1.47× | 2.82 | 1.42× | 2.67 | 1.36× | 2.55 | 1.53× | 2.85 |
| EAGLE-3 (60) | 1.73× | 3.51 | 1.58× | 3.28 | 1.51× | 3.06 | 1.69× | 3.41 | 1.29× | 3.12 | 1.39× | 2.89 | 1.35× | 2.74 | 1.51× | 3.14 | |
| DFlash (16) | 3.15× | 5.82 | 3.53× | 6.81 | 2.99× | 5.34 | 3.24× | 5.63 | 3.52× | 7.12 | 1.76× | 3.73 | 1.63× | 3.44 | 2.83× | 5.41 | |
| ReTrace (16) | 3.48× | 6.63 | 3.95× | 7.36 | 3.04× | 5.58 | 3.32× | 5.79 | 3.59× | 7.40 | 1.82× | 4.08 | 1.68× | 3.69 | 2.98× | 5.79 | |
Table 2 End-to-end decoding speedup over vanilla autoregressive decoding and average acceptance length (τ) on Qwen3 models. Parenthesized values denote the draft tree size for EAGLE-3 and the draft block size for DFlash and ReTrace. The average is computed over all benchmarks. Bold values indicate the best result within each model and temperature setting.
Main Results
As shown in Table 2, ReTrace consistently strengthens its DFlash backbone across both model scales and decoding regimes. Averaged over the four model-temperature configurations, it improves the macro-average acceptance length by 6.97% and the macro-average speedup by 5.34% over DFlash. The acceptance gain is consistent across every benchmark and persists under both greedy and stochastic decoding, suggesting that rejected-suffix representations provide reusable correction signals rather than benefiting only a particular model scale or decoding trajectory. Longer accepted blocks generally translate into higher end-to-end speedup. The few small per-benchmark deviations indicate that wall-clock acceleration also depends on workload length and fixed per-round overhead; nevertheless, every model-temperature configuration achieves a higher macro-average speedup.
Component Ablation
We ablate how the rejected suffix enters the next draft block. All variants build the same aligned conditioning signal and differ only in how it is used: overwrite replaces the mask input representations with it, gated adds it through the gated residual connection while keeping the mask pathway intact, and corrected applies target-aware delta correction before fusion.
As shown in Table 3, even direct overwriting yields a small improvement, raising average acceptance from 6.45 to 6.51. This supports our analysis that rejected-

Figure 4 Average acceptance length during training. The SFT baseline continues training with the original DFlash objective using the same data and training budget as ReTrace, but without rejected-suffix conditioning.
suffix hidden states contain useful information, while showing that such a simple injection cannot exploit it effectively. Gated fusion brings clearer gains by preserving the current-round mask input, reaching 6.79, and target-aware correction further improves all four benchmarks, achieving the best overall result of 6.90 acceptance and 3.86× speedup.
Effect of Additional Training
To verify that the improvement of ReTrace does not simply result from additional training, we construct an SFT baseline by continuing to train DFlash with its original block-diffusion objective [3], using the same training data and optimization budget as ReTrace. The only difference is that the SFT baseline does not condition on rejected-suffix representations.
| Method | GSM8K | HumanEval | AIME25 | MT-Bench | Avg. |
|---|---|---|---|---|---|
| DFlash (no conditioning) | 6.36/3.37× | 6.69/4.15× | 8.66/5.32× | 4.07/1.85× | 6.45/3.67× |
| + raw conditioning, overwrite | 6.67/3.47× | 6.54/4.05× | 8.72/5.33× | 4.11/1.86× | 6.51/3.68× |
| + raw conditioning, gated | 7.21/3.67× | 6.81/4.22× | 8.83/5.37× | 4.29/1.93× | 6.79/3.80× |
| + corrected conditioning, gated | 7.36/3.73× | 6.90/4.27× | 8.94/5.44× | 4.40/1.99× | 6.90/3.86× |
Table 3 Component ablation on Qwen3-4B under greedy decoding. The three conditioned variants reuse the same aligned conditioning signal and differ only in how it enters the next draft block. Each entry reports average acceptance length / end-to-end speedup, and the last column is the arithmetic mean over the four benchmarks. Bold values indicate the best result in each column.
| Metric | DFlash | ReTrace |
|---|---|---|
| Verify latency (ms) | 23.56 | 23.58 |
| Draft latency (ms) | 8.34 | 8.38 |
| LM-head latency (ms) | 0.59 | 0.59 |
| Conditioning overhead (ms) | - | 0.13 |
| Total latency (ms) | 32.49 | 32.68 |
| Speedup | 3.37× | 3.73× |
| Avg. accepted length | 6.36 | 7.36 |
Table 4 Runtime efficiency on GSM8K with Qwen3-4B. The conditioning overhead combines target-aware correction and gated fusion.
As shown in Figure 4, continued DFlash training improves only marginally and quickly saturates, whereas ReTrace steadily increases the average acceptance length throughout training, indicating that the gain comes from conditioning on the rejected suffix rather than from additional training.
Runtime Efficiency Analysis
We measure the per-cycle latency of DFlash and ReTrace on GSM8K with Qwen3-4B on a single NVIDIA A800 GPU, using context length 1,024 and batch size 1. We report median CUDA-event latency, and the total is the sum of all non-overlapping components in one decoding cycle. As shown in Table 4, ReTrace raises the speedup from 3.37× to 3.73× and the average accepted length from 6.36 to 7.36, at a combined correction and fusion cost of 0.13 ms per cycle, only 0.40% of the DFlash cycle latency. It requires neither an additional target-model forward pass nor an autoregressive drafting step.
Compatibility with Domino
Domino improves draft quality by modeling causal dependencies within the current draft block, whereas ReTrace conditions each block on the rejected suffix
| Benchmark | Throughput (tok/s) | Acceptance Length | ||
|---|---|---|---|---|
| Domino | +ReTrace | Domino | +ReTrace | |
| MATH-500 | 343.28 | 356.61 (+13.33) | 9.22 | 9.55 (+0.33) |
| AIME25 | 278.24 | 288.94 (+10.70) | 6.85 | 7.17 (+0.32) |
| LiveCodeBench | 247.79 | 266.71 (+18.92) | 6.76 | 7.22 (+0.46) |
| HumanEval | 279.38 | 293.30 (+13.92) | 6.88 | 7.23 (+0.35) |
| Macro Average | 287.17 | 301.39 (+14.22) | 7.43 | 7.79 (+0.36) |
Table 5 Compatibility with Domino on selected math and code benchmarks. All results use greedy decoding and a maximum generation length of 1,024 tokens. Absolute improvements over Domino are shown in parentheses, and bold values indicate the better result.
of the previous round, so the two methods optimize orthogonal information pathways.
As shown in Table 5, adding ReTrace to Domino raises macro-average throughput from 287.17 to 301.39 tok/s and mean acceptance length from 7.43 to 7.79 tokens on the selected math and code benchmarks, confirming that cross-round conditioning is compatible with Domino's intra-block causal refinement.
Conclusion
We revisit the rejected suffix in speculative decoding and show that, although its tokens cannot be committed, its hidden representations retain predictive information that benefits subsequent drafting. Based on this observation, we introduce ReTrace, which conditions each draft block on the rejected suffix of the previous round: the retained states are aligned, corrected with target-side signals, and admitted through gated residual fusion. Across model scales, decoding temperatures, and diverse benchmarks, ReTrace consistently improves acceptance length and end-to-end speedup over its DFlash backbone at negligible latency cost, and remains compatible with intra-block improvements such as Domino. Rejected draft computation therefore need not be wasted: it can condition the drafting that follows.
References
[1] Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, et al. Qwen technical report. arXiv preprint arXiv:2309.16609, 2023.
[2] Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D Lee, Deming Chen, and Tri Dao. Medusa: Simple llm inference acceleration framework with multiple decoding heads. arXiv preprint arXiv:2401.10774, 2024.
[3] Jian Chen, Yesheng Liang, and Zhijian Liu. Dflash: Block diffusion for flash speculative decoding. arXiv preprint arXiv:2602.06036, 2026.
[4] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sasy, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
[5] Yuetao Chen, Xuliang Wang, Xinzhou Zheng, Ming Li, Peng Wang, and Hong Xu. Make every draft count: Hidden state based speculative decoding. arXiv preprint arXiv:2602.21224, 2026.
[6] Xin Cheng, Xingkai Yu, Chenze Shao, Jiashi Li, Yunfan Xiong, Yi Qian, Jiaqi Zhu, Shirong Ma, Xiaokang Zhang, Jiasheng Ye, et al. Dspark: Confidence-scheduled speculative decoding with semi-autoregressive generation. arXiv preprint arXiv:2607.05147, 2026.
[7] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
[8] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
[9] Lanxiang Hu, Zhaoxiang Feng, Yulun Wu, Hao-ran Yuan, Yujie Zhao, Yu-Yang Qian, Bojun Wang, Daxin Jiang, Yibo Zhu, Tajana Rosing, et al. Jet-flow: Breaking the scaling ceiling of speculative decoding with parallel tree drafting. arXiv preprint arXiv:2606.18394, 2026.
[10] Jianuo Huang, Yaojie Zhang, Qituan Zhang, Hao Lin, Hanlin Xu, and Linfeng Zhang. Domino: Decoupling causal modeling from autoregressive drafting in speculative decoding. arXiv preprint arXiv:2605.29707, 2026.
[11] Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Live-codebench: Holistic and contamination free evaluation of large language models for code. arXiv preprint arXiv:2403.07974, 2024.
[12] Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning, pages 19274–19286. PMLR, 2023.
[13] Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle: Speculative sampling requires rethinking feature uncertainty. arXiv preprint arXiv:2401.15077, 2024.
[14] Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle-2: Faster inference of language models with dynamic draft trees. In Proceedings of the 2024 conference on empirical methods in natural language processing, pages 7421–7432, 2024.
[15] Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. EAGLE-3: Scaling up inference acceleration of large language models via training-time test. In Advances in Neural Information Processing Systems, 2025.
[16] Tianyu Liu, Yun Li, Qitan Lv, Kai Liu, Jianchen Zhu, Winston Hu, and Xiao Sun. Pearl: Parallel speculative decoding with adaptive draft length. In International Conference on Learning Representations, volume 2025, pages 1085–1104, 2025.
[17] Xianzhen Luo, Yixuan Wang, Qingfu Zhu, Zhiming Zhang, Xuanyu Zhang, Qing Yang, and Dongliang Xu. Turning trash into treasure: Accelerating inference of large language models with token recycling. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6816–6831, 2025.
[18] Mathematical Association of America. American invitational mathematics examination 2025. American Mathematics Competitions, 2025. AIME 2025 problems.
[19] Qwen Team. Qwen3 technical report. arXiv:2505.09388, 2025.
[20] Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever, et al. Improving language understanding by generative pre-training. 2018.
[21] Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Alpaca: A strong, replicable instruction-following model. , 2023. https://crfm.stanford.edu/2023/03/13/alpaca.html.
[22] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv:2302.13971, 2023.
[23] Tengyu Xu, Eryk Helenowski, Karthik Abinav Sankararaman, Di Jin, Kaiyan Peng, Eric Han, Shao-liang Nie, Chen Zhu, Hejia Zhang, Wenxuan Zhou, Zhouhao Zeng, Yun He, Karishma Mandyam, Arya Talabzadeh, Madian Khabsa, Gabriel Cohen, Yuandong Tian, Hao Ma, Sinong Wang, and Han Fang. The perfect blend: Redefining rlhf with mixture of judges. arXiv preprint arXiv:2409.20370, 2024.
[24] Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P. Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. Judging llm-as-a-judge with mt-bench and chatbot arena. In Advances in Neural Information Processing Systems, 2023.
Appendix
A Algorithm
Algorithm 1 summarizes one ReTrace decoding round. Lines 4–6 are the only additions to the underlying speculative-decoding loop: they correct the signal carried from the previous round and admit it into the draft input. Everything else, including target verification and sampling, is unchanged. The conditioning signal is reset whenever a block is fully accepted or the rejection occurs at the last block position, in which case the drafter falls back to its original behavior.
Algorithm 1: One ReTrace decoding round
Input: context , target model , drafter , block size
Parameter: , correction coefficient
Output: extended context
1: for
2: for until EOS do
3: drafter inputs (anchor and proposal positions)
4: Eq. 7
5: Eq. 8
6: Eq. 9
7:
8:
9: append the accepted tokens and the correction token to
10: if then
11: first rejected position
12: and for
13: and for
14: else
15: nothing to carry
16: end if
17: end for
18: return
B Training Data
ReTrace is trained on a prompt-only pool of 40K examples drawn from Open-PerfectBlend, an open reproduction of the instruction mixture of [23], which spans dialogue, mathematical reasoning, code generation, and instruction following. The pool is built with random seed 42.
C Model and ReTrace Configuration
We use Qwen3-4B and Qwen3-8B as target models and initialize their drafters from the corresponding public DFlash-b16 checkpoints, each of which has five draft layers and a block size of 16. The target model remains frozen, and all target representations used for correction are taken from the ordinary verification pass, so no additional target forward pass is required. Table 6 lists the configuration.
| Setting | Qwen3-4B | Qwen3-8B |
|---|---|---|
| Hidden size (target, drafter) | 2,560 | 4,096 |
| Drafter layers | 5 | 5 |
| Draft block size | 16 | 16 |
| Reused representation | Final draft-layer state | |
| Correction representation | Final target-layer state | |
| Conditioning lifetime | One drafting round | |
| Retained states | FP16, no gradient | |
| Maximum | 1.0 | |
| Correction warmup | Linear, 50 iterations | |
Table 6 Model and ReTrace configuration.
D Optimization
Training uses the same block-diffusion objective as the DFlash backbone [3]. No additional target-model loss, counterfactual gate loss, or auxiliary conditioning loss is introduced: the correction and gated fusion parameters are optimized through the current-round prediction loss alone. The draft backbone is optimized jointly with them, while the retained states are detached between rounds. Training runs on 32 NVIDIA A800 40GB GPUs across four eight-GPU nodes. Table 7 lists the hyperparameters.
| Training hyperparameter | Value |
|---|---|
| Initialization | DFlash-b16 checkpoint |
| Precision | BF16 |
| Optimizer | AdamW, weight decay 0.01 |
| Learning rate | , cosine decay |
| LR warmup ratio | 0.05 |
| Prompt / response length | 512 / 1,024 tokens |
| Prompt batch size | 32 |
| Training epochs | 8 |
| Distributed strategy | FSDP |
| Seed | 42 |
Table 7 Optimization hyperparameters.
The correction coefficient of Equation 8 is phased in with a linear warmup. Writing for its value at training iteration s,
so correction is inactive at the start of training and is introduced gradually. At inference time the fully warmed value is used. Since is zero-initialized, ReTrace exactly reproduces the original draft input before learning begins.
E Evaluation Protocol
Within each comparison, all methods use the same prompts, target checkpoints, tokenizer, stopping criteria, and sampling parameters, and thinking mode is disabled throughout. Unless an experiment states otherwise, evaluation issues one request at a time with a draft block size of 16 for DFlash and ReTrace, the candidate tree size indicated in parentheses for EAGLE-3, and at most 8,192 new tokens, terminating earlier on EOS. We evaluate 128 prompts each on GSM8K, MATH-500, LiveCodeBench, and Alpaca, and the full test sets of HumanEval (164), AIME25 (30), and MT-Bench (80).
At temperature 0, greedy decoding uses top_p=1.0 and top_k=1; at temperature 1, sampling uses top_p=0.95 and top_k=20. The random seed is 42. Before measuring a benchmark we issue one warmup batch and clear the runtime cache. End-to-end speedup is computed against vanilla autoregressive decoding of the same target model under the same generation configuration. Average acceptance length is computed over target verification cycles. Latency includes proposal generation, ReTrace conditioning, target verification, sampling, and cache maintenance, and excludes model loading and the benchmark warmup.
E.1 Runtime Microbenchmark
The runtime decomposition reported in the main paper is measured on one NVIDIA A800 GPU with Qwen3-4B, batch size 1, context length 1,024, greedy decoding, and draft block size 16. Component times are measured with CUDA events and reported as medians. The total is the sum of the non-overlapping verification, draft, LM-head, and conditioning components of one speculative-decoding cycle.
F Ablation Settings
The component ablation uses Qwen3-4B, block size 16, greedy decoding, and the same checkpoint initialization, training data, optimization budget, and evaluation prompts for every row. Raw conditioning, overwrite replaces the active mask inputs with the aligned rejected states; raw conditioning, gated retains the mask pathway and applies only gated residual fusion; and corrected conditioning, gated adds target-aware correction before the same gated fusion.
The SFT baseline of Figure 4 continues DFlash training under the original block-diffusion objective with the same training data and optimization budget as ReTrace, differing only in that it does not condition on rejected-suffix representations. For the Domino compatibility study, all methods use greedy decoding, block size 16, and a maximum generation length of 1,024 tokens; Domino operates within a draft block, while ReTrace carries information only between consecutive blocks.
G Concurrent-Serving Experiment
The main results measure one request at a time. We additionally evaluate concurrent serving, where speculative decoding must compete with the batching that already saturates the target model.
The experiment uses Qwen3-4B and the first 128 GSM8K test prompts, with no-think greedy decoding, BF16, FlashInfer, and at most 1,024 new tokens. DFlash and ReTrace use a 16-token draft block; EAGLE-3 uses seven draft steps, top-k = 4, and tree sizes 16 and 60. We sweep client concurrency over , running each method in an isolated SGLang server on one NVIDIA A800-SXM4-40GB GPU and measuring all five configurations simultaneously. The server captures CUDA Graphs for all batch sizes up to 32, including the post-verification correction and fusion path. At each concurrency level we flush the cache and issue one warmup wave of c requests before timing. ReTrace here uses the deployment-efficient low-rank realization of its conditioning path: rank-64 rejected-suffix latents, input-side latent residual fusion, rank-32 target-aware correction, and a one-round conditioning lifetime.
| Conc. | EAGLE-3(16) | EAGLE-3(60) | DFlash(16) | ReTrace(16) |
|---|---|---|---|---|
| 1 | 1.67× / 3.31 | 1.67× / 3.70 | 3.37× / 6.36 | 3.73× / 7.36 |
| 2 | 1.55× / 3.31 | 1.54× / 3.70 | 3.20× / 6.42 | 3.49× / 7.38 |
| 4 | 1.47× / 3.31 | 1.24× / 3.69 | 2.89× / 6.43 | 3.15× / 7.43 |
| 8 | 1.31× / 3.31 | 0.90× / 3.69 | 2.38× / 6.38 | 2.56× / 7.36 |
| 16 | 1.07× / 3.31 | 0.61× / 3.71 | 1.83× / 6.37 | 2.01× / 7.34 |
| 32 | 0.80× / 3.31 | 0.42× / 3.69 | 1.50× / 6.45 | 1.62× / 7.42 |
Table 8 Concurrent serving on GSM8K with Qwen3-4B. Each entry reports the end-to-end speedup over target-only decoding at the same client concurrency and the average acceptance length . Bold indicates the best result at each concurrency level.
As shown in Table 8, ReTrace is the fastest method at every concurrency level and gains about one token of acceptance length over DFlash. The advantage survives batching because the conditioning signal is reused inside the drafter and adds no verification work. At concurrency 32, ReTrace still reaches while both EAGLE-3 configurations fall below target-only decoding. The concurrency-one row reproduces the corresponding single-request measurements of Table 2.