atlas

Research map / Bandits and online learning / Multi-armed bandits

BanditSpec: Adaptive Speculative Decoding via Bandit Algorithms

ICML 2025 · Bandits and online learning › Multi-armed bandits · approach: Bandit formulations for ML problems · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Frames speculative decoding hyperparameter selection (draft model, speculation length) as a multi-armed bandit and proposes training-free UCBSpec and EXP3Spec with a stopping-time regret analysis.

Problem

Speculative decoding uses a fixed configuration (draft model, speculation structure) regardless of prompt, yet the best configuration varies across tasks and prefixes; latency-minimizing per-step selection is needed.

Approach

Model per-round hyperparameter choice as a bandit where reward is accepted token count, and analyze a novel stopping-time regret; UCBSpec (UCB-style with modified confidence radius, self-normalized concentration) and EXP3Spec (anytime EXP3) are training-free and provably near-optimal under stochastic and adversarial settings.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use adaptive UCB draft-model selection instead of fixed Eagle-2LLaMA3-8B-Instruct speculative decoding · Spec Bench, Alpaca, Code Editor, and Debug BenchTokens/s: 98.15 -> 105.72; 110.00 -> 125.78; 128.76 -> 138.27; 119.12 -> 135.34Helped
Use adaptive EXP3 draft-model selection instead of fixed Eagle-2LLaMA3-8B-Instruct speculative decoding · Spec Bench, Alpaca, Code Editor, and Debug BenchTokens/s: 98.15 -> 102.10; 110.00 -> 120.38; 128.76 -> 137.29; 119.12 -> 132.25Helped
Use adaptive UCB draft-model selection instead of fixed Eagle-2Qwen2-7B-Instruct speculative decoding · Spec Bench, Alpaca, Code Editor, and Debug BenchTokens/s: 97.82 -> 112.33; 104.43 -> 114.20; 138.58 -> 161.35; 126.01 -> 151.37Helped
Use adaptive EXP3 draft-model selection instead of fixed Eagle-2Qwen2-7B-Instruct speculative decoding · Spec Bench, Alpaca, Code Editor, and Debug BenchTokens/s: 97.82 -> 107.36; 104.43 -> 113.90; 138.58 -> 160.41; 126.01 -> 151.73Helped
Use UCB rather than EXP3 for adaptive draft-model selectionLLaMA3-8B-Instruct speculative decoding · Spec Bench, Alpaca, Code Editor, and Debug BenchTokens/s: 102.10 -> 105.72; 120.38 -> 125.78; 137.29 -> 138.27; 132.25 -> 135.34Helped
Use UCB rather than EXP3 for adaptive draft-model selectionQwen2-7B-Instruct speculative decoding · Spec Bench, Alpaca, Code Editor, and Debug BenchTokens/s: 107.36 -> 112.33; 113.90 -> 114.20; 160.41 -> 161.35; 151.73 -> 151.37Mixed
Adapt speculation length with UCB instead of fixing a single lengthEagle-1 speculation-length selection · Alpaca prompts, batch sizes 1 to 50 (LLaMA3-8B-Instruct and Qwen2-7B-Instruct)throughput improvement over canonical decodingHelped

Surprising findings

Limitations

Experimental setup

Datasets: Spec Bench Alpaca Code Editor Debug Bench

Benchmarks: Spec Bench Alpaca Code Editor Debug Bench

Metrics: Mean Accepted Tokens (MAT) Tokens/s stopping time regret

Baselines: Vanilla decoding PLD Rest Suffix Tree Eagle-2 Eagle-1 SpecDec++

Builds on: speculative decoding UCB1 EXP3 Medusa Eagle

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy