LOOK-M: Look-Once Optimization in KV Cache for Efficient Multimodal Long-Context Inference

Zhongwei Wan, Ziang Wu, Che Liu, Jinfa Huang, Zhihong Zhu, Peng Jin, Longyue Wang, Li Yuan

Abstract

As Multimodal Large Language Models (MLLMs) scale to handle extensive contexts such as long videos and large image sets, the Key-Value (KV) cache becomes a critical bottleneck for memory and latency. We present LOOK-M (Look-Once Optimization), a fine-tuning-free strategy that reduces KV cache memory usage by up to 95% and accelerates decoding by 1.5x. By prioritizing textual tokens and employing novel merging strategies for visual data, LOOK-M preserves contextual integrity and mitigates hallucinations without the need for retraining.

Introduction

The evolution of MLLMs toward long-context capabilities has introduced a significant challenge: KV cache "bloat." A single image can generate hundreds of tokens; in multi-image or video scenarios, the resulting cache quickly exhausts GPU VRAM and increases decoding latency. Existing text-centric eviction methods often discard vital visual information, leading to performance degradation. LOOK-M addresses this by recognizing the unique attention patterns in multimodal contexts, ensuring that critical anchors are preserved while redundant data is compressed rather than deleted.

Methodology: Look-Once Optimization

LOOK-M operates during the prompt encoding phase, performing a single-pass optimization that classifies and manages KV pairs based on their importance to the model's global understanding.

Overview of the LOOK-M pipeline, illustrating the prefill phase, token classification, and the merging of evicted visual tokens into the KV cache.

Text-Prior KV Pairs Eviction

Empirical analysis reveals that MLLMs rely heavily on textual tokens to anchor their understanding of interleaved visual data. LOOK-M exploits this by prioritizing text tokens and performing selective pruning on visual KV pairs that show sparse attention patterns. This "Look-Once" pruning happens only during the prompt encoding phase, ensuring high efficiency.

KV Pairs Merging Strategies

To prevent "information holes" caused by simple deletion, LOOK-M merges evicted visual tokens into conserved ones using three novel strategies:

  • Averaged Merging: Computes the mean of evicted tokens and their nearest conserved neighbors.
  • Pivotal Merging: Fuses evicted data into "pivotal tokens" before averaging to better preserve weight proportions.
  • Weighted Merging: Uses attention-based similarity scores to dynamically allocate weights during the merge, ensuring the most relevant visual information is retained.

Key Insights: Text as the Anchor

The core innovation of LOOK-M stems from the observation of attention distributions in MLLMs. As shown in the attention weight visualizations, the model consistently pays higher attention to textual segments ($X^T$) across varying numbers of input images compared to visual segments ($X^I$).

Attention weight analysis for 3 and 5 images, highlighting the dense attention paid to text tokens ($X^T$) versus the sparser attention for visual tokens ($X^I$).

By protecting these textual "anchors," LOOK-M maintains a coherent map of the long-context input, allowing for aggressive compression of visual tokens without sacrificing reasoning capabilities.

Experimental Results

LOOK-M was evaluated using the MileBench benchmark, which covers temporal (T), semantic (S), needle-in-a-haystack (N), and image retrieval (I) tasks across multiple backbones, including LLaVA-v1.5 and InternVL-v1.5.

  • Efficiency: LOOK-M reduced KV cache memory by 80-95% and provided a 1.3x to 1.5x speedup in decoding latency.
  • Performance Retention: On the "Needle in a Haystack" (NH) task with LLaVA-1.5-13B, LOOK-M achieved a score of 11.7, nearly matching the full cache baseline of 12.0, while traditional eviction methods like H2O dropped to 3.6.
  • Robustness: The model maintained significantly higher accuracy across MileBench tasks even at extreme 99% compression ratios, demonstrating the effectiveness of merging over simple eviction.

Conclusion

LOOK-M provides a highly efficient, fine-tuning-free solution for the KV cache bottleneck in MLLMs. By shifting from simple eviction to a text-prioritized merging approach, it enables long-context multimodal inference on constrained hardware. Future work will explore integration with quantization techniques and performance on even larger-scale real-world video datasets.

Summary updated

BibTeX
@inproceedings{wan2024look,
  author = {Zhongwei Wan and Ziang Wu and Che Liu and Jinfa Huang and Zhihong Zhu and Peng Jin and Longyue Wang and Li Yuan},
  title = {{LOOK-M: Look-Once Optimization in KV Cache for Efficient Multimodal Long-Context Inference}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.235},
}
Figure