flâneur — a map of the web's best reading

Speculative Decoding - philkrav

philkrav.com · 3,733 words · saved by 5 readers

Speculative Decoding LLM inference will constitute an increasingly large proportion of compute cost. Unfortunately, for autoregressive LLMs, it is slow. Speculative decoding is a clever technique described by both Leviathan et al. 2022 and Chen et al. 2023, two concurrent papers (somewhat amusingly, from Google Research and Deepmind respectively). I’ll explain the technique, its derivation, and newer variants in this post. Autoregressive sampling is typically memory bandwidth bound since tokens are sampled one-by-one.

Speculative Decoding January 5, 2024 Speculative Decoding LLM inference will constitute an increasingly large proportion of compute cost. Unfortunately, for autoregressive LLMs, it is slow. Speculative decoding is a clever technique described by both Leviathan et al. 2022 and Chen et al. 2023 , two concurrent papers (somewhat amusingly, from Google Research and Deepmind respectively). I'll explain the technique, its derivation, and newer variants in this post. Autoregressive sampling is typically memory bandwidth bound since tokens are sampled one-by-one. Each new token requires a forward pass

Explore this link on the map →

saved by

related reading