SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengths
On the map: Efficient LLM inference and serving → Speculative decoding
Abstract (arXiv)
Speculative decoding reduces the inference latency of a target large language model via utilizing a smaller and faster draft model. Its performance depends on a hyperparameter K -- the candidate length, i.e., the number of candidate tokens for the target model to verify in each round. However, previous methods often use simple heuristics to choose K, which may result in sub-optimal performance. We study the choice of the candidate length K and formulate it as a Markov Decision Process. We theoretically show that the optimal policy of this Markov decision process takes the form of a threshold policy, i.e., the current speculation should stop and be verified when the probability of getting a rejection exceeds a threshold value. Motivated by this theory, we propose SpecDec++, an enhanced version of speculative decoding that adaptively determines the candidate length on the fly. We augment the draft model with a trained acceptance prediction head to predict the conditional acceptance probability of the candidate tokens. SpecDec++ will stop the current speculation when the predicted probability that at least one token gets rejected exceeds a threshold. We implement SpecDec++ and apply it to the llama-2-chat 7B & 70B model pair. Our adaptive method achieves a 2.04x speedup on the Alpaca dataset (7.2% improvement over the baseline speculative decoding). On the GSM8K and HumanEval datasets, our method achieves a 2.26x speedup (9.4% improvement) and 2.23x speedup (11.1% improvement), respectively. The code of this paper is available at https://github.com/Kaffaljidhmah2/SpecDec_pp.
Key facts. Cited by 75 papers in the map (data through 14 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 50 of its 58 references that are in the map. First posted on arXiv 30 May 2024.
Builds on
50 of 58 references.
Closest ancestors · 28
Same direction, newest first
- 2024Dynamic Speculation Lookahead Accelerates Speculative Decoding of Large Language Models7 May
- 2024Kangaroo: Lossless Self-Speculative Decoding via Double Early Exiting29 Apr
- 2024TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decoding18 Apr
- 2024Recurrent Drafter for Fast Speculative Decoding in Large Language Models14 Mar
- 2024CLLMs: Consistency Large Language Models28 Feb
- 2024Recursive Speculative Decoding: Accelerating LLM Inference via Sampling Without Replacement21 Feb
- 2024ProPD: Dynamic Token Tree Pruning and Generation for LLM Parallel Decoding21 Feb
- 2024Sequoia: Scalable, Robust, and Hardware-aware Speculative Decoding19 Feb
- 2024Speculative Streaming: Fast LLM Inference without Auxiliary Models16 Feb
- 2024GliDe with a CaPE: A Low-Hassle Method to Accelerate Speculative Decoding3 Feb
- 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
- 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
16 more
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
- 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding15 Jan
- 2024Multi-Candidate Speculative Decoding12 Jan
- 2023Cascade Speculative Drafting for Even Faster LLM Inference18 Dec
- 2023PaSS: Parallel Speculative Sampling22 Nov
- 2023REST: Retrieval-Based Speculative Decoding14 Nov
- 2023The Synergy of Speculative Decoding and Batching in Serving Large Language Models28 Oct
- 2023SpecTr: Fast Speculative Decoding via Optimal Transport23 Oct
- 2023DistillSpec: Improving Speculative Decoding via Knowledge Distillation12 Oct
- 2023Online Speculative Decoding11 Oct
- 2023Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decoding9 Oct
- 2023Accelerating LLM Inference with Staged Speculative Decoding8 Aug
- 2023Accelerating Transformer Inference for Translation via Parallel Decoding17 May
- 2023Speculative Decoding with Big Little Decoder15 Feb
- 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
- 2022Fast Inference from Transformers via Speculative Decoding30 Nov
Other references · 22
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,719
- 2023PaLM 2 Technical Reportcited by 1,162
- 2022Diffusion-LM Improves Controllable Text Generationcited by 1,027
10 more
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 939
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
- 2023Inference with Reference: Lossless Acceleration of Large Language Modelscited by 65
- 2023LLMCad: Fast and Scalable On-device Large Language Model Inferencecited by 45
- 2023Predictive Pipelined Decoding: A Compute-Latency Trade-off for Exact LLM Decodingcited by 40
- 2022Delayed Feedback in Generalised Linear Bandits Revisitedcited by 23
- 2023Learning in POMDPs is Sample-Efficient with Hindsight Observabilitycited by 18
- 2023A Reduction-based Framework for Sequential Decision Making with Delayed Feedbackcited by 7
Built on by
Citing papers per year: 2024: 11; 2025: 27; 2026: 37.
75 papers.
Sort:
By area:
- 2024TreeBoN: Enhancing Inference-Time Alignment with Speculative Tree-Search and Best-of-N Samplingcited by 61
- 2025Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignmentcited by 59
- 2024Merge, Ensemble, and Cooperate! A Survey on Collaborative Strategies in the Era of Large Language Modelscited by 44
- 2025A Survey on Parallel Text Generation: From Parallel Decoding to Diffusion Language Modelscited by 30
- 2024A Theoretical Perspective for Speculative Decoding Algorithmcited by 29
- 2024AdaEDL: Early Draft Stopping for Speculative Decoding of Large Language Models via an Entropy-based Lower Bound on Token Acceptance Probabilitycited by 25
- 2025Speculative Decoding and Beyond: An In-Depth Survey of Techniquescited by 23
- 2024How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?cited by 22
- 2024ParallelSpec: Parallel Drafter for Efficient Speculative Decodingcited by 22
- 2024Dynamic Depth Decoding: Faster Speculative Decoding for LLMscited by 20
- 2025BanditSpec: Adaptive Speculative Decoding via Bandit Algorithmscited by 20
- 2024AdaEAGLE: Optimizing Speculative Decoding via Explicit Modeling of Adaptive Draft Structurescited by 18
38 more
- 2024Mixture of Attentions For Speculative Decodingcited by 17
- 2024Draft Model Knows When to Stop: Self-Verification Speculative Decoding for Long-Form Generationcited by 16
- 2025TETRIS: Optimal Draft Token Selection for Batch Speculative Decodingcited by 15
- 2025LogitSpec: Accelerating Retrieval-based Speculative Decoding via Next Next Token Speculationcited by 14
- 2026TALON: Confidence-Aware Speculative Decoding with Adaptive Token Treescited by 13
- 2025Fuzzy Speculative Decoding for a Tunable Accuracy-Runtime Tradeoffcited by 12
- 2025Speeding up Speculative Decoding via Sequential Approximate Verificationcited by 11
- 2025C2T: A Classifier-Based Tree Construction Method in Speculative Decodingcited by 9
- 2025DEL: Context-Aware Dynamic Exit Layer for Efficient Self-Speculative Decodingcited by 8
- 2024Closer Look at Efficient Inference Methods: A Survey of Speculative Decodingcited by 7
- 2025AdaDecode: Accelerating LLM Decoding with Adaptive Layer Parallelismcited by 7
- 2025Not-a-Bandit: Provably No-Regret Drafter Selection in Speculative Decoding for LLMscited by 7
- 2025Token-Driven GammaTune: Adaptive Calibration for Enhanced Speculative Decodingcited by 6
- 2025Nightjar: Dynamic Adaptive Speculative Decoding for Large Language Models Servingcited by 6
- 2026SwarmResearch: Orchestrating Coding Agents for Open-Ended Discoverycited by 6
- 2026D-cut: Adaptive Verification Depth Pruning for Batched Speculative Decodingcited by 5
- 2026Verification-Aware Training for Speculative Decodingcited by 5
- 2025TokenSwift: Lossless Acceleration of Ultra Long Sequence Generationcited by 4
- 2025Semi-Clairvoyant Scheduling of Speculative Decoding Requests to Minimize LLM Inference Latencycited by 4
- 2025OmniDraft: A Cross-vocabulary, Online Adaptive Drafter for On-device Speculative Decodingcited by 4
- 2025Steering Pretrained Drafters during Speculative Decodingcited by 4
- 2025Fail Fast, Win Big: Rethinking the Drafting Strategy in Speculative Decoding via Diffusion LLMscited by 4
- 2026DIVERSED: Relaxed Speculative Decoding via Dynamic Ensemble Verificationcited by 4
- 2026PipeSD: An Efficient Cloud-Edge Collaborative Pipeline Inference Framework with Speculative Decodingcited by 4
- 2026AngelSpec: Towards Real-World High Performance Inference with Speculative Decodingcited by 4
- 2025Scaling LLM Speculative Decoding: Non-Autoregressive Forecasting in Large-Batch Scenarioscited by 3
- 2026SpecBlock: Block-Iterative Speculative Decoding with Dynamic Tree Draftingcited by 3
- 2026A Practical Investigation of Training-free Relaxed Speculative Decodingcited by 3
- 2025HeteroSpec: Leveraging Contextual Heterogeneity for Efficient Speculative Decodingcited by 2
- 2025POSS: Position Specialist Generates Better Draft for Speculative Decodingcited by 2
- 2025Revisiting RAG Ensemble: A Theoretical and Mechanistic Analysis of Multi-RAG System Collaborationcited by 2
- 2025TapOut: A Bandit-Based Approach to Dynamic Speculative Decodingcited by 2
- 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inferencecited by 2
- 2026PACER: Blockwise Pre-verification for Speculative Decoding with Adaptive Lengthcited by 2
- 2026Bastion: Budget-Aware Speculative Decoding with Tree-structured Block Diffusion Draftingcited by 2
- 2026TriSpec: Ternary Speculative Decoding via Lightweight Proxy Verificationcited by 1
- 2026Efficient Epistemic Uncertainty Estimation for Large Language Models via Knowledge Distillationcited by 1
- 2026TIDE: Temporal Incremental Draft Engine for Self-Improving LLM Inferencecited by 1
50 most cited of 75 All 75 (JSON)
- 2026SP2ec: Adaptive Self-Speculative Decoding for Vision-Language Models13 Oct 2026
- 2026Training Parallel Speculative Draft Models by Directly Minimizing Expected Decoding Rounds7 Oct 2026
- 2026DLoop: Looped Speculative Decoding6 Oct 2026
- 2026Trajectory-Retrieval Speculative Decoding: When Does a Model's Own History Help?5 Oct 2026
- 2026AdaSpark: Adaptive DSpark with Online Learning for Tree Verification and N-gram Fill5 Oct 2026
- 2026AgSpec: Pushing the Limits of Retrieval-Based Speculative Decoding in Coding Agent Pipelines1 Oct 2026
- 2026CAST: Cost-Aware Speculative Trees from One-Pass Block Drafters29 Sep 2026
- 2026DScale: Scaling Block-Diffusion Speculative Decoding with Adaptive Verification29 Sep 2026
- 2026OUTLETS: Output-Length Prediction from Speculative Decoding Backbones1 Sep 2026
- 2026Vision Is Not Overhead: One-Pass Block Drafting for Lossless Speculative Decoding in Vision-Language Models31 Aug 2026
- 2026Verification-Aware Training for Speculative Decoding31 Aug 2026
- 2026ResiSpec: Enhancing Multi-Candidate Speculative Sampling via Residual Distribution Shaping25 Aug 2026
38 more
- 2026From Positionwise Confidence to Prefix Scheduling: Verifier Skipping in Speculative Decoding14 Aug 2026
- 2026LibraSpec: Dynamic Diffusion-Based Speculative Decoding via Marginal-Gain-Driven Optimization9 Aug 2026
- 2026EdgeXpert: An Edge Device for Memory-Efficient LLM Inference with Mixture-of-Experts and Speculative Decoding5 Aug 2026
- 2026CURE: Local Uncertainty Repair for Block-Parallel Speculative Decoding1 Aug 2026
- 2026AngelSpec: Towards Real-World High Performance Inference with Speculative Decoding28 Jul 2026
- 2026D-cut: Adaptive Verification Depth Pruning for Batched Speculative Decoding16 Jul 2026
- 2026A Practical Investigation of Training-free Relaxed Speculative Decoding9 Jul 2026
- 2026Fully Rotation-Equivariant Spectral-Spatial Learning for Multispectral Object Detection6 Jul 2026
- 2026Margins, Not Windows: Training-Free Per-Step Lossy Speculative Decoding3 Jul 2026
- 2026SwarmResearch: Orchestrating Coding Agents for Open-Ended Discovery2 Jul 2026
- 2026Bastion: Budget-Aware Speculative Decoding with Tree-structured Block Diffusion Drafting28 May 2026
- 2026Delay-Adaptive Speculation Control for Low-Latency Edge-Cloud LLM Inference17 May 2026
- 2026PipeSD: An Efficient Cloud-Edge Collaborative Pipeline Inference Framework with Speculative Decoding13 May 2026
- 2026SpecBlock: Block-Iterative Speculative Decoding with Dynamic Tree Drafting8 May 2026
- 2026Faster LLM Inference via Sequential Monte Carlo17 Apr 2026
- 2026SMART: When is it Actually Worth Expanding a Speculative Tree?9 Apr 2026
- 2026DIVERSED: Relaxed Speculative Decoding via Dynamic Ensemble Verification8 Apr 2026
- 2026Dynamic Delayed Tree Expansion For Improved Multi-Path Speculative Decoding19 Feb 2026
- 2026StreamServe: Adaptive Speculative Flows for Low-Latency Disaggregated LLM Serving11 Feb 2026
- 2026TIDE: Temporal Incremental Draft Engine for Self-Improving LLM Inference5 Feb 2026
- 2026Efficient Epistemic Uncertainty Estimation for Large Language Models via Knowledge Distillation2 Feb 2026
- 2026PACER: Blockwise Pre-verification for Speculative Decoding with Adaptive Length1 Feb 2026
- 2026TriSpec: Ternary Speculative Decoding via Lightweight Proxy Verification30 Jan 2026
- 2026Speculative Sampling with Reinforcement Learning18 Jan 2026
- 2026TALON: Confidence-Aware Speculative Decoding with Adaptive Token Trees12 Jan 2026
- 2025Nightjar: Dynamic Adaptive Speculative Decoding for Large Language Models Serving27 Dec 2025
- 2025Fail Fast, Win Big: Rethinking the Drafting Strategy in Speculative Decoding via Diffusion LLMs23 Dec 2025
- 2025RADAR: Accelerate Large Language Model Inference With RL-Based Dynamic Draft Trees16 Dec 2025
- 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inference12 Dec 2025
- 2025Scaling LLM Speculative Decoding: Non-Autoregressive Forecasting in Large-Batch Scenarios25 Nov 2025
- 2025Steering Pretrained Drafters during Speculative Decoding13 Nov 2025
- 2025TapOut: A Bandit-Based Approach to Dynamic Speculative Decoding3 Nov 2025
- 2025Not-a-Bandit: Provably No-Regret Drafter Selection in Speculative Decoding for LLMs22 Oct 2025
- 2025Revisiting RAG Ensemble: A Theoretical and Mechanistic Analysis of Multi-RAG System Collaboration19 Aug 2025
- 2025A Survey on Parallel Text Generation: From Parallel Decoding to Diffusion Language Models12 Aug 2025
- 2025OmniDraft: A Cross-vocabulary, Online Adaptive Drafter for On-device Speculative Decoding3 Jul 2025
- 2025LogitSpec: Accelerating Retrieval-based Speculative Decoding via Next Next Token Speculation2 Jul 2025
- 2025AdaDecode: Accelerating LLM Decoding with Adaptive Layer Parallelism4 Jun 2025
50 newest of 75 All 75 (JSON)
- 2024A Theoretical Perspective for Speculative Decoding Algorithmcited by 29
- 2024AdaEDL: Early Draft Stopping for Speculative Decoding of Large Language Models via an Entropy-based Lower Bound on Token Acceptance Probabilitycited by 25
- 2025Speculative Decoding and Beyond: An In-Depth Survey of Techniquescited by 23
- 2024ParallelSpec: Parallel Drafter for Efficient Speculative Decodingcited by 22
- 2024Dynamic Depth Decoding: Faster Speculative Decoding for LLMscited by 20
- 2025BanditSpec: Adaptive Speculative Decoding via Bandit Algorithmscited by 20
- 2024AdaEAGLE: Optimizing Speculative Decoding via Explicit Modeling of Adaptive Draft Structurescited by 18
- 2024Mixture of Attentions For Speculative Decodingcited by 17
- 2024Draft Model Knows When to Stop: Self-Verification Speculative Decoding for Long-Form Generationcited by 16
- 2025TETRIS: Optimal Draft Token Selection for Batch Speculative Decodingcited by 15
- 2025LogitSpec: Accelerating Retrieval-based Speculative Decoding via Next Next Token Speculationcited by 14
- 2026TALON: Confidence-Aware Speculative Decoding with Adaptive Token Treescited by 13
12 most cited of 55 All 55 (JSON)
- 2026Training Parallel Speculative Draft Models by Directly Minimizing Expected Decoding Rounds7 Oct 2026
- 2026DLoop: Looped Speculative Decoding6 Oct 2026
- 2026CAST: Cost-Aware Speculative Trees from One-Pass Block Drafters29 Sep 2026
- 2026DScale: Scaling Block-Diffusion Speculative Decoding with Adaptive Verification29 Sep 2026
- 2026OUTLETS: Output-Length Prediction from Speculative Decoding Backbones1 Sep 2026
- 2026Verification-Aware Training for Speculative Decoding31 Aug 2026
- 2026ResiSpec: Enhancing Multi-Candidate Speculative Sampling via Residual Distribution Shaping25 Aug 2026
- 2026From Positionwise Confidence to Prefix Scheduling: Verifier Skipping in Speculative Decoding14 Aug 2026
- 2026LibraSpec: Dynamic Diffusion-Based Speculative Decoding via Marginal-Gain-Driven Optimization9 Aug 2026
- 2026CURE: Local Uncertainty Repair for Block-Parallel Speculative Decoding1 Aug 2026
- 2026AngelSpec: Towards Real-World High Performance Inference with Speculative Decoding28 Jul 2026
- 2026A Practical Investigation of Training-free Relaxed Speculative Decoding9 Jul 2026
12 newest of 55 All 55 (JSON)
- 2024TreeBoN: Enhancing Inference-Time Alignment with Speculative Tree-Search and Best-of-N Samplingcited by 61
- 2025AdaDecode: Accelerating LLM Decoding with Adaptive Layer Parallelismcited by 7
- 2025Fail Fast, Win Big: Rethinking the Drafting Strategy in Speculative Decoding via Diffusion LLMscited by 4
- 2026Trajectory-Retrieval Speculative Decoding: When Does a Model's Own History Help?cited by 0
- 2026Trajectory-Retrieval Speculative Decoding: When Does a Model's Own History Help?5 Oct 2026
- 2025Fail Fast, Win Big: Rethinking the Drafting Strategy in Speculative Decoding via Diffusion LLMs23 Dec 2025
- 2025AdaDecode: Accelerating LLM Decoding with Adaptive Layer Parallelism4 Jun 2025
- 2024TreeBoN: Enhancing Inference-Time Alignment with Speculative Tree-Search and Best-of-N Sampling18 Oct 2024
- 2026D-cut: Adaptive Verification Depth Pruning for Batched Speculative Decodingcited by 5
- 2026EdgeXpert: An Edge Device for Memory-Efficient LLM Inference with Mixture-of-Experts and Speculative Decodingcited by 0
- 2026AdaSpark: Adaptive DSpark with Online Learning for Tree Verification and N-gram Fillcited by 0
- 2026AdaSpark: Adaptive DSpark with Online Learning for Tree Verification and N-gram Fill5 Oct 2026
- 2026EdgeXpert: An Edge Device for Memory-Efficient LLM Inference with Mixture-of-Experts and Speculative Decoding5 Aug 2026
- 2026D-cut: Adaptive Verification Depth Pruning for Batched Speculative Decoding16 Jul 2026
- 2024Merge, Ensemble, and Cooperate! A Survey on Collaborative Strategies in the Era of Large Language Modelscited by 44
- 2024How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?cited by 22
- 2025TokenSwift: Lossless Acceleration of Ultra Long Sequence Generationcited by 4
- 2026Fully Rotation-Equivariant Spectral-Spatial Learning for Multispectral Object Detectioncited by 0
- 2026Fully Rotation-Equivariant Spectral-Spatial Learning for Multispectral Object Detection6 Jul 2026
- 2025TokenSwift: Lossless Acceleration of Ultra Long Sequence Generation26 Feb 2025
- 2024Merge, Ensemble, and Cooperate! A Survey on Collaborative Strategies in the Era of Large Language Models8 Jul 2024
- 2024How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?17 Jun 2024
Similar, not cited
Close in wording, no citation either way
- 2026SpecKV: Adaptive Speculative Decoding with Compression-Aware Gamma Selection
- 2026Speculative Decoding with a Speculative Vocabulary
- 2024Decoding Speculative Decoding
- 20253-Model Speculative Decoding
- 2025Speculative Decoding: Performance or Illusion?
- 2026From Tokens to Steps: Verification-Aware Speculative Decoding for Efficient Multi-Step Reasoning
- 2024SSSD: Simply-Scalable Speculative Decoding
- 2025When, What, and How: Rethinking Retrieval-Enhanced Speculative Decoding