analiza aiqbench
ECOKV addresses the memory bottlenecks in multimodal large language models by introducing a geometry-aware metric that combines Euclidean distance and cosine similarity to better assess token diversity. This approach corrects for limitations in existing methods that discard magnitude information, enabling more efficient KV cache eviction without sacrificing performance. The technique offers a practical path to reducing observation windows and reallocating cache capacity to critical tokens across various compression ratios.
ECOKV: Geometry-Aware KV Cache Eviction via Complementary Diversity Metrics
De la arXiv
Text integralAlthough multimodal Large Language Models (MLLMs) excel in diverse tasks, their scalability remains limited by the memory and computational overhead of KV cache storage. Recent KV cache eviction approaches incorporate a cosine similarity-based diversity metric with importance metrics to selectively retain critical key-value pairs. However, cosine similarity involves normalization that discards magnitude information, and it often yields uniformly high similarity values across layers due to the anisotropy property of hidden representations.
In our study ECOKV, we rigorously deconstruct the capabilities of existing diversity metrics. Moving beyond simple measurement, we propose a geometry-aware composite metric that jointly leverages Euclidean distance and cosine similarity to capture token diversity from complementary perspectives. Furthermore, we use these two metrics to estimate the redundancy level of each attention head, allowing adaptive weighting between diversity and importance scores during token selection. Finally, we demonstrate that the observation window commonly employed to preserve recent tokens can be substantially reduced, thereby allocating more cache capacity to informative tokens and yielding consistent improvements.
Extensive experiments demonstrate that ECOKV achieves state-of-the-art performance under various compression ratios and can be seamlessly integrated with existing KV cache eviction methods. We further analyze the relationship between importance and diversity, and examine redundancy patterns across layers and attention heads.
Text integral sub licența deschisă a publicației · 205 cuvinte