Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

PuMer: Pruning and Merging Tokens for Efficient Vision Language Models

About

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.

Qingqing Cao, Bhargavi Paranjape, Hannaneh Hajishirzi• 2023

Related benchmarks

TaskDatasetResultRank
Visual EntailmentSNLI-VE (test)
Overall Accuracy80.3
199
Visual Question AnsweringVQA v2 (test)
Accuracy76.8
142
Text RetrievalFlickr30k (test)--
107
Anomaly DetectionBGL, Thunderbird, Hadoop, and OpenStack (test)
PR-AUC67.1
16
Anomaly DetectionBGL, Thunderbird, Hadoop, and OpenStack rare-event slice (test)
Rare PR-AUC40.1
16
Natural Language Visual ReasoningNLVR2 (test)
Accuracy82.2
16
Synthetic Data FidelityBGL, Thunderbird, Hadoop, and OpenStack (full)
TVR93.1
16
Natural Language Visual ReasoningNLVR2
GFLOPs17.4
4
Visual EntailmentSNLI-VE
GFLOPs7.7
4
Visual Question AnsweringVQA v2
GFLOPs8.7
4
Showing 10 of 10 rows

Other info

Code

Follow for update