Research

DStreamer: Faster RLVR rollouts with a diffusion drafter
that keeps up with the policy

Speculative decoding verifies several proposed tokens in one target-model pass. But a parallel drafter can predict individual tokens well without producing a sequence the target accepts. DStreamer combines diffusion-based initialization with acceptance-aligned reinforcement learning to improve accepted-prefix length. DStreamer++ adapts the drafter as the target policy changes during RLVR.

0×end-to-end RLVR speedup vs. autoregressive (Qwen3-14B)
0%GPU-hours saved at comparable final accuracy
0×reported serving throughput vs. autoregressive
0 GiBadditional KV cache for the drafter

As the target policy changes, the drafter must adapt

RL with verifiable rewards (RLVR) repeatedly generates responses from the current policy. These rollouts can be expensive. As the target policy is updated, a fixed drafter (trained once, before RL) may become less aligned with it, reducing speculative acceptance and throughput. DStreamer++ keeps training its single-pass diffusion drafter during RLVR with acceptance-aligned online RL: the same objective that trains it before RL, applied to the rollouts the policy is already generating, so the drafter tracks the changing policy. Lossless verification still preserves the target policy's output distribution.

Explore how acceptance, rollout speed, and training reward change across RLVR steps.

step 0

How a frozen drafter falls behind the target

current policy frozen drafter DStreamer++ drafter

Tokens produced per verification step

Tokens per step

Rollout speedup vs. autoregressive

Training reward

autoregressive speculative decoding DStreamer (frozen) DStreamer++ (online)

How it works

Both results rest on a drafter the target accepts in the first place. Three ideas get us there: why parallel drafts fail, how diffusion training and distillation prepare the drafter, and how acceptance-aligned RL trains it on the drafts the verifier keeps.

The challenge

Good token predictions can still make bad drafts

When draft positions are predicted in parallel, a later prediction is not conditioned on the sampled tokens at earlier positions. The target model, however, verifies the proposal autoregressively. A drafter can therefore learn good per-position predictions while missing dependencies across positions.

For example, suppose the only possible continuations are San Francisco and New York, each with probability 50%. Independent predictions can match the correct distribution at each position but still produce San York or New Francisco half the time. This is the joint–marginal mismatch: accurate token marginals do not guarantee a coherent joint sequence.

Target modelone word at a time
San
sees it →
Francisco
always a real city
Parallel drafterboth slots at once, blind to each other
?
⫶
?

Per-position accuracy is not the same as accepted-prefix length. Verification depends on whether the proposed tokens form a valid sequence, not just whether each token looks plausible on its own.

Stage 1 · Diffusion-based initialization

Learn from multi-step diffusion, draft in one pass

Iterative denoising can refine a token block over several passes, using tokens revealed in earlier passes to improve later predictions. This can produce more consistent proposals, but each extra pass also increases drafting latency. DStreamer uses diffusion-based training and consistency distillation to improve block predictions while keeping inference to a single pass.

This animation uses illustrative numbers. See Fig. 3 in the paper for measured accepted length and end-to-end throughput.

In consistency distillation, the drafter sees two masked versions of the same token block: one with less context revealed and another with more. It learns to make predictions from the more-masked view consistent with those from the less-masked view. The goal is to retain the benefit of iterative refinement without running multiple drafting passes at inference.

Stage 2 · Acceptance-aligned RL

Reinforcement learning on the drafts the verifier accepts

Consistency distillation improves the starting drafter, but token-wise training does not directly optimize how many proposed tokens survive verification. For each context, we generate a greedy proposal and several sampled proposals. A frozen target model supplies two signals: a hard reward for the accepted prefix and a soft reward based on target-model token probabilities along the proposed path. Group-relative RL favors higher-reward proposals.

Context: "The Golden Gate Bridge is in" · target continuation
Illustrative reward mixture: λ · Σ γi−1 ∏ Ij + (1 − λ) · Σ log ptarget(ai | context, a<i), then normalized within the group

Drafter's guesses per slot

Accepted tokens per draft over training

accepted tokens of the sampled drafts at each step (smoothed)

Illustrative toy simulation of the training logic. See the paper for the full reward definition and RL objective.

In the reported model experiments, acceptance-aligned RL improves mean accepted length over continued token-wise training from the same distilled initialization. We also measure how often a draft survives to each position, showing where the acceptance gains occur.

Accepted tokens per draft after training (paper, Fig. 4)

Acceptance by draft position (GSM8K)

End-to-end RLVR

Reach comparable accuracy with fewer GPU-hours

In the reported Qwen3-14B RLVR experiment (500 training steps on eight GPUs), we compare task accuracy against total GPU-hours, not just training steps. DStreamer++ reduces rollout cost and reaches comparable final accuracy using substantially less compute than autoregressive generation under this setup.

Also for serving

Faster serving, no draft KV cache

The same drafter speeds up ordinary inference. Under vLLM continuous batching it reaches up to 3.8× the aggregate throughput of autoregressive decoding, and because it reads the target's own KV cache, it needs no draft KV memory.

Recorded comparison of autoregressive decoding, EAGLE-3, DFlash, and DStreamer on 256 concurrent requests

256 concurrent Qwen3-4B requests in vLLM; timings are from recorded runs. Performance figures reflect the reported experimental setups.