ViC-MAE: Self-supervised Representation Learning from Images and Video with Contrastive Masked Autoencoders

Jefferson Hernandez, Ruben Villegas, Vicente Ordonez

Self-supervised learning (SSL) has revolutionized how AI models learn from the world without needing millions of hand-labeled examples. However, a curious imbalance has persisted: while models trained on images adapt easily to video, the reverse—video-to-image transfer—has been surprisingly difficult. Researchers from Rice University and Google DeepMind introduce ViC-MAE, a unified framework that finally bridges this gap by combining local reconstruction and global contrast.

Abstract

We propose ViC-MAE, a model that combines both Masked AutoEncoders (MAE) and contrastive learning. ViC-MAE is trained using a global representation obtained by pooling the local features learned under an MAE reconstruction loss and using this representation under a contrastive objective across images and video frames. We show that visual representations learned under ViC-MAE generalize well to video and image classification tasks. Particularly, ViC-MAE obtains state-of-the-art transfer learning performance from video to images on Imagenet-1k compared to the recently proposed OmniMAE by achieving a top-1 accuracy of 86% (+1.3% absolute improvement) when trained on the same data and 87.1% (+2.4% absolute improvement) when training on extra data. At the same time, ViC-MAE outperforms most other methods on video benchmarks by obtaining 75.9% top-1 accuracy on the challenging Something something-v2 video benchmark.

The Challenge of Video-to-Image Transfer

In the SSL landscape, two strategies dominate:

  1. Joint-Embedding (Contrastive) Methods: These teach a model that different views of the same object should have similar representations, which is excellent for learning "global" semantic concepts.
  2. Masked Image Modeling (MAE): These hide parts of an image and force the model to reconstruct the missing pieces, making them superior for learning "local" features and textures.

The challenge is that video contains much richer information (motion, viewpoint changes) than static images. Theoretically, learning from video should result in better image models. Yet, previous attempts often resulted in diminished performance on images unless the models were specifically tweaked. ViC-MAE tackles this by treating video frames as natural "temporal augmentations" and integrating them into a single, efficient training pipeline.

Methodology: Contrastive Masked Autoencoders

ViC-MAE uses a Siamese Vision Transformer (ViT) backbone. The architecture processes two "views" simultaneously—either two different crops of an image or two distant frames from a video.

The ViC-MAE architecture combines a Siamese Vision Transformer with local reconstruction (MAE) and global contrastive objectives.
  • The Local Task (MAE): Each input is randomly masked (usually 75% of the patches are hidden). The model must reconstruct the original pixels. This ensures the model understands the fine-grained details of the scene.
  • The Global Task (Contrastive): Unlike standard MAE, ViC-MAE adds a contrastive head. It takes the features from the ViT, applies a global pooling layer (mean pooling was found to be most effective), and uses an InfoNCE loss to "attract" representations of frames from the same video and "repel" frames from different videos.
  • Distant Sampling: Instead of looking at consecutive frames, the authors sample frames roughly 1 second apart. This provides a "stronger" augmentation that forces the model to learn semantic consistency rather than just tracking nearby pixels.

Key Insights

A critical finding was that pooling is key. Standard MAE models often perform poorly on "linear evaluation" where the backbone is frozen. The authors found that by pooling local features for the contrastive loss—rather than just using a single [CLS] token—they could prevent the model's representation from collapsing and significantly boost performance. Furthermore, by using video as a natural augmentation, ViC-MAE avoids complex synthetic filters while capturing motion and perspective changes.

Empirical Results

The model was pre-trained on a massive scale using video (K710, MiT) and images (ImageNet-1k). For evaluation, it was tested across image classification (ImageNet-1k), video action recognition (Kinetics-400, Something-Something v2), and scene recognition (Places-365).

Performance comparison of ViC-MAE against state-of-the-art supervised and self-supervised methods across image and video benchmarks.

ViC-MAE achieved 86.0% top-1 accuracy on ImageNet-1k when trained on the same data as OmniMAE, an absolute improvement of +1.3%. With extra data, it reached 87.1%. On the difficult Something-Something v2 benchmark, which requires understanding complex temporal interactions, it hit 75.9% top-1 accuracy, outperforming most self-supervised competitors.

Conclusion

ViC-MAE proves that you can train only on video and still get a world-class image classifier, effectively closing the performance gap that has plagued the field. While a slight performance lag remains compared to supervised models using massive image-text pairs (like CLIP), ViC-MAE represents a major step forward in unified visual representation learning. Future work may incorporate additional modalities like audio or text to further enhance these representations.

Summary updated

BibTeX
@inproceedings{hernandez2024vic,
  author = {Jefferson Hernandez and Ruben Villegas and Vicente Ordonez},
  title = {{ViC-MAE: Self-supervised Representation Learning from Images and Video with Contrastive Masked Autoencoders}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=z3AjrBo0Aj},
}
Figure