Beyond Text-Visual Attention: Exploiting Visual Cues for Effective Token Pruning in VLMs

Qizhe Zhang, Aosong Cheng, Ming Lu, Renrui Zhang, Zhiyong Zhuo +4 more
12/2/2024
cs.CVcs.AI

Official code: Theia-4869/VisPruner (78 stars, Apache-2.0, last commit 2025-07-01). 2 more implementations below.

Abstract

Large vision-language models (LVLMs) generally contain significantly more visual tokens than their textual counterparts, resulting in a considerable computational burden. Recent efforts have been made to tackle this issue by pruning visual tokens early within the language model. Most existing works use attention scores between text and visual tokens to assess the importance of visual tokens. However, in this study, we first analyze the text-visual attention in the language model and find that this score is not an ideal indicator for token pruning. Based on the analysis, We propose VisPruner, a plug-and-play method that utilizes visual cues for more effective token pruning in LVLMs. Specifically, we first use visual attention to select a limited number of significant tokens. Then, we remove duplicate tokens from the remaining ones based on their similarity. By retaining diverse tokens alongside the initially selected important tokens, we maximally preserve the visual information of the input image. Experimental results demonstrate that our VisPruner sustains strong performance across various VLM architectures and reduction ratios, significantly outperforming existing methods based on text-visual attention. Notably, without any training, VisPruner can reduce the FLOPs of LLaVA-1.5-7B by 91% and inference latency by 75%, while maintaining comparable performance. Our code is available at https://github.com/Theia-4869/VisPruner.

View on arXivView PDF

Code Implementations(3)

Apache-2.0

[ICCV 2025] Official code for paper: Beyond Text-Visual Attention: Exploiting Visual Cues for Effective Token Pruning in VLMs

786CSS, HTMLJun 24, 20251 years agoApache-2.0
inference-efficiencytraining-free-accelerationvision-language-modelvisual-token-pruning
Apache-2.0

Official code for paper: [CLS] Attention is All You Need for Training-Free Visual Token Pruning: Make VLM Inference Faster.

1125CSS, HTMLNov 27, 20241 years agoApache-2.0
inference-efficiencytraining-free-accelerationvision-language-modelvisual-token-pruning
Apache-2.0

Beyond Text-Visual Attention: Exploiting Visual Cues for Effective Token Pruning in VLMs

10CSS, HTMLApr 2, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2024beyond,
  title  = {Beyond Text-Visual Attention: Exploiting Visual Cues for Effective Token Pruning in VLMs},
  author = {Qizhe Zhang and Aosong Cheng and Ming Lu and Renrui Zhang and Zhiyong Zhuo and Jiajun Cao and Shaobo Guo and Qi She and Shanghang Zhang},
  year   = {2024},
  eprint = {2412.01818},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.01818v2}
}

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

Discussion