Pruning All-Rounder: Rethinking and Improving Inference Efficiency for Large Vision Language Models

Wei Suo, Ji Ma, Mengyang Sun, Lin Yuanbo Wu, Peng Wang, Yanning Zhang

TL;DR

Large Vision-Language Models (LVLMs) are computationally expensive, limiting their real-world use. This paper introduces "Pruning All-Rounder" (PAR), a novel framework that efficiently reduces LVLM costs by jointly pruning redundant visual tokens and model layers. PAR achieves this through a self-supervised meta-router, offering a flexible and convenient way to accelerate deployed models without retraining.

What Problem Does This Paper Address?

Large Vision-Language Models (LVLMs) have shown remarkable capabilities in understanding and generating content that combines visual and textual information. However, their massive size, often involving billions of parameters and lengthy input sequences, leads to prohibitively high computational costs. This makes them impractical for many real-world applications, especially on resource-constrained devices or in scenarios requiring low latency. Existing approaches to reduce these costs typically focus on either pruning model parameters (requiring extensive retraining) or reducing the number of input tokens (which can struggle to identify the most relevant information). This paper addresses the need for a more efficient, flexible, and user-friendly method to accelerate LVLMs that can be applied to already deployed models.

Methods

The core of the proposed solution is the Pruning All-Rounder (PAR) framework. PAR introduces a meta-router, implemented as a lightweight transformer block, which adaptively orchestrates the pruning process. Unlike previous methods that treat parameter and token pruning independently, PAR jointly optimizes both.

Key methodological components include:

  • Joint Token and Layer Pruning: PAR simultaneously identifies and removes redundant visual tokens from the input and skips unnecessary layers within the LVLM.
  • Meta-Router: This learnable module takes the image, text query, and a learnable layer controller as input to decide which tokens and layers to prune. It's designed to be lightweight (~40M parameters) to avoid adding significant overhead.
  • Self-Supervised Optimization (DPO): To overcome the challenge of optimizing the meta-router without explicit labels, PAR employs a preference optimization technique (Direct Preference Optimization - DPO). It constructs positive and negative samples by comparing the outputs of pruned models with the original model's outputs, using KL-divergence to measure reasoning correctness. This allows the meta-router to learn optimal pruning strategies without human annotation.
  • Noise Perturbation for Token Selection: To improve upon rule-based token selection (like attention ranking), PAR introduces Gaussian noise to the attention scores. This expands the search space and helps discover better token combinations that might be missed by deterministic methods.
  • Layer Skipping Insight: The paper builds on prior work by demonstrating that deep layers in LVLMs often exhibit redundancy and can be skipped without significant performance degradation, offering a parameter compression strategy that avoids retraining.

Datasets

The paper utilizes several standard multimodal benchmarks for evaluation:

  • AOKVQA
  • ScienceQA
  • MME
  • POPE
  • MMBench
  • MMBench-CN
  • LLaVA-Bench-in-the-Wild
  • SEED-Bench-Image

For training the meta-router, the authors use a subset of the LLaVA-80k dataset, emphasizing that only a small fraction (less than 1%) and a limited number of samples (5,000) are needed for effective self-supervised optimization.

Key Insights and Ideas

  • Interdependence of Token and Layer Redundancy: A crucial insight is that token dropping and layer skipping are not independent. The effectiveness of pruning one can be influenced by the pruning of the other, highlighting the necessity of a joint optimization approach.
  • Layer Redundancy in LVLMs: The study confirms and extends the finding of layer redundancy from NLP to LVLMs, showing that deep layers can often be skipped without substantial performance loss, offering a simple yet effective compression strategy.
  • Limitations of Rule-Based Token Pruning: Attention-based token selection, while better than random dropping, is shown to be insufficient for consistently identifying the most relevant tokens. Introducing noise can significantly improve performance by exploring a wider range of token combinations.
  • Convenience for Deployed Models: PAR's self-supervised, no-retraining approach makes it highly practical for accelerating models that are already in production, a significant advantage over methods requiring fine-tuning.
  • Model Agnosticism and Flexibility: The framework is designed to be plug-and-play, working with different LVLM architectures. Furthermore, it offers selectable pruning layouts, allowing users to tailor the acceleration to specific resource constraints.

Key Results

PAR demonstrates strong performance across multiple benchmarks, outperforming existing state-of-the-art methods.

  • Performance Improvement: On LLaVA-v1.5-7B, PAR achieved a 3.3% improvement over FastV [7] while offering a 6.8% greater compression ratio.
  • Efficiency Gains: The method significantly reduces TFLOPs. For instance, by retaining only 128 tokens and skipping 8 layers, PAR achieved a 45.9% FLOPs ratio on LLaVA-1.5-7B, still maintaining reasonable reasoning ability.
  • Minimal Training Overhead: The self-supervised training of the meta-router requires minimal computational resources, with experiments reporting approximately 10 minutes of training time on a single NVIDIA 3090 GPU.
  • Transferability: PAR was successfully applied to both LLaVA-v1.5-7B and Qwen-VL-Chat-9B, demonstrating its generalizability across different LVLM architectures.

Limitations and Future Work

  • Limitations: The paper acknowledges that while PAR offers a significant improvement, the "rule-based" strategies (like attention ranking) still provide an important reference. The introduction of noise is a heuristic to explore better combinations, and more sophisticated exploration strategies could be investigated. The paper also notes that the meta-router is lightweight, but its complexity could be further optimized.
  • Future Work: The authors suggest that their work serves as a strong baseline and encourages further exploration into more effective acceleration strategies. They highlight the potential for PAR to inspire the community to develop more advanced methods for jointly compressing parameters and inputs in LVLMs. The flexibility of PAR also opens avenues for exploring various combinations of token and layer pruning for different scenarios.

Summary updated

BibTeX
@inproceedings{suo2025pruning,
  author = {Wei Suo and Ji Ma and Mengyang Sun and Lin Yuanbo Wu and Peng Wang and Yanning Zhang},
  title = {{Pruning All-Rounder: Rethinking and Improving Inference Efficiency for Large Vision Language Models}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure