Book a demo →

Speculative Decoding

Definition

Speculative decoding in the sources: definitions by paper and version, the names in use, which methods count as variants, and speedups with conditions.

In short

Speculative decoding speeds up a large language model by letting a fast draft step propose a short run of tokens that the large model checks in one pass. Leviathan et al. (30 November 2022) and Chen et al. (2 February 2023) describe it independently, under different names. Sources disagree on which methods count as variants.

What is speculative decoding?

Speculative decoding makes a large language model write faster. A cheaper step proposes a short run of tokens, and the large model checks the run in one pass instead of producing each token on its own. Seven descriptions by page date (retrieved 5 December 2026):

Source and dateWording
Leviathan, Kalman and Matias, arXiv 2211.17192, version 1 (30 November 2022)“In this work we introduce speculative decoding” and, after a dash in the original, “an algorithm to sample from autoregressive models faster without any changes to the outputs, by computing several tokens in parallel.”
Chen et al., arXiv 2302.01318, version 1 (2 February 2023)“We present speculative sampling, an algorithm for accelerating transformer decoding by enabling the generation of multiple tokens from each transformer call.”
Hugging Face blog, Joao Gante (11 May 2023)“you could use this assistant model to get candidate output tokens followed by a forward pass with your model to confirm that they are indeed correct”
Google Research blog, Leviathan, Kalman and Matias (6 December 2024)“Speculative decoding is the application of speculative sampling to inference from autoregressive models, like transformers.”
NVIDIA Technical Blog, Li, Yu and Guo (17 September 2025; metadata: modified 8 October 2025)“Speculative decoding is an inference optimization technique that pairs a target model with a lightweight draft mechanism that quickly proposes several next tokens.”
Wikipedia, “Speculative decoding” (last edited on 31 October 2026)“Speculative decoding is an inference-time optimization for autoregressive large language models (LLMs) that generates multiple tokens per decoding step instead of one.”
vLLM documentation, “Speculative Decoding” (developer preview, page dated 3 December 2026)Used “to reduce inter-token latency under medium-to-low QPS (queries per second), memory-bound workloads”

The claims about the output differ. Leviathan et al. (version 1) report the T5-XXL test “with identical outputs”. Chen et al. (version 1) describe a scheme “which preserves the distribution of the target model within hardware numerics”. The Google Research blog writes “without affecting output quality”. Equal outputs in one test, the same distribution up to hardware arithmetic, and unchanged quality are three different claims.

How one round of drafting and checking works

Chen et al. (version 1) base the method on a timing observation: “the latency of parallel scoring of short continuations, generated by a faster but less powerful draft model, is comparable to that of sampling a single token from the larger target model.”

NVIDIA's Technical Blog (17 September 2025) describes the check: “The target model verifies those proposals in a single forward pass, accepts the longest prefix that matches its own predictions, and continues from there.” In the post's figure, the draft model produces four draft tokens, and the target model “verifies and keeps two while also generating one additional token itself.” One pass of the target model yields three tokens; the sum is this entry's count.

The Hugging Face blog names what limits a forward pass: “the bottleneck in the forward pass comes from loading the model layer weights into the computation cores of your device, not from performing the computations themselves.”

NVIDIA adds what stored values save: “Thanks to the KV Cache, where the values for the original prefix have already been calculated and stored, only the new, speculated tokens incur a computational cost during this verification pass.” The entry on the KV cache explains those stored values. The entry on AI inference describes the part of a request in which the model writes its answer.

One round with the counts from the figure description in NVIDIA's Technical Blog (17 September 2025): four draft tokens, two kept, one token from the target model. The total of three is this entry's sum. The sources name the smaller model differently.

Names in the sources

Names for the method, the sampling step and the smaller model:

Name and sourceWording
Speculative decoding, Leviathan et al., version 1“A decoding mechanism we call speculative decoding that can accelerate decoding from autoregressive models”
Speculative sampling, Leviathan et al., version 1“with a novel sampling method we call speculative sampling”
Speculative sampling, Chen et al., version 1“which we call speculative sampling (SpS)”
Assisted generation, Hugging Face blog“our new method, assisted generation”
Approximation models, Leviathan et al., version 1“we sample generations from small approximation models as speculative prefixes for the large models”
Draft model, Chen et al., version 1“We shall refer to this model as the draft model”
Assistant model, Hugging Face documentation“using a second smaller and faster assistant model to generate candidate tokens”
Guessing mechanism, Google Research blog“using a smaller 60M parameter T5-small as the guessing mechanism”

The two method names are not used the same way. In the Google Research blog, the authors of the 2022 paper extend speculative execution to the stochastic case and write: “We call this generalization speculative sampling.” Speculative decoding is its application to inference from autoregressive models, as the opening table quotes. Chen et al. use “speculative sampling” for the whole method. Hugging Face says “assisted generation” in the blog and uses “Speculative decoding” as a section title in its documentation page “Optimizing inference”.

Version 2 of Leviathan et al. (18 May 2023) renames the large model: “Let Mp be the large model” in version 1 becomes “Let Mp be the target model” in version 2, the name Chen et al. use as well. On the word itself, Wikipedia writes: “The name is an analogy to speculative execution in CPU design”; its footnote cites the Google Research blog, which says the approach “is inspired by speculative execution”.

Two papers, one idea

Leviathan, Kalman and Matias posted “Fast Inference from Transformers via Speculative Decoding” (arXiv 2211.17192) as version 1 on 30 November 2022 and as version 2 on 18 May 2023. Chen and five co-authors posted “Accelerating Large Language Model Decoding with Speculative Sampling” (arXiv 2302.01318) on 2 February 2023; arXiv lists one version.

Each paper describes the other as separate work. Chen et al. (version 1): “Coincidentally, the work in this manuscript was undertaken concurrently and independently of the work on speculative decoding from Leviathan et al. (2022).” They add that they “offer some incremental optimisations, but otherwise the core underlying idea is the same.” Version 2 of Leviathan et al.: “After we initially published our work, an independent implementation of speculative decoding (Chen et al., 2023) showed similar 2X-2.5X improvements on Chinchilla 70B.” Version 1 predates the Chen paper and does not cite it.

The Hugging Face blog of 11 May 2023 does not name Leviathan et al. A “Related Work” section, written after the post's release, lists “Blockwise Parallel Decoding, by Google Brain” and “Speculative Sampling, by DeepMind” as works that “have explored the same core principle”.

The blockwise work dates from 2018. Stern, Shazeer and Uszkoreit (arXiv 1811.03115, version 1, 7 November 2018) write: “we propose a novel blockwise parallel decoding scheme in which we make predictions for multiple time steps in parallel then back off to the longest prefix validated by a scoring model.” Four sources name the 2018 work, in different words. Version 2 of Leviathan et al.: “Blockwise Parallel Decoding (Stern et al., 2018) decodes several tokens in parallel, similarly to our work. However, it only supports greedy decoding (temperature=0)”. Chen et al. call it “block parallel sampling (Stern et al., 2018)”. The Hugging Face blog gives title and lab without authors. Wikipedia: “An early precursor was blockwise parallel decoding, proposed in 2018 by Stern, Shazeer, and Uszkoreit.” Version 1 of Leviathan et al. does not cite it.

Posting dates of eight of the paper versions and posts quoted in this entry, evenly spaced. The figure shows dates, not an order of credit.

Variants and where the sources draw the line

Later texts name these methods, listed by date; the page without a date comes last:

Method and versionWording
Self-speculative decoding, Zhang et al., arXiv 2309.08168, version 1 (15 September 2023)“without the need for an auxiliary model”, by “selectively skipping certain intermediate layers during drafting”
Lookahead decoding, LMSYS blog (21 November 2023)“Lookahead decoding functions without the need for a draft model or a data store.”
Medusa, Cai et al., arXiv 2401.10774, version 1 (19 January 2024)“adding extra decoding heads to predict multiple subsequent tokens in parallel”
EAGLE, Li et al., arXiv 2401.15077, version 1 (26 January 2024)“EAGLE operates the drafting process auto-regressively at the more regular (second-top-layer) feature level”
Multi-token prediction, Gloeckle et al., arXiv 2404.19737, version 1 (30 April 2024)“Considering multi-token prediction as an auxiliary training task”
Multi-token prediction, NVIDIA Technical Blog (17 September 2025)“Multi-Token Prediction (MTP) is a speculation technique used by many iterations of DeepSeek”
Prompt lookup decoding, Hugging Face documentation (page without a date)“Prompt lookup decoding is a variant of speculative decoding that is also compatible with greedy search and sampling.”

Whether these count as speculative decoding depends on the source. Medusa (version 1) writes of “methods such as speculative decoding” that their implementation “is impeded by the challenges associated with acquiring and maintaining a separate draft model.” The LMSYS blog counts Medusa in, “speculative decoding (including Medusa and OSD)”, and says of Lookahead decoding, as the table shows, that it works “without the need for a draft model or a data store”. EAGLE version 1 writes: “As of the submission of this paper, EAGLE is the fastest known framework within the speculative sampling family.” Versions 2 (4 February 2024) and 3 (4 March 2025) drop that sentence and write instead “we reconsider speculative sampling”. Wikipedia lists Medusa and EAGLE under “Variants”.

For multi-token prediction, NVIDIA describes a speculation technique and Gloeckle et al. a training task. The entry on multi-token prediction explains that training task. The vLLM documentation names “EAGLE, MTP and draft models” as examples of model-based methods.

What the speedup numbers depend on

Speedups as each source reports them:

Paper and versionWording
Leviathan et al., version 1 (30 November 2022)“show a 2X-3X acceleration compared to the standard T5X implementation”, on T5-XXL
Chen et al., version 1 (2 February 2023)“achieving a 2-2.5x decoding speedup in a distributed setup” with Chinchilla, “a 70 billion parameter language model”
Hugging Face blog (11 May 2023), summary list“Gets up to 3x speedups in the presence of INT8 and up to 2x otherwise, when the model fits in the GPU memory”
Self-speculative decoding, version 1 (15 September 2023)“Benchmarks with LLaMA-2 and its fine-tuned models demonstrated a speedup up to 1.73” (followed by a times sign)
Medusa, version 1 (19 January 2024)“Medusa-1 can achieve over 2.2x speedup without compromising generation quality, while Medusa-2 further improves the speedup to 2.3-3.6x.”
EAGLE, version 1 (26 January 2024)“On MT-bench, EAGLE is 3x faster than vanilla decoding, 2x faster than Lookahead, and 1.6x faster than Medusa.”
EAGLE, version 2 (4 February 2024)“For LLaMA2-Chat 70B, EAGLE achieved a latency speedup ratio of 2.7x-3.5x”
Self-speculative decoding, version 2 (20 May 2024)“Benchmarks with LLaMA-2 and its variants demonstrated a speedup up to 1.99” (followed by a times sign)

The figures come from different models and setups. Two papers changed their figure between versions: EAGLE from 3x on MT-bench to 2.7x to 3.5x for LLaMA2-Chat 70B nine days later, the self-speculative paper from 1.73 to 1.99. The entry on LLM-as-a-judge explains MT-bench, the question set named there.

Three pairs of texts give different figures for the same method. The Hugging Face blog opens with “up to 10x in commodity hardware”, while its summary list ties 10x to “models that do not fit in your GPU”. For Lookahead decoding, the LMSYS blog reports a reduction “ranging from 1.5x to 2.3x”, and the abstract of the paper (arXiv 2402.02057, version 1, 3 February 2024) “up to 1.8x on MT-bench and 4x with strong scaling on multiple GPUs in code completion tasks”. Wikipedia writes on Medusa: “The authors measured 2.2–3.6x speedup.” The paper gives “over 2.2x” for Medusa-1 and “2.3-3.6x” for Medusa-2.

Where it does not help

Leviathan et al. (version 1) assume “that we have enough compute resources to support the increased concurrency” and note that “the total number of arithmetic operations might be higher”. Chen et al. (version 1) need “a high enough acceptance rate and/or low enough latency to break-even”.

The Hugging Face blog requires “an assistant model that is at least an order of magnitude smaller than your model”, and “the assistant must have the exact same tokenizer as your model”. The Hugging Face documentation adds that speculative decoding “doesn’t support batched inputs”.

The vLLM documentation (page dated 3 December 2026) names two causes of small deviations: “Floating-point errors might cause slight variations in output distributions”, and changes in batch size “may cause variations in logprobs and output probabilities”. The same page lists a method that loosens the check on purpose: “FLy deliberately relaxes verification and is not distribution preserving.”

AI inference. Running a trained model on new input; the AI inference entry covers the whole request.

KV cache. Stored attention values that keep the check cheap; see the entry on the KV cache.

Small language model. A survey quoted there describes small models as drafts; see the entry on small language models.

Knowledge distillation. Training a smaller model from a larger one; see the entry on knowledge distillation.

Transformer architecture. The model design named in the title of the 2022 paper; the entry on the transformer architecture explains it.

Large language model. The model whose output gets drafted and checked; see the entry on large language models.

Source

  • Yaniv Leviathan, Matan Kalman and Yossi Matias, “Fast Inference from Transformers via Speculative Decoding”, arXiv 2211.17192, version 1 (30 November 2022) and version 2 (18 May 2023). Source for the definition, the names, the two versions and the speedup (retrieved 2026-12-05): https://arxiv.org/abs/2211.17192v1 and https://arxiv.org/abs/2211.17192v2
  • Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre and John Jumper, “Accelerating Large Language Model Decoding with Speculative Sampling”, arXiv 2302.01318, version 1 (2 February 2023). Source for speculative sampling, the draft model and the speedup (retrieved 2026-12-05): https://arxiv.org/abs/2302.01318v1
  • Mitchell Stern, Noam Shazeer and Jakob Uszkoreit, “Blockwise Parallel Decoding for Deep Autoregressive Models”, arXiv 1811.03115, version 1 (7 November 2018). Source for blockwise parallel decoding (retrieved 2026-12-05): https://arxiv.org/abs/1811.03115v1
  • Joao Gante, Hugging Face blog, “Assisted Generation: a new direction toward low-latency text generation” (11 May 2023). Source for assisted generation, the assistant model and its requirements (retrieved 2026-12-05): https://huggingface.co/blog/assisted-generation
  • Hugging Face Transformers documentation, “Optimizing inference” (no date on the page). Source for the assistant model, prompt lookup decoding and the limits (retrieved 2026-12-05): https://huggingface.co/docs/transformers/main/en/llm_optims
  • Yaniv Leviathan, Matan Kalman and Yossi Matias, Google Research blog, “Looking back at speculative decoding” (6 December 2024). Source for speculative execution, speculative sampling and use in products (retrieved 2026-12-05): https://research.google/blog/looking-back-at-speculative-decoding/
  • Jamie Li, Chenhan Yu and Hao Guo, NVIDIA Technical Blog, “An Introduction to Speculative Decoding for Reducing Latency in AI Inference” (17 September 2025; metadata modified 2025-10-08). Source for the draft-and-check round and multi-token prediction (retrieved 2026-12-05): https://developer.nvidia.com/blog/an-introduction-to-speculative-decoding-for-reducing-latency-in-ai-inference/
  • vLLM documentation, “Speculative Decoding” (developer preview, page dated 3 December 2026). Source for the use case, the methods and numerical limits (retrieved 2026-12-05): https://docs.vllm.ai/en/latest/features/speculative_decoding/
  • Wikipedia, “Speculative decoding” (last edited on 31 October 2026). Source for the Wikipedia definition, the name and the Medusa figure (retrieved 2026-12-05): https://en.wikipedia.org/wiki/Speculative_decoding
  • Yichao Fu, Peter Bailis, Ion Stoica and Hao Zhang, LMSYS blog, “Break the Sequential Dependency of LLM Inference Using Lookahead Decoding” (21 November 2023). Source for Lookahead decoding and its grouping of Medusa (retrieved 2026-12-05): https://lmsys.org/blog/2023-11-21-lookahead-decoding/
  • Yichao Fu, Peter Bailis, Ion Stoica and Hao Zhang, “Break the Sequential Dependency of LLM Inference Using Lookahead Decoding”, arXiv 2402.02057, version 1 (3 February 2024). Source for the Lookahead figures in the paper (retrieved 2026-12-05): https://arxiv.org/abs/2402.02057v1
  • Jun Zhang et al., “Draft & Verify: Lossless Large Language Model Acceleration via Self-Speculative Decoding”, arXiv 2309.08168, version 1 (15 September 2023) and version 2 (20 May 2024). Source for self-speculative decoding and its two figures (retrieved 2026-12-05): https://arxiv.org/abs/2309.08168v1 and https://arxiv.org/abs/2309.08168v2
  • Tianle Cai et al., “Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads”, arXiv 2401.10774, version 1 (19 January 2024). Source for Medusa (retrieved 2026-12-05): https://arxiv.org/abs/2401.10774v1
  • Yuhui Li, Fangyun Wei, Chao Zhang and Hongyang Zhang, “EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty”, arXiv 2401.15077, version 1 (26 January 2024), version 2 (4 February 2024) and version 3 (4 March 2025). Source for EAGLE and its versions (retrieved 2026-12-05): https://arxiv.org/abs/2401.15077v1 and https://arxiv.org/abs/2401.15077v2 and https://arxiv.org/abs/2401.15077v3
  • Fabian Gloeckle et al., “Better & Faster Large Language Models via Multi-token Prediction”, arXiv 2404.19737, version 1 (30 April 2024). Source for multi-token prediction as a training task (retrieved 2026-12-05): https://arxiv.org/abs/2404.19737v1

Frequently asked questions

Is speculative decoding still used?

The Google Research blog (6 December 2024) writes: “We have also seen speculative decoding adopted throughout the industry”, and for AI Overviews that “speculative decoding remains a significant part of the optimizations”. The vLLM documentation (page dated 3 December 2026) lists methods for it. None of the quoted sources counts deployments.

Who created speculative decoding?

Two papers describe the method: Leviathan, Kalman and Matias (version 1 on 30 November 2022) and Chen et al. at DeepMind (version 1 on 2 February 2023), who call their work “concurrently and independently” done. Four quoted sources also name the 2018 work on blockwise parallel decoding, in different words; its authors are Stern, Shazeer and Uszkoreit.

Does speculative decoding reduce accuracy?

Both papers make a claim about the output of the large model. Leviathan et al. write “without any changes to the outputs”; Chen et al. preserve the distribution “within hardware numerics”. The vLLM documentation calls it “theoretically lossless up to the precision limits of hardware numerics”, with small variations from floating-point errors and batch size.

Is MTP the same as speculative decoding?

The sources disagree. NVIDIA calls multi-token prediction “a speculation technique”. Gloeckle et al. (version 1, 30 April 2024) treat it as a training task and report that models trained with 4-token prediction are “up to 3 times faster at inference”. The vLLM documentation lists MTP among its methods.

How does self-speculative decoding work?

Zhang et al. (version 2, 20 May 2024) skip layers while drafting, and then “the verification stage employs the original LLM to validate those draft output tokens in one forward pass.” The reported speedup is up to 1.73 in version 1 and up to 1.99 in version 2.