Glossary · Term

speculative decoding

← all terms

Definition

Plain language

A speed trick where a small draft model proposes several tokens at once and a big model verifies them in parallel.

As stated in the literature

An inference acceleration technique where a draft model proposes a sequence of tokens that a larger target model verifies in a batched forward pass.

Also called: speculative decoder, predicted outputs

Why it matters: It cuts inference latency substantially without changing the final model's output, making it one of the most popular tricks for serving large models cheaply.

For example, a tiny draft model proposes the next eight tokens of an answer, and the big model checks them all in a single forward pass — keeping the ones that match its own predictions.

Heard on the show

“The fix everybody already uses is speculative decoding.”
Episode 179 — How DeepSeek Made One User Faster Without Slowing Down the Crowd

Mentioned in 5 episodes

  1. 179
    How DeepSeek Made One User Faster Without Slowing Down the Crowd
  2. 146
    How an Innocent README Can Freeze an AI Agent's Safety Check for an Hour
  3. 116
    Why Streaming Half a Reasoning Chain Beats Sending the Whole Thing
  4. 068
    The OS Trick That Makes Tree Search Practical for Coding Agents
  5. 027
    When AI Agents Build the Serving Stack: A Bet on Bespoke Infrastructure

Related concepts

Related terms