Abstract
Multi-modal Large Language Models (MLLMs) have demonstrated remarkable capabilities in vision-language tasks but suffer from high computational costs due to the processing of extensive vision tokens. We introduce LVPruning, a lightweight, "plug-and-play" method that dynamically prunes irrelevant visual tokens guided by language prompts. By utilizing a cross-attention decision module, LVPruning reduces inference TFLOPs by up to 62.1% while maintaining performance within 0.45% of the original model across nine major benchmarks.
Introduction
The computational bottleneck in MLLMs like LLaVA often stems from the large number of vision tokens—individual image patches—that the model must process. Traditional approaches frequently treat every part of an image as equally significant, leading to substantial overhead. However, in many tasks, large portions of an image are irrelevant to the specific user query. LVPruning addresses this by identifying and discarding these "dead weight" tokens dynamically, based on the context of the language input, without requiring a full model retrain.
Methods: Language-Guided Vision Token Pruning
The core of LVPruning is the Cross-Attention Decision Module, which determines the importance of vision tokens relative to the provided text.
The methodology consists of four key components:
- Cross-Attention Mechanism: Vision tokens serve as "queries" that interact with language tokens ("keys" and "values"). High interaction scores indicate that a vision token is relevant to the query.
- Progressive Pruning: Pruning modules are strategically inserted at various stages (e.g., layers 1, 8, and 16) of the LLM, allowing for the gradual filtering of redundant information as data flows deeper into the network.
- Frozen Backbone: To ensure ease of integration, the original MLLM parameters remain frozen. Only the lightweight pruning modules are trained.
- Differentiable Training: The system employs the "Gumbel-Softmax" trick to make discrete pruning decisions differentiable, enabling the model to learn optimal token selection during training.
Results and Evaluation
LVPruning was evaluated on a robust suite of nine benchmarks, including VQAv2, GQA, and MMBench, after training on a subset of the LLaVA-1.5 Vision Instruction Tuning dataset.
Key findings include:
- Efficiency Gains: The approach reduced inference TFLOPs by 62.1%, dropping from 8.38 to 3.18 TFLOPs.
- Performance Retention: The average performance loss across all benchmarks was a mere 0.45%. Notably, performance on the VizWiz benchmark improved by 1.3 points, suggesting that pruning can effectively remove distracting visual noise.
- Token Redundancy: The study found that up to 90% of vision tokens could be pruned by the middle layers without compromising reasoning capabilities, highlighting the massive redundancy in current MLLM visual processing.
Conclusion
LVPruning demonstrates that language is an exceptionally effective filter for visual information. By mimicking human selective attention, the model can drastically reduce computational requirements while preserving accuracy. Future work will explore the behavior of pruning in unconstrained real-world scenarios and the potential for refining importance scores through human feedback.
Summary updated