PuMer: Pruning and Merging Tokens for Efficient Vision Language Models

Qingqing Cao, Bhargavi Paranjape, Hannaneh Hajishirzi
5/27/2023
cs.CVcs.AIcs.CL

No official code found. Best implementation: csarron/PuMer (39 stars, MIT, last commit 2024-10-03).

Abstract

Large-scale vision language (VL) models use Transformers to perform cross-modal interactions between the input text and image. These cross-modal interactions are computationally expensive and memory-intensive due to the quadratic complexity of processing the input image and text. We present PuMer: a token reduction framework that uses text-informed Pruning and modality-aware Merging strategies to progressively reduce the tokens of input image and text, improving model inference speed and reducing memory footprint. PuMer learns to keep salient image tokens related to the input text and merges similar textual and visual tokens by adding lightweight token reducer modules at several cross-modal layers in the VL model. Training PuMer is mostly the same as finetuning the original VL model but faster. Our evaluation for two vision language models on four downstream VL tasks shows PuMer increases inference throughput by up to 2x and reduces memory footprint by over 50% while incurring less than a 1% accuracy drop.

View on arXivView PDF

Code Implementations(1)

csarron/PuMerCommunity100%
MIT

[ACL 2023] PuMer: Pruning and Merging Tokens for Efficient Vision Language Models

392Shell, PythonMay 21, 20232 years agoMIT

Similar Papers

Cite this paper

@article{cao2023pumer,
  title  = {PuMer: Pruning and Merging Tokens for Efficient Vision Language Models},
  author = {Qingqing Cao and Bhargavi Paranjape and Hannaneh Hajishirzi},
  year   = {2023},
  eprint = {2305.17530},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.17530v1}
}

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/2305.17530.svg)](https://codeofpaper.com/paper/2305.17530)

Discussion