TL;DR
Multimodal Large Language Models (MLLMs) processing videos or multiple images suffer from "Attention Myopia," a positional bias that causes them to neglect later images and mistakenly prune their data during inference. This paper introduces a training-free, plug-and-play framework that dynamically balances attention scores and compresses discarded tokens into a "Recycling Bin." This approach slashes KV cache memory usage by 80% and speeds up inference by 1.5× with negligible impact on accuracy.
What Problem Does This Paper Address?
When Multimodal Large Language Models (MLLMs) handle long-context visual data—such as video frames or multi-image inputs—they generate massive Key-Value (KV) caches. This creates a severe memory bottleneck and drastically slows down real-time inference.
While token pruning is a standard solution to compress KV caches, existing methods fail in multi-image scenarios due to a phenomenon the authors discover called "Attention Myopia." Because of the causal attention mechanism inherent to LLMs, earlier visual tokens naturally accumulate more attention. This creates a severe positional bias where later images receive significantly lower attention scores. As a result, standard pruning algorithms aggressively and mistakenly erase crucial information from the later parts of a sequence, severely degrading the model's reasoning accuracy.
Methods
The authors propose a training-free, plug-and-play framework consisting of two core components:
- Dynamic Attention Subsidy (DAS): To fix Attention Myopia, DAS dynamically adjusts attention scores across images. It applies a mathematically derived compensation factor to "subsidize" disadvantaged later images based on their original attention distribution. Additionally, it incorporates text-guided visual attention weights to ensure that tokens highly relevant to the user's prompt are prioritized, regardless of where they appear in the sequence.
- Recycling Bin (RB): Instead of completely deleting pruned tokens (which risks losing secondary but useful context), the framework routes them to a "Recycling Bin." Here, secondary tokens are clustered and compressed into a minimal set of summary tokens using cosine similarity matching. This effectively decouples primary and secondary visual components without bloating memory.
Datasets
The method was evaluated using MileBench, a comprehensive benchmark specifically designed for testing MLLMs in long-context multi-image scenarios. It includes sub-tasks covering:
- Temporal multi-image reasoning (T1–T4)
- Semantic multi-image reasoning (S1–S5)
- Needle In A Haystack (NH)
- Image Retrieval (IR)
The authors also analyzed attention bias using datasets like Nuscenes, GPR1200, and MMCoQA.
Key Insights and Ideas
- The Causal Trap: Attention Myopia isn't a flaw in the visual encoder; it's a byproduct of the causal autoregressive nature of the underlying LLM, where earlier tokens inherently have more opportunities to be attended to.
- Total Erasure: Without intervention, standard pruning methods can completely wipe out the visual content of final images in deeper layers of the network, rendering the model blind to the end of a video sequence.
- Decoupling over Destruction: Unlike previous methods that merge discarded tokens directly into critical tokens (which distorts important features), separating them into an isolated, ultra-compact recycling bin preserves background context safely.
Key Results
- 80% Memory Reduction: The framework retains only 20% of the original visual KV cache footprint.
- 1.5× Speedup: It achieves a ~1.5× inference speedup during the decoding phase on an NVIDIA RTX 3090 GPU.
- Maintained Accuracy: Across more than 20 diverse datasets on models like LLaVA-1.5, InternVL, and Yi-VL, the method maintained consistent performance, occasionally outperforming the full-cache baseline on complex tasks like Needle In A Haystack.
Limitations and Future Work
While DAS effectively mitigates positional bias across layers, the optimal hyperparameters ($\gamma$ for compensation and $\alpha$ for text guidance) currently require manual tuning based on empirical observation. The authors suggest that future work could explore completely adaptive parameter estimation or extending this spatial-temporal token reclamation strategy to other heavy multimodal inputs, such as audio-visual streams.
Summary updated