Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Hao Tan, Jie Lei, Thomas Wolf, Mohit Bansal• 2021

Related benchmarks

TaskDatasetResultRank
Action RecognitionSomething-Something v2 (val)
Top-1 Accuracy68.1
535
Action RecognitionKinetics-400
Top-1 Acc77.4
413
Action RecognitionUCF101 (mean of 3 splits)
Accuracy92.7
357
Action RecognitionSomething-Something v2
Top-1 Accuracy68.1
341
Action RecognitionSomething-Something v2 (test)
Top-1 Acc68.1
333
Action RecognitionKinetics 400 (test)
Top-1 Accuracy77.4
245
Action RecognitionSomething-Something v2 (test val)
Top-1 Accuracy68.1
187
Video ClassificationSomething-Something v2 (test)
Top-1 Acc0.681
169
Action RecognitionUCF-101
Top-1 Acc92.7
147
Video Action ClassificationSomething-Something v2
Top-1 Acc68.1
139
Showing 10 of 23 rows

Other info

Code

Follow for update