
Speculative decoding: a fast draft helps AI answer sooner
Checking several proposals together can speed up a reply. Preparing the draft takes time, too.
A draft to get work ahead
A language model can answer sooner if another system drafts ahead. Speculative decoding lets it check several proposals together without retraining the main model. Leviathan, Kalman and Matias presented their algorithm at ICML 2023.[1]
The proposals are tokens: words, fragments or characters. Hugging Face explains that checking a group can save repeated reads from memory.[2]
What happens when it misses
An invented example, always choosing the most likely option: the draft proposes A, B, X, Y. The model confirms A and B but prefers C next: it emits A, B, C and discards Y. Sampling by probability needs different rules.[2]
Drafting has a cost. According to Hugging Face, a slow or inaccurate assistant can end up delaying the reply.[2]
The draft does not always require another full model. vLLM, software for running models, offers methods that reuse repeated text fragments.[3]
Faster answers can still be wrong
With the right sampling, the original algorithm preserves the main model’s probabilities. That does not check whether its statements are true: it preserves its chance of being wrong, too.[1]
vLLM’s documentation warns of small variations from numerical precision. Preserving probabilities does not promise an identical reply on every run, either.[3]
Some variants change that trade-off. FLy, an option in vLLM, uses approximate checks; its documentation warns that it alters probabilities and may degrade answers.[4]
The benefit depends on the hardware, model, request traffic and how text is selected. vLLM targets this technique at low-to-medium, memory-bound workloads.[3]
For the person waiting on the other side of the chat, the draft helps if the reply arrives sooner. Accepting many proposals is a clue; the test is timing the same work with and without that help.
Sources and checks
Company documentation details announcements and specifications, while reports, analyses, and user accounts provide external context. Multiple pages from one company do not represent independent verification, and external links do not constitute editorial endorsement.
- [1] ICML 2023: propuesta original de decodificación especulativaConsulted source · Checked on 23 October 2026
The original algorithm.
- [2] Hugging Face: cómo funciona la generación asistidaDeveloper · Checked on 23 October 2026
Checking and overhead.
- [3] vLLM 0.32: métodos y alcance de las garantíasDocumentation · Checked on 23 October 2026
Implementation and limits.
- [4] vLLM: advertencia explícita sobre FLyDocumentation · Checked on 23 October 2026
Approximate variant.