Skip to main content
QUICK REVIEW

[Paper Review] A simple, efficient and scalable contrastive masked autoencoder for learning visual representations

Shlok Mishra, Joshua A. Robinson|arXiv (Cornell University)|Oct 30, 2022
Domain Adaptation and Few-Shot LearningComputer Science12 citations
TL;DR

CAN is a simple, efficient, and scalable self-supervised learning method that combines contrastive learning, masked autoencoding, and denoising diffusion objectives. By masking 50% of patches in both views and jointly optimizing contrastive, reconstruction, and noise-prediction losses, CAN achieves state-of-the-art performance on ImageNet and JFT-300M, outperforming SimCLR and MAE in linear probe and fine-tuning evaluations with 70% lower FLOPs than SimCLR.

ABSTRACT

We introduce CAN, a simple, efficient and scalable method for self-supervised learning of visual representations. Our framework is a minimal and conceptually clean synthesis of (C) contrastive learning, (A) masked autoencoders, and (N) the noise prediction approach used in diffusion models. The learning mechanisms are complementary to one another: contrastive learning shapes the embedding space across a batch of image samples; masked autoencoders focus on reconstruction of the low-frequency spatial correlations in a single image sample; and noise prediction encourages the reconstruction of the high-frequency components of an image. The combined approach results in a robust, scalable and simple-to-implement algorithm. The training process is symmetric, with 50% of patches in both views being masked at random, yielding a considerable efficiency improvement over prior contrastive learning methods. Extensive empirical studies demonstrate that CAN achieves strong downstream performance under both linear and finetuning evaluations on transfer learning and robustness tasks. CAN outperforms MAE and SimCLR when pre-training on ImageNet, but is especially useful for pre-training on larger uncurated datasets such as JFT-300M: for linear probe on ImageNet, CAN achieves 75.4% compared to 73.4% for SimCLR and 64.1% for MAE. The finetuned performance on ImageNet of our ViT-L model is 86.1%, compared to 85.5% for SimCLR, and 85.4% for MAE. The overall FLOPs load of SimCLR is 70% higher than CAN for ViT-L models.

Motivation & Objective

  • To develop a self-supervised visual representation learning method that scales efficiently to large, uncurated datasets like JFT-300M.
  • To address the limitations of existing contrastive learning and masked autoencoder methods by combining their complementary strengths.
  • To improve robustness and downstream performance on transfer learning, few-shot, and distribution shift benchmarks.
  • To reduce computational cost while maintaining or improving model accuracy through symmetric masking and multi-objective training.

Proposed method

  • CAN uses a symmetric training scheme where 50% of patches are masked in both views, enabling efficient training with reduced FLOPs compared to full-view contrastive methods.
  • The model jointly optimizes three objectives: contrastive learning via InfoNCE loss to align positive pairs, masked autoencoding to reconstruct masked patches, and denoising to predict Gaussian noise added to unmasked patches.
  • The denoising loss encourages the model to learn high-frequency image components, complementing the low-frequency focus of reconstruction.
  • The contrastive loss is applied across the batch, while reconstruction and denoising are applied per-sample, enabling complementary inductive biases.
  • The method uses Vision Transformers as the backbone and is trained end-to-end with a single, unified objective combining all three components.
  • Hyperparameters such as contrastive loss weight and noise level are tuned to balance the three objectives, with optimal settings found at λ_InfoNCE = 0.03 and σ_max = 0.05.

Experimental results

Research questions

  • RQ1Can combining contrastive learning, masked autoencoding, and denoising improve performance on downstream vision tasks?
  • RQ2Does symmetric masking of 50% of patches in both views improve efficiency without sacrificing performance?
  • RQ3How do the complementary inductive biases of contrastive learning (inter-sample relationships) and autoencoding (intra-sample correlations) affect representation quality?
  • RQ4Can the denoising objective enhance feature learning by capturing high-frequency components missed by standard reconstruction?
  • RQ5Does the combined method scale better than individual components on large, uncurated datasets like JFT-300M?

Key findings

  • On JFT-300M pre-training, CAN achieves 75.4% top-1 accuracy in linear probe evaluation on ImageNet, outperforming SimCLR (73.4%) and MAE (64.1%).
  • For ViT-L models fine-tuned on ImageNet, CAN achieves 86.1% top-1 accuracy, compared to 85.5% for SimCLR and 85.4% for MAE.
  • CAN reduces FLOPs by 70% compared to SimCLR for ViT-L models, demonstrating significant computational efficiency.
  • CAN shows superior robustness across 7 distribution shift benchmarks, outperforming both SimCLR and MAE on IN-v2, IN-Adversarial, ObjectNet, and other challenging datasets.
  • The joint training of contrastive and reconstruction losses results in lower training loss for both objectives than individual training, confirming their complementarity.
  • Optimal performance is achieved with a masking rate of 50%, a contrastive loss weight of 0.03, and a noise level of σ_max = 0.05, with performance stable across a range of denoising loss weights.

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.