Skip to main content
QUICK REVIEW

[论文解读] Memory Consolidation Enables Long-Context Video Understanding

Ivana Balažević, Yuge Shi|arXiv (Cornell University)|Feb 8, 2024
Human Pose and Action RecognitionComputer Science被引用 3
一句话总结

本文提出记忆整合视觉Transformer(MC-ViT),一种使标准预训练视频Transformer能够通过非参数化地存储和关注压缩的、具有代表性的过去激活,实现对长视频上下文的推理。尽管参数量少几个数量级且微调极少,MC-ViT在EgoSchema、Perception Test和Diving48上均创下新的最先进性能,优于包括GPT-4V和Bard在内的大规模及专有模型。

ABSTRACT

Most transformer-based video encoders are limited to short temporal contexts due to their quadratic complexity. While various attempts have been made to extend this context, this has often come at the cost of both conceptual and computational complexity. We propose to instead re-purpose existing pre-trained video transformers by simply fine-tuning them to attend to memories derived non-parametrically from past activations. By leveraging redundancy reduction, our memory-consolidated vision transformer (MC-ViT) effortlessly extends its context far into the past and exhibits excellent scaling behavior when learning from longer videos. In doing so, MC-ViT sets a new state-of-the-art in long-context video understanding on EgoSchema, Perception Test, and Diving48, outperforming methods that benefit from orders of magnitude more parameters.

研究动机与目标

  • 解决视频Transformer因二次方注意力复杂度而难以在长视频序列上进行推理的局限性。
  • 在不修改架构或采用复杂训练方案的前提下,实现长上下文视频理解。
  • 探究非参数化记忆整合是否能有效扩展预训练视频Transformer的上下文长度。
  • 通过轻量化、高效的方法在长视频基准上实现最先进性能。
  • 证明强大的视频表征能力可不依赖大规模模型或专有系统实现。

提出的方法

  • 该方法以短时流式段处理视频,同时维护一个过去激活的非参数化记忆库。
  • 利用冗余减少技术对过去激活进行整合,形成紧凑且具有代表性的记忆库。
  • 在推理过程中,模型同时关注当前段激活与整合后的记忆,实现长距离上下文建模。
  • 记忆通过增量方式更新,无需参数更新,从而保持原始视频Transformer架构不变。
  • 仅对注意力机制进行微调以关注记忆,训练周期极短。
  • 非参数化整合方案受到记忆作为重构过程的认知理论启发。
Figure 1: Long-context video understanding on EgoSchema and Perception Test. The proposed Memory-Consolidated Vision Transformer (MC-ViT-{B,L}, shown in bold) surpasses both public and large-scale proprietary models, despite using orders of magnitude fewer parameters and requiring only short fine-tu
Figure 1: Long-context video understanding on EgoSchema and Perception Test. The proposed Memory-Consolidated Vision Transformer (MC-ViT-{B,L}, shown in bold) surpasses both public and large-scale proprietary models, despite using orders of magnitude fewer parameters and requiring only short fine-tu

实验结果

研究问题

  • RQ1非参数化记忆整合是否能在不修改架构的前提下,有效扩展标准视频Transformer的上下文长度?
  • RQ2在长上下文视频理解中,记忆整合与参数化方法或注意力近似方法相比表现如何?
  • RQ3一个小型、开源且高效的模型能否在长视频基准上超越大规模专有模型?
  • RQ4记忆整合在多大程度上降低了计算与内存开销,同时保持性能?
  • RQ5在预训练视频Transformer上采用简单的微调策略,能否在长上下文任务中实现最先进结果?

主要发现

  • MC-ViT在EgoSchema、Perception Test和Diving48上均达到最先进性能,优于参数量多几个数量级的方法。
  • 在EgoSchema和Perception Test上,MC-ViT超越GPT-4V和Bard,性能比Bard + PALI模块化系统高出5%。
  • MC-ViT的内存和计算量仅为标准视频Transformer的十分之一,同时保持强劲性能。
  • 该方法仅需在标准预训练模型基础上进行极短的微调周期,即可实现快速适应。
  • 尽管未使用大型语言解码器,MC-ViT在所有基准上表现具有竞争力,展现出强大的长上下文与定位能力。
  • 非参数化记忆整合使内存大小减少一个数量级,同时保持表征质量。
Figure 2: Visualization of the proposed method. Left: Streaming ViT processes each segment of the sequence independently by attending over activations within a segment. Middle: Memory-Augmented ViT, similar to Transformer XL (Dai et al., 2019 ) , attends to current activations (yellow blocks) and th
Figure 2: Visualization of the proposed method. Left: Streaming ViT processes each segment of the sequence independently by attending over activations within a segment. Middle: Memory-Augmented ViT, similar to Transformer XL (Dai et al., 2019 ) , attends to current activations (yellow blocks) and th

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。