Multimodal Masked Autoencoders Learn Transferable Representations

Xinyang Geng, Hao Liu, Lisa Lee, Dale Schuurmans, Sergey Levine, Pieter Abbeel

TL;DR

The Multimodal Masked Autoencoder (M3AE) demonstrates that vision-language representations can be learned purely via masked token prediction—without separate modality encoders or contrastive objectives. By treating image patches and text tokens as a single sequence and applying high masking rates to both, M3AE learns rich, transferable representations that significantly outperform visual-only MAE on downstream classification and out-of-distribution (OOD) detection, while natively supporting mixtures of paired and unpaired data.

What Problem Does This Paper Address?

The dominant paradigm for multimodal vision-language pre-training relies on cross-modal contrastive learning (e.g., CLIP, ALIGN). Despite their success, contrastive architectures carry noticeable limitations:

  1. Data rigidity: They strictly require paired image-text data and cannot directly utilize large, widely available unpaired image corpora.
  2. Inductive biases from data augmentation: Heavy image augmentations are often needed to prevent representation collapse, which can introduce biases that hurt downstream performance.
  3. Siloed representations: Dual-encoder setups keep modalities segregated until late fusion, making fine-grained token-to-patch cross-modal reasoning difficult.

The authors ask: Can a unified transformer encoder, trained purely via masked token reconstruction (similar to BERT and MAE), learn strong multimodal representations without any contrastive loss?

Methods

M3AE builds upon the Masked Autoencoder (MAE) framework and extends it to vision and language simultaneously:

[Text Tokens + Image Patches] 
        │
        ▼ (Mask 75% of both modalities)
  [Visible Tokens]
        │
        ▼
  Unified ViT Encoder  ──> (Latent Representation)
        │
        ▼ (+ Learned [MASK] Tokens & Modality Encodings)
  Lightweight Decoder
   ├── Image Head ──> MSE Pixel Reconstruction Loss
   └── Text Head  ──> Cross-Entropy Token Prediction Loss
  • Unified Token Sequence: Text is tokenized into word pieces, while images are partitioned into non-overlapping patches (as in ViT). Both are linearly projected to a shared embedding dimension, augmented with 1D/2D positional embeddings, and tagged with learnable modality type encodings before prepending a [CLS] token.
  • Asymmetric Encoder-Decoder: Following MAE, the large Transformer encoder processes only visible (unmasked) tokens, making it computationally efficient. The lightweight decoder (8 Transformer blocks, width 512) reconstructs the masked tokens using encoded representations and shared [MASK] tokens.
  • Masked Reconstruction Objective: The training loss is a weighted sum of pixel-level mean squared error (weight = $1.0$) on masked image patches and cross-entropy loss (weight = $0.5$) on masked text tokens.
  • Flexible Data Mixing: Because the loss operates identically whether text is present or not, M3AE can train seamlessly on unpaired images simply by providing zero text tokens.

Datasets

  • Pre-training: Conceptual 12M (CC12M), an internet-scale dataset of ~12 million image-text pairs.
  • Downstream Evaluation:
  • ImageNet-1K: Evaluated via frozen linear probing and partial layer fine-tuning.
  • CIFAR-100 & CIFAR-10: Used for near-distribution OOD detection (CIFAR-100 as in-distribution, CIFAR-10 as out-of-distribution).
  • No new datasets or benchmarks were introduced.

Key Insights and Ideas

  • The High Text-Masking Ratio Phenomenon: While standard masked language models like BERT mask only ~15% of text tokens (due to text's high semantic density), M3AE performs best with a 75% text masking ratio (and remains strong across 50–90%). When up to 75% of the sentence is missing, the model is forced to inspect visible image patches to predict missing words, driving deep cross-modal grounding.
  • Unpaired Flexibility with Rapid Gains: M3AE does not require full multimodal pairing. Pre-training on CC12M with only 10% paired text (and 90% unpaired images) yielded a linear classification accuracy jump of 53.3% vs. 44.6% for pure MAE.
  • Spontaneous Cross-Modal Alignment: Without contrastive pairing losses, attention heatmaps show that text tokens naturally attend to their corresponding physical regions in images (e.g., the word "elephant" attending directly to the elephant patch).

Key Results

  • ImageNet Linear Probing: Pre-trained on CC12M for 50 epochs (ViT-B), M3AE achieved 61.3% top-1 accuracy, outperforming image-only MAE (44.6%) by +16.7%. (Contrastive CLIP reached 69.0%, but lacks M3AE's unpaired flexibility).
  • Model Scaling: M3AE consistently outperformed MAE across multiple model capacities:
  • ViT-S: 35.6% vs. 31.5%
  • ViT-B: 61.3% vs. 44.6%
  • ViT-L: 64.1% vs. 50.7%
  • Partial Fine-tuning: When fine-tuning 2 to 8 blocks of ViT-L on ImageNet, M3AE consistently led MAE (e.g., 49.0% vs. 46.8% at 2 blocks; 77.1% vs. 76.8% at 8 blocks).
  • Out-of-Distribution (OOD) Detection:
  • Mahalanobis AUROC: M3AE achieved 71.4%, outperforming MAE's 69.0%.
  • Max Softmax AUROC: M3AE scored 78.5%, topping MAE's 77.2%.
  • Representation Clustering: t-SNE visualizations on 10 ImageNet classes demonstrate that M3AE features produce substantially tighter, cleaner semantic clusters than MAE.

Limitations and Future Work

  • Absolute Accuracy Gap vs. Contrastive Baselines: While M3AE handles unpaired data far better than CLIP, CLIP still achieves higher linear probe accuracy on CC12M (69.0% vs. 61.3% on ViT-B).
  • Compute Overhead: Large-scale generative pre-training over billions of tokens demands substantial energy and compute budget (e.g., up to TPU v3-256 pods).
  • Future Directions: Expanding evaluation to complex generative and reasoning vision-language tasks (such as visual dialogue, VQA, and text-guided image synthesis) where a unified encoder-decoder architecture naturally excels.

Summary updated

BibTeX
@inproceedings{geng2023multimodal,
  author = {Xinyang Geng and Hao Liu and Lisa Lee and Dale Schuurmans and Sergey Levine and Pieter Abbeel},
  title = {{Multimodal Masked Autoencoders Learn Transferable Representations}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Z-aIURmBbBk},
}
Figure