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

流式长视频理解与大型语言模型

Streaming Long Video Understanding with Large Language Models

The Chinese University of Hong Kong(香港中文大学);Shanghai AI Laboratory(上海人工智能实验室)

Rui Qian, Xiaoyi Dong, Pan Zhang, Yuhang Zang, Shuangrui Ding, Dahua Lin, Jiaqi Wang

AI总结:

本文提出VideoStreaming,一种视觉-语言大模型,通过记忆传播流式编码和自适应记忆选择,以恒定令牌数高效理解任意长度视频,在长视频基准上取得优越性能与效率。

摘要:

本文提出了VideoStreaming,一种先进的视觉-语言大模型(VLLM),用于视频理解,能够以恒定数量的视频令牌流式编码和自适应选择,理解任意长度的视频。视觉语言领域中视频理解的挑战主要在于从长视频中提取的大量令牌所带来的显著计算负担。以往的工作依赖稀疏采样或帧压缩来减少令牌。然而,这些方法要么忽略长时间跨度中的时间信息,要么牺牲空间细节,导致有缺陷的压缩。为解决这些局限,我们的VideoStreaming有两个核心设计:记忆传播流式编码和自适应记忆选择。记忆传播流式编码架构将长视频分割为短片段,并利用传播的记忆顺序编码每个片段。在每次迭代中,我们利用前一片段的编码结果作为历史记忆,与当前片段整合,以提炼出封装截至当前时间戳视频内容的紧凑表示。编码过程之后,自适应记忆选择策略从所有历史记忆中选择恒定数量的与问题相关的记忆,并将其输入LLM以生成信息丰富的响应。与问题相关的选择减少了记忆中的冗余,实现了高效且精确的视频理解。同时,解耦的视频提取与推理设计允许LLM通过直接选择相应的记忆来回答关于视频的不同问题,而无需为每个问题编码整个视频。我们的模型在长视频基准上实现了优越的性能和更高的效率,展示了用于详细问答的精确时间理解。

英文摘要:

This paper presents VideoStreaming, an advanced vision-language large model (VLLM) for video understanding, that capably understands arbitrary-length video with a constant number of video tokens streamingly encoded and adaptively selected. The challenge of video understanding in the vision language area mainly lies in the significant computational burden caused by the great number of tokens extracted from long videos. Previous works rely on sparse sampling or frame compression to reduce tokens. However, such approaches either disregard temporal information in a long time span or sacrifice spatial details, resulting in flawed compression. To address these limitations, our VideoStreaming has two core designs: Memory-Propagated Streaming Encoding and Adaptive Memory Selection. The Memory-Propagated Streaming Encoding architecture segments long videos into short clips and sequentially encodes each clip with a propagated memory. In each iteration, we utilize the encoded results of the preceding clip as historical memory, which is integrated with the current clip to distill a condensed representation that encapsulates the video content up to the current timestamp. After the encoding process, the Adaptive Memory Selection strategy selects a constant number of question-related memories from all the historical memories and feeds them into the LLM to generate informative responses. The question-related selection reduces redundancy within the memories, enabling efficient and precise video understanding. Meanwhile, the disentangled video extraction and reasoning design allows the LLM to answer different questions about a video by directly selecting corresponding memories, without the need to encode the whole video for each question. Our model achieves superior performance and higher efficiency on long video benchmarks, showcasing precise temporal comprehension for detailed question answering.

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

↑