Back to articles

DStreamer Aligns Diffusion Drafts with Speculative Decoding Acceptance

3 min read

Long-form generation is becoming a significant cost in both high-throughput language-model serving and online reinforcement learning with verifiable rewards (RLVR). Speculative decoding can reduce the number of target-model decoding steps by having a drafter propose several tokens for the target to verify in parallel. But this approach becomes harder to scale as concurrency and context grow: the drafter consumes compute, and a separate draft KV cache competes with the target model for memory. Online RLVR adds another complication. Since the policy changes during training, a drafter trained only once can become stale and its proposals may be accepted less often.

DStreamer, introduced by Apple researchers, is designed to address both sources of overhead. It uses a single-pass, diffusion-based adapter that reads the target model’s existing KV cache, avoiding a separate draft KV cache. The adapter is first warm-started with consistency distillation. It is then trained with an acceptance-aligned reinforcement-learning objective that favors draft paths likely to survive the target model’s autoregressive verification.

That objective matters because verification is prefix-sensitive. If an early proposed token fails verification, later tokens in the draft window may not contribute to progress, even if they are individually plausible. Rather than optimizing only for token-level prediction quality, DStreamer’s training targets the sequence-level property that determines speculative decoding’s usefulness: how much of the proposed prefix the target accepts. Drafting remains a single pass, while the learned proposals are steered toward paths that are more compatible with verification.

What the paper reports

  • In vLLM continuous-batched serving with Qwen3-4B, the evaluation covers concurrency levels from 64 to 1,024. DStreamer is reported to outperform EAGLE-3 and DFlash throughout the tested range.
  • At matched per-request rate, aggregate throughput reaches up to 3.8× that of autoregressive decoding. The setup uses no separate draft KV cache.
  • For synchronous online RLVR, tests on Qwen3-4B, Qwen3-8B, and Qwen3-14B using eight H100 GPUs report end-to-end speedups of 1.93–2.15×, with final policy quality preserved.
  • DStreamer++ continues optimizing the drafter during RLVR, aiming to track policy changes and reduce speculative drift. The authors describe the resulting rollouts as exact on-policy samples.

The broader contribution is a shift in what the drafter is trained to optimize: not just plausible next tokens, but proposals that make progress under the verifier’s actual acceptance rule. Reusing the target’s KV state may also reduce resource contention at large batch sizes, while updating the drafter during RLVR addresses a problem that static draft models face as policies evolve. These results are promising, but the reported gains are tied to the evaluated models, hardware, and serving configurations; they should not be treated as guaranteed speedups for every deployment. The practical benefit will depend on workload, batching, request rate, and implementation details.

Source: Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles

CCTest · Blog
Born Attention: Exact Linear Recurrence, Constant-State Decoding
Inference & Serving
cctest.ai

Born Attention: Exact Linear Recurrence, Constant-State Decoding

A new attention formulation turns squared complex inner products into an exact finite feature kernel, enabling recurrent causal computation and decoding state that does not grow with context length. Its systems results are promising, though language-model quality depends on the surrounding architecture.

Read more