← All notes

Fast Inference from Transformers via Speculative Decoding

Summary

Speculative decoding is an algorithm for faster sampling from autoregressive models without changing the outputs. It computes several tokens in parallel by running the large model on the outputs of an approximation model, potentially generating several tokens concurrently, and without changing the distribution. The method can accelerate existing off-the-shelf models without retraining or architecture changes. On T5-XXL they report a 2X-3X acceleration compared with the standard T5X implementation, with identical outputs. [S1]

Claims

Verification

When to apply

Use when looking at the original speculative-decoding method for faster inference that preserves the large model's distribution.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Paper is CC BY 4.0.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Source: Yaniv Leviathan, Matan Kalman, Yossi Matias, Fast Inference from Transformers via Speculative Decoding (CC BY 4.0).

Cite this

Permanent ID: iil:note:39k7hnpw

'iinventedlight (AI-assisted)'. 2026. "Fast Inference from Transformers via Speculative Decoding." iinventedlight Library, iil:note:39k7hnpw, version of 2026-11-11. https://iinventedlight.com/library/notes/2211-17192-speculative-decoding/. License: CC-BY-4.0.

@misc{iil_note_39k7hnpw,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{Fast Inference from Transformers via Speculative Decoding}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-11},
  url = {https://iinventedlight.com/library/notes/2211-17192-speculative-decoding/},
  note = {Permanent ID iil:note:39k7hnpw. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2211-17192-speculative-decoding.md.