Speculative decoding

Speculative decoding

AI

Speculative decoding speeds up a large language model by letting a small, fast model draft the next few tokens and the large model check them in one step.

What is Speculative decoding?

A large language model writes one token at a time, and each step takes time. Speculative decoding adds a helper: a smaller, faster "draft" model guesses several tokens ahead. The large model then checks all of those guesses at once. How it works: - The draft model proposes, say, the next five tokens. - The large model checks them in a single pass. - Every guess it agrees with is kept. At the first one it would have chosen differently, it uses its own choice and the drafting starts again from there. Why the output stays the same: done correctly, the final text matches what the large model would have produced on its own. The draft model only saves time when its guesses are right, which happens often for predictable text. Where it helps: replies with common phrases and predictable structure, and any place where speed matters, such as voice agents, where a faster reply means less silence on the line. Who controls it: it is usually a setting of the model provider or the serving system, not something a business configures in an agent product.

Example

For the reply "Your order shipped on Tuesday and should arrive Friday," the draft model correctly guesses most of the words. The large model confirms them in a few steps instead of writing every token one by one.

Why Speculative decoding Matters

It is one of the techniques behind faster AI replies. On a call, faster generation shortens the pause before the agent speaks.

Explore More Terms

Browse our complete glossary of e-commerce and subscription terms.

Space, at your fingertips

What would you do with 22% more revenue?