Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. LLMs /
  4. What is Speculative Decoding?
LLMs

What is Speculative Decoding?

Updated September 26, 2026 Read 3 min

Speculative decoding speeds up text generation by having a small, fast model draft several tokens ahead, which the large model then verifies in a single pass, accepting the ones it agrees with.

Contents 11
  1. 01Key takeaways
  2. 02Speculative decoding explained in simple terms
  3. 03How it works
  4. 04A worked example
  5. 05Why it works
  6. 06Choosing a draft model
  7. 07Where it helps most
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

Speculative decoding speeds up generation by having a small, fast draft model propose several tokens ahead, which the large target model then verifies in a single forward pass. Tokens the large model agrees with are accepted immediately; the first disagreement is corrected and drafting resumes. Because verification of several tokens costs about the same as generating one, the result is faster output with the same distribution as the large model alone. It was described in 2023 by research teams at Google and DeepMind.

Key takeaways

  • A small draft model guesses; the large model checks.
  • Verification is parallel, so accepted tokens are effectively free.
  • Output quality is preserved: the accepted tokens match what the target model would have produced.
  • Typical speedups are around two to three times, depending on agreement rates.
  • Variants such as Medusa, EAGLE and prompt lookup avoid needing a separate draft model.

Speculative decoding explained in simple terms

A junior colleague drafts the next few sentences of a letter. The senior reviewer reads them in one go and says “the first three are exactly what I would have written, the fourth is wrong”. Three sentences were produced in the time it would have taken the reviewer to write one, and the final text is still entirely the reviewer’s.

How it works

  1. The draft model generates k candidate tokens, for example 4.
  2. The target model processes the prompt plus all k candidates in one forward pass, producing its own probability for each position.
  3. Candidates are accepted while they match what the target model would have sampled, using a rejection-sampling rule that preserves the target distribution.
  4. At the first rejection, the target model’s own token is used instead.
  5. Drafting resumes from there.

A worked example

The draft model proposes: ” the”, ” report”, ” is”, ” attached”.

  • The target model verifies all four in one pass.
  • It agrees with ” the”, ” report” and ” is”, but would have chosen ” ready” rather than ” attached”.
  • Three drafted tokens are accepted, plus one corrected token: 4 tokens produced in one target-model pass instead of four passes.

If acceptance rates are high, throughput rises sharply. If the draft model is poorly matched, most guesses are rejected and the overhead can outweigh the benefit.

Why it works

Decode speed is usually limited by reading the large model’s weights from memory, not by arithmetic. Checking four tokens requires roughly the same memory read as checking one, so verification is nearly free. The draft model is small enough that its own passes cost little.

Choosing a draft model

OptionNotes
A much smaller model from the same familyBest alignment, common choice
A quantized version of the targetReasonable agreement
Self-drafting heads (Medusa, EAGLE)No separate model to serve
Prompt or n-gram lookupDrafts by copying from the prompt; strong for summarisation and code editing

A good draft model is small, fast and agrees often. Alignment matters more than the draft model’s standalone quality.

Where it helps most

Predictable text benefits most: code, structured formats, summarisation of provided text, and repetitive business writing. Highly creative or unpredictable output sees lower acceptance rates and smaller gains.

Limitations

  • Requires extra memory to host the draft model.
  • Gains depend on the acceptance rate.
  • Complicates serving stacks and batching logic.
  • Provides little benefit when batch sizes are already very large, since the GPU is then compute-bound.

Common Use Cases

01

Low-latency chat

Increase per-user generation speed without quality loss.

02

Code assistants

Exploit predictable code patterns for high acceptance rates.

03

Summarisation

Use prompt lookup drafting when output copies source text.

04

Local inference

Speed up generation on consumer hardware.

05

Voice agents

Reduce response time in realtime conversations.

06

Cost efficiency

Serve more tokens per GPU at the same quality.

Frequently Asked Questions

A method where a small draft model proposes several tokens and a large model verifies them in one pass, speeding up generation.

No. The acceptance rule preserves the target model's output distribution.

Commonly around two to three times, depending on how often the draft model agrees.

A small, fast model that proposes candidate tokens for the larger model to verify.

A draft-free variant that proposes tokens by copying repeated phrases from the prompt, useful for summarisation and editing.

Related Terms

  • LLM Inference
  • Tokens per Second
  • Inference Latency
  • Model Quantization
  • Autoregressive Generation
  • Batch Inference

Related AI Terms

What is Multi-Head Attention?Multi-head attention runs several attention operations in parallel, each with its own learned projections, so a model can…What is Prefix Tuning?Prefix tuning is a parameter-efficient fine-tuning method that learns trainable vectors inserted into the attention keys and values…What is an Encoder-Decoder Model?An encoder-decoder model, also called a sequence-to-sequence model, uses one component to read and understand the input and…What is an Attention Mechanism?An attention mechanism is a technique that lets a neural network focus on the most relevant parts of…What is Self-Attention?Self-attention is a mechanism where each position in a sequence attends to every other position in the same…What is Positional Encoding?Positional encoding is the method transformers use to represent the order of tokens in a sequence, because the…

Contents

  1. 01Key takeaways
  2. 02Speculative decoding explained in simple terms
  3. 03How it works
  4. 04A worked example
  5. 05Why it works
  6. 06Choosing a draft model
  7. 07Where it helps most
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

AI Topic

  • LLMs

Related Terms

  • What is Multi-Head Attention?
  • What is Prefix Tuning?
  • What is an Encoder-Decoder Model?
  • What is an Attention Mechanism?
  • What is Self-Attention?
  • What is Positional Encoding?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
September 26, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}