Parallel speculative decoders propose an entire token block at once, yet one early inconsistency can cause the target to reject its remaining suffix. We introduce Corrective Prefix Attention (CPA), which combines prefix-aware selection with autoregressive supervision to improve these parallel drafts. CPA lets each candidate attend to earlier choices within the block. Fixed candidate shortlists allow all pairwise interactions to be computed before selection, reducing the sequential walk to table lookups, accumulation and lightweight scoring rather than repeated neural evaluations. An auxiliary autoregressive loss trains the shared backbone on clean prefixes without adding an inference pass. Across eight math, code and dialogue benchmarks with Qwen3-4B and Qwen3-8B targets on Ascend NPUs, CPA commits 13--15% more tokens per verification round than DSpark and 25--26% more than DFlash. Its mean speedups reach 3.35× and 3.37× under greedy decoding and 2.86× under sampling for both targets. Ablations support both components, while capacity sweeps demonstrate that greater acceptance alone does not guarantee faster decoding. These results motivate correcting parallel proposals with causal information while keeping sequential computation inexpensive.
Figures & tables
Figure 1: Corrective Prefix Attention (CPA). (a) A clean, causally masked training pass teaches the shared drafter to predict shifted reference tokens over the full vocabulary. The masked pass learns parallel proposals and their shortlist selection; both views use pre-anchor target features. (b) Only the parallel pass runs at inference; local and history pair scores are prepared before the causal selection walk. (c) Attention to an older subject can change the preferred verb even when the immediate predecessor is fixed. M denotes a mask token. The rank changes are schematic; the anchor and other candidates are omitted.
Math
Code
Chat
Overall
Method
GSM8K
MATH-500
AIME25
HumanEval
MBPP
LCB
MT-Bench
Alpaca
Avg.
S
τ
S
τ
S
τ
S
τ
S
τ
S
τ
S
τ
S
τ
S
τ
Qwen3-4B, temperature =0 (greedy)
EAGLE-3
1.31×
2.52
1.32×
2.42
1.30×
2.37
1.30×
2.40
1.21×
2.27
1.24×
2.30
1.17×
2.17
1.18×
2.20
1.25×
2.33
DFlash
3.95×
7.76
4.27×
7.72
3.49×
6.57
3.11×
5.91
2.77×
5.31
3.02×
5.79
1.66×
3.33
1.69×
3.19
3.00×
5.70
DSpark
4.04×
8.28
4.34×
8.19
3.67×
7.20
3.31×
6.58
3.00×
6.02
3.09×
6.18
1.76×
3.78
1.77×
3.66
3.12×
6.24
Table 1: Single-request decoding on Qwen3-4B and Qwen3-8B. Speedup S uses a fixed AR reference of 47.83 tokens/s for 4B and 39.63 tokens/s for 8B at both temperatures. τ includes the target correction or bonus token; EAGLE-3 uses pooled τ . Avg. is an unweighted workload mean. We use full-precision EAGLE-3 logs and the supplied two-decimal workload values for other methods, retain precision during aggregation, and round once (half up). CPA includes prefix attention and AR supervision. LCB: LiveCodeBench.
Setting
Speedup S
Tokens/round τ
Selector-loss weight, αmax
0.125
3.09×
6.58
0.250
3.20×
6.88
0.500
3.35×
7.14
1.000
3.30×
7.03
AR-loss weight, λAR
Table 2: Loss weights and selector capacity. Greedy Qwen3-4B; S and τ are eight-benchmark means. Bold rows are the reference configuration ( αmax=0.5 , λAR=0.2 , r=256 , K=16 , one selector layer), recomputed from the Table 1 workload values and repeated in each panel. Other aggregate-only observations retain their supplied precision. Larger K or r raises τ but not speed. The stacked two-layer row uses local_prefix_v2 (Appendix B ).
Method
Draft
Correction
Verify
Other
Total
τ
DFlash
13.480
–
13.158
13.084
39.7222
5.70
DSpark
13.752
1.177
13.203
13.682
41.815
6.24
CPA
14.138
2.748
13.406
14.207
44.499
7.13
Table 3: Instrumented per-round timing breakdown. Greedy Qwen3-4B, one request; milliseconds. Custom wall-clock instrumentation synchronizes the NPU at stage boundaries. We average verification-round times across all evaluation samples within each workload, then average the eight workload means equally, without rescaling. Warmup, prefill and unused final drafts are excluded. Other is the residual round time. Throughput is measured separately with instrumentation disabled. The accompanying τ values retain their reported precision.
Figure 2: Acceptance and speed are not the same. Greedy Qwen3-4B means from Tables 1 , 2 and 4 . Dashed lines show equal inferred cost index τˉ/Sˉ . Orange points show configuration variants; the stacked variant is specified in Appendix B . Coordinates use unrounded computed means where workload values are available.
Variant
S
τ
Index
DFlash (reference)
3.00×
5.70
1.90
CPA , parallel argmax
3.13×
6.26
2.00
CPA , local term only
3.20×
6.79
2.12
CPA , local + history
3.35×
7.14
2.13
CPA without AR loss
3.28×
6.93
2.11
Table 4: Where the gain comes from. Greedy Qwen3-4B, eight-benchmark means derived from Table 8 . Parallel argmax and Local only disable the selector or its history term at inference; No AR loss is trained with λAR=0 . The cost index is the ratio of unrounded workload means τˉ/Sˉ , an inferred normalized cost rather than a measured mean round latency.
DFlash
DSpark
CPA
B
τ
S
τ
S
τ
S
8
4.332
2.37×
5.019
2.58×
5.247
2.61×
16
5.698
3.00×
6.236
3.12×
7.135
3.35×
32
4.871
1.69×
5.605
1.85×
6.182
1.92×
Table 5: Block size changes both acceptance and cost. Greedy Qwen3-4B. Each method reports committed tokens per round τ and speedup S . B includes the anchor.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Object
Per-block shape
Unary logits
m×∣V∣
Candidate IDs
m×K
Candidate embeddings
m×K×d
Local table, i>1
K×K
Local table, i=1
K×1
History table, j>0
H×K×K
Appendix
Table 6: Per-block tensor shapes. Our implementation stores dense FP32 history tables, masks pairs with j>i−2 , and handles the anchor separately.
Setting
Value
Reference configuration
Recipe epoch target
5; resumption may override the final budget
Final selector-loss weight αmax
0.5
AR-loss weight λAR
0.2 ( 0 for the no-AR ablation)
Block size / proposed tokens / shortlist size
16 / 15 / 16
Selector rank / heads / layers
256 / 4 / 1
Appendix
Table 7: Reference configuration and training recipe. The selector-loss weight αmax , prefix-weight floor ρ , and optimizer learning-rate schedules are distinct. Recipe defaults and remaining run provenance are specified below.
Math
Code
Chat
Overall
Method
GSM8K
MATH-500
AIME25
HumanEval
MBPP
LCB
MT-Bench
Alpaca
Avg.
S
τ
S
τ
S
τ
S
τ
S
τ
S
τ
S
τ
S
τ
S
τ
Parallel argmax
4.07×
8.64
4.44×
8.69
3.69×
6.98
3.33×
6.48
2.85×
5.73
3.29×
6.31
1.59×
3.80
1.78×
3.48
3.13×
6.26
Local only
4.11×
9.24
4.49×
9.22
3.77×
7.60
3.40×
6.98
3.00×
6.36
3.23×
6.58
1.73×
4.46
1.84×
3.86
3.20×
6.79
No AR loss
4.29×
9.56
4.58×
9.33
3.90×
7.81
3.43×
6.94
3.08×
6.44
3.24×
6.50
1.91×
4.97
1.84×
3.85
3.28×
6.93
CPA
4.38×
9.85
4.68×
9.62
3.99×
8.05
3.49×
7.17
3.12×
6.61
3.29×
6.71
1.98×
5.12
1.88×
3.95
3.35×
7.14
Appendix
Table 8: Per-benchmark ablation. Greedy Qwen3-4B; metrics and aggregation as in Table 1 . Parallel argmax and Local only switch off the selector or its history term at inference on the CPA checkpoint; No AR loss is a drafter trained with λAR=0 . Means and derived percentages use the supplied workload values before rounding the aggregates.
Concurrency
Target AR
DFlash
DSpark
CPA
1
47.83 ( 1.00× )
143.49 ( 3.00× )
149.23 ( 3.12× )
160.23 ( 3.35× )
8
248.17 ( 1.00× )
564.88 ( 2.28× )
586.26 ( 2.36× )
631.22 ( 2.54× )
16
452.78 ( 1.00× )
805.54 ( 1.78× )
836.60 ( 1.85× )
895.11 ( 1.98× )
32
649.57 ( 1.00× )
883.01 ( 1.36× )
921.46 ( 1.42× )
986.39 ( 1.52× )
Appendix
Table 9: Throughput under concurrent requests. Qwen3-4B, greedy, all evaluation prompts across the eight benchmarks, at most 2,048 new tokens, one Ascend 910B2 NPU. Each cell gives output tokens/s and, below it, speedup over target-only decoding at the same concurrency.
Benchmark
Hugging Face dataset; configuration / split
GSM8K
openai/gsm8k ; main / test
MATH-500
HuggingFaceH4/MATH-500 ; test
AIME 2025
MathArena/aime_2025 ; train
HumanEval
openai/openai_humaneval ; test
MBPP
google-research-datasets/mbpp ;
sanitized / test
Appendix
Table 10: Benchmark sources shared by EAGLE-3, DFlash, DSpark and CPA . All methods use every prompt in the listed split with the same evaluation settings.
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.6x 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.
Roy Eisenstadt, Harel Lidar, Tal Gonen +5
Stealth Startup, Tel Aviv · Tel Aviv University · Ben-Gurion University
DSpark-style parallel drafters have made speculative decoding highly effective, yet their draft phase remains serialized on the critical path of every round. Parallel speculative decoding (PSD) overlaps drafting with verification, yet existing methods must guess the accepted prefix and bonus token in advance: a wrong guess reverts the whole batch to serial drafting. We present DPara, a PSD framework that reuses effective parallel drafters yet guarantees backbone--verification overlap in every round, thereby eliminating this probabilistic fallback altogether. While the target verifies, DPara's diffusion backbone precomputes draft representations for every acceptance boundary with the bonus left unspecified; a lightweight autoregressive head then combines the revealed verification outcome with the matching precomputed representation to emit the next round's draft tokens almost instantly---fully parallelizing the dominant backbone forward with verification and leaving only the negligible head cost serial. Experiments on Qwen3-8B and Qwen3-14B across seven math, coding, and chat benchmarks show that DPara achieves average speedups of 3.21× and 3.52× over autoregressive decoding, surpassing the strongest serial and parallel speculative decoding baselines alike.
Fuliang Liu, Xue Li, Kun Qian +4
State Key Laboratory of Novel Software Technology, Nanjing University · Alibaba Group
Speculative decoding accelerates large language model inference with a small drafter, whose per-guess acceptance rate determines the achievable speedup. Feature-level drafters share a design choice: every token, easy or hard, is drafted under a single forward pass. Many of the tokens the target rejects are ones the drafter is itself unsure about yet the target answers decisively. To address this, we introduce Parallel Reconsideration: guided by its own uncertainty, the drafter reconsiders its hesitant guesses with extra passes that run in parallel with the one-pass draft, adding negligible latency. A co-designed training recipe and serving-time drafting algorithm append these reconsidered guesses to the original draft tree as refined candidates. Across models and benchmarks, on average, Parallel Reconsideration improves over the baselines by 5.3% to 10.2% on acceptance length and by 3.5% to 9.2% on speedup.