Multimodal Large Language Models (MLLMs) like GPT-4o and LLaVA are incredibly powerful, but their computational expense remains a significant hurdle. A major bottleneck in these architectures is the sheer volume of "visual tokens" generated from images and videos. Processing thousands of these tokens through dozens of Transformer layers leads to high latency and massive KV-cache memory requirements.
Existing solutions to this problem usually fall into two camps: task-agnostic methods that merge similar-looking pixels regardless of the user's prompt, or intermediate pruning methods that keep all tokens in the "shallow" layers of the LLM and only discard them halfway through the model.
This paper challenges the common assumption that all visual tokens are indispensable in the early layers. The authors ask a critical question: Can we identify and discard irrelevant visual tokens before they even enter the LLM?
A Two-Step Framework for Input-Stage Compression
To achieve model-agnostic visual token compression at the very first stage of an MLLM, the researchers propose a novel two-step framework:
- Explainability-Based Ground Truth: The authors use Generic Attention Explainability (GAE) to determine which visual tokens actually contribute to a model's final answer. By tracing the gradient-weighted attention flow from the output back to the input, they create a "relevance map" that highlights the most important regions for a specific instruction.
- The Lightweight Compressor: Because calculating GAE requires a full forward and backward pass, it is too slow for real-time inference. Instead, the authors train a tiny, 5-layer convolutional network (CNN) to predict these relevance maps.
- The Input: The CNN takes the attention map from only the first layer of the LLM.
- The Goal: It learns to map these initial attention patterns to the complex global relevance scores derived from GAE.
- The Result: During inference, the LLM runs its first layer, the tiny CNN quickly identifies the irrelevant tokens, and the model discards them before proceeding to the remaining layers.
Key Insights and Task Sensitivity
The most surprising finding of this research is that pruning at the start is entirely feasible. If tokens are selected based on task relevance, the "shallow" layers do not need the full visual context to maintain high performance. The attention map of the very first LLM layer already contains structural information that correlates strongly with a token's final importance.
Furthermore, because the compressor is a separate, lightweight module, it features a model-agnostic design that doesn't require modifying the underlying LLM's architecture. It can be easily plugged into various models with minimal retraining.
Crucially, this approach is highly task-sensitive. Unlike standard spatial pooling—which might blur out a tiny but crucial object—this method selectively preserves tokens that are semantically related to the user's prompt.
Impressive Results Across Benchmarks
The authors validated their approach across an impressive suite of 13 image and video benchmarks using three state-of-the-art models: Qwen2-VL, LLaVA-OneVision, and VILA1.5.
- High Compression, Low Loss: On video tasks, the method successfully pruned 75% of tokens while retaining over 97% of the original performance. For images, 50% of tokens could be removed while maintaining 96% performance.
- Inference Speedup: For Qwen2-VL, the approach achieved a 1.60x speedup in prefilling time.
- Memory Efficiency: The KV-cache footprint was reduced significantly (e.g., from 71.2MB down to 17.8MB in one test case), which is a critical improvement for deploying these models on edge devices.
- Outperforming Baselines: The proposed method consistently beat other state-of-the-art compression techniques, such as FastV and PyramidDrop, in both accuracy and computational efficiency (FLOPs).
Limitations and Future Work
While the compressor itself is lightweight to train, generating the "ground truth" relevance maps using GAE is resource-intensive because it requires backward passes through the entire MLLM. Additionally, scaling the compressor training to handle extremely high-resolution images or very long video sequences remains a challenge.
Currently, this functions as a post-hoc compression method. However, the authors suggest that integrating these relevance scores during the initial training of MLLMs could pave the way for inherently more efficient multimodal architectures in the future.
Summary updated