Lune

EMNLP Findings2023

Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation

Heming Xia, Tao Ge, Peiyi Wang, Si-Qing Chen, Furu Wei, Zhifang Sui

Abstract

We propose Speculative Decoding (SpecDec), for the first time ever 1 , to formally study exploiting the idea of speculative execution to accelerate autoregressive (AR) decoding. Speculative Decoding has two innovations: Spec-Drafter -an independent model specially optimized for efficient and accurate drafting -and Spec-Verification -a reliable method for verifying the drafted tokens efficiently in the decoding paradigm. Experimental results on various seq2seq tasks including machine translation and abstractive summarization show our approach can achieve around 5× speedup for the popular Transformer architectures with comparable generation quality to beam search decoding, refreshing the impression that the draft-then-verify paradigm introduces only 1.4×∼2× speedup. In addition to the remarkable speedup, we also demonstrate 3 additional advantages of SpecDec, revealing its practical value for accelerating generative models in real-world applications. Our models and codes are available at https://github.com/ hemingkx/SpecDec.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

71 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • DistillSpec: Improving Speculative Decoding via Knowledge Distillation cites Fast Inference from Transformers via Speculative Decoding
  • Cascade Speculative Drafting for Even Faster LLM Inference cites DistillSpec: Improving Speculative Decoding via Knowledge Distillation
  • Cascade Speculative Drafting for Even Faster LLM Inference cites Fast Inference from Transformers via Speculative Decoding
  • Turning Trash into Treasure: Accelerating Inference of Large Language Models with Token Recycling cites DistillSpec: Improving Speculative Decoding via Knowledge Distillation
  • Turning Trash into Treasure: Accelerating Inference of Large Language Models with Token Recycling cites EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
  • Turning Trash into Treasure: Accelerating Inference of Large Language Models with Token Recycling cites Fast Inference from Transformers via Speculative Decoding
  • Deep Encoder, Shallow Decoder: Reevaluating Non-autoregressive Machine Translation cites BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension
  • The Mamba in the Llama: Distilling and Accelerating Hybrid Models cites Cascade Speculative Drafting for Even Faster LLM Inference
  • The Mamba in the Llama: Distilling and Accelerating Hybrid Models cites Fast Inference from Transformers via Speculative Decoding
  • A Theoretical Perspective for Speculative Decoding Algorithm cites DistillSpec: Improving Speculative Decoding via Knowledge Distillation
  • A Theoretical Perspective for Speculative Decoding Algorithm cites Cascade Speculative Drafting for Even Faster LLM Inference
  • A Theoretical Perspective for Speculative Decoding Algorithm cites Speculative Decoding with Big Little Decoder
  • A Theoretical Perspective for Speculative Decoding Algorithm cites Fast Inference from Transformers via Speculative Decoding
  • EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty cites DistillSpec: Improving Speculative Decoding via Knowledge Distillation
  • EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty cites Cascade Speculative Drafting for Even Faster LLM Inference
  • EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty cites Speculative Decoding with Big Little Decoder
  • EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty cites Fast Inference from Transformers via Speculative Decoding
  • Speculative Decoding with Big Little Decoder cites Deep Encoder, Shallow Decoder: Reevaluating Non-autoregressive Machine Translation
  • Speculative Decoding with Big Little Decoder cites Fast Inference from Transformers via Speculative Decoding
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers71

  1. EAGLE: Speculative Sampling Requires Rethinking Feature UncertaintyYuhui Li, Fangyun Wei, Chao Zhang, Hongyang ZhangICML 2024 · 424 citations
  2. The Mamba in the Llama: Distilling and Accelerating Hybrid ModelsJunxiong Wang, Daniele Paliotta, Avner May, Alexander M. Rush et al.NeurIPS 2024 · 146 citations
  3. Cascade Speculative Drafting for Even Faster LLM InferenceZiyi Chen, Xiaocong Yang, Jiacheng Lin, Chenkai Sun et al.NeurIPS 2024 · 107 citations
  4. A Theoretical Perspective for Speculative Decoding AlgorithmMing Yin, Minshuo Chen, Kaixuan Huang, Mengdi WangNeurIPS 2024 · 36 citations
  5. Turning Trash into Treasure: Accelerating Inference of Large Language Models with Token RecyclingXianzhen Luo, Yixuan Wang, Qingfu Zhu, Zhiming Zhang et al.ACL 2025 · 31 citations

Builds on19

  1. Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 citations
  2. BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad et al.ACL 2020 · 1,224 citations
  3. Speculative Decoding with Big Little DecoderSehoon Kim, Karttikeya Mangalam, Suhong Moon, Jitendra Malik et al.NeurIPS 2023 · 212 citations
  4. Deep Encoder, Shallow Decoder: Reevaluating Non-autoregressive Machine TranslationJungo Kasai, Nikolaos Pappas, Hao Peng, James Cross et al.ICLR 2021 · 154 citations
  5. DistillSpec: Improving Speculative Decoding via Knowledge DistillationYongchao Zhou, Kaifeng Lyu, Ankit Singh Rawat, Aditya Krishna Menon et al.ICLR 2024 · 143 citations

Related papers

  1. Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous VocabulariesNadav Timor, Jonathan Mamou, Daniel Korat, Moshe Berchansky et al.ICML 2025
  2. Block Verification Accelerates Speculative DecodingZiteng Sun, Uri Mendlovic, Yaniv Leviathan, Asaf Aharoni et al.ICLR 2025
  3. Speculative Speculative DecodingTanishq Kumar, Tri Dao, Avner MayICLR 2026 · 15 citations
  4. Speculative Decoding with CTC-based Draft Model for LLM Inference AccelerationZhuofan Wen, Shangtong Gui, Yang FengNeurIPS 2024 · 19 citations
  5. Ouroboros: Generating Longer Drafts Phrase by Phrase for Faster Speculative DecodingWeilin Zhao, Yuxiang Huang, Xu Han, Wang Xu et al.EMNLP 2024 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines