Two weaknesses of parallel drafting
A parallel drafter such as DFlash fills a whole block of drafts in one forward pass, but it predicts every slot independently. When the context allows two continuations, say "of course" and "no problem", independent slots can mix them into "of problem", so acceptance decays quickly along the block. And verifying every draft of a long block spends the target model's capacity on drafts that are likely to be rejected, which matters most on a busy server. DSpark answers both: a semi-autoregressive drafter that adds a cheap sequential stage to a parallel backbone, and confidence-scheduled verification that sends only as many drafts as are expected to pay for themselves.
The page records DeepSeek's released DSpark drafter for Qwen3-4B, with blocks of 7, on the DFlash tab's prompt, both models in float32 on the Mac's GPU.
The parallel backbone
The backbone is DFlash's: five Qwen3-style decoder layers (537 M parameters) that read Qwen3's context only through features fused from five of its blocks and injected as keys and values, with no causal mask inside the block. DSpark changes one thing: the anchor's slot predicts too. The block is the anchor and six mask tokens, and slot 's output , read through a frozen copy of Qwen3's LM head, is the backbone's logit vector for the token places after the anchor, so seven inputs give seven drafts. The Parallel backbone panel shows the feature taps and one layer's attention over the context and the block.
A sequential stage
After the single backbone pass, a Markov head adds to each slot's logits a bias that depends on the token drafted just before it:
is a row lookup and a projection back to the vocabulary, a rank-256 factorisation of a full token-to-token transition table, 78 M parameters. The seven drafts are now picked one after another, left to right, but each step is only a lookup and one small matrix product, so drafting stays dominated by the parallel pass. The Sequential stage panel shows, slot by slot, the previous token, its row, the backbone's own guess and the draft after the bias. Over the answer the bias changed 145 drafts; had every draft been verified, the backbone's guesses alone would have kept 99 drafts against 287 with the bias.
Confidence and prefix survival
A confidence head, one linear map and a sigmoid (2,817 parameters), estimates the probability that draft survives verification given that all drafts before it did:
so is the probability that the first drafts are all accepted. The paper trains against the analytical acceptance rate of the draft and target distributions and then calibrates the products on held-out data with sequential temperature scaling. The release includes no calibration, so the page uses the raw confidences.
Scheduling verification
Verifying drafts means a target forward of tokens, and its cost depends on the hardware and the load. The page measured that cost on this Mac before decoding, a Qwen3-4B forward of tokens after 192 cached ones: 71.8 ms for one token, 83.8 ms for seven, 94.6 ms for eight. The scheduler maximises the expected throughput
and stops at the first that does not raise it. With this table the seventh draft costs 10.8 ms more and is sent only when its survival probability is high; here the scheduler sent all seven drafts in 38 steps and six in 11. The Confidence schedule panel plots the confidences, the survival products and at each step. In the paper the scheduler works on a whole batch at once (its Algorithm 1): it ranks every request's next possible draft by survival probability and keeps adding drafts while the engine's profiled throughput rises, so under heavy load doubtful drafts stop taking capacity from other requests.
What it gains on this page
The 333-token answer, identical to plain greedy decoding, takes 49 steps, 50 Qwen3 forwards with the prompt's: 6.78 tokens per forward, verifying 381 tokens in all. Verifying all seven drafts every step takes 48 steps (6.92 tokens per forward, 384 tokens verified), so on one request on this Mac the scheduler's caution cost one forward. DFlash takes 42 forwards but verifies 656 tokens, 16 per step. Measured on this Mac, a DSpark step took 25 ms drafting and 86 ms verifying on average, against 67 ms for one greedy token: 59.73 tokens per second, 4.02× greedy, and 61.61 (4.15×) when verifying everything. The Mac paged 3.1 GB in while timing, which slows greedy most.
The paper's gains are measured where scheduling matters. For Qwen3-4B it reports a macro-average accepted length 30.9 % above EAGLE-3's and 16.3 % above DFlash's; deployed in DeepSeek-V4's serving system, per-user generation 60 to 85 % faster than the multi-token-prediction baseline (MTP-1) at matched throughput.
Where it came from
Non-autoregressive translation (Gu et al., 2018) named the multi-modality problem that independent slots suffer from, and blockwise parallel decoding (Stern et al., 2018) first checked a block of parallel guesses against the model. SpecDec++ (Huang et al., 2024) predicted acceptance with a small head to choose how many drafts to propose, and temperature scaling (Guo et al., 2017) is the standard fix for overconfident probabilities. DSpark (Cheng et al., 2026) combined a parallel backbone from DFlash, a sequential stage and a load-aware scheduler, and was released with DeepSpec, DeepSeek's training repository. The DFlash tab shows the backbone on its own; the MTP tab shows the kind of multi-token-prediction drafting DSpark is compared with.
Papers
- DSpark: Confidence-Scheduled Speculative Decoding with Semi-Autoregressive Generation The method on this page: DFlash's backbone with a Markov head, a confidence head for prefix survival, and a hardware-aware scheduler for the verification length.
- DFlash: Block Diffusion for Flash Speculative Decoding The parallel drafter DSpark builds on: target features injected as keys and values, a block filled in one pass.
- Non-Autoregressive Neural Machine Translation Predicting all output positions at once, and the multi-modality problem that independent positions cause, which DSpark's sequential stage addresses.
- SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengths An acceptance-prediction head that decides when to stop drafting, the idea DSpark's confidence head takes up.
- On Calibration of Modern Neural Networks Temperature scaling, the basis of the sequential temperature scaling DSpark's paper calibrates its confidences with.
- DeepSeek-V3 Technical Report Multi-token prediction, whose one-token drafting (MTP-1) is the production baseline DSpark is compared with.
- Qwen3 Technical Report The Qwen3 family, including Qwen3-4B, the target model here.