EMNLP Findings2023
Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation
Heming Xia, Tao Ge, Peiyi Wang, Si-Qing Chen, Furu Wei, Zhifang Sui
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 71 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- DistillSpec: Improving Speculative Decoding via Knowledge Distillation 引用了 Fast Inference from Transformers via Speculative Decoding
- Cascade Speculative Drafting for Even Faster LLM Inference 引用了 DistillSpec: Improving Speculative Decoding via Knowledge Distillation
- Cascade Speculative Drafting for Even Faster LLM Inference 引用了 Fast Inference from Transformers via Speculative Decoding
- Turning Trash into Treasure: Accelerating Inference of Large Language Models with Token Recycling 引用了 DistillSpec: Improving Speculative Decoding via Knowledge Distillation
- Turning Trash into Treasure: Accelerating Inference of Large Language Models with Token Recycling 引用了 EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
- Turning Trash into Treasure: Accelerating Inference of Large Language Models with Token Recycling 引用了 Fast Inference from Transformers via Speculative Decoding
- Deep Encoder, Shallow Decoder: Reevaluating Non-autoregressive Machine Translation 引用了 BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension
- The Mamba in the Llama: Distilling and Accelerating Hybrid Models 引用了 Cascade Speculative Drafting for Even Faster LLM Inference
- The Mamba in the Llama: Distilling and Accelerating Hybrid Models 引用了 Fast Inference from Transformers via Speculative Decoding
- A Theoretical Perspective for Speculative Decoding Algorithm 引用了 DistillSpec: Improving Speculative Decoding via Knowledge Distillation
- A Theoretical Perspective for Speculative Decoding Algorithm 引用了 Cascade Speculative Drafting for Even Faster LLM Inference
- A Theoretical Perspective for Speculative Decoding Algorithm 引用了 Speculative Decoding with Big Little Decoder
- A Theoretical Perspective for Speculative Decoding Algorithm 引用了 Fast Inference from Transformers via Speculative Decoding
- EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty 引用了 DistillSpec: Improving Speculative Decoding via Knowledge Distillation
- EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty 引用了 Cascade Speculative Drafting for Even Faster LLM Inference
- EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty 引用了 Speculative Decoding with Big Little Decoder
- EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty 引用了 Fast Inference from Transformers via Speculative Decoding
- Speculative Decoding with Big Little Decoder 引用了 Deep Encoder, Shallow Decoder: Reevaluating Non-autoregressive Machine Translation
- Speculative Decoding with Big Little Decoder 引用了 Fast Inference from Transformers via Speculative Decoding
引用它的顶会 Paper71
- EAGLE: Speculative Sampling Requires Rethinking Feature UncertaintyYuhui Li, Fangyun Wei, Chao Zhang, Hongyang ZhangICML 2024 · 424 次引用
- The Mamba in the Llama: Distilling and Accelerating Hybrid ModelsJunxiong Wang, Daniele Paliotta, Avner May, Alexander M. Rush 等NeurIPS 2024 · 146 次引用
- Cascade Speculative Drafting for Even Faster LLM InferenceZiyi Chen, Xiaocong Yang, Jiacheng Lin, Chenkai Sun 等NeurIPS 2024 · 107 次引用
- A Theoretical Perspective for Speculative Decoding AlgorithmMing Yin, Minshuo Chen, Kaixuan Huang, Mengdi WangNeurIPS 2024 · 36 次引用
- Turning Trash into Treasure: Accelerating Inference of Large Language Models with Token RecyclingXianzhen Luo, Yixuan Wang, Qingfu Zhu, Zhiming Zhang 等ACL 2025 · 31 次引用
它引用的 Paper19
- Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 次引用
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad 等ACL 2020 · 1,224 次引用
- Speculative Decoding with Big Little DecoderSehoon Kim, Karttikeya Mangalam, Suhong Moon, Jitendra Malik 等NeurIPS 2023 · 212 次引用
- Deep Encoder, Shallow Decoder: Reevaluating Non-autoregressive Machine TranslationJungo Kasai, Nikolaos Pappas, Hao Peng, James Cross 等ICLR 2021 · 154 次引用
- DistillSpec: Improving Speculative Decoding via Knowledge DistillationYongchao Zhou, Kaifeng Lyu, Ankit Singh Rawat, Aditya Krishna Menon 等ICLR 2024 · 143 次引用
相关 Paper
- Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous VocabulariesNadav Timor, Jonathan Mamou, Daniel Korat, Moshe Berchansky 等ICML 2025
- Block Verification Accelerates Speculative DecodingZiteng Sun, Uri Mendlovic, Yaniv Leviathan, Asaf Aharoni 等ICLR 2025
- Speculative Speculative DecodingTanishq Kumar, Tri Dao, Avner MayICLR 2026 · 15 次引用
- Speculative Decoding with CTC-based Draft Model for LLM Inference AccelerationZhuofan Wen, Shangtong Gui, Yang FengNeurIPS 2024 · 19 次引用
- Ouroboros: Generating Longer Drafts Phrase by Phrase for Faster Speculative DecodingWeilin Zhao, Yuxiang Huang, Xu Han, Wang Xu 等EMNLP 2024 · 4 次引用
