arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.01986cs.CVcs.AI
收藏

FrameFusion:在大型视觉语言模型上结合相似性与重要性进行视频 token 缩减

FrameFusion: Combining Similarity and Importance for Video Token Reduction on Large Vision Language Models

Tsinghua University(清华大学);Infinigence-AI;Peking University(北京大学);Shanghai Jiao Tong University(上海交通大学)

Tianyu Fu, Tengxuan Liu, Qinghao Han, Guohao Dai, Shengen Yan, Huazhong Yang, Xuefei Ning, Yu Wang

AI总结:

提出 FrameFusion,结合相邻帧对应 token 的相似性合并与重要性剪除,在六个 LVLM 和五个视频基准上减少 70% 视觉 token,实现 1.6–3.6 倍加速且性能损失低于 3%。

摘要:

处理长时程和高分辨率视频的需求不断增长,由于视觉 token 数量庞大,给大型视觉语言模型(LVLMs)带来了显著负担。现有的 token 缩减方法主要基于重要性指标(如累积注意力分数)剪除 token。然而,即使是重要 token,也可能因相邻视频帧之间的相似性以及重复的视觉元素而表现出高度冗余。为解决这一局限,我们提出了 FrameFusion,这是一种将基于相似性的合并与基于重要性的剪除相结合的新型 token 缩减方法。我们对 token 相似性特征进行了深入研究,揭示了三个关键洞见:(1)与其他 token 对相比,相邻帧之间空间对应的视觉 token 具有更高的余弦相似度;(2)在模型更深层中,高 token 相似度显著下降;(3)token 相似度排序在不同层之间高度一致。在这些观察结果的指导下,FrameFusion 仅计算相邻帧对应视觉 token 之间的相似度,在最初的连续层应用 token 合并,随后在更深层进行剪除,并采用级联合并策略以进一步提升效率。我们在六个不同的 LVLM(参数规模从 2B 到 72B)上,使用涵盖视频检索、问答和时空理解任务的五个视频基准对 FrameFusion 进行了全面评估。实验表明,FrameFusion 将视觉 token 减少了 70%,实现了 1.6–3.6 倍的端到端加速,且平均性能影响低于 3%。我们的代码可在 https://github.com/thu-nics/FrameFusion 获取。

英文摘要:

The increasing demand to process long and high-resolution videos significantly burdens Large Vision-Language Models (LVLMs) due to the enormous number of visual tokens. Existing token reduction methods primarily prune tokens based on importance metrics, such as cumulative attention scores. However, even important tokens may exhibit high redundancy caused by similarity among adjacent video frames and repetitive visual elements. To address this limitation, we propose FrameFusion, a novel token reduction approach integrating similarity-based merging with importance-based pruning. We conduct a thorough study on token similarity characteristics, revealing three key insights: (1) spatially corresponding visual tokens between adjacent frames have higher cosine similarities compared to other token pairs; (2) high token similarities prominently decrease in deeper model layers; and (3) token similarity rankings are highly consistent across different layers. Guided by these observations, FrameFusion computes token similarities exclusively between corresponding visual tokens from adjacent frames, applies token merging at initial successive layers followed by pruning in deeper layers, and adopts a cascaded merging strategy to further enhance efficiency. We evaluate FrameFusion comprehensively across six diverse LVLMs, ranging from 2B to 72B parameters, using five video benchmarks encompassing video retrieval, question-answering, and spatial-temporal understanding tasks. Experiments show that FrameFusion reduces visual tokens by 70%, achieving 1.6-3.6x end-to-end speedups, with an average performance impact of less than 3%. Our code is available at: https://github.com/thu-nics/FrameFusion.

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

↑