FlashMap speeds up large language model text generation with new decoding method
FlashMap: Flow Map Speculative Decoding
Computation and Language
Summary
Generating text with large language models can be slow because each word is predicted one after another. Some faster ways try to guess many words at once but treat each word separately, ignoring how words influence each other. The authors introduce FlashMap, a new technique that guesses many words together while considering how they depend on each other, speeding up the process. Their method runs faster and more accurately than previous approaches on tested models.
What this means in practice
- •For machine learning engineers: Accelerate large language model inference by integrating FlashMap for faster text generation with fewer delays.
- •For cloud service providers: Reduce computational costs and response times in language model APIs by adopting FlashMap speculative decoding.
Authors
Jeff Shen, Zhejian Zhou, Ryan Lee, Jonathan May, Shirley Ho
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.