TwinPrune: Density-Aware Two-Phase Token Pruning for Vision-Language Models
Kai Liu, Anqi Li, Junxian Li, Zhixin Wang, Zhikai Chen, Renjing Pei, Yulun Zhang
Abstract
We propose a unified spatial-density signal to score token importance for both inference phases: bipartite merge for prefill and KV eviction for decode, yielding measurable gains in each stage. To isolate the two phases, we split benchmarks by scoring logic. Prefill probes (MMBench, POPE, ScienceQA) evaluate only the first decoded token; their accuracy reflects prefill logits argmax before any decode KV eviction. Full-pipeline probes (TextVQA, DocVQA, MM-Vet) assess the complete generated sequence and capture both phases. We identify a critical evaluation pitfall: decode pruning claims validated solely on prefill probes measure prefill quality, not decode performance. Experiments show discarding all visual KV during decode barely affects prefill-probe accuracy but degrades TextVQA and MM-Vet drastically; this insensitivity stems from the scoring rule, not compression intensity. Evaluated on seven model variants (InternVL-3.5, Qwen3-VL, LLaVA-1.5) and three full-pipeline benchmarks, our method achieves a three-way Pareto frontier across compute, memory and accuracy. Density-based prefill compression maintains strong accuracy, scales linearly with visual token count, and delivers 100x faster token selection at high resolution. For decode, density top-k KV eviction consistently outperforms strong baselines H2O, SnapKV and StreamingLLM on TextVQA and MM-Vet across three retention ratios. At 0.125 keep ratio on TextVQA, it surpasses H2O by 9.6 points; InternVL-3.5 models (2B to 38B) maintain a 7 to 10 point advantage. Compression scales favorably with model size: every measured 8B to 38B model transition reduces accuracy loss instead of worsening it. We suggest MM-Vet or DocVQA as mandatory full-pipeline validation for any decode-phase claims. Our code is available at https://github.com/Kai-Liu001/TwinPrune
Create a lesson
Metadata
- Comments
- Our code is availabel at https://github.com/Kai-Liu001/TwinPrune
Related papers
DVTR-KD: Distilling Vision-Language Models via Intermediate Visual Token Reconstruction
Shared title terminologycs.CVHaolan Wei, Jiahui Wang, Junli Zha et al.
Read Before You Use: Improving Visual Memory Utilization in Vision-Language Models
Shared title terminologycs.CVJunseok Kim, Kyungmin Min, Kyomin Jung
Probing Negation Understanding in Vision-Language Models With Object Attention
Shared title terminologycs.CVBeth Pearson, Michael Wray, Martha Lewis
STP-GUI: Spatially-Aware Token Pruning for Efficient Web-GUI Agents
Shared title terminologycs.CVShuo Wang, Sifan Zhou, Xiaobo Wang et al.
SPECTRA-VLA: Base-Fine Hyperspectral Token Transfer at Frozen Vision-Language-Action Interfaces
Shared title terminologycs.CVChih-Chung Hsu
WinARDet: Compressed Window Auto-Regression for Long-Horizon Vision-Language Grounding
Shared title terminologycs.CVChenxu Wang, Hangyi Kuang, Bo-Wen Yin et al.