TL;DR
This paper introduces ShortV, a training-free method to significantly improve the efficiency of Multimodal Large Language Models (MLLMs) by freezing visual tokens in layers that contribute minimally to the model's output. By introducing a novel "Layer Contribution" (LC) metric, they demonstrate that MLLMs can freeze visual tokens in up to 60% of their layers with negligible performance degradation, achieving substantial computational savings.
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) are powerful tools for understanding the world by combining visual and textual information. However, their effectiveness comes at a high computational cost, primarily due to the massive size of the underlying Large Language Models (LLMs) and the large number of visual tokens used to represent images. While previous work has explored pruning individual visual tokens (like FastV), this paper identifies a more fundamental issue: layer-wise redundancy. Specifically, they investigate whether certain layers within the MLLM backbone are less critical for processing visual information, and if so, whether freezing visual tokens in these "ineffective" layers can lead to significant efficiency gains without sacrificing performance.
Methods
The core of ShortV lies in its novel Layer Contribution (LC) metric. This metric quantifies how much a specific layer's transformations on a given type of token (visual or text) contribute to the overall model output. To calculate LC for a layer and a token type, the authors create a "sparse layer" where the hidden states of those specific tokens are frozen (kept unchanged). They then compute the Kullback-Leibler (KL) divergence between the output logits of the original model and the model with the frozen tokens. A lower LC score indicates that the layer's transformations on those tokens are less important and thus "ineffective."
Based on the LC scores, ShortV identifies the layers with the lowest LC for visual tokens. These identified "ineffective" layers are then replaced with ShortV layers. In these ShortV layers, visual tokens are frozen, and computations related to updating them are eliminated. This means visual tokens do not attend to other tokens, and they are not passed through the feed-forward network (FFN) of that layer. Crucially, ShortV is a training-free method, meaning it doesn't require any parameter updates or retraining of the MLLM.
Datasets
The paper evaluates ShortV on several popular vision-language benchmarks, including:
- MME
- MMBench
- MMMU (val)
- MMStar
- SEED-Bench
- GQA
- Flickr30K
- VQAv2
The authors also mention using a "tiny dataset" for calculating LC scores, which contains a small number of samples from vision-language tasks.
Key Insights and Ideas
- Layer-wise redundancy in MLLMs: Unlike text-only LLMs where redundancy is often found in middle-to-deeper layers, MLLMs exhibit a different pattern for visual tokens, with initial and deep layers showing higher redundancy.
- Visual tokens are less critical in many layers: The LC metric reveals a significant imbalance: MLLM layers are generally more ineffective for visual tokens than for text tokens. This means freezing visual tokens in these layers has minimal impact on the model's output.
- ShortV is training-free and orthogonal: The method doesn't require retraining, making it easy to apply to existing MLLMs. It's also compatible with token pruning methods like FastV, allowing for combined efficiency gains.
- Modality gap influences redundancy: The authors hypothesize that the "modality gap" (differences in how visual and text information are represented and processed) contributes to the distinct redundancy patterns observed for visual tokens.
Key Results
- Significant Efficiency Gains: ShortV can freeze visual tokens in approximately 60% of MLLM layers without significant performance degradation.
- Computational Reduction: For LLaVA-NeXT-13B, ShortV achieves a 50% reduction in FLOPs while maintaining superior performance.
- Performance Retention: Even when freezing visual tokens in up to 80% of layers, models retain over 90% of their performance.
- Speedup: ShortV achieves a greater speedup (1.39×) compared to FastV (1.31×) on LLaVA-1.5-13B, measured by first token latency.
- Compatibility: Combining ShortV with FastV further enhances MLLM efficiency, demonstrating their orthogonal nature.
Limitations and Future Work
- LC Metric Limitations: The paper discusses why perplexity and cosine similarity are less suitable metrics for MLLM layer redundancy compared to their proposed LC metric. Cosine similarity, in particular, can overestimate shallow layer redundancy and underestimate deep layer redundancy.
- Future Work: The authors suggest that their findings on layer redundancy can provide insights into how MLLMs process visual and text tokens in different layers. The compatibility with token pruning methods also opens avenues for further combined efficiency improvements.
Summary updated