TwinPrune: Density-Aware Two-Phase Token Pruning for Vision-Language Models
cs.CV
Submitted: 2026-10-13
Updated: 2026-10-15
Comments: Our code is availabel at https://github.com/Kai-Liu001/TwinPrune
Code: https://github.com/Kai-Liu001/TwinPrune
License: http://creativecommons.org/licenses/by/4.0/
The gist: 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.
Terminology
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
Sources
- DivPrune: Diversity-based Visual Token Pruning for Large Multimodal Models
- Practical Coreset Constructions for Machine Learning
- Qwen3-VL Technical Report
- A Unified Framework for Approximating and Clustering Data
- Similarity-Aware Token Pruning: Your VLM but Faster
- Efficient Inference of Vision Instruction-Following Models with Elastic Cache
- Lazier Than Lazy Greedy
- Active Learning for Convolutional Neural Networks: A Core-Set Approach
- LLaVA-PruMerge: Adaptive Token Reduction for Efficient Large Multimodal Models
- InternVL3.5: Advancing Open-Source Multimodal Models in Versatility, Reasoning, and Efficiency
- VisionZip: Longer is Better but Not Necessary in Vision Language Models
- Fit and Prune: Fast and Training-free Visual Token Pruning for Multi-modal Large Language Models
Related papers
- Loss Knows Best: Detecting Annotation Errors in Videos via Loss Trajectories
- AnchorWeave: World-Consistent Video Generation with Retrieved Local Spatial Memories
- Benchmarking the Robustness of Foundation Models for Mammography under Domain Shift
- MambaX-Net: Dual-Input Mamba-Enhanced Cross-Attention Network for Longitudinal MRI Segmentation
- TeleOCR: Navigating Document Parsing Across Digital and Camera-Captured Documents
- A Survey on Efficient Vision-Language-Action Models