Lune

ICLR2023Top-tier venue

What Do Self-Supervised Vision Transformers Learn?

Namuk Park, Wonjae Kim, Byeongho Heo, Taekyung Kim, Sangdoo Yun

Abstract

We present a comparative study on how and why contrastive learning (CL) and masked image modeling (MIM) differ in their representations and in their performance of downstream tasks. In particular, we demonstrate that self-supervised Vision Transformers (ViTs) have the following properties: (1) CL trains self-attentions to capture longer-range global patterns than MIM, such as the shape of an object, especially in the later layers of the ViT architecture. This CL property helps ViTs linearly separate images in their representation spaces. However, it also makes the self-attentions collapse into homogeneity for all query tokens and heads. Such homogeneity of self-attention reduces the diversity of representations, worsening scalability and dense prediction performance. (2) CL utilizes the low-frequency signals of the representations, but MIM utilizes high-frequencies. Since low- and high-frequency information respectively represent shapes and textures, CL is more shape-oriented and MIM more texture-oriented. (3) CL plays a crucial role in the later layers, while MIM mainly focuses on the early layers. Upon these analyses, we find that CL and MIM can complement each other and observe that even the simplest harmonization can help leverage the advantages of both methods. The code is available at https://github.com/naver-ai/cl-vs-mim.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

36 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Guiding Masked Representation Learning to Capture Spatio-Temporal Relationship of Electrocardiogram cites Emerging Properties in Self-Supervised Vision Transformers
  • Guiding Masked Representation Learning to Capture Spatio-Temporal Relationship of Electrocardiogram cites A Simple Framework for Contrastive Learning of Visual Representations
  • Guiding Masked Representation Learning to Capture Spatio-Temporal Relationship of Electrocardiogram cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Guiding Masked Representation Learning to Capture Spatio-Temporal Relationship of Electrocardiogram cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Emerging Properties in Self-Supervised Vision Transformers cites A Simple Framework for Contrastive Learning of Visual Representations
  • Emerging Properties in Self-Supervised Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Emerging Properties in Self-Supervised Vision Transformers cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Good Helper Is around You: Attention-Driven Masked Image Modeling cites Emerging Properties in Self-Supervised Vision Transformers
  • Good Helper Is around You: Attention-Driven Masked Image Modeling cites A Simple Framework for Contrastive Learning of Visual Representations
  • Good Helper Is around You: Attention-Driven Masked Image Modeling cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Good Helper Is around You: Attention-Driven Masked Image Modeling cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Good Helper Is around You: Attention-Driven Masked Image Modeling cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Accelerating Transformers with Spectrum-Preserving Token Merging cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Accelerating Transformers with Spectrum-Preserving Token Merging cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Reverse Engineering Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Reverse Engineering Self-Supervised Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Reverse Engineering Self-Supervised Learning cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • CROMA: Remote Sensing Representations with Contrastive Radar-Optical Masked Autoencoders cites Emerging Properties in Self-Supervised Vision Transformers
  • CROMA: Remote Sensing Representations with Contrastive Radar-Optical Masked Autoencoders cites A Simple Framework for Contrastive Learning of Visual Representations
  • CROMA: Remote Sensing Representations with Contrastive Radar-Optical Masked Autoencoders cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • CROMA: Remote Sensing Representations with Contrastive Radar-Optical Masked Autoencoders cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers36

  1. CROMA: Remote Sensing Representations with Contrastive Radar-Optical Masked AutoencodersAnthony Fuller, Koreen Millard, James R. GreenNeurIPS 2023 · 245 citations
  2. Guiding Masked Representation Learning to Capture Spatio-Temporal Relationship of ElectrocardiogramYeongyeon Na, Minje Park, Yunwon Tae, Sunghoon JooICLR 2024 · 92 citations
  3. Reverse Engineering Self-Supervised LearningIdo Ben-Shaul, Ravid Shwartz-Ziv, Tomer Galanti, Shai Dekel et al.NeurIPS 2023 · 55 citations
  4. Accelerating Transformers with Spectrum-Preserving Token MergingChau Tran, Duy M. H. Nguyen, Manh-Duy Nguyen, TrungTin Nguyen et al.NeurIPS 2024 · 51 citations
  5. Good Helper Is around You: Attention-Driven Masked Image ModelingZhengqi Liu, Jie Gui, Hao LuoAAAI 2023 · 36 citations

Builds on27

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  2. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  4. Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec et al.NeurIPS 2020 · 9,171 citations
  5. Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations

Related papers

  1. A Theoretical Analysis of Self-Supervised Learning for Vision TransformersYu Huang, Zixin Wen, Yuejie Chi, Yingbin LiangICLR 2025
  2. Masked Image Modeling with Denoising ContrastKun Yi, Yixiao Ge, Xiaotong Li, Shusheng Yang et al.ICLR 2023 · 8 citations
  3. Hybrid Distillation: Connecting Masked Autoencoders with Contrastive LearnersBowen Shi, Xiaopeng Zhang, Yaoming Wang, Jin Li et al.ICLR 2024 · 10 citations
  4. Contextual Image Masking Modeling via Synergized Contrasting without View Augmentation for Faster and Better Visual PretrainingShaofeng Zhang, Feng Zhu, Rui Zhao, Junchi YanICLR 2023
  5. A Closer Look at Self-Supervised Lightweight Vision TransformersShaoru Wang, Jin Gao, Zeming Li, Xiaoqin Zhang et al.ICML 2023 · 61 citations
Dusk over the sea between two cliffs drawn in fine vertical lines