arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.20018cs.CV
收藏

视觉上下文窗口扩展:长视频理解的新视角

Visual Context Window Extension: A New Perspective for Long Video Understanding

School of Remote Sensing and Information Engineering, Wuhan University(武汉大学遥感信息工程学院)

Hongchen Wei, Zhenzhong Chen

AI总结:

本文从视觉上下文窗口视角扩展 LMMs,并结合渐进式池化推理降低长序列显存,使 7B 模型无需长视频重训即可在 MLVU 上超过 GPT-4o。

摘要:

大型多模态模型(LMMs)在短视频理解任务中已展现出令人瞩目的性能,但在应用于长视频理解时面临巨大挑战。相比之下,大型语言模型(LLMs)在建模长文本方面表现出卓越能力。现有工作尝试通过在训练期间引入长视频-文本对来解决这一问题。然而,这些方法需要大量的计算和数据资源。在本文中,我们从上下文窗口的角度应对长视频理解的挑战,旨在将 LMMs 应用于长视频任务,而无需在长视频数据集上重新训练。我们首先深入分析了为什么预训练 LMMs 难以理解冗长的视频内容,发现视觉模态与语言模态之间的差异导致视觉 token 和语言 token 具有不同的上下文窗口,使得难以直接扩展视觉 token 以匹配语言上下文窗口。基于此,我们提出通过扩展视觉上下文窗口,使 LMMs 适配长视频理解任务,从而无需在大规模长视频数据集上重新训练。为进一步缓解长序列造成的显著内存消耗,我们引入了一种渐进式池化推理策略,该策略有选择地调整帧嵌入的空间分辨率,在保留重要空间信息的同时减少视觉 token 数量。在多个长视频理解基准测试中,我们的方法随着视频帧数增加而持续提升性能。在 MLVU 基准上,即使我们的模型规模仅为 7B,其表现仍优于 GPT-4o。此外,在 256 帧设置下,与基线相比,我们的方法将内存使用量降低约 45%,且没有引入任何性能损失。

英文摘要:

Large Multimodal Models (LMMs) have demonstrated impressive performance in short video understanding tasks but face great challenges when applied to long video understanding. In contrast, Large Language Models (LLMs) exhibit outstanding capabilities in modeling long texts. Existing work attempts to address this issue by introducing long video-text pairs during training. However, these approaches require substantial computational and data resources. In this paper, we tackle the challenge of long video understanding from the perspective of context windows, aiming to apply LMMs to long video tasks without retraining on long video datasets. We first conduct an in-depth analysis of why pretrained LMMs struggle to understand lengthy video content, identifying that discrepancies between visual and language modalities lead to different context windows for visual and language tokens, making it difficult to directly extend the visual tokens to match the language context window. Based on this, we propose to adapt LMMs for long video understanding tasks by extending the visual context window, eliminating the need for retraining on large scalelong video datasets. To further mitigate the significant memory consumption caused by long sequences, we introduce a progressive pooling inference strategy that selectively adjusts the spatial resolution of frame embeddings, reducing the number of visual tokens while retaining important spatial information. Across multiple long video understanding benchmarks, our method consistently improves the performance as the number of video frames increases. On the MLVU benchmark, our method outperforms GPT-4o, even though our model size is only 7B. Additionally, in the 256-frame setting, our method reduces memory usage by approximately 45% compared to the baseline, without introducing any performance loss.

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

↑