Layer Grafted Pre-training: Bridging Contrastive Learning And Masked Image Modeling For Label-Efficient Representations
Ziyu Jiang, Yinpeng Chen, Mengchen Liu, Dongdong Chen, Xiyang Dai, Lu Yuan, Zicheng Liu, Zhangyang Wang
Abstract
Recently, both Contrastive Learning (CL) and Mask Image Modeling (MIM) demonstrate that self-supervision is powerful to learn good representations. However, naively combining them is far from success. In this paper, we start by making the empirical observation that a naive joint optimization of CL and MIM losses leads to conflicting gradient directions -more severe as the layers go deeper. This motivates us to shift the paradigm from combining loss at the end, to choosing the proper learning method per network layer. Inspired by experimental observations, we find that MIM and CL are suitable to lower and higher layers, respectively. We hence propose to combine them in a surprisingly simple, "sequential cascade" fashion: early layers are first trained under one MIM loss, on top of which latter layers continue to be trained under another CL loss. The proposed Layer Grafted Pre-training learns good visual representations that demonstrate superior label efficiency in downstream applications, in particular yielding strong few-shot performance besides linear evaluation. For instance, on ImageNet-1k, Layer Grafted Pre-training yields 65.5% Top-1 accuracy in terms of 1% few-shot learning with ViT-B/16, which improves MIM and CL baselines by 14.4% and 2.1% with no bells and whistles. The code is available at https://github. com/VITA-Group/layerGraftedPretraining_ICLR23.git .
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.
9 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- 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
- Masked Image Residual Learning for Scaling Deeper Vision Transformers cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
- Representing Part-Whole Hierarchies in Foundation Models by Learning Localizability, Composability, and Decomposability from Anatomy via Self-Supervision cites Emerging Properties in Self-Supervised Vision Transformers
- Representing Part-Whole Hierarchies in Foundation Models by Learning Localizability, Composability, and Decomposability from Anatomy via Self-Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
- Representing Part-Whole Hierarchies in Foundation Models by Learning Localizability, Composability, and Decomposability from Anatomy via Self-Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Representing Part-Whole Hierarchies in Foundation Models by Learning Localizability, Composability, and Decomposability from Anatomy via Self-Supervision cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Representing Part-Whole Hierarchies in Foundation Models by Learning Localizability, Composability, and Decomposability from Anatomy via Self-Supervision 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
- Learning to Embed Time Series Patches Independently cites A Simple Framework for Contrastive Learning of Visual Representations
- Learning to Embed Time Series Patches Independently 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
- Pre-training with Random Orthogonal Projection Image Modeling cites Emerging Properties in Self-Supervised Vision Transformers
- Pre-training with Random Orthogonal Projection Image Modeling cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Pre-training with Random Orthogonal Projection Image Modeling cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Pre-training with Random Orthogonal Projection Image Modeling cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
- Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites Emerging Properties in Self-Supervised Vision Transformers
- Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites A Simple Framework for Contrastive Learning of Visual Representations
- Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
Cited by top-tier papers9
- Learning to Embed Time Series Patches IndependentlySeunghan Lee, Taeyoung Park, Kibok LeeICLR 2024 · 57 citations
- Contrastive Tuning: A Little Help to Make Masked Autoencoders ForgetJohannes Lehner, Benedikt Alkin, Andreas Fürst, Elisabeth Rumetshofer et al.AAAI 2024 · 28 citations
- Pre-training with Random Orthogonal Projection Image ModelingMaryam Haghighat, Peyman Moghadam, Shaheer Mohamed, Piotr KoniuszICLR 2024 · 15 citations
- Representing Part-Whole Hierarchies in Foundation Models by Learning Localizability, Composability, and Decomposability from Anatomy via Self-SupervisionMohammad Reza Hosseinzadeh Taher, Michael B. Gotway, Jianming LiangCVPR 2024 · 12 citations
- Masked Image Residual Learning for Scaling Deeper Vision TransformersGuoxi Huang, Hongtao Fu, Adrian G. BorsNeurIPS 2023 · 10 citations
Builds on26
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- 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
- 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
- Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
Related papers
- MimCo: Masked Image Modeling Pre-training with Contrastive TeacherQiang Zhou, Chaohui Yu, Hao Luo, Zhibin Wang et al.ACM MM 2022 · 16 citations
- MICM: Rethinking Unsupervised Pretraining for Enhanced Few-shot LearningZhenyu Zhang, Guangyao Chen, Yixiong Zou, Zhimeng Huang et al.ACM MM 2024 · 5 citations
- Masked Image Modeling with Denoising ContrastKun Yi, Yixiao Ge, Xiaotong Li, Shusheng Yang et al.ICLR 2023 · 8 citations
- MIM-Refiner: A Contrastive Learning Boost from Intermediate Pre-Trained Masked Image Modeling RepresentationsBenedikt Alkin, Lukas Miklautz, Sepp Hochreiter, Johannes BrandstetterICLR 2025 · 3 citations
- What Do Self-Supervised Vision Transformers Learn?Namuk Park, Wonjae Kim, Byeongho Heo, Taekyung Kim et al.ICLR 2023 · 16 citations
