Abstract
Large Vision-Language Models (LVLMs) such as BLIP-2 and LLaVA demonstrate remarkable capabilities but impose significant computational burdens, making deployment on consumer hardware challenging. Pruning is a critical technique for reducing parameter counts, yet traditional layer-wise methods often rely on uniform sparsity ratios. This approach is suboptimal for multimodal architectures where vision and language components exhibit distinct sensitivities. We introduce ECoFLaP (Efficient Coarse-to-Fine Layer-Wise Pruning), a framework that determines adaptive sparsity ratios via a memory-efficient zeroth-order gradient approximation. ECoFLaP achieves state-of-the-art performance at high compression rates while requiring up to 40% less GPU memory than standard gradient-based methods.
Introduction
The deployment of billion-parameter LVLMs is hindered by their massive memory footprints. While pruning offers a solution, existing methods face a trade-off between computational feasibility and pruning optimality. Global pruning, which considers the entire model simultaneously to determine weight importance, is often intractable due to the need for massive Hessian matrix calculations. Conversely, layer-wise pruning is computationally efficient but typically employs a fixed sparsity ratio across all layers. This "one-size-fits-all" approach leads to significant performance degradation in multimodal settings where different modules exhibit varying importance levels.
The Importance of Adaptive Sparsity
Analysis of LVLMs reveals that weight importance is highly non-uniform across the architecture. As illustrated in Figure 4, weight magnitudes, gradients, and local importance scores vary significantly between the vision encoder and the language backbone. Applying a uniform 50% pruning rate across such diverse distributions can lead to "layer collapse" or severe performance drops. ECoFLaP addresses this by treating the vision and language components as distinct entities with unique compression needs.
Methodology: Coarse-to-Fine Pruning
ECoFLaP addresses the limitations of fixed-ratio pruning through a two-stage coarse-to-fine approach:
1. Coarse Stage (Global Importance)
Instead of uniform pruning, ECoFLaP calculates an adaptive sparsity ratio for every layer. To maintain memory efficiency, it utilizes a zeroth-order (ZO) gradient approximation. By perturbing weights with a small amount of Gaussian noise and measuring the resulting change in the model's loss, the framework estimates gradients without the massive overhead of full backpropagation. This "forward-forward" mechanism allows for global-informed pruning on a single 40GB A100 GPU that would otherwise require significantly more VRAM.
2. Fine Stage (Local Pruning)
Once the optimal per-layer sparsity ratios are established (e.g., pruning 30% of one layer while pruning 70% of another), the model undergoes unstructured weight pruning. This is performed using established local methods such as Wanda or SparseGPT, which benefit from the globally-informed sparsity targets set in the coarse stage.
Experimental Results
The researchers validated ECoFLaP across a wide range of architectures, including BLIP-2, LLaMA, ViT, and CLIP.
- Superiority at High Sparsity: At 50% sparsity on the VQAv2 dataset, ECoFLaP achieved 59.4% accuracy, a notable improvement over the Wanda baseline (57.9%).
- Language Model Gains: For the LLaMA-7B model at 60% sparsity, ECoFLaP reached a perplexity of 9.83, outperforming Wanda’s 10.68.
- Memory Efficiency: The ZO-based importance estimation reduced GPU memory consumption by 40% relative to traditional first-order gradient methods, making the technique accessible for researchers with limited hardware.
- Generalization: The method showed consistent gains across pure vision (EVA-ViT on ImageNet-1k) and pure language (FlanT5 on MMLU) benchmarks.
Key Insights
- Smooth Loss Landscapes: Visualization of the loss landscape for models like BLIP-2 revealed a surprisingly smooth, "corn-shaped" structure. This smoothness explains why a simple zeroth-order approximation is effective at capturing weight importance without getting trapped in jagged local minima.
- Pruning as a Regularizer: Qualitative analysis yielded a surprising finding: the pruned model occasionally answered questions correctly that the original dense model missed. This suggests that pruning may act as a form of noise reduction or regularization, improving the model's focus on critical features.
Conclusion
ECoFLaP provides a robust and efficient framework for compressing large-scale multimodal models. By bridging the gap between global importance and local efficiency, it enables the deployment of high-performance LVLMs on resource-constrained hardware. Future work will explore extending this coarse-to-fine philosophy to structured pruning and quantization to achieve direct hardware acceleration.
Summary updated