betaFeedback

WorksComputer Science

TwinPrune: Density-Aware Two-Phase Token Pruning for Vision-Language Models

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

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.

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, Figure 2, Sec. 3). The model is changing its behavior under compression, but the prefill-probe benchmarks simply cannot register that change.

Figure 2. Prefill-probe benchmarks are structurally insensitive to decode-phase KV eviction across three VLM families. Left: accuracy vs. visual KV kept on InternVL-3.5-8B. Right: prediction mismatch at DALL grouped by (benchmark, model). Details in § 3.

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 kk-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-kk 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× end-to-end prefill speedup at the most aggressive operating point on InternVL-3.5-8B. On the decode side, density top-kk 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.

  1. 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-kk eviction during decode. We also derive a coreset-theoretic justification (Sec. 4.1) showing why the same ranking serves both phases.

  1. 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.

  1. 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.

Related Work

Prefill-stage compression. FastV [6] drops visual tokens by attention score after a chosen layer. ToMe [4] performs bipartite token merging for ViTs and was adapted to VLMs. DivPrune [1] uses farthest-point sampling on visual features for diversity-driven selection. DART [28] combines L1-norm pivots with cosine-distance expansion. VisionZip [30] selects dominant tokens by CLS-attention and merges the rest by key-state similarity. TokenPacker [11] introduces a coarse-to-fine visual projector that compresses tokens by 75 to 89 percent before the LLM backbone. AvgPool, FitPrune [31], and PruMerge [23] round out a crowded landscape, and concurrent preprints continue to appear, including SAINT [9]. All evaluate primarily on the four-benchmark set we critique below.

Decode-stage KV eviction. For text-only LLMs, H2O [33] and StreamingLLM [29] maintain “heavy hitter” KV entries. SnapKV [13] aggregates attention. FastGen [8] profiles attention-head patterns to build a query-adaptive eviction policy. Quest [25] selects KV pages by query similarity for efficient long-context inference. KV quantization, exemplified by the 2-bit asymmetric KIVI [16], provides a complementary compression axis orthogonal to eviction. On the visual side, LOOK-M [26] merges multimodal KV entries guided by text-prior attention. ElasticCache [17] uses importance-driven KV merging for vision instruction-following models. R-KV [5] combines attention aggregation with a redundancy penalty for reasoning-LLM KV compression. Most works report on the same prefill-probe benchmarks that, as we show, cannot measure their decode-phase effect.

Two-phase view. To our knowledge, no prior work explicitly separates prefill (compute) and decode (memory) as orthogonal axes with distinct algorithms and evaluation requirements. Our framework makes this separation a first-class design principle.

Token pruning as coreset selection. Keeping kk of NN visual tokens is a coreset query on X∈RN×dX \in\mathbb{R}^{N \times d}, with two dual classical strategies: kk-center diversity (DivPrune [1], Sener and Savarese [22]) and density- or sensitivity-weighted sampling (Feldman and Langberg [7], Bachem, Lucic, and Krause [2], submodular maximization [19]). Our density signal ρ\rho is a training-free, deterministic-threshold proxy of the latter family (Appendix H). We are not aware of prior work framing VLM token pruning as a two-phase coreset whose subset must simultaneously approximate prefill attention and decode KV recall, and this paper is the first to exploit the resulting signal reuse.

Two-Phase Compression, Two-Phase Diagnostic

The argmax mechanism

Consider a VLM prefill that yields hidden states H∈RT×dH \in\mathbb{R}^{T \times d} over TT tokens (visual + text). The first decoded token is

y1=arg max⁡v [WohT]v(1)y_1 = \underset{v}{\operatorname{arg\,max}}\ [W_o h_T]_v \tag*{(1)}

where hTh_T is the last hidden state and WoW_o is the language-model head. Decode-phase compression, for example KV eviction E\mathcal{E} acting on the cached {(Kℓ,Vℓ)}\{(K_\ell, V_\ell)\}, takes effect only when computing y2y_2, y3y_3, … from the now-reduced cache. For benchmarks whose ground-truth answer is a single token, such as a multiple-choice letter or a yes/no token, the score depends only on y1y_1. Thus decode-phase E\mathcal{E} has no effect on these scores by construction. Density-based compression operates on both prefill and decode, with measurable gains in each phase (§ 5 and § 6). To verify the two phases independently, we partition benchmarks into two diagnostic roles based on their scoring rule. A benchmark is a prefill probe if its score depends only on y1y_1, as in a multiple-choice letter, a yes/no token, or any single-letter argmax over a fixed set such as MMBench, POPE, and ScienceQA. Such a probe isolates prefill quality and is structurally blind to any decode-phase change. A benchmark is a full-pipeline probe if its score depends on the decoded sequence y1,y2,…y_1, y_2, \ldots, including free-form answers scored by exact-match, ANLS edit distance, or an LLM judge such as TextVQA, DocVQA, and MM-Vet. Such a probe reveals both phases and their interaction effects. The split is a property of the scoring rule, not the literal answer length during generation.

Empirical proof

We instantiate E\mathcal{E} ranging from D75 (keep 25% of visual KV) to DALL (drop all visual KV). Table 1 reports prediction mismatch % relative to the no-compression baseline.

Prediction-mismatch % vs. no-compression baseline on InternVL-3.5-8B. Decode KV eviction flips up to 46% of TextVQA predictions but ≤0.54%\le0.54\% on prefill-probe benches, since y1y_1 depends only on prefill logits (Eq. (1)). Prefill rows fix L=15L=15 (varying LL shifts levels but not the scoring-rule gap). Appendix N extends to all 3 archs.

PhaseSignal · KeepMMBenchPOPESQATextVQA
PrefillDensity · 75/50/25%00–0.03–3.1/7.0/14.9
PrefillRandom · 25%00–32.8
PrefillAttention · 25%00.03–25.1
DecodeDensity · 25/12.5/6.25%0.540.32–0.350.2015.9/23.0/31.1
DecodeDensity · 0% (drop all)0.540.380.2045.5

Table 1.

Figure 3. TwinPrune pipeline. A single spatial density signal ρ\rho, defined as each visual token’s average cosine dissimilarity to its w×ww \times w neighborhood (b), drives both phases. Prefill bipartite-merges low-ρ\rho source tokens into high-ρ\rho destination anchors, cutting FLOPs (c). Decode ranks visual KV by ρ\rho and keeps the top-kk with original RoPE positions, cutting KV memory (d). One signal, two levers, and a three-axis Pareto trade-off over compute, KV, and accuracy (a).

Implication. The pattern is universal across architectures: TextVQA’s 45.52% mismatch under DALL (Table 1) refutes the “tied logits” objection, and Appendix N extends the cross-model grid to confirm full-pipeline probes register both phases while prefill probes register neither in practice. Any claim of decode-phase token pruning that preserves accuracy validated only on MMBench, POPE, or ScienceQA must be re-examined; future VLM token-pruning evaluation should include at least one full-pipeline-probe benchmark such as MM-Vet, DocVQA, or LLaVA-Bench-Wilder.

Density-Guided Two-Phase Compression

Spatial density signal

For visual tokens arranged on a grid of size H×WH \times W, define density at position (i,j)(i, j) via local cosine dissimilarity:

ρij=1−1∣Nw(i,j)∣∑(i′,j′)∈Nw(i,j)⟨xij,xi′j′⟩∥xij∥⋅∥xi′j′∥(2)\rho_{ij}=1-\frac{1}{\lvert\mathcal{N}_w(i,j)\rvert}\sum_{(i',j')\in\mathcal{N}_w(i,j)}\frac{\langle x_{ij},x_{i'j'}\rangle}{\lVert x_{ij}\rVert\cdot\lVert x_{i'j'}\rVert} \tag*{(2)}

where Nw(i,j)\mathcal{N}_w(i,j) is the spatial w×ww \times w neighborhood (excluding self). We compute ρ\rho at multiple scales w∈{3,5,7}w \in\{3, 5, 7\} and take the max, capturing both fine and coarse structure. High ρij\rho_{ij} indicates that the token differs from its neighbors and is therefore informative, whereas low ρij\rho_{ij} indicates redundancy.

Why density? Density is an intrinsic, query-invariant feature-tensor statistic. It is monotone in a finite-sample kernel-H2H_2 estimator [21], contrasting the luminance-biased ℓ2\ell_2-norm and the sink-biased, query-dependent attention scores. § 5.3 confirms density wins or ties at prefill across all three probe benchmarks and wins on the two deterministic full-pipeline probes at decode (information-geometric framing and the failed QC-density extension are in Appendix F).

Coreset reading. A coreset that approximates the visual-token feature matrix approximates every downstream computation that accesses it through attention aggregates, so prefill merge and decode eviction inherit the same approximation guarantee from a single density top-kk subset. Theorem 1 in Appendix H bounds the approximation error by ϵ≤2eQrk/d\epsilon\le2eQ r_k/\sqrt{d} where rkr_k is the kk-center cover radius of the chosen subset. Density top-kk minimises rkr_k in expectation while farthest-point sampling minimises it by construction, which explains why the two greedy heuristics agree at mild compression and diverge at aggressive compression on skewed distributions (Sec. 5). A Feldman–Langberg-style 1/k1/\sqrt{k} rate (Theorem 2) and the full proofs are in Appendix H.

Prefill: density-tilted farthest-point selection

At a chosen insertion layer LL during prefill, we keep k=⌈N⋅(1−r)⌉k=\lceil N\cdot(1-r)\rceil of the NN visual tokens by a density-tilted greedy selection. Compute density ρ\rho on the layer-LL hidden states via Eq. (2), normalize to ρ~∈[0,1]\tilde{\rho}\in[0,1], and pre-compute the pairwise cosine distance matrix Dij=1−⟨x^i,x^j⟩D_{ij}=1-\langle\hat{x}_i,\hat{x}_j\rangle where x^=x/∥x∥\hat{x}=x/\lVert x\rVert. Seed with s0=arg⁡max⁡iρis_0=\arg\max_i\rho_i, the most informative token, and maintain mind⁡j=Ds0j\operatorname{mind}_j=D_{s_0j} as the minimum distance from jj to the selected set. For each subsequent step, pick

st=arg⁡max⁡j∉S(mind⁡j+βρ~j),mind⁡j←min⁡(mind⁡j,Dstj),(3)s_t=\arg\max_{j\notin S}\left(\operatorname{mind}_j+\beta\tilde{\rho}_j\right),\qquad\operatorname{mind}_j\leftarrow\min(\operatorname{mind}_j,D_{s_tj}), \tag*{(3)}

with β=0.3\beta=0.3 throughout. Selected indices are sorted to preserve the visual-token-grid ordering, and KV-cache rows for the unselected tokens are dropped before the next layer. Eq. (3) unifies two greedy heuristics for the same coreset, as discussed in Sec. 4.1. Pure farthest-point sampling at β=0\beta=0 recovers DivPrune [1], and density top-kk is the limit β→∞\beta\to\infty. The small additive β=0.3\beta=0.3 tilt lets coverage dominate at high prune ratios while density breaks ties when mind⁡j\operatorname{mind}_j saturates, which is the regime where pure FPS picks isolated outliers with low local relevance.

Implementation. The kk-step inner loop is the latency-critical path of density-tilted FPS. A naive cuBLAS-plus-graph realisation issues five kernel launches per step, and at our operating point (N=3072,D=4096,K=614)(N=3072,D=4096,K=614) the per-launch overhead dominates the actual compute. We fuse the body into two Triton kernels, an argmax reduction and an inner-iter mind update with a 32×6432\times64 row-column tile, and back the recurrence with an fp16 normalized-token buffer. fp16’s 10-bit mantissa resolves 10−310^{-3} differences in cosine similarity, comfortably finer than the random-vector cosine standard deviation 1/D=0.0161/\sqrt{D}=0.016 at D=4096D=4096. The full recurrence is captured into a CUDA graph keyed on (N,D,k,β)(N,D,k,\beta), replayed once per layer rather than re-launched per step, and cached at module scope across the sweep. Without this cache, the per-call capture overhead of roughly 80 ms inverts the legacy-versus-graph latency ranking at our KK. The combination delivers a 3.24× end-to-end prefill speedup at the B3 cell on InternVL-3.5-8B, with cached-Triton fp16 TwinPrune at 150.8 ms per sample versus the 487.7 ms uncompressed baseline.

Decode: density-guided KV eviction

After prefill completes, with or without prefill-stage compression, evict visual KV entries by density rank in a single shot. We keep kdec=⌈Npost⋅rdecode⌉k_{\mathrm{dec}}=\lceil N_{\mathrm{post}}\cdot r_{\mathrm{decode}}\rceil entries with the highest ρ\rho, where NpostN_{\mathrm{post}} is the post-prefill visual-token count. Surviving KV rows retain their original RoPE-rotated keys without rotation re-application, and the first decoded token is positioned at original_prefill_length+1 to maintain query and key alignment. Density is reused from prefill when both phases are active, so the decode stage adds no extra similarity computation. Eviction is one-shot at the prefill-decode boundary, in contrast to streaming approaches that maintain a sliding window during generation. The choice is justified by the coreset reading in Sec. 4.1: a density-coreset of the post-prefill visual tokens approximates every subsequent attention aggregate that queries those tokens.

Joint and the three-axis Pareto

Joint compression composes prefill merge with decode eviction. The resulting design space is naturally three-dimensional: (i) prefill FLOPs (reduced by merge), (ii) KV memory (reduced by eviction), (iii) accuracy. Single-phase methods occupy the axes, and joint configurations fill the interior. We characterize this Pareto surface in Sections 5 and 6, and Algorithm 1 in Appendix A gives the full pseudocode.

Prefill compression Pareto

Setup

We evaluate seven model variants from three VLM families: InternVL-3.5 at 2B, 4B, 8B, and 38B [27], Qwen3-VL at 2B and 4B [3], and LLaVA-1.5-7B [14]. Prefill-probe benchmarks (MMBench [15], POPE [12], ScienceQA [18] score the first decoded token, isolating prefill quality. Full-pipeline-probe benchmarks reveal both phases. The full-pipeline-probe set comprises TextVQA [24] (n=5000n=5000, exact-match), MM-Vet [32] (n=218n=218, free-form, official MM-Vet evaluator), and DocVQA (n=5349n=5349, deterministic ANLS scoring). On the prefill side we compare density-based merging (TwinPrune and a variant TwinPrune-2a, ours) against DivPrune [1], DART [28], FastV [6], ToMe [4], and PruMerge [23]. On the decode side, we compare density (ours) against random and attention-value-norm baselines. We sweep prefill prune ∈{25,50,75}%\in\{25, 50, 75\}\% at insertion layers {0,1,2,3,5,10,15,20}\{0, 1, 2, 3, 5, 10, 15, 20\} and decode keep ∈{75,50,25,12.5,6.25,0}%\in\{75, 50, 25, 12.5, 6.25, 0\}\%.

MethodVenueTPL %MMBenchPOPESQATextVQAAvg-4Speedup
Baseline (no compression)100.00.87070.89030.95390.64930.84111.00×
Block 1: low-TPL — L=15L=15, prune 50%, TPL = 65.2%
Random–65.20.88620.91550.97820.62020.85001.28×
ToMeICLR’23 [4]65.20.85840.89130.93460.53250.80421.16×
FastVECCV’24 [6]65.20.85840.88680.93260.51500.79821.28×
PruMergeICCV’25 [23]65.20.85840.89430.94100.59370.82191.21×
DivPruneCVPR’25 [1]65.20.86300.89230.94300.60170.82501.17×
DARTEMNLP’25 [28]65.20.84670.88770.93160.60260.81711.28×
CAC (ours)–65.20.89090.91420.97920.71950.87591.16×
Block 2: extreme stress — L=3L=3, prune 85%, TPL = 24.1%
Random–24.10.79800.83980.86220.32850.70713.12×
ToMeICLR’2324.10.83200.87980.88600.45240.76262.07×
FastVECCV’2424.10.74230.76650.78330.19390.62153.11×
PruMergeICCV’2524.10.83130.85780.88250.38660.73962.47×
DivPrune†CVPR’2524.10.00000.00000.00000.00410.00102.98×
DART†EMNLP’2524.10.00000.00000.00000.00410.00103.09×
CAC (ours)–24.10.82820.86700.89290.56960.78942.67×
Block 3: visual-only pure prune — L=0L=0, prune 80%, TPL = 20.0%
Random–20.00.82970.85650.87510.36650.73203.57×
ToMeICLR’2320.00.83510.88930.88750.45990.76792.31×
FastVECCV’2420.00.83200.80570.90430.61490.78923.58×
PruMergeICCV’2520.00.82970.87150.88750.33990.73212.79×
DivPrune†CVPR’2520.00.00000.00000.00000.00410.00103.11×
DART†EMNLP’2520.00.00000.00000.00000.00410.00103.30×
CAC (ours)–20.00.84670.88350.89140.57930.80033.24×
Block 3b: + LoRA recovery, fair control — L=0L=0, prune 70%, TPL = 30.0% (matched)
Random + LoRA–30.00.86150.89830.91420.45120.78131.32×
DivPrune + LoRACVPR’2530.00.86070.90600.93550.59810.82510.92×
DART + LoRAEMNLP’2530.00.84750.88370.93460.61490.82021.83×
CAC + LoRA (ours)–30.00.85140.90580.93210.63850.83192.14×

Table 2. Per-benchmark prefill compression on InternVL-3.5-8B; same (L,r)(L,r) within each block. Bold marks per-column best; daggers (†) flag structurally invalid output (acc ≈0\approx0, Appendix S). Block 4 in Appendix V. Speedup: measured prefill speedup vs. uncompressed baseline at batch=8, HD mode (12 tiles, Nvis=3072N_{\mathrm{vis}}=3072) on RTX A6000.

Configuration shorthand. We refer to specific compression configurations by short codes throughout. TwinPrune _LL_r denotes prefill-only TwinPrune compression inserted at LLM layer LL with visual-token prune ratio r%r\%, so TwinPrune _L3_50 is prefill-only compression at layer 3 pruning 50% of visual tokens. decode_only_Dd denotes decode-only KV eviction that drops d%d\% of the visual KV span after prefill, so D75 keeps 25% of visual KV, D87.5 keeps 12.5%, and Dall drops every visual KV. joint_Pp_Dd denotes joint compression that combines prefill-merge prune p%p\% at layer 3 with decode-eviction keep (100−d)%(100-d)\%, so joint_P50_D75 is layer-3 prefill prune 50% paired with decode keep 25%.

Figure 4. Decode KV Eviction on TextVQA. On InternVL-3.5-8B, density-guided eviction Pareto-dominates random and attention-value-norm in the memory–accuracy trade-off. Right inset: Qwen3-VL-4B, LLaVA-1.5-7B, and InternVL-3.5-38B show the same monotonic density trend.

Prefill compression Pareto

Table 2 reports per-benchmark accuracies on InternVL-3.5-8B under a fair-comparison protocol where each block fixes a single (L,r)(L,r) pair shared by all methods, isolating the selection-rule difference. Three blocks in the main paper span the TPL spectrum. Block B1 uses L=15L=15 with prune 50% and TPL≈65%\approx65\%. Block B2 uses L=3L=3 with prune 85% and TPL≈24%\approx24\%, an extreme stress setting. Block B3 uses L=0L=0 with prune 80% and TPL≈20%\approx20\%, a visual-only pure-prune setting. The saturated high-TPL block B4 at L=20L=20, prune 50%, TPL≈86%\approx86\% is reported in Appendix V. The matched cross-architecture sweep on Qwen3-VL-4B uses the same four-block schedule with M-RoPE 3-axis position encoding and is reported in Appendix Q as Tab. 15.

Headline. TwinPrune leads Avg-4 in every block on InternVL-8B. The lead is +2.6pp at the moderate B1 (L=15L=15, prune 50%) and grows to +1.1pp over the next healthy method at the visual-only B3 (L=0L=0, prune 80%), where pure-selection methods DivPrune and DART collapse to acc ≈0\approx0. Under the fair LoRA control at matched TPL=30%=30\% (B3b), TwinPrune+LoRA reaches Avg-4 =0.8319=0.8319 vs DivPrune+LoRA at 0.8251, with a +4.0pp gap on TextVQA. Block-by-block reading and the matched Qwen3-VL-4B sweep are in Appendix D. Selection-side complexity is in Appendix B.

Signal ablation

Is the advantage of our method really density, or could a simpler score match it? Holding every pipeline component fixed (L=15L=15, prune 50%, InternVL-3.5-8B, prune-only top-kk) and swapping only the ranking score across four benchmarks (TextVQA with n=5000n=5000, MMBench, V*Bench, MM-Vet), density wins or ties on all four: it outperforms L2 norm on TextVQA by 2.2 percentage points (0.616 vs. 0.594), attention V-norm on TextVQA by 3.2 percentage points, and V-norm on V*Bench by 4.7 percentage points. MMBench scores cluster near 0.86 because the prefill-probe scoring rule is insensitive to which visual tokens are kept (§ 3). Multi-scale density is nearly indistinguishable from single-scale, differing by 0.03 percentage points on TextVQA, and the product ρ⋅∥v∥\rho\cdot\lVert v\rVert is neutral-to-hurt: the two signals are not independent, so combining them injects noise. Full four-benchmark table in Appendix I.

Decode compression on full-pipeline-probe benchmarks

Decode KV eviction Pareto (Figure 4)

Density-guided eviction outperforms random selection by 5 to 11 percentage points at aggressive (75%) eviction and outperforms the value-norm proxy by 4 to 8 percentage points, consistently across all six tested models. The signal is robust under cross-architecture variation and, as § 5.3 shows, outperforms L2-norm by 2.2 percentage points on TextVQA at matched configuration.

Comparison with published decode-eviction baselines. Table 3 extends the comparison to H2O [33], SnapKV [13], and StreamingLLM [29] on the visual-KV span at three keep ratios. Density top-kk wins all six TextVQA and MM-Vet cells outright, and the advantage widens at extreme compression: at keep =12.5%= 12.5\% density beats H2O by 9.6, 5.4, and 3.5pp on TextVQA, MM-Vet, and DocVQA respectively. SnapKV narrowly leads density on DocVQA at the looser keeps but density reclaims the lead at 12.5%. V-norm takes MM-Vet at decode by 4.8pp at keep 25% (Tab. 6); density still wins TextVQA by 4.5pp and DocVQA by 2.4pp at the same keep, and V-norm requires decode-time attention maps that break the two-phase signal reuse (Appendix I).

Method (keep kk)TextVQA 50%TextVQA 25%TextVQA 12.5%MM-Vet 50%MM-Vet 25%MM-Vet 12.5%DocVQA 50%DocVQA 25%DocVQA 12.5%
Baseline (no eviction)0.7330.7560.642
StreamingLLM [29]0.6370.5730.5070.6670.5610.5140.4680.3840.324
H2O [33]0.6970.6290.5520.6620.5710.4970.5550.4380.347
SnapKV [13]0.7070.6430.5730.6540.5850.5130.5770.4690.377
Density (ours)0.7260.6970.6480.7080.6340.5510.5750.4660.382

Table 3. Decode-phase KV eviction comparison on InternVL-3.5-8B at three keep ratios. Density top-kk wins all six TextVQA and MM-Vet cells. On DocVQA, SnapKV narrowly leads at keep ≥25%\ge25\% but density reclaims the lead at 12.5% keep. Bold marks per-column best. TextVQA uses n=5000n=5000 exact-match. MM-Vet uses n=218n=218. DocVQA uses n=5349n=5349 with ANLS scoring.

Joint compression analysis

Per-model MM-Vet scores under TwinPrune_L3_50, decode_only_D75, and joint_P50_D50 are in Tab. 8 (Appendix J); both single phases cost 10 to 18pp, with no free lunch. The 3×3 dense grid (Tab. 10, Appendix L) confirms a smooth bilinear surface in the interior: accuracy falls monotonically along both axes, and joint configurations are legitimate budget trades but never Pareto-dominate single-phase methods at matched KV budgets. A complementary 3-prefill×3-decode-signal sweep (Appendix K) shows density’s lead over H2O is concentrated in the decode-only regime; once aggressive prefill at L=3L=3, r=85%r=85\% has removed the redundant visual signal, the three decode signals collapse within 1pp on TextVQA.

Discussion and Conclusion

Summary and deployment. VLM token pruning has been evaluated on a benchmark mix that limits visibility into decode-phase effects. We provide the proof, propose a unified density-based framework that scores token importance for both phases, and supply a three-axis Pareto across seven model variants and three full-pipeline-probe benchmarks. We further identify a structural risk class explaining when pure-selection methods fail on multi-axis RoPE backbones, and we show compression cost does not grow with model size in the 8B-to-38B regime. In deployment, latency-bound use cases use prefill compression (3.24× speedup at the B3 cell), memory-bound use cases use decode eviction, and joint configurations apply when both axes are constrained.3

Limitations. We identify two principled limitations. (i) Single-stage prefill compression, with multi-stage scheduling unexplored. (ii) Spatial-grid density assumes regular tokenization, so non-grid tokenizers such as Q-Former require alternative formulations.

Broader impact and future work. Efficient VLM serving lowers energy use and enables edge deployment. Compression can subtly alter behavior on long-tail or safety-critical inputs without changing prefill-probe scores, so high-stakes deployments must validate on full-pipeline-probe benchmarks. Future work: learning the optimal density-aggregation kernel, and task-conditioned signals beyond pre-attention geometry (Appendix F).

References

  1. [1]Saeed Ranjbar Alvar, Gursimran Singh, Mohammad Akbari, and Yong Zhang. DivPrune: Diversity-based visual token pruning for large multimodal models. In CVPR, 2025. arXiv:2503.02175.arxiv.org/abs/2503.02175
  2. [2]Olivier Bachem, Mario Lucic, and Andreas Krause. Practical coreset constructions for machine learning. arXiv preprint arXiv:1703.06476, 2017.arxiv.org/abs/1703.06476
  3. [3]Shuai Bai, Yuxuan Cai, Ruizhe Chen, Kevin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjang Ge, et al. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025.arxiv.org/abs/2511.21631
  4. [4]Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, Christoph Feichtenhofer, and Judy Hoffman. Token merging: Your ViT but faster. In ICLR, 2023.arxiv.org/abs/2210.09461
  5. [5]Zefan Cai, Wen Xiao, Hanshi Sun, Cheng Luo, Yikai Zhang, Ke Wan, Yucheng Li, Yeyang Zhou, Li-Wen Chang, Jiuxiang Gu, et al. R-kv: Redundancy-aware kv cache compression for reasoning models. In NeurIPS, 2025.arxiv.org/abs/2505.24133
  6. [6]Liang Chen, Haozhe Zhao, Tianyu Liu, Shuai Bai, Junyang Lin, Chang Zhou, and Baobao Chang. An image is worth 1/2 tokens after layer 2: Plug-and-play inference acceleration for large vision-language models. In ECCV, 2024.arxiv.org/abs/2403.06764
  7. [7]Dan Feldman and Michael Langberg. A unified framework for approximating and clustering data. Proceedings of the 43rd ACM Symposium on Theory of Computing (STOC), pages 569–578, 2011. arXiv:1106.1379.
  8. [8]Suyu Ge, Yunan Zhang, Liyuan Liu, Minjia Zhang, Jiawei Han, and Jianfeng Gao. Model tells you what to discard: Adaptive KV cache compression for LLMs. In ICLR, 2024.arxiv.org/abs/2310.01801
  9. [9]Ahmadreza Jeddi, Negin Baghbanzadeh, Elham Dolatabadi, and Babak Taati. Similarity-aware token pruning: Your VLM but faster. arXiv preprint arXiv:2503.11549, 2025.arxiv.org/abs/2503.11549
  10. [11]Wentong Li, Yuqian Yuan, Jian Liu, Dongqi Tang, Song Wang, Jie Qin, Jianke Zhu, and Lei Zhang. TokenPacker: Efficient visual projector for multimodal LLM. International Journal of Computer Vision, 133:6794–6812, 2025.arxiv.org/abs/2407.02392
  11. [12]Yifan Li, Yifan Du, Kun Zhou, Jinpeng Wang, Xin Zhao, and Ji-Rong Wen. Evaluating object hallucination in large vision-language models. In EMNLP, 2023.arxiv.org/abs/2305.10355
  12. [13]Yuhong Li, Yingbing Huang, Bowen Yang, Bharat Venkitesh, Acyr Locatelli, Hanchen Ye, Tianle Cai, Patrick Lewis, and Deming Chen. Snapkv: Llm knows what you are looking for before generation. NeurIPS, 2024.arxiv.org/abs/2404.14469
  13. [14]Haotian Liu, ChunYuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning. In CVPR, 2024.arxiv.org/abs/2310.03744
  14. [15]Yuan Liu, Haodong Duan, Yuanhan Zhang, Bo Li, Songyang Zhang, Wangbo Zhao, Yike Yuan, Jiaqi Wang, Conghui He, Ziwei Liu, et al. Mmbench: Is your multi-modal model an all-around player? In ECCV, 2024.arxiv.org/abs/2307.06281
  15. [16]Zirui Liu, Jiayi Yuan, Hongye Jin, Shaochen Zhong, Zhaozhuo Xu, Vladimir Braverman, Beidi Chen, and Xia Hu. KIVI: A tuning-free asymmetric 2bit quantization for KV cache. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 32332–32344. PMLR, 2024.DOI
  16. [17]Zuyan Liu, Benlin Liu, Jiahui Wang, Yuhao Dong, Guangyi Chen, Yongming Rao, Ranjay Krishna, and Jiwen Lu. Efficient inference of vision instruction-following models with elastic cache. In ECCV, 2024. arXiv:2407.18121.arxiv.org/abs/2407.18121
  17. [18]Pan Lu, Swaroop Mishra, Tanglin Xia, Liang Qiu, Kai-Wei Chang, Song-Chun Zhu, Oyvind Tafjord, Peter Clark, and Ashwin Kalyan. Learn to explain: Multimodal reasoning via thought chains for science question answering. NeurIPS, 2022.arxiv.org/abs/2209.09513
  18. [19]Baharan Mirzasoleiman, Ashwinkumar Badanidiyuru, Amin Karbasi, Jan Vondrák, and Andreas Krause. Lazier than lazy greedy. In Proceedings of the AAAI Conference on Artificial Intelligence, 2015. arXiv:1409.7938.
  19. [21]Alfréd Rényi. On measures of entropy and information. Proc. 4th Berkeley Symp. on Mathematical Statistics and Probability, 1961.
  20. [22]Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach. In International Conference on Learning Representations (ICLR), 2018. arXiv:1708.00489.arxiv.org/abs/1708.00489
  21. [23]Yuzhang Shang, Mu Cai, Bingxin Xu, Yong Jae Lee, and Yan Yan. LLaVA-PruMerge: Adaptive token reduction for efficient large multimodal models. In ICCV, 2025. arXiv:2403.15388.arxiv.org/abs/2403.15388
  22. [24]Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards vqa models that can read. In CVPR, 2019.arxiv.org/abs/1904.08920
  23. [25]Jiaming Tang, Yilong Zhao, Kan Zhu, Guangxuan Xiao, Baris Kasikci, and Song Han. QUEST: Query-aware sparsity for efficient long-context LLM inference. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 47901–47911. PMLR, 2024.arxiv.org/abs/2406.10774
  24. [26]Zhongwei Wan, Ziang Wu, Che Liu, Jinfa Huang, Zhihong Zhu, Peng Jin, Longyue Wang, and Li Yuan. LOOK-M: Look-once optimization in KV cache for efficient multimodal long-context inference. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 4065–4078, Miami, Florida, USA, November 2024. Association for Computational Linguistics.arxiv.org/abs/2406.18139
  25. [27]Weiyun Wang, Zhangwei Gao, Lixin Gu, Hengjun Pu, Long Cui, Xingguang Wei, Zhaoyang Liu, Linglin Jing, Shenglong Ye, Jie Shao, et al. InternVl3. 5: Advancing open-source multimodal models in versatility, reasoning, and efficiency. arXiv preprint arXiv:2508.18265, 2025.arxiv.org/abs/2508.18265
  26. [28]Zichen Wen, Yifeng Gao, Shaobo Wang, Junyuan Zhang, Qintong Zhang, Weijia Li, Conghui He, and Linfeng Zhang. Stop looking for “important tokens” in multimodal language models: Duplication matters more. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 9961–9980, Suzhou, China, November 2025. Association for Computational Linguistics.arxiv.org/abs/2502.11494
  27. [29]Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In ICLR, 2024.arxiv.org/abs/2309.17453
  28. [30]Senqiao Yang, Yukang Chen, Zhuotao Tian, Chengyao Wang, Jingyao Li, Bei Yu, and Jiaya Jia. VisionZip: Longer is better but not necessary in vision language models. In CVPR, 2025. arXiv:2412.04467.arxiv.org/abs/2412.04467
  29. [31]Weihao Ye, Qiong Wu, Wenhao Lin, and Yiyi Zhou. Fit and prune: Fast and training-free visual token pruning for multi-modal large language models. In AAAI, 2025. arXiv:2409.10197.arxiv.org/abs/2409.10197
  30. [32]Weihao Yu, Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Zicheng Liu, Xinchao Wang, and Lijuan Wang. MM-Vet: Evaluating large multimodal models for integrated capabilities. In ICML, 2024.arxiv.org/abs/2308.02490
  31. [33]Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, et al. H₂O: Heavy-hitter oracle for efficient generative inference of large language models. NeurIPS, 2023.arxiv.org/abs/2306.14048

Paper details

vlnc:W_b4377zc7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents