Hierarchical Adaptive Eviction for KV Cache Management in Multimodal Language Models
Xindian Ma, Yidi Lu, Peng Zhang, Jing Zhang
TL;DR
HAE tackles the memory and compute bottleneck of KV-cache in multimodal LLMs by introducing a hierarchical eviction framework that treats visual and textual tokens differently. It combines Dual-Attention Pruning in the pre-fill stage with a Dynamic Decoding Eviction Strategy during decoding, and provides theoretical bounds on information integrity and eviction error. Empirically, HAE reduces KV-cache memory by about 41–47% with minimal accuracy loss (~0.3%) and speeds up long-form image-based generation by approximately 1.5x, while maintaining or improving output quality on multimodal benchmarks. The approach offers a practical, training-free mechanism to improve efficiency in cross-modal reasoning and generation, with strong theoretical guarantees and broad applicability to existing MLLMs like Phi3.5-Vision-Instruct and LLaVA-1.5-7B.
Abstract
The integration of visual information into Large Language Models (LLMs) has enabled Multimodal LLMs (MLLMs), but the quadratic memory and computational costs of Transformer architectures remain a bottleneck. Existing KV cache eviction strategies fail to address the heterogeneous attention distributions between visual and text tokens, leading to suboptimal efficiency or degraded performance. In this paper, we propose Hierarchical Adaptive Eviction (HAE), a KV cache eviction framework that optimizes text-visual token interaction in MLLMs by implementing Dual-Attention Pruning during pre-filling (leveraging visual token sparsity and attention variance) and a Dynamic Decoding Eviction Strategy (inspired by OS Recycle Bins) during decoding. HAE minimizes KV cache usage across layers, reduces computational overhead via index broadcasting, and theoretically ensures superior information integrity and lower error bounds compared to greedy strategies, enhancing efficiency in both comprehension and generation tasks. Empirically, HAE reduces KV-Cache memory by 41\% with minimal accuracy loss (0.3\% drop) in image understanding tasks and accelerates story generation inference by 1.5x while maintaining output quality on Phi3.5-Vision-Instruct model.
