TL;DR
LVPruning introduces a simple, plug-and-play method to slash the computational cost of Multi-modal Large Language Models (MLLMs) by dynamically pruning up to 90% of vision tokens based on their relevance to the text prompt. By training only lightweight cross-attention modules and keeping the base model frozen, it reduces inference TFLOPs by 62.1% with a negligible average performance drop of just 0.45% across nine benchmarks.
What Problem Does This Paper Address?
Multi-modal Large Language Models (MLLMs) like LLaVA are highly capable but computationally expensive because they process images as large grids of visual tokens. Passing hundreds of these tokens through every single layer of a large language model creates a massive computational bottleneck during inference.
Existing efficiency fixes generally fall into two camps, both with major drawbacks:
- Early Compression (e.g., Q-Formers): These condense visual features before they ever reach the language model, which often permanently discards fine-grained details necessary for complex reasoning.
- Vision-Only Pruning: These drop tokens based purely on visual features (like patch similarity), completely ignoring what the user actually asked in the text prompt.
The authors address this gap by asking: Can we dynamically prune vision tokens throughout the model by using the language context as a guide?
Methods
The authors propose Language-Guided Vision Token Pruning (LVPruning). Instead of modifying or fine-tuning the core MLLM parameters, they insert lightweight Cross-Attention Decision Modules into specific layers of the LLM backbone (specifically after layers 1, 8, and 16 in their LLaVA-1.5 experiments).
- Language-Guided Scoring: Within each decision module, vision tokens act as queries ($Q$), while text tokens act as keys ($K$) and values ($V$). This allows the model to calculate importance scores for each visual patch based directly on its interaction with the text prompt.
- Differentiable Pruning for Training: To train the module end-to-end, a Gumbel-Softmax distribution converts these continuous scores into hard keep/drop decisions. Custom attention masks are applied to simulate token removal without breaking batch processing.
- Dynamic Inference: During inference, tokens are sorted by their importance scores, and the bottom percentage is completely discarded. Crucially, the token kept ratio ($\rho$) can be adjusted on the fly during inference to meet different hardware constraints without needing to retrain the model.
- Parameter-Efficient: The base MLLM remains completely frozen; only the tiny cross-attention decision modules are trained.
Datasets
- Training: A filtered subset of the LLaVA-1.5 Vision Instruction Tuning dataset, containing approximately 620k samples (after removing text-only entries).
- Evaluation: The model was evaluated across nine diverse multi-modal benchmarks: VQAv2, GQA, VizWiz, SciQA-IMG, TextQA, POPE, MMBench (English and Chinese), LLaVA-Wild, and MM-Vet.
Key Insights and Ideas
- Context-Dependent Vision: Visual token importance is not static—it depends entirely on the text prompt. A patch containing a dog is crucial if the prompt asks "Where is the dog?", but completely redundant if the prompt asks "What color is the sky?".
- Progressive Distillation: Tokens do not need to be dropped all at once. By hierarchically filtering tokens across deeper layers, the model retains rich visual information early on and distills it as semantic processing deepens.
- Pruning as a Denoising Filter: Surprisingly, pruning irrelevant tokens can sometimes improve performance. By filtering out distracting visual noise, the language model can focus purely on the task-relevant regions of an image.
Key Results
- Massive Compute Savings: For LLaVA-1.5-7B, LVPruning cuts inference TFLOPs by 62.1% (dropping from 8.38 down to 3.18 TFLOPs) at a token retention ratio of $\rho = 0.5$.
- Minimal Performance Impact: Across nine benchmarks, this massive reduction in compute resulted in an average performance loss of a mere 0.45%. On the VizWiz benchmark, performance actually increased by up to 1.3%.
- Outperforming Q-Formers: When compared against state-of-the-art Q-former-based models (such as BLIP2 and InstructBLIP), LVPruning achieved superior accuracy on visual question-answering tasks while maintaining highly competitive computational efficiency.
Limitations and Future Work
- Benchmark Scope: The evaluation was conducted on standard academic datasets. How well LVPruning handles highly complex, open-ended, real-world conversations or specialized domains remains to be explored.
- Risk of Over-Pruning: For tasks requiring highly detailed, localized visual information spread across the entire image, aggressive pruning might accidentally discard essential tokens.
- Future Directions: The authors suggest that incorporating human feedback into the training loop could better align the token pruning decisions with human visual attention and intent.
Summary updated