ToDRE: Effective Visual Token Pruning via Token Diversity and Task Relevance

Duo Li, Zuhao Yang, Xiaoqin Zhang, Ling Shao, Shijian Lu
5/24/2025
9 citations
cs.CV
quantization-pruning

Official code: Yrdal3910/ToDRE (1 star, Python, MIT, last commit 2026-10-04).

Abstract

Visual token pruning, which aims to compress and prune redundant visual tokens, plays a critical role in efficient inference with large vision-language models (LVLMs). However, existing methods fail to disentangle intra-modal visual redundancy from cross-modal redundancy between vision and language.

Show full abstract

We show that visual token diversity and task-specific token relevance are two crucial yet orthogonal factors that complement each other in conveying useful information and should therefore be treated separately for more effective visual token pruning. Building upon this insight, we design TODRE, a two-stage and training-free framework that incorporates Token Diversity and task RElevance for effective token compression and efficient LVLM inference. Instead of pruning redundant tokens, we introduce a greedy max-sum diversification algorithm that selects and retains a subset of diverse and representative visual tokens after the vision encoder. On top of that, ToDRE leverages an ``information migration'' mechanism to eliminate task-irrelevant visual tokens within certain decoder layers of the large language model (LLM), further improving token pruning and LVLM inference. Extensive experiments show that ToDRE prunes 90% of visual tokens after the vision encoder as well as all visual tokens in certain LLM decoder layers, leading to a 2.6x speed-up in total inference time while maintaining 95.0% model performance plus excellent model compatibility. The code is available at: \href{https://github.com/Yrdal3910/ToDRE}{this https URL}.

View on arXivView PDF

Code Implementations(1)

Yrdal3910/ToDREOfficial100%
MIT

[ECCV 2026] ToDRE: Effective Visual Token Pruning via Token Diversity and Task Relevance

11Python, TypeScriptOct 4, 20261 months agoMIT

Similar Papers

Cite this paper

@article{li2025todre,
  title  = {ToDRE: Effective Visual Token Pruning via Token Diversity and Task Relevance},
  author = {Duo Li and Zuhao Yang and Xiaoqin Zhang and Ling Shao and Shijian Lu},
  year   = {2025},
  eprint = {2505.18757},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.18757v3}
}

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

Discussion