TL;DR
Accelerating Vision-Language Models (VLMs) with standard speculative decoding is tricky because tiny draft models struggle to keep up with complex multimodal prompts. Instead of relying on a one-size-fits-all configuration when reusing parts of the main model to draft tokens, $\text{SP}^2\text{EC}$ uses a clever online learning algorithm to find the sweet spot of speed and accuracy on the fly for every single prompt. It requires zero training, works on top of existing acceleration methods, and squeezes out up to 11% extra wall-clock speedup.
What Problem Does This Paper Address?
Large models generate text one token at a time, which is agonizingly slow. Speculative decoding speeds this up by having a fast "draft" model guess several tokens ahead, while the heavy "target" model verifies them in parallel. For text-only LLMs, you just train a tiny model to be the drafter. For VLMs, however, rich visual inputs and sprawling multimodal contexts throw tiny drafters off balance, tanking their accuracy.
Enter self-speculative decoding: instead of a separate model, you create a drafter by temporarilylobotomizing the target model itself—either by skipping transformer layers or pruning visual tokens. This preserves multimodal alignment, but introduces a delicate Goldilocks problem. Drop too many layers, and your guesses are terrible; keep too many, and drafting becomes just as slow as normal generation. Worse, the ideal configuration changes wildly from prompt to prompt. How do you find the fastest setup for the current query without wasting all your time searching for it?
Methods
The authors frame drafter selection as a cost-aware multi-armed bandit problem—think of a gambler testing a row of slot machines ("arms") during generation to maximize payout per second. Here, each arm is an ordered draft configuration (e.g., retaining 50%, 60%, or 70% of layers).
What’s new here are three core pieces:
- Wall-Time Regret: Standard bandit algorithms maximize total reward (accepted tokens). The authors introduce wall-time regret, explicitly penalizing configurations by the actual seconds they take to run.
- Exploiting the Single-Peak Structure: Standard bandits treat arms as independent mysteries. The authors prove and empirically show that because adding layers/tokens yields diminishing accuracy returns while increasing compute time linearly, overall throughput (tokens per second) forms a neat single-peak curve.
- The $\text{SP}^2\text{EC}$ Algorithm &
cosSim: Armed with the knowledge that there is only one peak, $\text{SP}^2\text{EC}$ doesn't waste time exploring terrible configurations. It tracks the current fastest "leader" arm and restricts its Upper Confidence Bound (UCB) exploration strictly to the leader's immediate left and right neighbors. While $\text{SP}^2\text{EC}$ acts as a plug-and-play meta-controller for existing methods (like SWIFT, KnapSpec, and SpecVLM), the authors also introducecosSim, a dead-simple baseline that orders layer-skipping arms by recursively dropping transformer blocks whose inputs and outputs have the highest cosine similarity (i.e., the most redundant blocks).
Datasets
Because $\text{SP}^2\text{EC}$ is completely training-free, no training datasets are used. For evaluation, the authors test across four existing benchmarks covering diverse visual and textual workloads (with no new benchmarks introduced):
- Video-MME and MMBench-Video (video understanding)
- ARKitScenes (3D indoor scene understanding)
- AIME25 (text-only mathematical reasoning; omitted for SpecVLM since it specifically prunes visual tokens)
Key Insights and Ideas
- Nature hands us a unimodal hill to climb: The marriage of concave accuracy gains (the most important layers/tokens are kept first) and linear latency costs mathematically guarantees a single-peak throughput curve. Knowing the landscape has only one hill makes finding the summit exponentially easier.
- Naive adaptation can actually slow you down: Applying a standard bandit algorithm (
UCBSpec) to self-speculative decoding sometimes hurts performance compared to no adaptation at all! Because standard bandits explore all arms—spending ~50% of pulls outside the top three configurations—the verification cost of bad guesses wipes out any adaptive gains. $\text{SP}^2\text{EC}$ keeps exploration outside the top three arms down to just 6.1–16.1%. - Higher acceptance $\neq$ faster generation: Several experiments show $\text{SP}^2\text{EC}$ achieving a slightly lower Mean Accepted Tokens (MAT) count than baselines while delivering higher actual speedups. It resists the temptation of slow, ultra-accurate drafters in favor of raw tokens-per-second efficiency.
Key Results
Evaluated primarily on Qwen2.5-VL-7B-Instruct and LLaVA-NeXT-Mistral-7B, $\text{SP}^2\text{EC}$ improved wall-clock speedup across all 30 model-method-dataset combinations:
- Boosted existing self-speculative methods by up to 11% overall, adding 0.06$\times$ to 0.09$\times$ average speedup over vanilla baselines.
- Achieved peak normalized speedups of 1.62$\times$ on Qwen2.5-VL (Video-MME with SpecVLM, up from 1.50$\times$) and 1.48$\times$ on LLaVA-NeXT (up from 1.36$\times$).
- Rescued failing adaptive baselines: on Qwen2.5-VL with KnapSpec, naive
UCBSpecdragged average speedup down from 1.29$\times$ to 1.24$\times$, whereas $\text{SP}^2\text{EC}$ pushed it up to 1.35$\times$.
Limitations and Future Work
- Structural Assumptions: $\text{SP}^2\text{EC}$'s theoretical guarantees rely on the candidate arms strictly obeying diminishing returns and linear cost increments. If a poorly constructed set of draft models creates multiple local optima, the neighbor-only search could get stuck on the wrong hill.
- Model Scope: Main evaluations center on two 7B-scale VLM families (with brief appendix checks on 4B/7B variants), leaving massive frontier VLMs unexplored.
- Future Extensions: Because the math works for any ordered acceleration knob with a single-peak trade-off, the authors note $\text{SP}^2\text{EC}$ could naturally extend beyond layers and visual tokens to dynamically tune KV-cache sparsification or quantization budgets per prompt.
Summary updated