# Speculative decoding

Canonical page: https://www.theglitch.ai/ai-glossary/speculative-decoding

Speeding up generation by letting a small model draft several tokens that the big model then checks in one go.

[Speculative decoding, common card \#208 in The Glitch AI glossary: Speeding up generation by letting a small model draft several tokens that the big model then checks in one go.](https://www.theglitch.ai/images/cards/glossary/speculative-decoding.png?v=6da760b994d0b3ba)

GLS 208 · common

For: Builders

## Why it matters

It makes big models answer faster without changing what they say.

## In practice

A provider doubles output speed by pairing its large model with a small drafter.

## Watch for

Gains depend on how often the drafter guesses right.

## Related terms

[Tokens per second](https://www.theglitch.ai/ai-glossary/tokens-per-second) · [Inference](https://www.theglitch.ai/ai-glossary/inference) · [Small language model](https://www.theglitch.ai/ai-glossary/small-language-model)

## Sources

- [Leviathan et al. (2022): Fast Inference via Speculative Decoding](https://arxiv.org/abs/2211.17192)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
