Skip to main content
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.

AIDOLS Research Team · Editorial standards

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, cutting latency 2–3x at batch size 1 with identical outputs (Leviathan et al., 2023); because the gain relies on spare compute, it shrinks as large batches saturate the GPU. 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 runs speculative decoding in production: its ATLAS adaptive speculator (October 2025), part of the Together Turbo optimization suite, keeps learning from live traffic on its inference service.

Next steps

More infrastructure terms

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/en/glossary/speculative-decoding/.