Revisiting Multimodal KV Cache Compression: A Frequency-Domain-Guided Outlier-KV-Aware Approach
Yaoxin Yang, Peng Ye, Xudong Tan, Chongjun Tu, Maosen Zhao, Jia Hao, Tao Chen
TL;DR
This work tackles the substantial memory and compute overhead of multimodal KV Cache in long-context LLMs by adopting a frequency-domain perspective. It reveals that KV energy concentrates in low-frequency components and introduces Outlier KVs—KV pairs whose deviation from a smoothed Base KV carries critical inference information. FlashCache combines an Outlier KV Recognition Module (DCT-based, low-pass Base KV estimation) with a Dynamic Budget Allocation Module (layer-wise, energy-based budgets) to achieve attention-score-free KV compression compatible with FlashAttention. Across multi-image, high-resolution, and video benchmarks, FlashCache delivers up to 1.69× decoding speedups and up to 80% reduction in KV memory while maintaining or improving task performance, highlighting practical benefits for scalable multimodal inference.
Abstract
Multimodal large language models suffer from substantial inference overhead since multimodal KV Cache grows proportionally with the visual input length. Existing multimodal KV Cache compression methods mostly rely on attention score to reduce cache size, which makes them are incompatible with established efficient attention kernels (e.g., FlashAttention) and ignores the contribution of value vectors to the attention output. In this work, we revisit multimodal KV Cache compression from the perspective of the KV matrices' distribution. First, we observe that frequency-domain energy of multimodal KV matrices is predominantly concentrated in low-frequency and extract this principal energy via a low-pass filter. Further, we find that removing KV pairs that deviate substantially from this principal energy leads to a pronounced performance drop, which we define as Outlier KVs. Considering Outlier KVs are more likely to encode features critical for inference, we propose FlashCache, a frequency-domain-guided, Outlier-KV-aware KV Cache compression framework. First, we introduce an Outlier KV Recognition Module that models the principal component of multimodal KV matrices in the frequency domain and preferentially retains KV pairs that significantly deviate from it. Furthermore, Dynamic Budget Allocation Module is designed to adaptively determine the per-layer KV Cache size to retain more Outlier KVs. Experiments on multiple MLLMs and benchmarks demonstrate that FlashCache outperforms state-of-the-art multimoal KV compression methods, achieving up to 1.69 times faster decoding with 80% lower KV memory usage while maintaining task performance.
