ViSpec: Accelerating Vision-Language Models with Vision-Aware Speculative Decoding

Jialiang Kang, Han Shu, Wenshuo Li, Yingjie Zhai, Xinghao Chen

Abstract

Speculative decoding has emerged as a powerful technique for accelerating text generation in Large Language Models (LLMs). However, its application to Vision-Language Models (VLMs) has historically yielded suboptimal results, often failing to exceed a 1.5x speedup. This paper introduces ViSpec, a novel framework designed to overcome the unique challenges of multimodal speculative decoding. By addressing visual redundancy and the "lost in the middle" effect through image token compression and global feature injection, ViSpec achieves up to a 3.22x speedup, marking a significant advancement in efficient VLM inference.

Introduction

Inference acceleration in LLMs often relies on speculative decoding, where a small, efficient "draft" model predicts subsequent tokens that a larger "target" model verifies in parallel. While this works seamlessly for text-only tasks—often yielding 3x to 4x speedups—the transition to multimodal contexts has been fraught with difficulty. Standard VLMs translate images into thousands of tokens, many of which are highly redundant (e.g., background pixels). While massive target models possess the depth to filter this noise, small draft models are easily overwhelmed, leading to poor prediction accuracy and negligible speed gains.

The Bottleneck: Visual Redundancy and Context Loss

The authors identify two primary reasons why traditional speculative decoding fails for VLMs:

  1. Mathematical Failure of Shallow Models: Theoretical analysis suggests that shallow transformers (typical of draft models) tend to average out redundant tokens. In an image with hundreds of "sky" tokens and a single "object" token, the attention mechanism in a small model effectively washes out the critical information, leading to "visual noise" that degrades text generation.
  2. The "Lost in the Middle" Effect: As generated text sequences grow longer, shallow draft models struggle to maintain the relationship between the initial image tokens and the current generation state. This leads to a loss of visual grounding over long-form responses.

The ViSpec Framework

To resolve these issues without significantly increasing the draft model's computational overhead, ViSpec introduces three core architectural and procedural innovations:

1. Image Embedding Compression

Instead of passing thousands of raw image tokens to the draft model, ViSpec employs a lightweight, Q-Former-inspired Vision Adaptor. This module compresses the visual input into a significantly smaller set of tokens—sometimes as few as a single token—while preserving essential spatial and semantic information. This reduction ensures the draft model is not bogged down by redundant data.

2. Global Visual Feature Injection

To combat the "lost in the middle" effect, ViSpec extracts a single global visual feature vector from the input image. This vector is continuously injected into the hidden states of every subsequent text token generated by the draft model. By acting as a persistent visual anchor, this mechanism ensures the model remains visually grounded throughout long-form generation.

3. Synthetic Long-Response Training

Effective speculative decoding requires draft models to be proficient at generating long, coherent sequences. Since high-quality, long-form multimodal datasets are scarce, the authors utilized target VLMs to generate synthetic, verbose responses to standard prompts. This data was used to fine-tune the draft models, teaching them to handle extended multimodal dialogues more effectively.

Experimental Evaluation

ViSpec was evaluated across eight diverse multimodal benchmarks, including ScienceQA, MM-Vet, MME, and TextVQA. The framework was also tested on high-resolution and video datasets to ensure robustness.

Key Results

  • Significant Speedups: ViSpec achieved a peak speedup of 3.22x on COCO Captions using LLaVA-1.6-13B.
  • Superiority Over Baselines: When compared to existing speculative decoding methods like Medusa and EAGLE-2, ViSpec demonstrated clear dominance. For instance, on the TextVQA benchmark with LLaVA-1.6-7B, ViSpec reached a 2.90x speedup, whereas EAGLE-2 and Medusa only achieved 1.25x and 1.46x, respectively.
  • Efficiency of Compression: Ablation studies revealed that extreme compression is often beneficial; reducing thousands of tokens to just one provided the best balance of guess accuracy and drafting speed.

Conclusion and Future Work

ViSpec demonstrates that the key to accelerating VLMs lies not just in faster drafting, but in making that drafting "vision-aware." By filtering visual noise and maintaining persistent context, ViSpec bridges the gap between text-only and multimodal speculative decoding performance.

Despite these gains, challenges remain. Speculative decoding primarily addresses the generation phase, leaving the initial "prefill" phase (processing the image and prompt) as a potential bottleneck for high-resolution or video inputs. Future research will focus on optimizing vision encoders and hardware-aware kernels to further reduce end-to-end latency in multimodal systems.

Summary updated

BibTeX
@inproceedings{kang2025vispec,
  author = {Jialiang Kang and Han Shu and Wenshuo Li and Yingjie Zhai and Xinghao Chen},
  title = {{ViSpec: Accelerating Vision-Language Models with Vision-Aware Speculative Decoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=x2BsIdJJJW},
}
Figure