TL;DR
This paper introduces METEOR, a novel framework for efficiently processing multimodal large language models (MLLMs) by progressively pruning redundant visual tokens across encoding, fusion, and decoding stages. METEOR significantly reduces computational cost and improves inference speed without sacrificing accuracy, making advanced MLLMs more accessible.
What Problem Does This Paper Address?
Modern MLLMs often leverage multiple vision encoders to capture diverse visual information, leading to superior performance on complex tasks. However, this comes at a steep computational cost due to the sheer number of visual tokens processed. Existing methods for reducing these tokens often overlook the collaborative nature of multi-encoder fusion or fail to adapt to specific task requirements, leading to inefficiencies and performance drops, especially on tasks like OCR. This paper aims to bridge this gap by proposing a multi-stage pruning strategy that intelligently removes redundant visual information across the entire MLLM pipeline.
Methods
METEOR tackles visual token redundancy in three key stages:
- Stage 1: Multi-vision Encoding (Independent Pruning within Encoders):
- Redundant Token Identification: For shallow encoder layers, token significance is measured by similarity to the average token. For deeper layers, attention values are used. This dual approach leverages the strengths of each method for different feature levels.
- Sparsity Ratio Allocation: To balance pruning across different encoders, METEOR uses the rank of feature maps as a proxy for information richness. Encoders with lower feature map ranks (indicating less unique information) are pruned more aggressively. This rank-based allocation is shown to be stable and reliable.
- Stage 2: Multi-vision Fusion (Cooperative Pruning across Encoders):
- Post-projection Fusion: Unlike previous methods that fuse tokens after a single projection, METEOR uses dedicated projectors for each encoder to adapt tokens independently before fusion.
- Mutual Redundancy Reduction: A cooperative pruning strategy is employed to identify and remove tokens that have similar representations across different encoders, further reducing redundancy.
- Stage 3: LLM Decoding (Text-aware Instance-adaptive Pruning):
- Instance-adaptive Token Retention: To address task-specific needs (e.g., OCR requiring more detail), METEOR dynamically adjusts the number of retained visual tokens.
- Top-k Attention Head Filtering: Instead of averaging attention values across all heads, METEOR identifies the most significant attention heads (those with higher Visual Attention Values - VAV) to more accurately pinpoint relevant visual tokens. The VAV of these top heads correlates with instance complexity, guiding the adaptive pruning.
Datasets
The paper evaluates METEOR on a comprehensive set of 11 multimodal benchmarks: SEEDBench, POPE, TextVQA, ChartQA, DocVQA, GQA, ScienceQA, AI2D, OCRBench, OKVQA, and MMBench. The training data used includes the LLaVA-1.5 dataset (558k image-text pairs) for pre-training and a larger dataset (1M image-text pairs) for supervised fine-tuning, following the EAGLE data recipe.
Key Insights and Ideas
- Rank as a Measure of Information Richness: The paper demonstrates that the rank of feature maps is a stable and reliable indicator of an encoder's information richness, providing a principled way to allocate pruning ratios across multiple encoders.
- Cooperative Pruning Enhances Diversity: Reducing redundancy across encoders during fusion, not just within them, leads to more diverse visual token sequences and better efficiency.
- Attention Heads are Not Equal: Not all attention heads in LLMs contribute equally to grounding text to visual tokens. Identifying and leveraging the most significant heads (via VAV) is crucial for accurate and adaptive pruning.
- Task-Specific Pruning is Key: A fixed pruning ratio is suboptimal. METEOR's instance-adaptive approach, guided by text prompts and attention values, significantly improves performance on tasks like OCR that require more detailed visual information.
Key Results
METEOR achieves remarkable efficiency gains:
- 76% reduction in visual tokens and 49% reduction in TFLOPS compared to EAGLE, with only a 0.3% average performance drop.
- 46% increase in FPS (frames per second).
- Outperforms other state-of-the-art token pruning methods by 4.3-5.7% on average, and notably 8.8-12.3% on OCR tasks.
- Achieves superior performance compared to Cambrian-1 with 44% fewer visual tokens on OCR tasks.
- Demonstrates strong performance even with significantly fewer tokens (e.g., 126 tokens) compared to other MLLMs.
Limitations and Future Work
The paper acknowledges that while METEOR significantly reduces computational cost, further exploration into optimizing the trade-off between accuracy and latency for specific applications remains an area for future work. The authors also suggest that the proposed instance-adaptive pruning strategy could be further refined for even more nuanced task adaptation.
Summary updated