mlsanityData to 14 Oct 2026

BanditSpec: Adaptive Speculative Decoding via Bandit Algorithms

arXiv 2505.15141 ↗First posted 21 May 2025cs.LG cs.AI stat.MLcited by 20

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

Abstract (arXiv)

Speculative decoding has emerged as a popular method to accelerate the inference of Large Language Models (LLMs) while retaining their superior text generation performance. Previous methods either adopt a fixed speculative decoding configuration regardless of the prefix tokens, or train draft models in an offline or online manner to align them with the context. This paper proposes a training-free online learning framework to adaptively choose the configuration of the hyperparameters for speculative decoding as text is being generated. We first formulate this hyperparameter selection problem as a Multi-Armed Bandit problem and provide a general speculative decoding framework BanditSpec. Furthermore, two bandit-based hyperparameter selection algorithms, UCBSpec and EXP3Spec, are designed and analyzed in terms of a novel quantity, the stopping time regret. We upper bound this regret under both stochastic and adversarial reward settings. By deriving an information-theoretic impossibility result, it is shown that the regret performance of UCBSpec is optimal up to universal constants. Finally, extensive empirical experiments with LLaMA3 and Qwen2 demonstrate that our algorithms are effective compared to existing methods, and the throughput is close to the oracle best hyperparameter in simulated real-life LLM serving scenarios with diverse input prompts.

Key facts. Cited by 20 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 31 of its 53 references that are in the map. First posted on arXiv 21 May 2025.

Builds on

31 of 53 references.

Closest ancestors · 17

Same direction, newest first

  1. 2024SAM Decoding: Speculative Decoding via Suffix Automaton16 Nov
  2. 2024A Theoretical Perspective for Speculative Decoding Algorithm30 Oct
  3. 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees24 Jun
  4. 2024SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengths30 May
  5. 2024TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decoding18 Apr
  6. 2024Block Verification Accelerates Speculative Decoding15 Mar
  7. 2024Sequoia: Scalable, Robust, and Hardware-aware Speculative Decoding19 Feb
  8. 2024GliDe with a CaPE: A Low-Hassle Method to Accelerate Speculative Decoding3 Feb
  9. 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
  10. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  11. 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding15 Jan
  12. 2023REST: Retrieval-Based Speculative Decoding14 Nov
5 more
  1. 2023SpecTr: Fast Speculative Decoding via Optimal Transport23 Oct
  2. 2023DistillSpec: Improving Speculative Decoding via Knowledge Distillation12 Oct
  3. 2023Online Speculative Decoding11 Oct
  4. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  5. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 14

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2024Mixture-of-Agents Enhances Large Language Model Capabilitiescited by 438
  5. 2017A Tutorial on Thompson Samplingcited by 433
  6. 2017Efficient Contextual Bandits in Non-stationary Worldscited by 62
  7. 2014Lipschitz Bandits: Regret Lower Bounds and Optimal Algorithmscited by 60
  8. 2018Nearly Optimal Adaptive Procedure with Change Detection for Piecewise-Stationary Banditcited by 50
  9. 2018Garbage In, Reward Out: Bootstrapping Exploration in Multi-Armed Banditscited by 34
  10. 2021Robust Stochastic Linear Contextual Bandits Under Adversarial Attackscited by 33
  11. 2020Probabilistic Sequential Shrinking: A Best Arm Identification Algorithm for Stochastic Bandits with Corruptionscited by 9
  12. 2021The Role of Contextual Information in Best Arm Identificationcited by 8
2 more
  1. 2024Almost Minimax Optimal Best Arm Identification in Piecewise Stationary Linear Banditscited by 6
  2. 2023Multiplier Bootstrap-based Explorationcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 16.

20 papers.

Sort:

By area:

  1. 2025Not-a-Bandit: Provably No-Regret Drafter Selection in Speculative Decoding for LLMscited by 7
  2. 2025Nightjar: Dynamic Adaptive Speculative Decoding for Large Language Models Servingcited by 6
  3. 2025Sparse-to-Dense: A Free Lunch for Lossless Acceleration of Video Understanding in LLMscited by 4
  4. 2026Multi-Drafter Speculative Decoding with Alignment Feedbackcited by 4
  5. 2026SpecBlock: Block-Iterative Speculative Decoding with Dynamic Tree Draftingcited by 3
  6. 2025TapOut: A Bandit-Based Approach to Dynamic Speculative Decodingcited by 2
  7. 2026AHASD: Asynchronous Heterogeneous Architecture for LLM Adaptive Drafting Speculative Decoding on Mobile Devicescited by 2
  8. 2026A Component-Based Survey of Interactions between Large Language Models and Multi-Armed Banditscited by 1
  9. 2026TIDE: Temporal Incremental Draft Engine for Self-Improving LLM Inferencecited by 1
  10. 2026MineDraft: A Framework for Batch Parallel Speculative Decodingcited by 1
  11. 2026FASER: Fine-Grained Phase Management for Speculative Decoding in Dynamic LLM Servingcited by 1
  12. 2026To Copy or Not to Copy: Controlling Speculative Decoding via Intrinsic Model Signalscited by 1
8 more
  1. 2026Speculative Sampling with Reinforcement Learningcited by 0
  2. 2026LibraSpec: Dynamic Diffusion-Based Speculative Decoding via Marginal-Gain-Driven Optimizationcited by 0
  3. 2026MemSpec: Memory-Aware Runtime for Adaptive Draft Scheduling in Speculative Decoding on Edge Devicescited by 0
  4. 2026Bandits in Prod: Hyperparameter Optimization at Inference Timecited by 0
  5. 2026CAST: Cost-Aware Speculative Trees from One-Pass Block Drafterscited by 0
  6. 2026AdaSpark: Adaptive DSpark with Online Learning for Tree Verification and N-gram Fillcited by 0
  7. 2026APEX: Speculate smarter, not deepercited by 0
  8. 2026SP2ec: Adaptive Self-Speculative Decoding for Vision-Language Modelscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026When Drafts Evolve: Speculative Decoding Meets Online Learning
  2. 2025When, What, and How: Rethinking Retrieval-Enhanced Speculative Decoding
  3. 2026SpecKV: Adaptive Speculative Decoding with Compression-Aware Gamma Selection
  4. 2026A Practical Investigation of Training-free Relaxed Speculative Decoding
  5. 2024AdaEDL: Early Draft Stopping for Speculative Decoding of Large Language Models via an Entropy-based Lower Bound on Token Acceptance Probability
  6. 2025AdaSD: Adaptive Speculative Decoding for Efficient Language Model Inference
  7. 2026Learning to Draft: Adaptive Speculative Decoding with Reinforcement Learning
  8. 2026Training Parallel Speculative Draft Models by Directly Minimizing Expected Decoding Rounds