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

Hao Tan, Jie Lei, Thomas Wolf, Mohit Bansal
6/21/2021
cs.CVcs.AIcs.LG
contrastive-ssl

Official code: airsplay/vimpac (73 stars, Python, last commit 2022-06-03).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

airsplay/vimpacOfficial100%
736Python, ShellJun 20, 20214 years ago

Similar Papers

Cite this paper

@article{tan2021vimpac,
  title  = {VIMPAC: Video Pre-Training via Masked Token Prediction and Contrastive Learning},
  author = {Hao Tan and Jie Lei and Thomas Wolf and Mohit Bansal},
  year   = {2021},
  eprint = {2106.11250},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.11250}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.11250.svg)](https://codeofpaper.com/paper/2106.11250)

Discussion