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

摘要

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 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 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

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

它引用的 Paper19

  1. Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 次引用
  2. 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 次引用
  3. Speculative Decoding with Big Little DecoderSehoon Kim, Karttikeya Mangalam, Suhong Moon, Jitendra Malik 等NeurIPS 2023 · 212 次引用
  4. Deep Encoder, Shallow Decoder: Reevaluating Non-autoregressive Machine TranslationJungo Kasai, Nikolaos Pappas, Hao Peng, James Cross 等ICLR 2021 · 154 次引用
  5. DistillSpec: Improving Speculative Decoding via Knowledge DistillationYongchao Zhou, Kaifeng Lyu, Ankit Singh Rawat, Aditya Krishna Menon 等ICLR 2024 · 143 次引用

相关 Paper

  1. Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous VocabulariesNadav Timor, Jonathan Mamou, Daniel Korat, Moshe Berchansky 等ICML 2025
  2. Block Verification Accelerates Speculative DecodingZiteng Sun, Uri Mendlovic, Yaniv Leviathan, Asaf Aharoni 等ICLR 2025
  3. Speculative Speculative DecodingTanishq Kumar, Tri Dao, Avner MayICLR 2026 · 15 次引用
  4. Speculative Decoding with CTC-based Draft Model for LLM Inference AccelerationZhuofan Wen, Shangtong Gui, Yang FengNeurIPS 2024 · 19 次引用
  5. Ouroboros: Generating Longer Drafts Phrase by Phrase for Faster Speculative DecodingWeilin Zhao, Yuxiang Huang, Xu Han, Wang Xu 等EMNLP 2024 · 4 次引用
黄昏的海面,两侧是细线勾勒的悬崖