Hierarchical token pruning speeds up high resolution vision language models

Hierarchical and Query-Aware Visual Token Pruning for High-Resolution LVLMs

Computer Vision and Pattern Recognition

Summary

Large vision-language models often use many small parts of an image, called tokens, to understand pictures in detail. But processing thousands of these tokens slows the models down. The authors introduce a way to quickly decide which parts of the image are most important before heavy processing, using a three-step approach that looks at whole images, sections, and then individual tokens. Their method keeps nearly all the accuracy while making the model run up to twice as fast.

What this means in practice

  • For ai system engineers: Optimize large vision-language models for faster processing on high-resolution images without losing much accuracy.
  • For mobile app developers: Enable efficient image understanding in apps by reducing computational load on high-resolution visual inputs.

Authors

Luther Wei, Ling Zou, Kang-Yang Huang, Yu-Syuan Xu, Wen-Huang Cheng

Abstract

High-resolution Large Vision-Language Models (LVLMs) preserve critical, fine-grained visual details by encoding a global thumbnail alongside multiple local crops. However, the resulting thousands of vision tokens introduce severe computational bottlenecks during Large Language Model (LLM) inference. Existing token pruning methods rely primarily on query-agnostic visual saliency, while current query-aware approaches either operate at a coarse crop-level resolution or compute token relevance too late, after vision tokens have already entered the heavy LLM layers. To address this, we propose a training-free, hierarchical token pruning framework that utilizes query guidance prior to executing any LLM blocks. Our top-down hierarchy first operates at the instance-level, dynamically scaling the vision token retention ratio of each sample based on its visual complexity. Next, at the crop-level, we distribute this sample budget across local crops using sentence-level cross-modal similarity. Finally, at the token-level, we exploit projected vision tokens alongside textual query token embeddings in the shared space to measure fine-grained alignment, applying a text-debiasing normalization to produce high-fidelity query scores. These query-guided budgets and scores are fused with local and global visual saliency metrics to select the most critical vision tokens. Extensive experiments on LLaVA-NeXT-7B demonstrate that our plug-and-play framework retains 98.0% and 94.8% of unpruned performance at 25% and 10% vision token retention, respectively. Notably, at 25% retention, our method delivers a 2.0x inference throughput speedup and even surpasses the unpruned baseline on POPE by 0.7 points.