SP$^2$ec: Adaptive Self-Speculative Decoding for Vision-Language Models

Yuqi Huang, Xingyao Li, Yunlong Hou, Fengzhuo Zhang, Jiachun Pan, Vincent Y. F. TanNeurIPS 2026

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?

Figure 1: Prompt-level adaptive drafter selection in SP2EC. Each arm corresponds to a drafter with different layer-skipping configuration and wall-time cost. SP2EC uses accepted-token and time feedback from the target model to exploit the single-peak throughput structure and adaptively select a drafter during generation. Different prompts can favor different arms, motivating per-query adaptation for VLM speculative decoding.

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:

  1. 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.
  2. 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.
  3. 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 introduce cosSim, 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.
Empirical validation showing diminishing acceptance returns, linear time costs, the resulting single-peak throughput curve, and varying optimal skip ratios across prompts.

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 UCBSpec dragged 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

Abstract

Speculative Decoding (SD) has demonstrated its efficacy in accelerating large language model inference, but for Vision-Language Models (VLMs), the diverse input modalities make it difficult for a small trained drafter to achieve consistently high throughput. Self-speculative decoding reuses parts of the target model as a drafter which retains the multi-modal capability of the VLMs, yet its efficiency depends on choosing a suitable draft configuration for each prompt. We propose Single-Peak SPeculative decoding (SP$^2$ec), a training-free bandit algorithm that adapts the draft configuration during generation. SP$^2$ec exploits the single-peak throughput pattern observed in existing self-speculative methods, including SWIFT, KnapSpec, SpecVLM, and our simple cosSim. Our algorithmic design explicitly minimizes a novel notion of wall-time regret for each given query, corresponding to the empirical wall-time latency. Theoretical guarantees on the wall-time regret show that SP$^2$ec can exploit the optimal draft configuration, with negligible exploration cost. Extensive experiments on Qwen2.5-VL-7B-Instruct and LLaVA-NeXT-Mistral-7B across visual and textual tasks show consistent improvements of up to 11\% over the original self-speculative methods, demonstrating the wide applicability of the proposed SP$^2$ec algorithm.
BibTeX
@inproceedings{huang2026sp,
  author = {Yuqi Huang and Xingyao Li and Yunlong Hou and Fengzhuo Zhang and Jiachun Pan and Vincent Y. F. Tan},
  title = {{SP$^2$ec: Adaptive Self-Speculative Decoding for Vision-Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=i1ipNcYYoM},
}
Figure