Multimodal Large Language Models face severe challenges in computational efficiency and memory consumption due to the substantial expansion of the visual KV cache when processing long visual contexts. Existing KV cache compression methods typically rely on the "persistence of importance" hypothesis to prune tokens. However, this approach proves fragile in multimodal settings due to two key issues: 1) Visual tokens display "deferred importance," initially exhibiting low salience but becoming pivotal during later decoding, which can lead to premature eviction. 2) Discrete pruning disrupts the inherent spatial continuity of visual cues. To address these challenges, we propose RetentiveKV, an entropy-driven KV cache optimization method that reformulates KV eviction from "discrete context truncation" to "continuous memory evolution" based on State Space Models. Our method leverages information entropy to quantify the information potential of low-attention tokens and integrates tokens scheduled for eviction into a continuous state space through entropy-guided state transitions, enabling their dynamic reactivation when semantic relevance arises during subsequent decoding. Extensive experiments on multimodal benchmarks demonstrate that RetentiveKV achieves 5.0 times KV cache compression and 1.5 times decoding acceleration.
Figures & tables
Figure 1: (a) Visualization of Deferred-Critical Tokens: The presence of delayed activation patterns, where visually salient features remain dormant during early decoding phases, defies the static heavy-hitter assumption. This temporal misalignment triggers erroneous eviction in importance-based pruning. (b) Visualization of Pruning-Induced Spatial Discontinuity: We compare baseline and pruned attention maps. The instability of visual signals triggers excessive pruning (white voids). This fragmentation disrupts the spatial continuity of visual representations.
Figure 2: Entropy Shifts under KV Eviction.
Figure 3: Overview of the proposed RetentiveKV framework. The architecture coordinates efficient long-context multimodal reasoning through three core components: (1) An Entropy-Guided KV Retention Estimator that identifies deferred-critical tokens by analyzing layer-wise entropy shifts ( Ht ) and accumulated attention ( αt ); (2) An Entropy-Guided State Transition mechanism that absorbs evicted KV pairs into modality-adaptive state space; and (3) A Query-Conditioned State Retrieval module that dynamically fuses retrieved long-term context ( Os ) with local attention outputs via a learnable gating factor ( γt ) during autoregressive decoding.
Method
TextVQA
DocVQA
MathVista
MMStar
MMMU
BLINK
MMCoQA
ALFRED
LLaVA-v1.5-7B
Full Cache
62.30
61.24
60.40
62.52
43.34
64.04
35.50
16.32
H2O
60.20
56.42
59.30
61.66
42.39
62.62
28.00
14.49
SnapKV
61.00
58.52
59.10
62.13
42.33
63.14
30.50
14.57
SAINT
60.00
57.84
58.60
61.84
42.28
62.64
28.00
14.64
Meda
60.80
57.26
59.20
62.07
42.36
63.04
28.50
14.87
Table 1: Performance comparison of different KV compression (The best results are highlighted in bold .)
Method
Budget
Latency
Memory
Full Cache
100%
32.15 ms/token
2.24 GiB
RetentiveKV
50%
27.84 ms/token
1.18 GiB
35%
24.42 ms/token
0.84 GiB
20%
21.42 ms/token
0.46 GiB
5%
18.42 ms/token
0.23 GiB
Table 2: Comparison of decoding latency and GPU memory usage for different cache budgets.
Figure 4: Comparison results for various cache budgets.
EM
MA
QR
DocVQA
MMCoQA
✓
✓
58.70
60.91
✓
✓
60.20
61.55
✓
✓
59.80
61.38
✓
✓
✓
61.40
64.22
Table 3: Ablation study on key components of RetentiveKV.
Multimodal Large Language Models (MLLMs) have advanced unified reasoning over text, images, and videos, but their inference is hindered by the rapid growth of key-value (KV) caches. Each visual input expands into thousands of tokens, causing caches to scale linearly with context length and remain resident in GPU memory throughout decoding, which leads to prohibitive memory overhead and latency even on high-end GPUs. A common solution is to compress caches under a fixed allocated budget at different granularities: token-level uniformly discards less important tokens, layer-level varies retention across layers, and head-level redistributes budgets across heads. Yet these approaches stop at allocation and overlook the heterogeneous behaviors of attention heads that require distinct compression strategies. We propose HybridKV, a hybrid KV cache compression framework that integrates complementary strategies in three stages: heads are first classified into static or dynamic types using text-centric attention; then a top-down budget allocation scheme hierarchically assigns KV budgets; finally, static heads are compressed by text-prior pruning and dynamic heads by chunk-wise retrieval. Experiments on 11 multimodal benchmarks with Qwen2.5-VL-7B show that HybridKV reduces KV cache memory by up to 7.9× and achieves 1.52× faster decoding, with almost no performance drop or even higher relative to the full-cache MLLM.
Bowen Zeng, Feiyang Ren, Jun Zhang +4
The State Key Laboratory of Blockchain and Data Security, Zhejiang University · Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security · Hangzhou Dianzi University, Hangzhou, China
Unified multimodal models combine understanding, generation, and editing within a single network, offering a promising foundation for versatile multimodal applications. However, growing multimodal contexts make KV cache storage and access increasingly costly. Existing KV cache compression methods are typically tailored to specific tasks and single-modality caches, while overlooking changes in cache importance across tasks and timesteps. However, in unified multimodal models, each task involves multiple KV cache types, and both their composition and dynamics differ across tasks. As a result, a single compression policy overlooks task- and type-specific requirements, leading to the loss of critical information and degraded quality across tasks. Based on these findings, we propose UniCache, a training-free framework for task- and type-aware KV cache compression. UniCache identifies the cache segments activated by each task and assigns suitable compression policies through offline calibration. It coordinates their parallel execution under a shared storage budget through attention-guided allocation and task-aware temporal scheduling. Experiments show that UniCache achieves 5× KV cache compression for understanding and editing and 2.5× for generation with negligible quality loss, while increasing throughput by up to 1.78× in long-context settings, significantly improving the practicality of scaling unified multimodal models to longer context.
Wanqi Yang, Yuexiao Ma, Mei Xie +2
Max Planck Institute for Intelligent Systems · ELLIS Institute Tübingen · Tübingen AI Center +3
Vision-Language Models (VLMs) have emerged as a critical and fast-growing extension of Large Language Models (LLMs) that enable multimodal reasoning through both text and image inputs. Although VLMs enrich the capabilities of language models, they also inherit and amplify key computational bottlenecks: the memory overhead caused by the large key-value (KV) cache during autoregressive decoding. This challenge is particularly severe in VLMs, where images produce longer token sequences and denser feature representations compared to text. Moreover, the spatial and information-rich nature of vision tokens introduces structured attention patterns that make many LLM-oriented KV cache compression techniques ineffective when applied directly to VLMs. In this work, we conduct a detailed empirical analysis of the behavior of vision tokens, highlighting the critical differences from purely text-based models. Based on these insights, we propose KVCapsule, a novel KV cache compression framework for vision tokens. KVCapsule keeps the pretrained VLM backbone frozen, requires no modification to the attention computation modules, and can be integrated into existing VLMs through lightweight compression and reconstruction components. We evaluate KVCapsule on multiple VLMs and benchmark tasks, demonstrating up to 2x improvement in TPS and 2.4x reduction in KV cache memory at a 60% compression ratio, with negligible degradation in accuracy or response quality. Our findings offer practical pathways to scale VLM inference under constrained memory budgets and inspire further research into structure-aware cache compression for multimodal models.
Yingbing Huang, Tharun Adithya Srikrishnan, Steven K. Reinhardt +1