cd /news/artificial-intelligence/fast-inference-from-transformers-via… · home topics artificial-intelligence article
[ARTICLE · art-122702] src=arxiv.org ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Fast Inference from Transformers via Speculative Decoding

Researchers introduced speculative decoding, an algorithm that accelerates inference from large autoregressive models like Transformers by computing several tokens in parallel without changing outputs. Demonstrated on T5-XXL, the method achieves 2X-3X acceleration compared to the standard T5X implementation, with identical outputs, and requires no retraining or architecture changes.

read2 min views1 publishedSep 7, 2026
Fast Inference from Transformers via Speculative Decoding
Image: source
  [Submitted on 30 Nov 2022 (

[v1](https://arxiv.org/abs/2211.17192v1)), last revised 18 May 2023 (this version, v2)]

[View PDF](/pdf/2211.17192)

[HTML (experimental)](https://arxiv.org/html/2211.17192v2)

Abstract:Inference from large autoregressive models like Transformers is slow - decoding K tokens takes K serial runs of the model. In this work we introduce speculative decoding - an algorithm to sample from autoregressive models faster without any changes to the outputs, by computing several tokens in parallel. At the heart of our approach lie the observations that (1) hard language-modeling tasks often include easier subtasks that can be approximated well by more efficient models, and (2) using speculative execution and a novel sampling method, we can make exact decoding from the large models faster, by running them in parallel on the outputs of the approximation models, potentially generating several tokens concurrently, and without changing the distribution. Our method can accelerate existing off-the-shelf models without retraining or architecture changes. We demonstrate it on T5-XXL and show a 2X-3X acceleration compared to the standard T5X implementation, with identical outputs.

Submission history #

From: Yaniv Leviathan [
[view email](/show-email/502d584e/2211.17192)]

**Wed, 30 Nov 2022 17:33:28 UTC (186 KB)**

[\[v1\]](/abs/2211.17192v1)
**[v2]** Thu, 18 May 2023 20:28:20 UTC (433 KB)

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) IArxiv Recommender

(What is IArxiv?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @t5-xxl 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/fast-inference-from-…] indexed:0 read:2min 2026-09-07 ·