DFlash: Block Diffusion for Flash Speculative Decoding
About
Autoregressive large language models (LLMs) deliver strong performance but require inherently sequential decoding, leading to high inference latency and poor GPU utilization. Speculative decoding mitigates this bottleneck by using a fast draft model whose outputs are verified in parallel by the target LLM; however, existing methods still rely on autoregressive drafting, which remains sequential and limits practical speedups. Diffusion LLMs offer a promising alternative by enabling parallel generation, but current diffusion models typically underperform compared with autoregressive models. In this paper, we introduce DFlash, a speculative decoding framework that employs a lightweight block diffusion model for parallel drafting. By generating draft tokens in a single forward pass and conditioning the draft model on context features extracted from the target model, DFlash enables efficient drafting with high-quality outputs and higher acceptance rates. Experiments show that DFlash achieves over 6x lossless acceleration across a range of models and tasks, delivering up to 2.5x higher speedup than the state-of-the-art speculative decoding method EAGLE-3.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Code Generation | HumanEval (test) | -- | 701 | |
| Code Generation | MBPP (test) | -- | 411 | |
| Instruction Following | MT-Bench | -- | 287 | |
| Mathematical Reasoning | GSM8K | -- | 192 | |
| Instruction Following | Alpaca | Speedup (x)2.28 | 173 | |
| Code Generation | HumanEval | Speedup Factor6.09 | 147 | |
| Speculative Decoding | GSM8K | Average Generation Length (τ)6.33 | 109 | |
| Code Generation | MBPP | Average Acceptance Length (τ)6.31 | 95 | |
| Code Generation | MBPP | Speedup5.61 | 87 | |
| Speculative Decoding | MT-Bench | Tau (τ)4.07 | 81 |