< Will Bosler

DSpark ·

DSpark is a speculative decoding technique that works on several of the levers for improving speculative decoding speed. It drafts faster by leveraging a parallel backbone, such as the block diffusion drafter proposed by DFlash. It drafts better, as a lightweight sequential head makes the parallel guesses fit together. And it verifies faster, as a byproduct of verifying less: DSpark makes a more intelligent decision about whether a drafted token is worth verifying at all, since verification always carries a cost.

0:06 / 0:06

In the paper, DSpark: Confidence-Scheduled Speculative Decoding with Semi-Autoregressive Generation, DSpark raises the accepted length on AIME25 with Qwen3-14B from 3.98 tokens per round with DFlash to 4.94, an increase of 24%.

0:10 / 0:15

A large target model writes a single token each time it runs, and every pass reads all of its weights. Speculative decoding has a small, fast drafter propose several tokens ahead, which the target then checks together in one pass. DSpark is a smarter drafter, made of a parallel backbone, a light sequential head and a scheduler.

0:07 / 0:10

The process begins much as it does in DFlash. The target model reads the prompt, here A B C, and writes the next token, D, in one normal pass. As D came from the target itself, it is certain. It becomes the anchor on which every subsequent guess is built.

0:10 / 0:15

For a block of positions, the drafter then predicts a set of tokens in parallel using bidirectional attention. D and three mask slots enter a heavy backbone together, every position is computed at once and each slot yields a guess for its token: E, F, G and I.

Even when fused with information from the target model, this bidirectional attention can still produce tokens that are unlikely to be accepted. The slot for F cannot see which token E became, so neighbouring guesses may not fit together. The classic example is predicting “New Los Angeles” instead of “New York”, when the “New” was never known to the slot that follows it.

0:13 / 0:15

DSpark introduces confidence. A small sequential head walks along the block's output, restoring temporal cohesion: each token it writes is conditioned on the one before. The heavy work has already happened in parallel, so this head can afford to loop, as it only turns logits into tokens. Alongside it, a small confidence head gives each draft token a score, c₁ to c₄, estimating how likely the target is to accept it. Strictly, this is a separate head from the sequential one, though it reads the same view of the previous token.

0:10 / 0:13

If a score is very low, the token is discarded. In the “New Los Angeles” case, the “Los Angeles” token would receive a very low confidence from the confidence head, and DSpark would not even bother verifying it. Here, c₄ is low, so I is dropped. The prefix scheduler is hardware aware: each extra token costs compute on the target, so it weighs confidence against that cost and keeps only the prefix E F G.

0:15 / 0:16

Verification then proceeds causally with the target model, as normal, but only over the tokens the drafter was confident enough to submit. The target reads D E F G in a single pass and lines its own token up against the draft's at every position. E and F match and are kept. G does not, so it is replaced with G*, the target's own token. One pass of the large model yields three new tokens, and G* becomes the anchor for the next round.

0:10 / 0:12

In summary, each DSpark round anchors, drafts, schedules and verifies: guess wide, cut smart, verify once. When benchmarked, this yields further speedup on top of DFlash, because verification, although it can be done in parallel, still incurs a cost. If cheaper methods can establish that a token is not worth verifying, there is no point doing that work. DSpark builds on this principle with a few careful changes to create a new technique for speculative decoding.