Fast Inference from Transformers via Speculative Decoding
Problem: autoregressive decoding is serial — decoding K tokens takes K serial runs of the large model; can it be accelerated without changing the architecture, retraining, or the output distribution.
Where the evidence sits: the abstract reports 2X-3X acceleration on T5-XXL vs the standard T5X implementation with identical outputs; the measurements are in Section 4.1, Table 2 — a single TPU-v4, batch size 1, T5-XXL (11B) as target with T5-small/base/large as approximation models, on WMT EnDe translation and CNNDM summarization; the limits are in Section 6, Discussion.
What the authors say about limits: the paper states "latency is improved through increased concurrency at the cost of an increased number of arithmetic operations", hence "our method is not helpful for configurations where additional computation resources are not available"; it also notes "We tested speculative decoding only in the text modality", and the beam-search analysis is left to future work (Appendix A.4).
What it does not claim: the paper does not claim fewer total arithmetic operations — rejected guesses waste computation and total operations may rise, and the speed-up presupposes spare compute (e.g. memory bandwidth as the bottleneck); the 2X-3X figure is specific to batch size 1 on one TPU-v4 against the T5X implementation and does not automatically transfer to batched serving or other hardware; no results are claimed for other modalities.
Key specs
- 证据位置 / evidence
- 摘要;Section 4.1 Table 2(单 TPU-v4、batch size 1);Section 6 Discussion
- T5-XXL 加速 / speedup
- 2X-3X(对比标准 T5X 实现,输出不变)
- EnDe 翻译 / translation
- 2.6X(temp=1)/ 3.4X(temp=0)
- CNNDM 摘要 / summarization
- 2.3X(temp=1)/ 3.1X(temp=0)
- 测量设置 / setup
- batch size 1,单张 TPU-v4
- 复现状态 / reproduction
- 未复现
What the source says
We demonstrate it on T5-XXL and show a 2X-3X acceleration compared to the standard T5X implementation, with identical outputs.
We measure walltime improvements with a batch size of 1 on a single TPU-v4 for both argmax sampling (temp=0) and standard sampling (temp=1).
We observe speedups of 2.6X (temp=1) and 3.4X (temp=0) on the translation task and slightly lower speedups of 2.3X (temp=1) and 3.1X (temp=0) for the summarization task.
One limitation of speculative execution in general, and of speculative decoding in particular, is that latency is improved through increased concurrency at the cost of an increased number of arithmetic operations. Thus, our method is not helpful for configurations where additional computation resources are not available.
Source and licence
- Source checked
- 2026-11-07
- Licence / kind
- arxiv-preprint
- Licence evidence
- https://arxiv.org/abs/2211.17192
- Category
- Efficiency
How to read the numbers
Before citing a score, separate what it measures, how it is scored, what it compares against and whether contamination is controlled. If unsure, go back to the experiment setup in the paper. See benchmark cards · See dataset cards