通过自适应采样关键帧,提升长视频理解的准确性。
Adaptive Keyframe Sampling for Long Video Understanding

- 根据提示相关性和视频覆盖度,动态选择关键帧
- 在固定令牌数下显著提升视频问答准确率
- 适用于需要处理长视频的多模态大模型用户
多模态大语言模型(MLLM)通过将视觉输入作为额外标记注入大语言模型(LLM)来实现开放世界视觉理解。然而,当视觉输入从单张图像扩展到长视频时,该范式面临挑战:大量视频标记已超出MLLM的最大容量。因此,现有基于视频的MLLM大多仅采样部分标记,导致关键信息丢失并产生错误答案。本文提出一种简单而有效的算法——自适应关键帧采样(AKS),引入可即插即用的关键帧选择模块,旨在以固定数量的视频标记最大化有用信息。我们将关键帧选择建模为一个优化问题,涉及(1)关键帧与提示的相关性,以及(2)关键帧对视频的整体覆盖度,并设计一种自适应算法近似最优解。在两个长视频理解基准上的实验表明,采用关键帧采样后,视频问答准确率优于强基线方法。本研究揭示了在基于视频的MLLM中进行信息预筛选的重要性。代码已开源:https://github.com/ncTimTang/AKS。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。