Balanced Token Pruning (BTP) is a novel, plug-and-play method designed to slash the computational cost of Large Vision-Language Models (LVLMs) by up to 78% while retaining nearly 97% of their original performance. By intelligently balancing "diversity-based" pruning in early layers with "attention-based" pruning in deeper layers, BTP avoids the pitfalls of local optimization that plague current state-of-the-art compression techniques.
The Computational Bottleneck in LVLMs
Large Vision-Language Models, such as LLaVA and Qwen-VL, have demonstrated remarkable capabilities in multi-modal tasks. However, they are notoriously "token-heavy." A single high-resolution image can be decomposed into thousands of visual tokens. Processing these tokens creates a massive computational bottleneck, particularly for edge devices with limited memory and processing power.
To mitigate this, existing solutions typically attempt to prune tokens using one of two "local" strategies:
- Attention-based: Retaining tokens that the text prompt is currently focusing on.
- Diversity-based: Retaining a diverse set of tokens to maintain a holistic representation of the image.
The authors identify a fundamental gap in these approaches: they are inherently short-sighted. Attention-based methods preserve the current layer's output well but accumulate errors that degrade performance in deeper layers. Conversely, diversity-based methods maintain the "big picture" for later stages but often fail to preserve the specific, fine-grained details needed for the current layer's output.
As visual information moves through the network, the "importance" of a token is not static. A token that appears redundant in an early layer (e.g., Layer 4) might be crucial for generating the correct answer in a later layer (e.g., Layer 18). Purely attention-based pruning optimizes for the immediate next layer but ignores the "information decay" it causes further down the pipeline.
The Balanced Token Pruning (BTP) Solution
To address the challenge of finding a "global" pruning strategy, the authors propose Balanced Token Pruning (BTP). BTP treats pruning as a dynamic, multi-stage process that evolves as data moves through the transformer blocks.
BTP relies on several core mechanisms to achieve this balance:
- The Local-Global Objective: BTP utilizes a weighted objective function. In shallow layers, it prioritizes diversity to ensure subsequent layers have a rich "global" representation to work with. In deep layers, it shifts priority to attention, focusing on the specific "local" tokens required to generate the final textual response.
- Automated Layer Selection: Instead of manually picking where to prune, BTP uses a small calibration set (just 64 images) to identify "semantic shifts"—layers where token representations change significantly. Pruning is strategically placed around these shifts.
- Attention Rebalancing: Positional encodings often bias attention toward the end of a sequence. BTP includes a rebalancing step to ensure informative tokens from earlier positions aren't unfairly discarded.
- Spatial Initialization: Calculating diversity is traditionally an $O(n^2)$ problem. To solve this high computational cost, BTP uses the 2D spatial grid of the image to initialize token selection, making the process much faster and more efficient for high-resolution inputs.
Key Results and Performance
The researchers evaluated BTP across a wide array of standard LVLM benchmarks, including GQA, ScienceQA, MME, MMBench, MM-Vet, and POPE. BTP consistently outperformed existing methods like FastV, DivPrune, and PyramidDrop across different model architectures (LLaVA-1.5, LLaVA-1.6, and Qwen2.5-VL).
- High Compression: BTP achieved a 78% compression rate, effectively retaining only ~22% of the original image tokens.
- Performance Retention: Despite the massive reduction in tokens, the method preserved 96.7% to 98% of the original models' accuracy on average.
- Real-World Speedup: On LLaVA-1.5-7B, BTP significantly reduced inference latency while maintaining higher accuracy than competitors. For instance, it achieved a 59.0 score on GQA compared to FastV’s 49.6 at the exact same token count.
- Memory Savings: The approach drastically reduced KV cache memory usage (up to a 74.7% reduction in some configurations), which is critical for deploying large models on hardware with limited VRAM.
Future Directions
While BTP demonstrates impressive theoretical and simulated results, the authors note several avenues for future work. They plan to investigate the actual deployment of BTP on physical edge devices and mobile hardware. Additionally, they suggest exploring how balanced pruning could assist in multi-agent systems where compressed visual information must be shared. Finally, future iterations might explore dynamically adjusting the compression ratio based on the complexity of the image or the difficulty of the user's prompt, rather than relying on predefined ratios.
Summary updated