arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.21271cs.CVcs.AIcs.LG
收藏

自适应关键帧采样用于长视频理解

Adaptive Keyframe Sampling for Long Video Understanding

University of Chinese Academy of Sciences(中国科学院大学);University at Buffalo, SUNY(纽约州立大学布法罗分校)

Xi Tang, Jihao Qiu, Lingxi Xie, Yunjie Tian, Jianbin Jiao, Qixiang Ye

AI总结:

提出自适应关键帧采样(AKS)算法,通过即插即用的关键帧选择模块,在固定视频标记数下最大化信息量,提升长视频理解基准上的问答准确率。

摘要:

多模态大语言模型(MLLMs)通过将视觉输入作为额外标记注入大语言模型(LLMs)作为上下文,实现了开放世界的视觉理解。然而,当视觉输入从单张图像变为长视频时,上述范式遇到困难,因为海量的视频标记已显著超出MLLMs的最大容量。因此,现有的基于视频的MLLMs大多依赖于从输入数据中采样一小部分标记,这可能导致关键信息丢失,从而产生错误答案。本文提出了一种简单而有效的算法,名为自适应关键帧采样(AKS)。它插入了一个即插即用的模块,称为关键帧选择,旨在用固定数量的视频标记最大化有用信息。我们将关键帧选择表述为一个优化问题,涉及(1)关键帧与提示之间的相关性,以及(2)关键帧对视频的覆盖范围,并提出了一种自适应算法来逼近最佳解决方案。在两个长视频理解基准上的实验验证了自适应关键帧采样通过选择信息丰富的关键帧,提高了视频问答的准确率(超越了强基线)。我们的研究揭示了在基于视频的MLLMs中信息预过滤的重要性。代码可在 https://github.com/ncTimTang/AKS 获取。

英文摘要:

Multimodal large language models (MLLMs) have enabled open-world visual understanding by injecting visual input as extra tokens into large language models (LLMs) as contexts. However, when the visual input changes from a single image to a long video, the above paradigm encounters difficulty because the vast amount of video tokens has significantly exceeded the maximal capacity of MLLMs. Therefore, existing video-based MLLMs are mostly established upon sampling a small portion of tokens from input data, which can cause key information to be lost and thus produce incorrect answers. This paper presents a simple yet effective algorithm named Adaptive Keyframe Sampling (AKS). It inserts a plug-and-play module known as keyframe selection, which aims to maximize the useful information with a fixed number of video tokens. We formulate keyframe selection as an optimization involving (1) the relevance between the keyframes and the prompt, and (2) the coverage of the keyframes over the video, and present an adaptive algorithm to approximate the best solution. Experiments on two long video understanding benchmarks validate that Adaptive Keyframe Sampling improves video QA accuracy (beyond strong baselines) upon selecting informative keyframes. Our study reveals the importance of information pre-filtering in video-based MLLMs. Code is available at https://github.com/ncTimTang/AKS.

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

↑