Abstract
Vision-Language Models (VLMs) enable powerful multimodal reasoning but suffer from slow autoregressive inference, limiting their deployment in real-time applications. We introduce Spec-LLaVA, a system that applies speculative decoding to accelerate VLMs without sacrificing output quality. Spec-LLaVA pairs a lightweight draft VLM with a large target model: the draft speculates future tokens, which the target verifies in parallel, allowing multiple tokens to be generated per step. To maximize efficiency, we design a dynamic tree-based verification algorithm that adaptively expands and prunes speculative branches using draft model confidence. On MS COCO out-of-domain images, Spec-LLaVA achieves up to 3.28× faster decoding on LLaVA-1.5 (7B, 13B) with no loss in generation quality. This work presents a lossless acceleration framework for VLMs using dynamic tree-structured speculative decoding, opening a path toward practical real-time multimodal assistants.
Introduction
Vision-Language Models (VLMs) like LLaVA have demonstrated remarkable capabilities in multimodal reasoning. However, their autoregressive nature—predicting one token at a time—leads to significant latency, as each response requires hundreds of sequential passes through models with billions of parameters. This bottleneck hinders their use in interactive visual assistants and on-device applications.
While speculative decoding has successfully accelerated text-only Large Language Models (LLMs), its application to VLMs is challenging due to the high variability introduced by visual inputs. Spec-LLaVA addresses this by aligning a tiny draft model with a massive target model to provide high-quality token speculations.
Methodology
Spec-LLaVA employs three core innovations to achieve lossless acceleration:
- Lightweight Draft VLMs: The system utilizes small draft models (68M and 160M parameters) that share the same CLIP vision encoder as the target model. They are trained on identical multimodal instruction data to ensure conceptual alignment.
- Alignment via Distillation: Draft models are trained to minimize the KL divergence between their output distributions and those of the target model. This distillation process enables the draft model to mimic the logic and style of the larger model, improving its predictive accuracy.
- Dynamic Tree-Based Verification: Instead of a linear sequence, the draft model generates a tree of potential token paths. If the draft is confident, it explores deeper paths; if uncertain, it branches out to offer multiple "top-k" options. The target model then verifies these branches in a single parallel forward pass, accepting all correct tokens from the root to the furthest valid leaf.
Key Insights and Results
A critical finding of this research is that visual grounding acts as a constraint that actually benefits speculative decoding. The presence of an image narrows the search space for subsequent tokens, making the draft model's guesses more likely to be correct compared to open-ended text generation.
Empirical results demonstrate a strong correlation between lower KL divergence and higher "acceptance length" (γ)—the number of tokens the target model accepts per step. Spec-LLaVA achieved a 3.28x speedup on LLaVA-1.5 (7B) and a 2.95x speedup on the 13B variant. The 160M draft model reached an average acceptance length of 3.5 tokens per step, providing significant efficiency gains with zero loss in output quality.
Conclusion
Spec-LLaVA provides a robust framework for accelerating VLM inference. By combining lightweight draft models with dynamic tree-based verification, it achieves substantial speedups suitable for resource-constrained environments. Future work will explore extending this framework to temporal modalities like video and audio, as well as optimizing performance for multi-turn dialogues.
Summary updated