TL;DR
LLaVA-PruMerge introduces an adaptive token reduction strategy that slashes the number of visual tokens in Large Multimodal Models (LMMs) by up to 14x with minimal performance loss. By identifying "anchor" tokens through outlier detection in vision encoder attention and merging redundant tokens via similarity clustering, it significantly reduces the computational bottleneck of the LLM's quadratic attention mechanism.
What Problem Does This Paper Address?
Large Multimodal Models (LMMs), like LLaVA, function by feeding visual features from a vision encoder (like CLIP) into a Large Language Model (LLM). However, these models typically treat every image patch as an equally important token. For a standard 336x336 image, this generates 576 tokens; for video, this number can balloon to over 2,000.
Because the Transformer architecture at the heart of the LLM has a computational cost that grows quadratically with the number of input tokens, these visual "prefixes" create a massive efficiency bottleneck. While the vision encoder itself is relatively small (e.g., 0.3B parameters), the LLM (7B to 70B+ parameters) spends significant resources processing these redundant visual tokens. The authors ask: Can we drastically reduce the visual token count without losing the "reasoning" capabilities of the model?
Methods
The authors propose PruMerge, a three-step "plug-and-play" module inserted between the vision encoder and the LLM.
- Adaptive Important Token Selection (AITS): Instead of uniform sampling, PruMerge looks at the attention scores between the vision encoder's
[CLS]token and all spatial tokens. They observed that this attention is highly sparse—most tokens have near-zero scores. Using the Interquartile Range (IQR) method, they identify "outlier" tokens that exhibit significantly higher attention, marking them as essential "anchors." - Token Supplement (TS) via Similar Key Clustering: Pruning alone can lose information. PruMerge takes the "pruned" tokens and clusters them around the selected "anchor" tokens based on their key similarity (using k-nearest neighbors).
- Weighted Merging: The anchor tokens are updated by taking a weighted average of all tokens in their cluster. This ensures that the information from the "redundant" patches is compressed into the retained tokens rather than simply discarded.
The authors also introduced PruMerge+, which adds a layer of spatially uniform sampling to the AITS process. This ensures that even in very simple images (where few outliers exist), the model maintains a baseline global view of the scene.
Datasets
The model was evaluated across a wide range of standard LMM benchmarks:
- Image Reasoning: VQAv2, ScienceQA (SQA), TextVQA, POPE (hallucination bench), MME, and MMBench.
- Video Reasoning: MSVD-QA, MSRVT-QA, and ActivityNet-QA (applied to Video-LLaVA).
Key Insights and Ideas
- Visual Redundancy is Massive: The paper demonstrates that LMMs can maintain comparable performance using as little as 5.5% to 6.9% of the original visual tokens.
- Adaptive > Uniform: Fixed spatial sampling (e.g., taking every 4th patch) often misses fine-grained details like text. PruMerge adaptively allocates more tokens to information-dense regions. As shown in the visualizations, more tokens are sampled for complex areas like license plates or text-heavy signs, while fewer are used for empty skies.
- LLM Efficiency is the Real Target: Unlike prior "token pruning" work that focused on speeding up the vision encoder (ViT), PruMerge focuses on the LLM. Since the LLM is the primary source of inference latency, reducing the input sequence length here yields much higher efficiency gains.
- Cross-Modality Generalization: Remarkably, PruMerge can be applied to Video-LLMs during inference without any additional training, successfully reducing 2,048 tokens down to 256 while actually improving performance on some video benchmarks.
Key Results
- Token Reduction: For LLaVA-1.5, PruMerge reduced the visual token count from 576 to an average of ~40 (a 14.4x reduction).
- Speed and Memory: On a Tesla V100, PruMerge reduced the LLM prefill time for a 7B model from 88.6ms to 15.3ms and slashed activation memory from 4.6GB to just 0.28GB.
- Performance: LLaVA-PruMerge+ achieved 76.8% on VQAv2 and 84.0 on POPE, remaining highly competitive with the full-token LLaVA-1.5 (78.5% and 85.9 respectively) while outperforming other efficient models like BLIP-2 and InstructBLIP.
- Comparison: PruMerge+ significantly outperformed other state-of-the-art token reduction methods like ToMe and ATS when applied to the same LMM architecture.
Limitations and Future Work
- Training vs. Inference: While PruMerge can be used "training-free," the best results still require a brief fine-tuning phase (using LoRA) to help the LLM adapt to the new, condensed token structure.
- Extreme Compression: At very high compression ratios (e.g., below 32 tokens), there is still a noticeable performance gap in tasks requiring extreme detail, such as complex OCR.
- Future Directions: The authors suggest that exploring how this redundancy changes across different LLM backbones (e.g., moving from 7B to 70B) could yield further insights into how multimodal information is actually processed.
Summary updated