系统研究视频视觉上下文表示,找到提升视频多模态大模型性能的关键帧与特征选择方案。
Exploring the Design Space of Visual Context Representation in Video MLLMs
- 将视觉上下文表示建模为约束优化问题,量化帧数与每帧特征数对损失的影响。
- 实验证明最优设置下模型在多个数据集上显著提效,如VideoMME上提升3.2%。
- 适用于希望提升视频理解模型效率与精度的研究者与工程师。
视频多模态大语言模型(Video MLLMs)在多种下游任务中展现出强大的视频语义理解能力。然而,关于视觉上下文表示——即从视频中选取帧并进一步选取每帧的嵌入(或标记)——仍缺乏系统性研究。本文探索视觉上下文表示的设计空间,旨在通过发现更有效的表示方案来提升视频MLLM的性能。首先,我们将视觉上下文表示任务建模为带约束的优化问题,将语言建模损失表示为帧数和每帧嵌入数的函数,受限于最大视觉上下文窗口大小。随后,通过大量实验探究帧选择与标记选择的缩放效应,并拟合相应函数曲线。我们评估了典型选择策略的有效性,得出影响性能的两个关键因素。进一步研究帧选择与标记选择的联合效应,推导出最优公式以确定两者。结果表明,该公式推导出的设置与实验中表现最佳的结果高度一致。代码与模型已开源:https://github.com/RUCAIBox/Opt-Visor。
原文摘要 · Abstract (English)
Video Multimodal Large Language Models (MLLMs) have shown remarkable capability of understanding the video semantics on various downstream tasks. Despite the advancements, there is still a lack of systematic research on visual context representation, which refers to the scheme to select frames from a video and further select the tokens from a frame. In this paper, we explore the design space for visual context representation, and aim to improve the performance of video MLLMs by finding more effective representation schemes. Firstly, we formulate the task of visual context representation as a constrained optimization problem, and model the language modeling loss as a function of the number of frames and the number of embeddings (or tokens) per frame, given the maximum visual context window size. Then, we explore the scaling effects in frame selection and token selection respectively, and fit the corresponding function curve by conducting extensive empirical experiments. We examine the effectiveness of typical selection strategies and present empirical findings to determine the two factors. Furthermore, we study the joint effect of frame selection and token selection, and derive the optimal formula for determining the two factors. We demonstrate that the derived optimal settings show alignment with the best-performed results of empirical experiments. Our code and model are available at: https://github.com/RUCAIBox/Opt-Visor.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。