Rethinking Pruning for Vision-Language Models: Strategies for Effective Sparsity and Performance Restoration

Shwai He, Ang Li, Tianlong Chen
4/3/2024
cs.LGcs.CV

Official code: Shwai-He/VLM-Compression (17 stars, Apache-2.0, last commit 2024-07-02).

Abstract

Vision-Language Models (VLMs) integrate information from multiple modalities and have shown remarkable success across various tasks. However, deploying large-scale VLMs in resource-constrained scenarios is challenging. Pruning followed by finetuning offers a potential solution but remains underexplored for VLMs. This study addresses two key questions: how to distribute sparsity across different modality-specific models, and how to restore the performance of pruned sparse VLMs. Our preliminary studies identified two effective pruning settings: applying the same sparsity to both vision and language models, and pruning only the language models. While LoRA finetuning aims to restore sparse models, it faces challenges due to incompatibility with sparse models, disrupting the pruned sparsity. To overcome these issues, we propose SparseLoRA, which applies sparsity directly to LoRA weights. Our experimental results demonstrate significant improvements, including an 11.3\% boost under 2:4 sparsity and a 47.6\% enhancement under unstructured 70\% sparsity. Code is released at: \url{https://github.com/Shwai-He/VLM-Compression}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The official implementation of the paper "Rethinking Pruning for Vision-Language Models: Strategies for Effective Sparsity".

171Shell, PythonApr 2, 20242 years agoApache-2.0
lora-fine-tuningmodel-compressionmultimodal-modelssparsity

Similar Papers

Cite this paper

@article{he2024rethinking,
  title  = {Rethinking Pruning for Vision-Language Models: Strategies for Effective Sparsity and Performance Restoration},
  author = {Shwai He and Ang Li and Tianlong Chen},
  year   = {2024},
  eprint = {2404.02424},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.02424v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.02424.svg)](https://codeofpaper.com/paper/2404.02424)

Discussion