A Glimpse to Compress: Dynamic Visual Token Pruning for Large Vision-Language Models

Quan-Sheng Zeng, Yunheng Li, Qilong Wang, Peng-Tao Jiang, Zuxuan Wu, Ming-Ming Cheng, Qibin HouarXiv 2025 · DOI

Introduction

As Large Vision-Language Models (LVLMs) evolve to handle high-resolution imagery, they encounter a significant "token explosion." Processing high-resolution inputs generates thousands of visual tokens, which often overwhelm the text instructions and create massive computational bottlenecks within the LLM backbone. Current pruning solutions are frequently "inflexible," using fixed ratios, or "late," relying on the cross-attention of the first generated token to determine importance.

The GlimpsePrune Framework

GlimpsePrune addresses these limitations through a dynamic, data-driven "glimpse" mechanism. Inspired by human visual cognition—where a quick scan of a scene precedes a detailed response—the framework inserts a learnable glimpse token at the end of the input sequence during the prefilling stage. This token facilitates interaction between text and visual features across the LLM layers.

Instead of waiting for the decoding phase, GlimpsePrune intervenes at an intermediate layer $K$ (optimized at approximately 2/3 of the total depth). At this point, a lightweight Visual Importance Predictor (VIP) analyzes the glimpse token's attention map and hierarchical visual features to identify essential tokens. This data-driven approach allows the model to learn what is important for a specific question rather than relying on raw mathematical similarity.

Evolution of visual attention during the decoding of filler text versus content-rich tokens.

Overcoming the "Filler Text" Trap

A critical contribution of this research is identifying the "filler text trap." In free-form VQA, the initial tokens generated are often introductory (e.g., "The drink is..."). Pruning methods that rely on the attention of these first tokens often fail because the model hasn't yet focused on the evidence required for the core answer. As illustrated above, attention shifts significantly as the model moves from filler words to specific content. GlimpsePrune avoids this by intervening mid-prefill, capturing relevance before generation begins.

Efficiency and Retroactive Pruning

Once the VIP identifies irrelevant tokens, GlimpsePrune performs one-shot pruning. Crucially, this includes the retroactive removal of corresponding Key-Value (KV) cache entries from all preceding layers. This "KV cache slicing" provides immediate memory and compute savings for the remainder of the prefill and the entire decoding phase, a significant advantage for memory-constrained hardware. Unlike competing methods that often hit Out-of-Memory (OOM) errors on high-res images, GlimpsePrune remains stable and accurate.

Experimental Results and Performance

Evaluation across benchmarks like VisCoT and LMMs-Eval demonstrates the framework's efficiency. GlimpsePrune retains an average of only 7.4% of visual tokens (a 92.6% pruning rate) while maintaining the full performance of the Qwen2.5-VL-7B baseline. The following comparison highlights GlimpsePrune's superior localization and accuracy compared to existing methods like VScan.

Comparison of GlimpsePrune against VScan on a player identification task.

Furthermore, the RL-optimized version, GlimpsePrune+, utilizes Group-wise Ranking Policy Optimization (GRPO) to reach 110% of the baseline performance. This suggests that learning to reason with a sparse, high-quality set of tokens can be more effective than processing a noisy, dense set. In practical applications like DocVQA, the method reduced KV cache length from over 5,000 tokens to just 202, slashing prefill costs by 30%.

Conclusion

GlimpsePrune represents a significant step forward in making high-resolution LVLMs computationally viable. By leveraging a mid-prefill glimpse mechanism and data-driven importance prediction, it achieves massive compression without sacrificing accuracy. Future research will focus on dynamic layer selection to adapt pruning timing to the complexity of individual queries.

Summary updated

BibTeX
@misc{zeng2025glimpse,
  author = {Quan-Sheng Zeng and Yunheng Li and Qilong Wang and Peng-Tao Jiang and Zuxuan Wu and Ming-Ming Cheng and Qibin Hou},
  title = {{A Glimpse to Compress: Dynamic Visual Token Pruning for Large Vision-Language Models}},
  year = {2025},
  eprint = {2508.01548},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01548},
}
Figure