LinkedIn analytics tracking pixel for AIDOLS AI consulting website performance measurement
Infrastructure

Speculative Decoding

Speculative decoding is an inference technique where a small "draft" model proposes multiple candidate tokens that the large "target" model verifies in a single forward pass, accepting prefixes that match the target distribution.

Full definition

Introduced by Leviathan et al. (Google, 2023) and Chen et al. (DeepMind, 2023), speculative decoding exploits the fact that small models are usually right about the next 3-5 "easy" tokens. The big model checks them in parallel; on accept, you got 3-5 tokens for the cost of one forward pass. Acceptance rates of 60-80% are typical, yielding 2-3x throughput gains with no quality loss. Variants include Medusa (multiple decoding heads instead of a separate draft model) and EAGLE.

Why it matters

Speculative decoding is one of the few LLM optimizations that is mathematically lossless — the output distribution is identical to the target model. Any vendor claiming "2x faster GPT-4" without quality loss is almost certainly using speculative decoding under the hood.

Example

Together AI and Anthropic both use speculative decoding in production; Anthropic's prompt-caching plus speculative-decoding stack is a primary reason Claude Sonnet 4.5 hits 80+ tok/s on long contexts.

Source & further reading

Primary source: Leviathan, Kalman, Matias — "Fast Inference from Transformers via Speculative Decoding" (ICML) (2023).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/da/glossary/speculative-decoding/.