Abstract
Vision-Language Models (VLMs) are computationally intensive, particularly when processing high-resolution images that generate thousands of visual tokens. VLCache is a novel cache reuse framework that significantly accelerates inference when images are reused across multiple requests. By recognizing that cache reuse errors accumulate sequentially and vary across transformer layers, VLCache dynamically recomputes only 2–5% of the initial vision tokens in sensitive layers while reusing the remainder. This strategy achieves 1.2x to 16x Time-To-First-Token (TTFT) speedups with virtually no loss in accuracy.
Introduction
The deployment of large-scale Vision-Language Models is often bottlenecked by the computational cost of processing visual inputs. While Key-Value (KV) caching is a standard technique to avoid redundant computation, it typically requires an exact prefix match. In VLM applications, a new text prompt following a previously seen image breaks this prefix, forcing the system to recompute the entire image sequence.
Existing "position-independent" caching methods attempt to reuse the image KV cache but rely on heuristics like attention scores to decide which tokens to recompute. These methods often fail to account for how errors propagate through the sequence and across different layers, leading to inefficient compute allocation or accuracy degradation. VLCache addresses these shortcomings through a layer-aware, dynamic recomputation strategy.
Methodology
VLCache implements an end-to-end pipeline for vision token reuse, integrated into the SGLang serving framework. The process begins by hashing incoming images; on a cache hit, the system skips the Vision Transformer (ViT) encoder entirely.
Key components of the methodology include:
- Targeted Recomputation: Instead of scattered recomputation, VLCache focuses on the initial tokens of the image sequence to block error propagation.
- Layer-Aware Dynamics: Rather than a uniform recomputation rate, VLCache profiles model layers using a proxy dataset to determine "sensitivity scores." A greedy algorithm then allocates recomputation budgets, allowing robust layers to reuse 100% of tokens while sensitive layers recompute a small fraction.
- Hardware Efficiency: By recomputing contiguous blocks of tokens, VLCache leverages block sparse attention for efficient execution on modern GPUs.
Key Insights and Ideas
The effectiveness of VLCache stems from two primary observations regarding transformer behavior in VLMs:
- The Cumulative Reuse Error Effect: Errors resulting from out-of-context KV cache reuse are not isolated. Due to causal self-attention, errors from early tokens propagate and accumulate in subsequent tokens. Recomputing the first few tokens acts as a "dam," preventing this cascade and preserving accuracy with minimal compute.
- Layer Sensitivity Variance: Transformer layers exhibit varying degrees of sensitivity to stale KV caches. Some layers are highly robust, while others are critical for maintaining reasoning fidelity.
Evaluation and Results
VLCache was evaluated on a wide array of multimodal benchmarks, including MMMU, MathVista, and DocVQA, using the Qwen3-VL-8B model.
- Performance: The system achieved 1.2x to 16x speedups in TTFT on NVIDIA H20 GPUs. The performance gains are most pronounced in long-sequence scenarios (e.g., 20K tokens) where the $O(n^2)$ attention bottleneck is bypassed.
- Accuracy: With an average recomputation rate of just 3.5%, VLCache maintained a mean benchmark accuracy of 74.49%, slightly exceeding the full-recomputation baseline of 74.04%.
- Comparative Advantage: VLCache consistently outperformed state-of-the-art methods like CacheBlend and KVShare at equivalent recomputation budgets.
Conclusion
VLCache demonstrates that intelligent, layer-aware token recomputation can unlock massive efficiency gains in VLM inference without sacrificing model performance. While the current implementation relies on exact image hashing, future work could extend this framework to handle similar visual inputs, such as video frames or augmented images, further broadening its impact on real-time vision-language applications.
Summary updated