arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.17530cs.CV
收藏

TwinPrune:面向视觉-语言模型的密度感知两阶段令牌剪枝

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

Shanghai Jiao Tong University(上海交通大学);Huawei Technologies Ltd(华为技术有限公司)

Kai Liu, Anqi Li, Junxian Li, Zhixin Wang, Zhikai Chen, Renjing Pei, Yulun Zhang

AI总结:

TwinPrune通过密度感知两阶段令牌剪枝,在视觉-语言模型的预填充和解码阶段分别优化,在计算、内存和准确率间实现帕累托前沿,性能优于H2O等基线,且压缩随模型规模扩展表现良好。

摘要:

我们提出一种统一的空间密度信号,用于在两个推理阶段(预填充阶段的二分图合并和解码阶段的KV驱逐)对令牌重要性进行评分,在每个阶段均取得可测量的性能提升。为区分两个阶段,我们按评分逻辑划分基准:预填充探针(MMBench、POPE、ScienceQA)仅评估第一个解码令牌,其准确率反映解码KV驱逐前预填充logits的argmax结果;全流程探针(TextVQA、DocVQA、MM-Vet)评估完整生成序列,覆盖两个阶段。我们发现一个关键评估陷阱:仅通过预填充探针验证的解码剪枝主张,实际衡量的是预填充质量而非解码性能。实验表明,解码阶段丢弃所有视觉KV几乎不影响预填充探针准确率,但会大幅降低TextVQA和MM-Vet的性能;这种不敏感性源于评分规则,而非压缩本身。在7种模型变体(InternVL-3.5、Qwen3-VL、LLaVA-1.5)和3个全流程基准上,我们的方法在计算、内存和准确率之间实现了三方帕累托前沿。基于密度的预填充压缩保持强准确率,随视觉令牌数量线性扩展,在高分辨率下令牌选择速度提升100倍;解码阶段的密度top-k KV驱逐在TextVQA和MM-Vet上,于3种保留率下均优于强基线H2O、SnapKV和StreamingLLM:在TextVQA的0.125保留率下,其超过H2O 9.6个点;InternVL-3.5模型(2B至38B)保持7至10个点的优势。压缩随模型规模扩展表现良好:每从8B模型过渡到38B模型,准确率损失反而减少。我们建议,任何解码阶段主张都必须用MM-Vet或DocVQA进行全流程验证。我们的代码可在该https URL获取。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑