Skip to main content
QUICK REVIEW

[Paper Review] Masked Feature Prediction for Self-Supervised Visual Pre-Training

Wei Chen, Haoqi Fan|arXiv (Cornell University)|Dec 16, 2021
Domain Adaptation and Few-Shot LearningComputer Science25 citations
TL;DR

MaskFeat pre-trains video and image models by masking space-time regions and regressing the target visual features (notably HOG), enabling strong self-supervised performance without external data.

ABSTRACT

We present Masked Feature Prediction (MaskFeat) for self-supervised pre-training of video models. Our approach first randomly masks out a portion of the input sequence and then predicts the feature of the masked regions. We study five different types of features and find Histograms of Oriented Gradients (HOG), a hand-crafted feature descriptor, works particularly well in terms of both performance and efficiency. We observe that the local contrast normalization in HOG is essential for good results, which is in line with earlier work using HOG for visual recognition. Our approach can learn abundant visual knowledge and drive large-scale Transformer-based models. Without using extra model weights or supervision, MaskFeat pre-trained on unlabeled videos achieves unprecedented results of 86.7% with MViT-L on Kinetics-400, 88.3% on Kinetics-600, 80.4% on Kinetics-700, 39.8 mAP on AVA, and 75.0% on SSv2. MaskFeat further generalizes to image input, which can be interpreted as a video with a single frame and obtains competitive results on ImageNet.

Motivation & Objective

  • Develop a masked feature prediction objective for self-supervised visual pre-training in video and image domains.
  • Evaluate a broad set of potential target features to identify effective, computation-efficient predictions.
  • Demonstrate that predicting continuous features (especially HOG) can outperform discretized token approaches and external-model targets.
  • Show that MaskFeat enables strong transfer to downstream video tasks without external supervision.

Proposed method

  • Mask input space-time cubes with a [MASK] token in a vision Transformer and predict features of the masked regions.
  • Investigate five target feature types ranging from pixel colors and HOG to dVAE tokens, unsupervised CNN/ViT features, supervised features, and pseudo-labels.
  • Use L2 regression (or cosine-based loss for deep features) to align predictions with ground-truth features from unmasked data.
  • Prefer predicting the center patch feature of each masked space-time cube; cube-based masking captures spatial and temporal cues.
  • For video, mask 40% of tokens; for image, operate on 2D patches; no external tokenizers required.

Experimental results

Research questions

  • RQ1What target feature types yield the best trade-off between performance and computational cost for MaskFeat?
  • RQ2Can continuous feature regression (e.g., HOG or unsupervised deep features) outperform token-based discretization on masked visual prediction?
  • RQ3How does MaskFeat perform for large-scale video pre-training and transfer to downstream benchmarks without external supervision?
  • RQ4What masking strategies and pre-training schedules maximize performance for video and image understanding?

Key findings

  • HOG is a particularly effective target for MaskFeat, delivering notable gains and efficiency without external models.
  • Continuous feature regression can outperform discretized token approaches and some supervised or distillation-based targets.
  • Unsupervised features (e.g., DINO, MoCo) provide substantial gains, though requiring extra pre-training and computation; HOG remains competitive with lower cost.
  • MaskFeat pre-trained on unlabeled Kinetics data achieves 86.7% top-1 on Kinetics-400 with MViT-L, and 88.3% on Kinetics-600, without external data.
  • MaskFeat yields 75.0% top-1 on SSv2 and 39.8 mAP on AVA when pre-trained on K600, demonstrating strong transfer and localization performance.
  • On images, MaskFeat with ViT-B/L achieves 84.0%/85.7% top-1 using ImageNet-1K, showing competitive image-domain results.

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.