mlsanityData to 7 Oct 2026

Dynamic-Width Speculative Beam Decoding for Efficient LLM Inference

arXiv 2409.16560 ↗First posted 25 Sep 2024cs.AIcited by 5

On the map: Efficient LLM inference and serving → Speculative decoding

Abstract (arXiv)

Large language models (LLMs) have shown outstanding performance across numerous real-world tasks. However, the autoregressive nature of these models makes the inference process slow and costly. Speculative decoding has emerged as a promising solution, leveraging a smaller auxiliary model to draft future tokens, which are then validated simultaneously by the larger model, achieving a speed-up of 1-2x. Although speculative decoding matches the same distribution as multinomial sampling, multinomial sampling itself is prone to suboptimal outputs, whereas beam sampling is widely recognized for producing higher-quality results by maintaining multiple candidate sequences at each step. This paper explores the novel integration of speculative decoding with beam sampling. However, there are four key challenges: (1) how to generate multiple sequences from the larger model's distribution given drafts sequences from the small model; (2) how to dynamically optimize the number of beams to balance efficiency and accuracy; (3) how to efficiently verify the multiple drafts in parallel; and (4) how to address the extra memory costs inherent in beam sampling. To address these challenges, we propose dynamic-width speculative beam decoding (DSBD). Specifically, we first introduce a novel draft and verification scheme that generates multiple sequences following the large model's distribution based on beam sampling trajectories from the small model. Then, we introduce an adaptive mechanism to dynamically tune the number of beams based on the context, optimizing efficiency and effectiveness. Besides, we extend tree-based parallel verification to handle multiple trees simultaneously, accelerating the verification process. Finally, we illustrate a simple modification to our algorithm to mitigate the memory overhead of beam sampling...

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 22 of its 36 references that are in the map. First posted on arXiv 25 Sep 2024.

Builds on

22 of 36 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees24 Jun
  2. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  3. 2023Speculative Decoding with Big Little Decoder15 Feb
  4. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  5. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 17

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  6. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  7. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  8. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  9. 2019The State of Sparsity in Deep Neural Networkscited by 471
  10. 2017Non-Autoregressive Neural Machine Translationcited by 457
  11. 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
  12. 2018Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinementcited by 194
5 more
  1. 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLMcited by 155
  2. 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 112
  3. 2019Fast Structured Decoding for Sequence Modelscited by 59
  4. 2019Non-Autoregressive Machine Translation with Auxiliary Regularizationcited by 52
  5. 2024Accelerating the inference of string generation-based chemical reaction models for industrial applicationscited by 4

Built on by

Cited by year

Citing papers per year: 2025: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Recursive Speculative Decoding: Accelerating LLM Inference via Sampling Without Replacement
  2. 2024Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding
  3. 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding
  4. 2026Faster LLM Inference via Sequential Monte Carlo
  5. 2024Speculative Decoding via Early-exiting for Faster LLM Inference with Thompson Sampling Control Mechanism
  6. 2023Accelerating LLM Inference with Staged Speculative Decoding
  7. 2024Optimized Multi-Token Joint Decoding with Auxiliary Model for LLM Inference
  8. 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inference