StreamViT-Prune:用于高效流式视频大语言模型的视觉变换器内部因果令牌剪枝
StreamViT-Prune: Causal Token Reduction Inside Vision Transformers for Efficient Streaming Video-LLMs
AI总结:
提出无需训练的StreamViT-Prune框架,通过因果令牌剪枝降低流式Video-LLM的视觉编码成本,在多基准测试中实现最优性能,显著减少计算量与延迟。
摘要:
流式视频大语言模型(Video-LLMs)对每帧到达的图像都通过所有视觉变换器(ViT)层进行编码,使得视觉编码成为在线推理的瓶颈。现有方法通过复用前序帧的特征来降低ViT内部的计算成本,但复用的特征可能与当前帧不再匹配。我们提出StreamViT-Prune(SVP),一种无需训练的框架,在ViT内部执行因果令牌剪枝。由于流式上下文已保留前序帧的视觉信息,仅需对当前帧内重要或相对于近期帧新颖的令牌进行进一步编码。在选定的ViT层,SVP通过注意力重要性和时间新颖性对令牌打分,保留得分最高的令牌,并逐步缩短后续层处理的序列长度。在多模态投影器之后,空间感知加权池化将保留的候选令牌缩减至大语言模型(LLM)的令牌预算,同时保留空间覆盖范围。在五个基准测试和两个Video-LLM主干模型上,SVP在所有测试的令牌预算下,均达到无需训练的令牌压缩方法中的最优平均准确率。在LLaVA-OneVision-7B的10%令牌预算下,它将视觉GFLOPs降低23.5%,ViT编码延迟降低18.4%。
英文摘要:
Streaming video large language models (Video-LLMs) encode every arriving frame through all ViT layers, making visual encoding a bottleneck in online inference. Recent methods reduce this cost inside the ViT by reusing features from earlier frames, but a reused feature may no longer match the current frame. We introduce StreamViT-Prune (SVP), a training-free framework that performs causal token pruning inside the ViT. Since visual information from previous frames is already maintained in the streaming context, only tokens that are important within the current frame or novel relative to recent frames require further encoding. At selected ViT layers, SVP therefore scores tokens by attention importance and temporal novelty, retaining the top-scoring ones and progressively shortening the sequence processed by later layers. After the multimodal projector, spatial-aware weighted pooling reduces the retained candidates to the final LLM token budget while preserving spatial coverage. Across five benchmarks and two Video-LLM backbones, SVP achieves state-of-the-art average accuracy among training-free token compression methods at every tested budget. At a 10% token budget on LLaVA-OneVision-7B, it reduces visual GFLOPs by 23.5% and ViT encoding latency by 18.4%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。