{
  "id": "speculative-decoding",
  "code": "PTL-0217",
  "term": "Speculative Decoding",
  "aliases": [
    "speculative sampling",
    "assisted generation"
  ],
  "category": "foundations",
  "definition": "Speculative decoding is an inference technique in which a smaller, faster draft model proposes several next tokens and the large target model checks them in a single parallel pass, accepting or correcting them so that generation is faster while the output distribution stays the same as sampling from the target model alone.",
  "description": "Because the target model verifies several drafted tokens per forward pass instead of generating one token per pass, decoding needs fewer sequential calls to the large model. A sampling rule that accepts or rejects each drafted token is what preserves the target model's distribution. The speedup depends on how often the draft model's guesses are accepted. A closely related method was published shortly afterwards under the name speculative sampling. Later methods remove the separate draft model. Medusa adds extra decoding heads to the target model that predict several upcoming tokens, verifying candidate continuations together with tree-based attention, and reported speedups of more than 2.2 times without changing outputs. Lookahead decoding generates and verifies candidate token sequences in parallel without any draft model or data store, with reported speedups of up to 1.8 times on MT-Bench.",
  "example": null,
  "broader": [],
  "narrower": [],
  "related": [
    "kv-cache",
    "greedy-decoding",
    "knowledge-distillation"
  ],
  "introduced": 2022,
  "added": "2026-10-20",
  "sources": [
    {
      "title": "Fast Inference from Transformers via Speculative Decoding",
      "authors": "Leviathan et al.",
      "year": 2022,
      "url": "https://arxiv.org/abs/2211.17192"
    },
    {
      "title": "Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads",
      "authors": "Cai et al.",
      "year": 2024,
      "url": "https://arxiv.org/abs/2401.10774"
    },
    {
      "title": "Break the Sequential Dependency of LLM Inference Using Lookahead Decoding",
      "authors": "Fu et al.",
      "year": 2024,
      "url": "https://arxiv.org/abs/2402.02057"
    },
    {
      "title": "Accelerating Large Language Model Decoding with Speculative Sampling",
      "authors": "Chen et al.",
      "year": 2023,
      "url": "https://arxiv.org/abs/2302.01318"
    }
  ],
  "url": "https://protologue.com/t/speculative-decoding/",
  "citation": "Protologue. (2026). Speculative Decoding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.2, PTL-0217). https://protologue.com/t/speculative-decoding/"
}