TL;DR
KVCapsule is a novel, plug-and-play KV cache compression framework designed specifically for Vision-Language Models (VLMs) that achieves up to a 2.4× reduction in memory and a 2× boost in generation throughput. By recognizing that visual keys and values exhibit fundamentally different types of redundancy, KVCapsule applies an asymmetric compression strategy that keeps the VLM backbone frozen and dynamically reconstructs the cache during decoding to preserve accuracy.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) excel at multimodal reasoning, but they inherit and severely amplify a major computational bottleneck from Large Language Models (LLMs): the memory footprint of the Key-Value (KV) cache during autoregressive decoding. Because a single image or video sequence can translate into thousands of dense vision tokens, the KV cache quickly exhausts GPU memory, limiting the model's ability to handle long-context or multi-image inputs.
While text-based LLMs often use static token pruning (dropping tokens that receive low attention during the initial prefilling stage), this approach fails for VLMs. Visual attention is highly dynamic; a token that seems irrelevant during prefilling might become crucial later in the decoding process as the model transitions from local visual grounding to abstract semantic reasoning. Permanently dropping these tokens leads to irreversible accuracy loss.
Methods
KVCapsule introduces a "recoverable" KV cache compression framework that operates asymmetrically on keys and values, leaving the underlying VLM backbone entirely frozen.
The framework consists of three core components:
- Selective Retention and MLP Reconstruction for Keys: Visual keys determine attention weights through their similarity to queries. Because keys show high structural similarity, KVCapsule uses a learned mask to retain a compact subset of representative keys. During decoding, a lightweight, two-layer Multi-Layer Perceptron (MLP) reconstructs the full-length key sequence to preserve the original attention geometry.
- Sequence-Level PCA for Values: Visual values carry token-specific semantic content, meaning hard pruning can discard vital information. However, the value matrix exhibits a low-rank global structure. KVCapsule applies sequence-level Principal Component Analysis (PCA) to compress values along the token dimension, allowing all tokens to contribute to the compressed representation. Values are restored via linear re-projection.
- Pyramid Retention Schedule: Recognizing that early layers are less tolerant to compression errors (which propagate downstream), the authors implement a pyramid schedule that compresses deeper layers more aggressively than shallow ones.
- Fused KVCapsule: To eliminate the runtime overhead of explicitly materializing full-length KV tensors, the authors mathematically integrate the reconstruction step directly into the attention computation using algebraic associativity.
Datasets
The authors calibrated and evaluated KVCapsule using 500 randomly sampled examples from MEGABench.
For comprehensive downstream evaluation, they utilized VLMEvalKit across several prominent benchmarks:
- Image Benchmarks: MME, MMMU, COCO Captioning, MMBench, LLaVABench, and HallusionBench.
- Video Benchmarks: Video-MME and MMBench-Video.
Key Insights and Ideas
- Visual Attention is a Moving Target: The authors empirically proved that visual attention shifts drastically across decoding steps. The overlap between the top-10% attended vision tokens at step 0 versus steps 5 or 10 is a mere 16%. This insight exposes why static pruning methods are fundamentally unsuited for multimodal tasks.
- Asymmetric Redundancy: Keys and values behave differently. Keys exhibit high pairwise cosine similarity (especially in early layers), meaning they share a query-matching geometry. Values have low pairwise similarity but are globally low-rank, meaning their semantic content is distributed across the token sequence.
- Hidden Dimensions are Sacred: The paper demonstrates that visual values are incredibly dense along their hidden dimensions (retaining 95% variance requires nearly the full hidden dimension). Therefore, compressing along the sequence (token) dimension via PCA is far more efficient than compressing the latent feature space.
Key Results
KVCapsule was evaluated across five state-of-the-art VLM backbones (including Qwen2-VL, Qwen2.5-VL, Qwen3-VL, LLaVA-Mistral, and LLaVA-Llama).
- Memory & Throughput: At an average visual KV cache compression ratio of 60%, KVCapsule achieved up to a 2.4× reduction in KV cache memory and up to a 2× improvement in tokens-per-second (TPS).
- Accuracy Preservation: Unlike static pruning baselines (like FastV), which suffer severe accuracy drops on complex reasoning tasks, KVCapsule closely matched the performance of the uncompressed full-cache baselines across both image and video benchmarks.
- Efficiency Break-Even: Due to the fixed parameter overhead of the MLP and PCA matrices, KVCapsule reaches a memory-saving break-even point at a context length of $L \approx 626$ tokens, making it highly effective for long-context scenarios.
Limitations and Future Work
While KVCapsule offers substantial algorithmic gains, the fixed reconstruction and PCA parameters introduce a small, constant memory overhead per layer. Consequently, the benefits are less pronounced for very short context lengths where the text prompt dominates the cache.
Additionally, the current implementation relies on standard PyTorch-level operations. The authors note that developing hardware-optimized serving kernels (e.g., custom CUDA or HIP kernels) represents a promising future direction to maximize runtime throughput and fully unlock KVCapsule's potential in production environments.
Summary updated