Ploba logo

Find the right AI tool for the job: apps, agents, APIs, MCP servers and datasets, explained plainly.

Get the AI Digest

Discover

  • Explore
  • Top Charts
  • Categories
  • Agents
  • MCP servers
  • Developer tools

Learn & community

  • Learn AI
  • AI Glossary
  • Blog
  • Hackathons
  • People
  • AI Digest

For makers

  • List your tool
  • Docs
  • Claim a listing
  • Advertise
  • Write for us

Company

  • About
  • Careers
  • Changelog
  • Trust
  • Security
  • Contact

© 2026 Ploba. All rights reserved.

  • Privacy
  • Terms
  • Cookies
  • Advertising
  • All policies
llms.txt
AI glossary
Models

Speculative Decoding

A technique that speeds up text generation by having a small, fast model draft several tokens that the large model then checks in one pass, without changing the output.

What is speculative decoding?

Speculative decoding is a way to make a large language model generate text faster. A small, cheap model guesses the next several tokens, and the large model checks all of the guesses at once. Correct guesses are kept, so several tokens are produced in the time it normally takes to produce one.

How does it work?

Normally a large model generates one token at a time, and each step needs a full pass through the model. Here the draft model proposes a short run of tokens, and the large model verifies them in a single pass. Tokens are accepted up to the first one the large model would not have chosen, and generation continues from there. The original paper, by Leviathan, Kalman and Matias, showed this keeps the output distribution unchanged while speeding up generation by about 2 to 3 times on the model it tested.

What is a simple example?

When the next words are easy to predict, such as the end of a common phrase, the small model gets them right and several words are accepted at once. When the text is harder, fewer guesses are accepted and the speed-up is smaller.

Why does it matter?

It lowers latency and inference cost without making answers worse, which is why it is widely used when serving large models.

Category
Models
Last reviewed
Nov 10, 2026

Sources

  • Leviathan et al.: Fast Inference from Transformers via Speculative Decoding

Related terms

  • Generative AIInferenceThe phase where a trained AI model processes new data to generate an output or prediction.
  • Generative AITokenThe basic unit of data—often a part of a word—that an AI model processes.
  • DevelopmentLatencyHow long an AI system takes to respond, often measured as time to the first token and then output speed in tokens per second.
  • DevelopmentInference CostWhat it costs to run an AI model on each request, usually priced per million input and output tokens through an API.
  • ModelsLarge Language ModelA deep learning model trained on vast amounts of text to understand, generate, and predict human language.