LoopZip:用于高效循环视觉-语言模型的视觉令牌压缩
LoopZip: Visual Token Compression for Efficient Looped Vision-Language Models
AI总结:
提出无需训练的LoopZip视觉令牌压缩算法,解决循环VLMs的令牌选择与信息保留问题,在LoopVL-1B上大幅降低GPU内存并提升推理速度,性能优于基线。
摘要:
循环视觉-语言模型(VLMs)通过复用共享层深化计算,以更少参数逼近更大模型的性能,缓解了堆叠独立层的存储与部署负担。然而,反复处理长视觉序列仍会产生大量计算和GPU内存开销。视觉令牌压缩通过缩短序列降低这些开销,现有方法主要直接选择原始令牌或将选择与聚合结合。在循环模型中,前者可能忽略不同调用间令牌重要性的变化,丢弃后续所需信息;后者缺乏对不同调用间输出变化的联合考虑,限制了信息保留。我们提出LoopZip,一种无需训练的视觉令牌压缩算法,以解决这两个问题。视觉聚合在循环骨干网络前构建紧凑候选池,跨调用选择对同一共享注意力层前两次现有调用的指令注意力取平均,以保留两种状态所需的令牌。权重绑定的值校正随后联合拟合共享视觉值调整,适配预选层输出,减少不同状态间的输出偏差。为验证LoopZip的有效性,我们开展了广泛实验,涵盖两个开源循环VLMs、十一个基准和三种剪枝比例。在LoopVL-1B上,当剪枝比例为50%时,LoopZip保留了原始模型97.16%的性能;当剪枝比例为87.5%时,其性能超出最强基线5.36%。在Hugging Face Transformers、vLLM和SGLang上,搭载LoopZip的LoopVL-1B将峰值分配GPU内存降低了58.36%-58.98%,并实现了比原始模型高2.01-2.47倍的端到端加速。
英文摘要:
Looped vision-language models (VLMs) deepen computation by reusing shared layers, approaching larger models' capabilities with fewer parameters and easing the storage and deployment burden of stacking independent layers. However, repeatedly processing long visual sequences still incurs substantial compute and GPU memory costs. Visual token compression reduces these costs by shortening sequences. Existing methods mainly select original tokens directly or combine selection with aggregation. In looped models, the former may overlook changing token importance across calls and discard information needed later; the latter lack joint consideration of output changes across calls, limiting information preservation. We propose LoopZip, a training-free visual token compression algorithm addressing both issues. Visual aggregation builds a compact candidate pool before the looped backbone, and cross-invocation selection averages instruction attention from the first two existing calls of the same shared attention layer to retain tokens needed by both states. Weight-tied value correction then jointly fits shared visual-value adjustments to both pre-selection layer outputs, reducing output deviations across states. To validate LoopZip's effectiveness, we conduct extensive experiments covering two open-source looped VLMs, eleven benchmarks, and three pruning ratios. On LoopVL-1B, LoopZip retains 97.16% of the original model's performance at 50% pruning ratio and exceeds the strongest baseline by 5.36% at 87.5% pruning ratio. Across Hugging Face Transformers, vLLM, and SGLang, LoopVL-1B with LoopZip reduces peak allocated GPU memory by 58.36%-58.98% and achieves 2.01-2.47x end-to-end speedups over the original model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。