Abstract
Prevailing Multimodal Large Language Models (MLLMs) encode input images as vision tokens, which are then processed by a language backbone. However, the quadratic growth of vision tokens with image resolution imposes significant computational burdens. This paper addresses MLLM efficiency through two scenarios: (I) reducing cost without performance degradation and (II) maximizing performance under fixed budgets. We identify that vision token importance rankings remain highly consistent across layers. Leveraging this, we introduce G-Search, a greedy search algorithm for Scenario I, and P-Sigmoid, a parametric sigmoid function optimized via Bayesian Optimization for Scenario II. Our approach achieves up to 2.3x speedup with negligible performance loss across models like LLaVA and InternVL2.
Introduction
The integration of high-resolution visual inputs into Large Language Models has significantly improved their reasoning capabilities. However, this comes at a steep cost: vision tokens scale quadratically with resolution, leading to slow inference and high memory consumption. Existing token reduction methods often rely on handcrafted rules or prompt-agnostic pruning, which may discard task-relevant information. There is a critical need for an automated, prompt-aware strategy that can adapt to different model architectures without requiring expensive retraining.
Methodology: G-Search and P-Sigmoid
We propose a training-free framework that dynamically reduces vision tokens during inference based on their importance, as determined by attention scores.
G-Search (Greedy Search)
For Scenario I, we aim to find the most aggressive pruning strategy that maintains baseline performance. G-Search sequentially optimizes the keeping rate $r_i$ for each layer from shallow to deep. By using Bayesian Optimization on a small calibration set, it identifies the minimum number of tokens required at each stage to preserve accuracy.
P-Sigmoid (Parametric Sigmoid)
For Scenario II, where a specific token budget is given, we observe that optimal reduction strategies typically follow an S-shaped curve—retaining more information in early layers and distilling it in deeper ones. We model this keeping rate using a parametric sigmoid function, where the curve's shape is optimized to maximize performance within the budget.
Key Insights: Token Stability and the S-Curve
Our methods are grounded in two primary empirical observations:
- Rank Stability: The relative importance of vision tokens (based on attention scores) is remarkably consistent across layers, particularly after the first layer. This implies that early-layer rankings are reliable indicators for pruning in subsequent layers.
- The Funnel Effect: Optimal strategies tend to keep a high density of tokens in the initial layers to capture complex features, followed by a sharp reduction in deeper layers where the model focuses on high-level reasoning.
Experimental Results
We evaluated our approach on 12 benchmarks using LLaVA-1.5 and InternVL2 models.
- Efficiency: G-Search achieved a 2.3x speedup in pre-filling for LLaVA-1.5-7B and reduced TFLOPs by up to 49.2% for InternVL2.
- Effectiveness: In cost-reduction tests, the average accuracy drop was only 0.2%. Under strict budgets, P-Sigmoid outperformed the state-of-the-art FastV by +7.69% on InternVL2-8B.
- Generalization: Unlike manual rules, our search-based approach consistently found optimal strategies across different model sizes and architectures.
Conclusion
By automating the search for optimal vision token reduction, we provide a robust, training-free solution for accelerating MLLMs. Our findings highlight the stability of token importance and the effectiveness of S-curve pruning strategies, paving the way for more efficient multimodal AI.
Summary updated