HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

VIMPAC: Video Pre-Training via Masked Token Prediction and Contrastive Learning

Hao Tan Jie Lei Thomas Wolf Mohit Bansal

VIMPAC: Video Pre-Training via Masked Token Prediction and Contrastive Learning

Abstract

Video understanding relies on perceiving the global content and modeling its internal connections (e.g., causality, movement, and spatio-temporal correspondence). To learn these interactions, we apply a mask-then-predict pre-training task on discretized video tokens generated via VQ-VAE. Unlike language, where the text tokens are more independent, neighboring video tokens typically have strong correlations (e.g., consecutive video frames usually look very similar), and hence uniformly masking individual tokens will make the task too trivial to learn useful representations. To deal with this issue, we propose a block-wise masking strategy where we mask neighboring video tokens in both spatial and temporal domains. We also add an augmentation-free contrastive learning method to further capture the global content by predicting whether the video clips are sampled from the same video. We pre-train our model on uncurated videos and show that our pre-trained model can reach state-of-the-art results on several video understanding datasets (e.g., SSV2, Diving48). Lastly, we provide detailed analyses on model scalability and pre-training method design. Code is released at https://github.com/airsplay/vimpac.

Code Repositories

airsplay/vimpac
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
action-classification-on-kinetics-400VIMPAC
Acc@1: 77.4
action-recognition-in-videos-on-hmdb-51VIMPAC
Average accuracy of 3 splits: 65.9
action-recognition-in-videos-on-somethingVIMPAC
Top-1 Accuracy: 68.1
action-recognition-in-videos-on-ucf101VIMPAC
3-fold Accuracy: 92.7
action-recognition-on-diving-48VIMPAC
Accuracy: 85.5

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
VIMPAC: Video Pre-Training via Masked Token Prediction and Contrastive Learning | Papers | HyperAI