Skip to main content
QUICK REVIEW

[Paper Review] Memory Consolidation Enables Long-Context Video Understanding

Ivana Balažević, Yuge Shi|arXiv (Cornell University)|Feb 8, 2024
Human Pose and Action RecognitionComputer Science3 citations
TL;DR

This paper proposes Memory-Consolidated Vision Transformer (MC-ViT), a method that enables standard pretrained video transformers to reason over long video contexts by non-parametrically storing and attending to compressed, representative past activations. Despite using orders of magnitude fewer parameters and minimal fine-tuning, MC-ViT sets a new state-of-the-art on EgoSchema, Perception Test, and Diving48, outperforming both large-scale and proprietary models like GPT-4V and 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.

Motivation & Objective

  • To address the limitation of video transformers in reasoning over long video sequences due to quadratic attention complexity.
  • To enable long-context video understanding without architectural modifications or complex training regimes.
  • To explore whether non-parametric memory consolidation can effectively extend the context of pretrained video transformers.
  • To achieve state-of-the-art performance on long-video benchmarks using a lightweight, efficient method.
  • To demonstrate that strong video representations can be achieved without relying on massive models or proprietary systems.

Proposed method

  • The method processes video in short streaming segments, maintaining a non-parametric memory bank of past activations.
  • Past activations are consolidated using redundancy-reduction techniques to form a compact, representative memory bank.
  • The model attends to both current segment activations and the consolidated memory during inference, enabling long-range context modeling.
  • The memory is updated incrementally without parameter updates, preserving the original video transformer architecture.
  • Fine-tuning is applied only to the attention mechanism to attend to the memory, requiring short training schedules.
  • Non-parametric consolidation schemes are inspired by cognitive theories of memory as a reconstructive process.
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

Experimental results

Research questions

  • RQ1Can non-parametric memory consolidation effectively extend the context of standard video transformers without architectural changes?
  • RQ2How does memory consolidation compare to parametric or attention-approximation methods in long-context video understanding?
  • RQ3Can a small, open, and efficient model outperform large-scale proprietary models on long-video benchmarks?
  • RQ4To what extent does memory consolidation reduce computational and memory overhead while maintaining performance?
  • RQ5Can a simple fine-tuning strategy on a pretrained video transformer achieve state-of-the-art results on long-context tasks?

Key findings

  • MC-ViT achieves state-of-the-art performance on EgoSchema, Perception Test, and Diving48, outperforming methods with orders of magnitude more parameters.
  • On EgoSchema and Perception Test, MC-ViT surpasses GPT-4V and Bard, achieving 5% higher performance than the Bard + PALI modular system.
  • MC-ViT uses 10× less memory and computation than standard video transformers while maintaining strong performance.
  • The method requires only short fine-tuning schedules on top of standard pretrained models, enabling rapid adaptation.
  • Despite lacking large language decoders, MC-ViT performs competitively across all benchmarks, demonstrating strong long-context and localization capabilities.
  • The non-parametric memory consolidation reduces memory size by an order of magnitude while preserving representational quality.
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

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.