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

Video-CCAM:利用因果交叉注意力掩码增强短视频与长视频的视频-语言理解

Video-CCAM: Enhancing Video-Language Understanding with Causal Cross-Attention Masks for Short and Long Videos

Tsinghua University(清华大学);Tencent QQ(腾讯QQ)

Jiajun Fei, Dian Li, Zhidong Deng, Zekun Wang, Gang Liu, Hui Wang

AI总结:

本文提出Video-CCAM,通过在视觉编码器与LLM间引入因果交叉注意力掩码的中间投影器,解决视频视觉token过多的问题,并在多个短视频与长视频基准上取得领先性能。

摘要:

多模态大语言模型(MLLMs)在需要跨领域知识的各种下游任务中展现了巨大的潜力。能够处理视频的MLLMs,即Video-MLLMs,在视频-语言理解领域引起了广泛关注。然而,视频尤其是长视频,比图像包含更多的视觉token,使得LLMs难以处理。现有工作要么对视觉特征进行下采样,要么扩展LLM的上下文大小,这分别面临丢失高分辨率信息或减慢推理速度的风险。为了解决这些局限性,我们在视觉编码器与大语言模型(LLM)之间的中间投影器中应用了交叉注意力层。由于朴素的交叉注意力机制对时间顺序不敏感,我们进一步在交叉注意力层内引入了因果交叉注意力掩码(CCAMs)。这个名为Video-CCAM的Video-MLLM采用直观的两阶段方式进行训练:特征对齐和视觉指令微调。我们基于不同规模(4B、9B和14B)的LLMs开发了多个Video-CCAM模型。Video-CCAM被证明是一个鲁棒的Video-MLLM,在从短视频到长视频的任务中均表现出色。在MVBench和VideoChatGPT-QA等标准视频基准测试中,Video-CCAM表现优异(在MVBench和TGIF-QA中位列第1/2/3名,在MSVD-QA、MSRVTT-QA和ActivityNet-QA中位列第2/3/4名)。在包含长视频的基准测试中,Video-CCAM模型可以直接适配于长视频理解,并且尽管仅在图像和16帧视频上进行训练,依然取得了优异的分数。在使用96帧(训练帧数的6倍)时,Video-CCAM模型在所有开源Video-MLLMs中,分别在VideoVista中位列第1/2/3名,在MLVU中位列第1/2/4名。代码已在\url{https://github.com/QQ-MM/Video-CCAM}公开发布。

英文摘要:

Multi-modal large language models (MLLMs) have demonstrated considerable potential across various downstream tasks that require cross-domain knowledge. MLLMs capable of processing videos, known as Video-MLLMs, have attracted broad interest in video-language understanding. However, videos, especially long videos, contain more visual tokens than images, making them difficult for LLMs to process. Existing works either downsample visual features or extend the LLM context size, risking the loss of high-resolution information or slowing down inference speed. To address these limitations, we apply cross-attention layers in the intermediate projector between the visual encoder and the large language model (LLM). As the naive cross-attention mechanism is insensitive to temporal order, we further introduce causal cross-attention masks (CCAMs) within the cross-attention layers. This Video-MLLM, named Video-CCAM, is trained in a straightforward two-stage fashion: feature alignment and visual instruction tuning. We develop several Video-CCAM models based on LLMs of different sizes (4B, 9B, and 14B). Video-CCAM proves to be a robust Video-MLLM and shows outstanding performance from short videos to long ones. Among standard video benchmarks like MVBench and VideoChatGPT-QA, Video-CCAM shows outstanding performances (1st/2nd/3rd in MVBench and TGIF-QA, 2nd/3rd/4th in MSVD-QA, MSRVTT-QA, and ActivityNet-QA). In benchmarks encompassing long videos, Video-CCAM models can be directly adapted to long video understanding and still achieve exceptional scores despite being trained solely with images and 16-frame videos. Using 96 frames (6$\times$ the training number of frames), Video-CCAM models rank 1st/2nd/3rd in VideoVista and 1st/2nd/4th in MLVU among all open-source Video-MLLMs, respectively. The code is publicly available in \url{https://github.com/QQ-MM/Video-CCAM}.

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

↑