[Paper Review] BEVT: BERT Pretraining of Video Transformers
BEVT proposes a decoupled BERT-style pretraining framework for video transformers that first learns spatial representations via masked image modeling on ImageNet and then jointly learns spatial and temporal dynamics through masked video modeling on video data. By initializing video stream attention weights from image-pretrained models and jointly fine-tuning both streams with weight sharing, BEVT achieves state-of-the-art performance, attaining 71.4% and 87.2% Top-1 accuracy on Something-Something-V2 and Diving-48, respectively.
This paper studies the BERT pretraining of video transformers. It is a straightforward but worth-studying extension given the recent success from BERT pretraining of image transformers. We introduce BEVT which decouples video representation learning into spatial representation learning and temporal dynamics learning. In particular, BEVT first performs masked image modeling on image data, and then conducts masked image modeling jointly with masked video modeling on video data. This design is motivated by two observations: 1) transformers learned on image datasets provide decent spatial priors that can ease the learning of video transformers, which are often times computationally-intensive if trained from scratch; 2) discriminative clues, i.e., spatial and temporal information, needed to make correct predictions vary among different videos due to large intra-class and inter-class variations. We conduct extensive experiments on three challenging video benchmarks where BEVT achieves very promising results. On Kinetics 400, for which recognition mostly relies on discriminative spatial representations, BEVT achieves comparable results to strong supervised baselines. On Something-Something-V2 and Diving 48, which contain videos relying on temporal dynamics, BEVT outperforms by clear margins all alternative baselines and achieves state-of-the-art performance with a 71.4\% and 87.2\% Top-1 accuracy respectively. Code will be made available at \url{https://github.com/xyzforever/BEVT}.
Motivation & Objective
- To explore BERT-style pretraining for video transformers, extending the success of BERT pretraining from NLP and image transformers to video understanding.
- To address the high computational cost and poor generalization of training video transformers from scratch by leveraging pre-trained spatial priors from image data.
- To decouple video representation learning into spatial and temporal components, preserving spatial knowledge while learning dynamic temporal dependencies.
- To improve performance on video recognition benchmarks by jointly pretraining on image and video data with shared weights and masked modeling objectives.
- To demonstrate that explicit preservation of spatial priors from image pretraining enhances downstream video recognition, especially in videos relying on temporal dynamics.
Proposed method
- BEVT uses a two-stream architecture: an image stream for spatial representation learning and a video stream for temporal dynamics learning.
- The image stream is pretrained on ImageNet using masked image modeling on latent codes derived from a VQ-VAE, learning spatial priors in an unsupervised manner.
- The video stream is initialized with the attention weights from the image stream to transfer spatial knowledge and reduce training cost.
- The video stream performs masked video modeling on 3D tubes (spatiotemporal patches) using latent codes, predicting masked tubes via a contrastive objective.
- Both streams are jointly trained on video data with shared backbone weights, enabling interaction between spatial and temporal modeling.
- A visual tokenizer (e.g., DALL-E or PeCo) is used to convert image and video patches into discrete tokens for masked modeling.
Experimental results
Research questions
- RQ1Can BERT-style pretraining be effectively extended to video transformers, given the dynamic nature of video data?
- RQ2Does decoupling spatial and temporal representation learning improve efficiency and performance in video understanding tasks?
- RQ3How does initializing video transformers with image-pretrained spatial priors affect downstream video recognition accuracy?
- RQ4What masking strategy for 3D video tubes yields the best performance in masked video modeling?
- RQ5How does the choice of visual tokenizer (e.g., DALL-E vs. PeCo) impact the final video recognition performance?
Key findings
- BEVT achieves 81.1% Top-1 accuracy on Kinetics-400, surpassing a strong supervised baseline of 80.6%.
- On Something-Something-V2, BEVT reaches 71.4% Top-1 accuracy, outperforming all prior baselines and setting a new state-of-the-art.
- On Diving-48, BEVT achieves 87.2% Top-1 accuracy, significantly exceeding previous methods and establishing a new SOTA.
- Abllation studies confirm that pretraining the image stream on ImageNet-1K is crucial, with models initialized from image-pretrained weights showing superior performance.
- Using the PeCo tokenizer instead of DALL-E yields better results, pushing BEVT to 71.4% and 87.2% on SSv2 and Diving48, respectively.
- Tube masking with a temporal range of 0.5T to T and 50% masking ratio yields optimal performance, while overly short or long temporal masks degrade results.
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.