[Paper Review] MeMViT: Memory-Augmented Multiscale Vision Transformer for Efficient Long-Term Video Recognition
MeMViT proposes a memory-augmented Multiscale Vision Transformer that enables efficient long-term video recognition by caching and reusing temporal context across frames, achieving 30× longer temporal support than prior models with only 4.5% more compute. It outperforms existing methods on AVA, EPIC-Kitchens-100, and action anticipation benchmarks by leveraging hierarchical self-attention over cached keys and values, along with a joint memory compression module for efficiency.
While today's video recognition systems parse snapshots or short clips accurately, they cannot connect the dots and reason across a longer range of time yet. Most existing video architectures can only process <5 seconds of a video without hitting the computation or memory bottlenecks. In this paper, we propose a new strategy to overcome this challenge. Instead of trying to process more frames at once like most existing methods, we propose to process videos in an online fashion and cache "memory" at each iteration. Through the memory, the model can reference prior context for long-term modeling, with only a marginal cost. Based on this idea, we build MeMViT, a Memory-augmented Multiscale Vision Transformer, that has a temporal support 30x longer than existing models with only 4.5% more compute; traditional methods need >3,000% more compute to do the same. On a wide range of settings, the increased temporal support enabled by MeMViT brings large gains in recognition accuracy consistently. MeMViT obtains state-of-the-art results on the AVA, EPIC-Kitchens-100 action classification, and action anticipation datasets. Code and models are available at https://github.com/facebookresearch/memvit.
Motivation & Objective
- To enable efficient long-term video understanding beyond the 5-second limit of current models.
- To address the computational and memory bottlenecks in processing long videos by avoiding joint processing of entire long sequences.
- To develop a memory-based mechanism that allows online, incremental video modeling with access to prior context.
- To improve recognition accuracy on long-range action understanding tasks without drastically increasing computational cost.
- To enable end-to-end training with a compressed memory module that retains only salient long-range cues.
Proposed method
- MeMViT processes video in an online fashion, caching 'memory' in the form of keys and values from previous clips for use in self-attention mechanisms.
- At each inference step, queries attend to both current-frame tokens and previously cached keys/values, extending the model's effective receptive field over time.
- The model uses relative positional embeddings decomposed along temporal, height, and width dimensions to reduce memory cost compared to full tensor-based approaches.
- A joint memory compression module is trained end-to-end to retain only the most informative features from prior frames, minimizing memory footprint.
- The architecture is built upon MViT with multiscale feature hierarchies and is adapted for long-range modeling via causal attention and pooling to ensure autoregressive consistency.
- Progressive pre-training is used, gradually increasing video length from single clips to full 10-second videos to stabilize learning and improve generalization.
Experimental results
Research questions
- RQ1Can a video model achieve significantly longer effective temporal context without proportionally increasing compute or memory usage?
- RQ2How does caching and reusing attention keys and values from prior frames improve long-term action recognition accuracy?
- RQ3Can a memory-augmented design outperform standard video transformers that process long sequences in a single forward pass?
- RQ4To what extent can a joint memory compression module reduce memory overhead while preserving performance on long-range video tasks?
- RQ5Does online, incremental processing with memory access lead to better generalization and robustness on long-horizon video understanding benchmarks?
Key findings
- MeMViT achieves 30× longer temporal support than existing models with only 4.5% more compute, while traditional methods would require over 3,000% more compute for the same gain.
- On the AVA dataset, MeMViT achieves state-of-the-art performance in spatiotemporal action localization, demonstrating improved long-range reasoning.
- On EPIC-Kitchens-100, MeMViT achieves new state-of-the-art results in both action classification and action anticipation tasks, with significant accuracy gains over short-term baselines.
- The ablation study shows that adding a transformer layer before the classifier improves mAP from 27.0 to 27.0, and using full-frame features boosts mAP to 26.6.
- The causal variant of MeMViT successfully enables action anticipation without future information leakage, achieving strong performance on the EPIC-Kitchens-100 anticipation benchmark.
- Progressive pre-training improves model convergence and performance, especially in early training stages, by gradually exposing the model to longer video segments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.