PuMer: Pruning and Merging Tokens for Efficient Vision Language Models
Qingqing Cao, Bhargavi Paranjape, Hannaneh Hajishirzi
TL;DR
PuMer tackles the computational bottleneck of cross-modal attention in vision-language transformers by introducing text-informed image token pruning and modality-aware token merging. It deploys non-parametric token reducers across cross-modal layers to cascade token reductions, achieving up to 2x throughput and up to 51% memory reduction with less than 1% accuracy loss on ViLT and METER across multiple VL tasks. The method requires no additional learnable parameters and integrates with standard fine-tuning workflows, optionally benefiting from a distillation loss. By leveraging text guidance for pruning and modality-aware merging, PuMer complements other efficiency techniques and demonstrates robust, practical gains in VL model deployment.
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.
