Skip to main content
QUICK REVIEW

[Paper Review] It Takes Two: Masked Appearance-Motion Modeling for Self-supervised Video Transformer Pre-training

Yuxin Song, Min Yang|arXiv (Cornell University)|Oct 11, 2022
Face recognition and analysisComputer Science5 citations
TL;DR

This paper proposes MAM2, a self-supervised video representation learning framework that jointly masks and predicts appearance and motion features using disentangled decoders in a video transformer. By leveraging VQGAN codes for appearance and RGB-difference for motion, MAM2 achieves state-of-the-art performance on Kinetics-400 (82.3%), Something-Something V2 (71.3%), UCF101 (91.5%), and HMDB51 (62.5%) with up to 50% fewer pre-training epochs than VideoMAE.

ABSTRACT

Self-supervised video transformer pre-training has recently benefited from the mask-and-predict pipeline. They have demonstrated outstanding effectiveness on downstream video tasks and superior data efficiency on small datasets. However, temporal relation is not fully exploited by these methods. In this work, we explicitly investigate motion cues in videos as extra prediction target and propose our Masked Appearance-Motion Modeling (MAM2) framework. Specifically, we design an encoder-regressor-decoder pipeline for this task. The regressor separates feature encoding and pretext tasks completion, such that the feature extraction process is completed adequately by the encoder. In order to guide the encoder to fully excavate spatial-temporal features, two separate decoders are used for two pretext tasks of disentangled appearance and motion prediction. We explore various motion prediction targets and figure out RGB-difference is simple yet effective. As for appearance prediction, VQGAN codes are leveraged as prediction target. With our pre-training pipeline, convergence can be remarkably speed up, e.g., we only require half of epochs than state-of-the-art VideoMAE (400 v.s. 800) to achieve the competitive performance. Extensive experimental results prove that our method learns generalized video representations. Notably, our MAM2 with ViT-B achieves 82.3% on Kinects-400, 71.3% on Something-Something V2, 91.5% on UCF101, and 62.5% on HMDB51.

Motivation & Objective

  • To address the limited exploitation of temporal motion cues in existing masked video modeling methods.
  • To improve convergence speed and representation quality in self-supervised video pre-training.
  • To decouple appearance and motion prediction tasks for more effective spatiotemporal feature learning.
  • To reduce pre-training epochs while maintaining or improving downstream performance.
  • To explore the effectiveness of RGB-difference and VQGAN codes as motion and appearance reconstruction targets.

Proposed method

  • A three-stage encoder-regressor-decoder pipeline is designed, where the regressor decouples feature encoding from pretext task prediction.
  • Two separate decoders are used: one for reconstructing VQGAN-encoded visual tokens (appearance), and another for predicting RGB-difference (motion) in masked video tubes.
  • The regressor projects visible tube embeddings to predict representations for masked tubes, enabling space-time-agnostic feature learning.
  • RGB-difference is selected as the motion target due to its simplicity and effectiveness in capturing motion dynamics.
  • The framework uses a ViT-based encoder with masked video patch reconstruction, pre-trained on SSv2, UCF101, and HMDB51 datasets.
  • Pre-training is conducted with a high masking ratio, and the tokenizer is applied on-the-fly to generate VQGAN codes for appearance reconstruction.

Experimental results

Research questions

  • RQ1Can explicit modeling of motion cues improve self-supervised video representation learning in masked video modeling?
  • RQ2Does decoupling appearance and motion prediction lead to faster convergence and better downstream performance?
  • RQ3Which motion representation (e.g., optical flow, RGB-difference, temporal order) is most effective and efficient in the masked video modeling setting?
  • RQ4Can VQGAN codes serve as a robust and semantically meaningful target for appearance reconstruction in video pre-training?
  • RQ5To what extent can MAM2 reduce pre-training epochs while maintaining or improving performance compared to SOTA methods like VideoMAE?

Key findings

  • MAM2 achieves 82.3% top-1 accuracy on Kinetics-400, outperforming VideoMAE by +1.0% with only 400 pre-training epochs (vs. 800).
  • On the temporal-action-heavy Something-Something V2 dataset, MAM2 reaches 71.3% accuracy, surpassing VideoMAE (70.6%) with half the pre-training epochs.
  • On UCF101 and HMDB51, MAM2 achieves 91.5% and 62.5% accuracy respectively, outperforming VideoMAE by 0.7% and 1.4% with 2.7× and 3× fewer pre-training epochs.
  • With ViT-L, MAM2 outperforms ST-MAE and VideoMAE when pre-trained for 800 epochs, and matches their performance with only 600 epochs.
  • The use of disentangled decoders and a regressor enables faster convergence, reducing the need for extensive pre-training.
  • RGB-difference is found to be a simple yet effective motion prediction target, outperforming more complex motion representations like optical flow in this setup.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.