e01.org

Speculative decoding

Speculative decoding is an inference-time optimization for autoregressive large language models (LLMs) that generates multiple tokens per decoding step instead of one. A smaller draft model proposes a sequence of candidate tokens, and the larger target model verifies them in a single forward pass through a modified rejection sampling scheme. The verification preserves the target model's original output distribution, so the technique produces the same results as standard decoding while cutting latency by roughly two to three times. The name is an analogy to speculative execution in CPU design, where a processor runs instructions along a predicted branch before the outcome is known.

Speculative decoding is an inference-time optimization for autoregressive large language models (LLMs) that generates multiple tokens per decoding step instead of one. A smaller draft model proposes a sequence of candidate tokens, and the larger target model verifies them in a single forward pass through a modified rejection sampling scheme. The verification preserves the target model's original output distribution, so the technique produces the same results as standard decoding while cutting latency by roughly two to three times. The name is an analogy to speculative execution in CPU design, where a processor runs instructions along a predicted branch before the outcome is known.

References

  1. ^ "Boost Llama 3.3 70B Inference Throughput 3x with NVIDIA TensorRT-LLM Speculative Decoding" . NVIDIA Technical Blog . 2024-12-17 . Retrieved 2026-04-05 . Wikipedia revision 1367879801, retrieved 2026-11-19 · 1775343600.0
  2. ^ Xia, Heming; Yang, Zhe; Dong, Qingxiu; Wang, Peiyi; Li, Yongqi; Ge, Tao; Liu, Tianyu; Li, Wenjie; Sui, Zhifang (2024-06-04). "Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding". arXiv : 2401.07851 [ cs.CL ]. Wikipedia revision 1367879801, retrieved 2026-11-19 · 1795042800.0
  3. ^ Stern, Mitchell; Shazeer, Noam; Uszkoreit, Jakob (2018-11-07). "Blockwise Parallel Decoding for Deep Autoregressive Models". arXiv : 1811.03115 [ cs.LG ]. Wikipedia revision 1367879801, retrieved 2026-11-19 · 1795042800.0
  4. ^ Miao, Xupeng; Oliaro, Gabriele; Zhang, Zhihao; Cheng, Xinhao; Wang, Zeyu; Zhang, Zhengxin; Wong, Rae Ying Yee; Zhu, Alan; Yang, Lijie (2024-04-01). "SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and Verification". Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3 . pp. 932– 949. arXiv : 2305.09781 . doi : 10.1145/3620666.3651335 . ISBN 979-8-4007-0386-7 . Wikipedia revision 1367879801, retrieved 2026-11-19 · 1795042800.0
  5. ^ Cai, Tianle; Li, Yuhong; Geng, Zhengyang; Peng, Hongwu; Lee, Jason D.; Chen, Deming; Dao, Tri (2024-06-14). "Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads". arXiv : 2401.10774 [ cs.LG ]. Wikipedia revision 1367879801, retrieved 2026-11-19 · 1795042800.0
  6. ^ Li, Yuhui; Wei, Fangyun; Zhang, Chao; Zhang, Hongyang (2025-03-04). "EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty". arXiv : 2401.15077 [ cs.LG ]. Wikipedia revision 1367879801, retrieved 2026-11-19 · 1795042800.0
  7. ^ a b c d "Looking back at speculative decoding" . research.google . Retrieved 2026-04-05 . Wikipedia revision 1367879801, retrieved 2026-11-19 · 1775343600.0
  8. ^ a b "An Introduction to Speculative Decoding for Reducing Latency in AI Inference" . NVIDIA Technical Blog . 2025-09-17 . Retrieved 2026-04-05 . Wikipedia revision 1367879801, retrieved 2026-11-19 · 1775343600.0
  9. ^ a b c Chen, Charlie; Borgeaud, Sebastian; Irving, Geoffrey; Lespiau, Jean-Baptiste; Sifre, Laurent; Jumper, John (2023-02-02). "Accelerating Large Language Model Decoding with Speculative Sampling". arXiv : 2302.01318 [ cs.CL ]. Wikipedia revision 1367879801, retrieved 2026-11-19 · 1795042800.0
  10. ^ a b c d e Leviathan, Yaniv; Kalman, Matan; Matias, Yossi (2022). "Fast Inference from Transformers via Speculative Decoding". arXiv : 2211.17192 [ cs.LG ]. Wikipedia revision 1367879801, retrieved 2026-11-19 · 1795042800.0
  11. ^ Ryu, Hyun; Kim, Eric (2024-11-20). "Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding". arXiv : 2411.13157 [ cs.CL ]. Wikipedia revision 1367879801, retrieved 2026-11-19 · 1795042800.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Speculative decoding". 1785950188. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1367879801

JSON record · API collection · citation policy