Contextual Correction of Parallel Draftsfor Speculative Decoding
Roy Eisenstadt, Harel Lidar, Tal Gonen, Omer Luxembourg, Itamar Zimerman, Lior Wolf, Eli David, Ilan Naiman
cs.CL
2026-10-09
DCOCO rescores top-16 draft candidates in one pass and leads throughput on four verifiers and ten benchmarks, up to 6.6× vanilla, also at 32-way concurrency.
Speculative decoding has a small drafter propose several tokens and the target model check them in one parallel pass. The target distribution stays intact, so the only levers are how many draft tokens get accepted and how long the draft takes to write.
Autoregressive drafters, including the EAGLE line, condition each position on tokens already chosen. DFlash, a diffusion block drafter, writes the whole future block in one forward pass. Latency drops, and so does intra-block context: a position never sees which token earlier slots in the same block settled on. Locally plausible words then form a bad continuation. A drafter that likes both "New York" and "San Diego" can emit "New Diego".
DSpark and Domino put that dependence back with a lightweight recurrence over the block. Acceptance rises. The recurrence sits on the critical path of every drafting cycle, and under concurrent load that cost eats the gain.
DCOCO (DFlash Contextual Corrector) re-picks inside the candidate list DFlash already produced. On Qwen3-8B, when top-1 is wrong, the verifier's token is still inside the top-16 59% of the time. Across four verifiers the last slot's top-1 coverage falls to 0.15-0.21 while top-16 coverage stays at 0.57-0.61. The drafter has seen the answer and failed to select it, and the miss gets worse deeper in the block.
Each slot keeps K=16 candidates. A shared two-layer MLP scores every transition between adjacent slots. The score is the successor's draft logit plus a learned residual. Inputs are only what that one DFlash pass already computed: slot hidden states, candidate embeddings, and the two logits. All of the scores run as one batch, with no second drafter forward. At the block-size setting of 16 that is 3,584 transitions. On Qwen3-8B the corrector has about 2.23 million parameters, and the embedding table stays frozen.
Path selection does not maximize the sum of transition scores. Verification walks left to right and stops at the first rejection, so a high score later in the block is never read if an earlier slot is wrong. Slot 1 keeps the drafter's top-1. Each later slot takes the best-scoring successor of the predecessor just chosen. Scoring stays parallel. The only sequential step is an O(BK) walk. The MLP output layer is zero-initialized, so the residual starts at zero and the rule reproduces raw DFlash.
Training adds a correction cross-entropy to the drafter loss. Earlier transitions get exponentially higher weight, with ρ=4. Labels are the verifier argmax under teacher forcing, and a pair is supervised only when both tokens sit in their top-K. The corpus is about 800K prompts from the Nemotron post-training set and CodeAlpaca. Each verifier writes its own greedy continuations. DCOCO starts from a six-epoch DFlash checkpoint and trains six more epochs jointly.
Four verifiers: Qwen3-4B, Qwen3-8B, Qwen3-Coder-30B-A3B, and Llama-3.1-8B. Ten benchmarks. vLLM on one B200 at concurrency 1. Baselines are DFlash, DSpark, and Domino, retrained on the same corpus with the same five-layer drafter, plus vanilla decoding.
Qwen3-8B, thinking off, greedy, ten-suite average:
| Method | Throughput | vs vanilla | Accepted length τ |
| Vanilla | 265.6 tok/s | 1.00× | 1 |
| DFlash | 783.1 | 2.95× | 3.913 |
| DSpark | 765.6 | 2.88× | 4.254 |
| Domino | 839.3 | 3.16× | 4.613 |
| DCOCO | 959.7 | 3.62× | 4.985 |
Against Domino that is +8.1% accepted length and +14.3% throughput. At T=1 the gaps are +7.5% and +13.6% (762.2 vs 670.9 tok/s). Against uncorrected DFlash, DCOCO spends 3-4% more time per cycle and accepts prefixes 18-27% longer.
The peak is Llama-3.1-8B on AIME-25, greedy: 1811.7 vs 274.8 tok/s, 6.59×. Qwen3-8B on MATH-500 reaches 6.13× (1625.2 vs 265.2). On that same Qwen3-8B greedy run, MT-Bench and Arena-Hard-v2 sit at 1.84-1.86×, and chat τ stays around 2.5-2.9.
DCOCO has the best ten-suite average speedup in all twelve verifier, temperature, and thinking cells, 8-19% ahead of the strongest baseline in each. On Llama the greedy margin is about 16% and the sampling margin about 8%.
Load is where the sequential correctors give the gain back. On Qwen3-8B greedy, from 4 to 32 concurrent streams, DCOCO stays 16.6-23% above the best alternative and 19-25% above DFlash. At 32 streams Domino is at 9014 tok/s, under DFlash at 9655. DSpark falls below DFlash too. Accepted length barely moves. Cycle time does.
On one fixed grid of scores, global sum loses to prefix-greedy on both τ and throughput. A geometric discount with λ=0.75 matches greedy acceptance (5.258 vs 5.254) and trails it by 2.8% in throughput.
Removing the pair state costs 7.3% of τ and 6.3% of throughput at T=0. Removing candidate representations costs 4.8% of τ. Training only the corrector on a frozen drafter lifts DFlash from 783.1 to 817.7 tok/s (+4.4%). Six extra epochs on the baselines move τ by at most 1.9%, which does not account for the joint-training jump of +27.4% τ.
Throughput is tokens committed per cycle divided by cycle time. A corrector that lengthens the prefix and also lengthens the cycle can lose on the number a server actually bills. DCOCO turns intra-block repair into one batched score, so at 32-way concurrency it is still faster than uncorrected DFlash. DSpark and Domino are not.
The large multiples sit on math and code: 3.7-6.1× on those Qwen3-8B greedy suites. Open chat is about 1.8-1.9×. A 6.6× AIME figure is the wrong estimator for a chat service. The corrector is about two million parameters and is trained per verifier. A frozen drafter still picks up about 4%. Greedy verification compares argmax tokens. Under sampling the proposal is a point mass, and the residual rule keeps the target distribution.
Inside parallel diffusion drafts this is a real step past DSpark and Domino, and the step is the latency shape, not a longer training budget. There is no head-to-head against autoregressive drafters such as EAGLE-3.
The comparison set is vanilla decoding, DFlash, DSpark, and Domino. EAGLE-3 and other drafters already used in production are absent, so the average-throughput lead holds inside the family these runs retrained.
Re-selection cannot leave the top-16. At the last slot, about 40% of positions never contain the verifier token. Slot 1 is locked to the drafter's top-1, and a miss there throws away the block. Coverage gaps grow with depth, while verification only pays for an unbroken prefix. The deep-block headroom in Figure 1 becomes throughput only when every earlier slot also survives.
Individual suites break the average. On Llama-3.1-8B at T=1, LiveCodeBench is 1.97× for DCOCO and 2.32× for DFlash. On Qwen3-Coder, uncorrected drafts run at 0.94× and 0.86× of vanilla on MT-Bench and Alpaca. DCOCO brings those two to 1.51× and 1.10×. Greedy cells are single runs. Training reports seed 42 only, and cross-seed variance is unmeasured.
The hardware is one B200, with block size and K fixed, in vLLM. Sequential correctors fall behind at high concurrency only while their per-step recurrence is expensive relative to the verifier forward. Another GPU or kernel stack needs its own measurement before the 16-23% serving margin can be treated as portable. Sampling is slower than greedy across the board: with a point-mass proposal, the rejection probability at T=1 is one minus the target probability of the chosen token.