Lune

NeurIPS2024顶会

SpecExec: Massively Parallel Speculative Decoding For Interactive LLM Inference on Consumer Devices

Ruslan Svirschevski, Avner May, Zhuoming Chen, Beidi Chen, Zhihao Jia, Max Ryabinin

摘要

As large language models gain widespread adoption, running them efficiently becomes crucial. Recent works on LLM inference use speculative decoding to achieve extreme speedups. However, most of these works implicitly design their algorithms for high-end datacenter hardware. In this work, we ask the opposite question: how fast can we run LLMs on consumer machines? Consumer GPUs can no longer fit the largest available models (50B+ parameters) and must offload them to RAM or SSD. When running with offloaded parameters, the inference engine can process batches of hundreds or thousands of tokens at the same time as just one token, making it a natural fit for speculative decoding. We propose SpecExec (Speculative Execution), a simple parallel decoding method that can generate up to 20 tokens per target model iteration for popular LLM families. It utilizes the high spikiness of the token probabilities distribution in modern LLMs and a high degree of alignment between model output probabilities. SpecExec takes the most probable tokens continuation from the draft model to build a"cache"tree for the target model, which then gets validated in a single pass. Using SpecExec, we demonstrate inference of 50B+ parameter LLMs on consumer GPUs with RAM offloading at 4-6 tokens per second with 4-bit quantization or 2-3 tokens per second with 16-bit weights.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 21 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees 引用了 Fast Inference from Transformers via Speculative Decoding
  • EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test 引用了 EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees
  • EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test 引用了 Fast Inference from Transformers via Speculative Decoding
  • FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU 引用了 ZeRO-Offload: Democratizing Billion-Scale Model Training
  • MoESD: Unveil Speculative Decoding's Potential for Accelerating Sparse MoE 引用了 EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees
  • MoESD: Unveil Speculative Decoding's Potential for Accelerating Sparse MoE 引用了 EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test
  • MoESD: Unveil Speculative Decoding's Potential for Accelerating Sparse MoE 引用了 Fast Inference from Transformers via Speculative Decoding
  • Speculative Speculative Decoding 引用了 EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees
  • Speculative Speculative Decoding 引用了 EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test
  • Speculative Speculative Decoding 引用了 Fast Inference from Transformers via Speculative Decoding
  • SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMs 引用了 Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning
  • SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMs 引用了 Fast Inference from Transformers via Speculative Decoding
  • SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMs 引用了 ZeRO-Offload: Democratizing Billion-Scale Model Training
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper21

  1. EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time TestYuhui Li, Fangyun Wei, Chao Zhang, Hongyang ZhangNeurIPS 2025 · 347 次引用
  2. MoESD: Unveil Speculative Decoding's Potential for Accelerating Sparse MoEZongle Huang, Lei Zhu, Zongyuan Zhan, Ting Hu 等NeurIPS 2025 · 23 次引用
  3. SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMsJinwoo Park, Seunggeun Cho, Dongsu HanNeurIPS 2025 · 20 次引用
  4. EAGLE-2: Faster Inference of Language Models with Dynamic Draft TreesYuhui Li, Fangyun Wei, Chao Zhang, Hongyang ZhangEMNLP 2024 · 16 次引用
  5. Speculative Speculative DecodingTanishq Kumar, Tri Dao, Avner MayICLR 2026 · 15 次引用

它引用的 Paper14

  1. Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 次引用
  2. FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUYing Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li 等ICML 2023 · 683 次引用
  3. ZeRO-Offload: Democratizing Billion-Scale Model TrainingJie Ren, Samyam Rajbhandari, Reza Yazdani Aminabadi, Olatunji Ruwase 等USENIX ATC 2021 · 657 次引用
  4. QuIP: 2-Bit Quantization of Large Language Models With GuaranteesJerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De SaNeurIPS 2023 · 503 次引用
  5. Sheared LLaMA: Accelerating Language Model Pre-training via Structured PruningMengzhou Xia, Tianyu Gao, Zhiyuan Zeng, Danqi ChenICLR 2024 · 453 次引用

相关 Paper

  1. Speculate Deep and Accurate: Lossless and Training-Free Acceleration for Offloaded LLMs via Substitute Speculative DecodingPei-Shuo Wang, Jian-Jia Chen, Chun-Che Yang, Chi-Chih Chang 等NeurIPS 2025 · 1 次引用
  2. SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and VerificationXupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng 等ASPLOS 2024 · 105 次引用
  3. EasySpec: Layer-Parallel Speculative Decoding for Efficient Multi-GPU UtilizationYize Wu, Ke Gao, Ling Li, Yanjun WuNeurIPS 2025 · 3 次引用
  4. Sequoia: Scalable and Robust Speculative DecodingZhuoming Chen, Avner May, Ruslan Svirschevski, Yuhsun Huang 等NeurIPS 2024 · 53 次引用
  5. SPIN: Accelerating Large Language Model Inference with Heterogeneous Speculative ModelsFahao Chen, Peng Li, Tom H. Luan, Zhou Su 等INFOCOM 2025 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖