TL;DR
This paper investigates the common practice of pruning visual tokens early in Vision-Language Models (VLMs) for acceleration. They discover this method, while effective on many tasks, severely degrades performance on vision-centric tasks like localization due to a bias towards pruning tokens from the top of the image. To address this, they propose FEATHER, a novel multi-stage pruning strategy that significantly improves performance on localization tasks with comparable computational savings.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) are powerful tools that combine visual understanding with language processing. However, processing high-resolution images with many visual tokens (patches) leads to significant computational costs, especially within the attention mechanisms of large language models (LLMs). A common acceleration technique involves pruning a large percentage of these visual tokens after the initial layers of the LLM. While this approach has shown promise in maintaining performance across various tasks, this paper questions its true effectiveness, particularly for tasks requiring fine-grained visual understanding. They hypothesize that this pruning strategy might be masking underlying issues by not adequately assessing visual capabilities, especially on vision-centric tasks.
Methods
The core of the paper's contribution lies in identifying and addressing the limitations of existing visual token pruning methods, specifically the "FastV" approach.
- Problem Identification: The authors analyze the "FastV" method and discover a significant bias: it disproportionately prunes visual tokens from the top of the image. This is attributed to the "long-term decay property of RoPE" (Rotary Positional Embedding) in the LLM's attention mechanism, which inadvertently favors tokens appearing later in the flattened, raster-scan order. This bias leads to a drastic performance drop on vision-centric tasks like localization.
- FEATHER (Fast and Effective Acceleration wiTH Ensemble cRiteria): To overcome this, the authors propose FEATHER, a multi-stage pruning strategy.
- RoPE-Free Criteria ($\Phi_{-R}$): They first modify the attention-based criteria by removing RoPE. This eliminates the positional bias, allowing the attention mechanism to more effectively identify relevant tokens.
- Uniform Sampling: To ensure broad image coverage, especially in early pruning stages, they incorporate uniform sampling. This prevents the model from missing crucial information in certain image regions.
- Multi-Stage Pruning: FEATHER employs pruning in multiple stages. An initial pruning occurs after an earlier layer (K=8) using the combined RoPE-free and uniform sampling criteria. A second, more aggressive pruning happens at a later layer (K=16), where the attention-based criteria are more refined and can better discern important tokens. This "feathering" approach is likened to a race car driver gradually applying the throttle.
Datasets
The paper evaluates its approach on a comprehensive suite of benchmarks, including:
- Localization: RefCOCO, RefCOCO+, RefCOCOg, and OCID-Ref.
- Open-Ended Visual Question Answering: VizWiz, VQAv2, GQA, and TextVQA.
- Challenge Sets: VSR, TallyQA, POPE, and AI2D.
The paper does not introduce new datasets but leverages existing ones to highlight the limitations of current benchmarks in assessing fine-grained visual capabilities.
Key Insights and Ideas
- The "Top-Heavy" Pruning Bias: The most striking finding is that early visual token pruning methods, like FastV, exhibit a strong bias towards pruning tokens from the top of the image due to positional encoding artifacts (RoPE). This bias is detrimental to tasks requiring precise spatial understanding.
- Benchmark Limitations: The paper reveals that many existing vision-language benchmarks are not sufficiently challenging to expose the flaws in aggressive token pruning. Strong performance on these benchmarks can be maintained even with suboptimal pruning, suggesting they don't demand deep visual grounding.
- RoPE as a Hindrance for Visual Token Selection: While RoPE is beneficial for language modeling, its long-term decay property negatively impacts the ability of attention mechanisms to select visually relevant tokens, especially in early layers. Removing RoPE is crucial for effective visual token pruning.
- Ensemble Criteria for Robustness: Combining a refined attention-based criteria (RoPE-free) with uniform sampling provides a more robust approach, balancing the need for important token selection with broad image coverage.
- Multi-Stage Pruning is Key: Pruning in stages, with different criteria at different layers, allows for more effective acceleration. Early stages benefit from broader coverage, while later stages can leverage more refined attention to select truly critical tokens.
Key Results
- Significant Improvement on Localization: FEATHER achieves more than a 5x performance improvement on vision-centric localization benchmarks compared to the original acceleration approach (FastV).
- Comparable Computational Savings: FEATHER achieves similar or even better FLOPS reduction (e.g., 64% for FEATHER vs. 68% for FastV) while significantly boosting performance.
- Robustness Across Tasks: While localization sees the most dramatic gains, FEATHER also shows improvements on other tasks, demonstrating its general effectiveness. For instance, it offers a 7.8% improvement over FastV on non-localization tasks.
- High Compression Achieved: Remarkably, FEATHER can achieve substantial acceleration (e.g., retaining only 3.3% of tokens after layer 16) while only experiencing a modest performance decrease on localization tasks compared to the baseline.
Limitations and Future Work
- Dataset Bias: The paper highlights that current benchmarks may not adequately assess fine-grained visual capabilities, allowing models to exploit dataset biases. Future work could focus on developing more challenging datasets.
- RoPE Removal Side Effects: While removing RoPE resolves positional bias, the authors acknowledge that it might introduce unintended effects on attention weights and token selection. Future research could explore more robust methods for encoding positional information in visually conditioned language models.
- Generalizability of Criteria: The paper focuses on specific criteria. Further exploration of other attention-based and non-attention-based criteria could yield additional improvements.
- Broader VLM Architectures: The study primarily focuses on adapter-style VLMs. Investigating the impact of FEATHER on other VLM architectures could be a valuable extension.
Summary updated