FlashMap: Flow Map Speculative Decoding
Abstract
Speculative decoding accelerates large language model (LLM) inference by using a lightweight drafter to propose a block of tokens that the target model verifies in one parallel pass. Autoregressive drafters generate this block one token at a time, whereas block diffusion drafters such as DFlash generate it in one pass, making drafting faster. However, these diffusion drafters predict each token independently, ignoring dependencies between tokens in the block. We introduce FlashMap, a continuous flow drafter that conditions a flow map language model on the target model's hidden states and generates the whole block in one forward pass while capturing inter-token dependencies. On Qwen3-8B, FlashMap is faster than a matched DFlash baseline on every benchmark, with 7% higher average speedup and up to 6.1x lossless acceleration.
Create a lesson
Metadata
- Comments
- Code: https://github.com/al-jshen/flashmap
Related papers
Look Back, Draft Ahead: Corrective Prefix Attention for Parallel Speculative Decoding
Shared title terminologycs.CLMohammad Mahdi Moradi, Ali Pourranjbar, Zongzuo Wang et al.
When Does Better Acceptance Pay? A Controlled Study of Speculative Decoding
Shared title terminologycs.CLYongchao Long, Chunrui Zheng, Yuxuan Zhou et al.
Acceptance Is Not Speed: Length Inflation in Training-Free Lossy Speculative Decoding
Shared title terminologycs.CLChiatzen Wang, Bill Xu, Haochen Gu et al.
DLite: History-free Speculative Decoding for Agentic AI
Shared title terminologycs.CLJiaming Xu, Hanzhen Wang, Tianlang Zhao et al.
Semantic-aware Decoding for Diverse Text-to-SQL under Schema Ambiguity
Shared title terminologycs.CLYuxuan Jiang, Anna Mitsopoulou, Apostolos Koukouvinis et al.
Quantizing Diffusion LLMs under Parallel Decoding: Commitment Risk and the Parallelism Tax
Shared title terminologycs.CLHuan Xu, Maosen Zhao, Pengtao Chen et al.