arXiv:2610.17530cs.CVOct 2026

Manuscript Offprint

arXiv:2610.17530

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Kai Liu1,∗^{1,*}, Anqi Li1,∗^{1,*}, Junxian Li1^{1}, Zhixin Wang2^{2}, Zhikai Chen2^{2}, Renjing Pei2^{2}, Yulun Zhang1†^{1\dagger}

1^{1}Shanghai Jiao Tong University, 2^{2}Huawei Technologies Ltd

Figure

Figure 1: Two-Stage Pruning in TwinPrune. TwinPrune improves VLM inference through a two-stage pruning framework using a single unified pruning signal. The left panel evaluates visual token pruning in the prefilling stage, showing better accuracy–speedup trade-offs, while the right panel evaluates KV cache pruning on long-output benchmarks in the decode stage. Both panels report results on InternVL-3.5-8B under the same evaluation setting.

Abstract

We propose a unified spatial-density signal that scores token importance for both phases of inference, instantiated as a bipartite merge during prefill and a KV eviction during decode, with measurable gains in each phase. To verify the two phases independently, we partition benchmarks into two diagnostic roles by their scoring rule. Prefill probes such as MMBench, POPE, and ScienceQA score only the first decoded token, so their accuracy reflects only the argmax of prefill logits, computed before any decode-phase KV eviction takes effect. Full-pipeline probes such as TextVQA, DocVQA, and MM-Vet score the full decoded sequence and therefore reveal both phases. We expose a fundamental evaluation flaw: published claims of decode-phase token pruning validated only on prefill probes have measured prefill quality, not decode quality. Empirically, removing all visual KV at decode leaves prefill-probe accuracy essentially unchanged while collapsing TextVQA and MM-Vet by tens of points, and the insensitivity is a property of the scoring rule, not of the compression strength. Across seven model variants from the InternVL-3.5, Qwen3-

∗^{*}Equal Contribution

†^{\dagger}Corresponding author: Yulun Zhang, yulun100@gmail.com

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

VL, and LLaVA-1.5 families and the three full-pipeline-probe benchmarks, we deliver an honest three-axis Pareto over compute, memory, and accuracy. Density-based prefill compression is competitive on the accuracy frontier, scales linearly in the visual-token count, and is roughly two orders of magnitude faster in token selection at high resolution. On the decode side, density top-k KV eviction wins every TextVQA and MM-Vet cell against the strongest published baselines H2O, SnapKV, and StreamingLLM across three keep ratios. The advantage widens to 9.6 percentage points over H2O at 12.5% keep on TextVQA and holds 7 to 10 percentage points across the InternVL-3.5 series from 2B to 38B. Compression also scales gracefully with model size: every matched 8B-to-38B transition we measure reduces, rather than amplifies, the accuracy loss. We recommend MM-Vet or DocVQA as the minimum full-pipeline-probe test for any decode-phase claim. Our code is available at https://github.com/Kai-Liu001/TwinPrune.

1 Introduction

Vision-Language Models (VLMs) now drive a fast-growing set of applications such as document understanding, embodied agents, multi-step visual reasoning, and GUI control. Each of these demands processing hundreds to thousands of visual tokens through tens of transformer layers. As image resolution and tile count rise, two efficiency bottlenecks tighten in tandem. The first is prefill compute, dominated by encoding all visual tokens through the language model. The second is decode memory, dominated by the per-layer key/value cache that must persist for autoregressive generation. Whether a model can be deployed at all, whether on a memory-constrained device, in a low-latency interactive setting, or under a high-throughput serving regime, is increasingly determined less by how the model is trained and more by how aggressively redundant visual tokens can be removed at inference time.

The token-pruning literature has expanded rapidly in response. Prefill-time methods such as FastV [6], ToMe [4], DivPrune [1], and DART [28] target the compute axis, while decode-time methods such as H2O [33], StreamingLLM [29], and SnapKV [13] target the memory axis. These works converge on a striking shared finding: aggressive compression preserves accuracy almost perfectly, often within a fraction of a point of the uncompressed baseline. The implication, repeated across dozens of papers, is that visual tokens are deeply redundant and can be cut without harm. If that picture were correct, token pruning would be a solved problem, a routine deployment knob rather than an open question.

We argue this consensus rests on a measurement artifact. The benchmarks most commonly used to validate VLM pruning are dominated by single-token outputs such as a multiple-choice letter or a yes/no answer. Their score depends only on the first decoded logit, which is fixed by the prefill pass before any decode-phase KV eviction is executed. By construction, decode-phase eviction therefore cannot move those scores, so what is measured under a “decode-phase” label is in fact prefill-phase quality. Whether a method preserves behavior under longer generation, in which information has to be retrieved from the cache during decode, is a separate question, and it is not the one those benchmarks answer. The same critique applies in a milder form to prefill compression: prefill-probe scores see only the argmax shift, not the distributional damage that compression does to longer continuations.

We make the gap concrete by running a VLM with all visual KV removed at decode time. On the prefill-probe benchmarks (MMBench, POPE, ScienceQA) the accuracy is nearly unchanged. On full-pipeline-probe benchmarks such as TextVQA and MM-Vet, accuracy drops sharply, and prediction strings flip on a large fraction of samples (Tab. 1, Fig. 2, Sec. 3). The model is changing its behavior under compression, but the prefill-probe benchmarks simply cannot register that change.

This re-scopes what an honest unified compression framework should look like and what it should be evaluated on. We propose a spatial-density signal ρ\rho that scores each visual token by the local non-redundancy of its w×ww \times w neighborhood on the regular spatial grid, computed once at an early decoder layer from token-to-token cosine distances. The same ρ\rho drives both compression phases. During prefill, we deploy it inside a density-tilted farthest-point recurrence that combines k-center coverage with density priority through a single tilt scalar β\beta, bipartitions the visual tokens, and merges the discarded-token features into the kept set before passing the reduced sequence forward. During decode, the same ρ\rho values are reused as a top-k score for visual-KV eviction, with no new attention pattern computed. The two phases can be applied independently or jointly, and we supply a three-axis (compute, memory, accuracy) Pareto study across seven model variants and three benchmarks.

Empirically, the unified density signal is competitive on the prefill accuracy frontier and is roughly two orders of magnitude faster in token selection at high resolution, and the implementation, with a Triton-fused farthest-point inner loop and a cached CUDA graph, delivers a 3.24×3.24\times end-to-end prefill speedup at the most aggressive operating point on InternVL-3.5-8B. On the decode side, density top-k KV eviction wins every TextVQA and MM-Vet cell at three keep ratios against H2O, SnapKV, and StreamingLLM, with the gap widening to 9.6 percentage points over H2O at 12.5% keep on TextVQA and holding 7 to 10pp across the InternVL-3.5 series from 2B to 38B. Compression cost does not grow with model size in the 8B-to-38B regime. Our contributions are as follows:

  1. Methodology finding (Sec. 3): prefill-probe benchmarks (those scoring only the first decoded token) structurally cannot measure decode-phase compression. We provide the proof, an extended cross-architecture mismatch table, and a recommendation for how the field should evaluate decode-phase claims going forward.

  2. Unified density framework (Sec. 4): a single spatial-density signal that scores token importance for both compression phases, with one kernel and two deployment points, guiding bipartite merge during prefill and top-k eviction during decode. We also derive a coreset-theoretic justification (Sec. 4.1) showing why the same ranking serves both phases.

  3. Three-axis Pareto study (Sec. 5 and Sec. 6): across seven model variants and three full-pipeline-probe benchmarks, density-based prefill compression matches the strongest accuracy frontier while scaling linearly in the visual-token count and selecting tokens an order of magnitude faster at high resolution.

  4. Cross-architecture and cross-scale robustness (Appendix P): a structural risk taxonomy explaining why pure-selection methods catastrophically fail on Qwen3-VL-4B's multi-axis RoPE while merge-based density does not, together with the empirical finding that compression cost does not grow with model size across the InternVL-3.5 from 2B to 38B.

References (32)