Lune

ICLR2023Top-tier venue

A Message Passing Perspective on Learning Dynamics of Contrastive Learning

Yifei Wang, Qi Zhang, Tianqi Du, Jiansheng Yang, Zhouchen Lin, Yisen Wang

Abstract

In recent years, contrastive learning achieves impressive results on self-supervised visual representation learning, but there still lacks a rigorous understanding of its learning dynamics. In this paper, we show that if we cast a contrastive objective equivalently into the feature space, then its learning dynamics admits an interpretable form. Specifically, we show that its gradient descent corresponds to a specific message passing scheme on the corresponding augmentation graph. Based on this perspective, we theoretically characterize how contrastive learning gradually learns discriminative features with the alignment update and the uniformity update. Meanwhile, this perspective also establishes an intriguing connection between contrastive learning and Message Passing Graph Neural Networks (MP-GNNs). This connection not only provides a unified understanding of many techniques independently developed in each community, but also enables us to borrow techniques from MP-GNNs to design new contrastive learning variants, such as graph attention, graph rewiring, jumpy knowledge techniques, etc. We believe that our message passing perspective not only provides a new theoretical understanding of contrastive learning dynamics, but also bridges the two seemingly independent areas together, which could inspire more interleaving studies to benefit from each other. The code is available at https://github.com/PKU-ML/ Message-Passing-Contrastive-Learning .

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

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

Get the answer

Free to start. No credit card required.

Cited by top-tier papers19

  1. Do Generated Data Always Help Contrastive Learning?Yifei Wang, Jizhe Zhang, Yisen WangICLR 2024 · 36 citations
  2. On the Generalization of Multi-modal Contrastive LearningQi Zhang, Yifei Wang, Yisen WangICML 2023 · 34 citations
  3. Adversarial Examples Are Not Real FeaturesAng Li, Yifei Wang, Yiwen Guo, Yisen WangNeurIPS 2023 · 24 citations
  4. Unifying Graph Convolution and Contrastive Learning in Collaborative FilteringYihong Wu, Le Zhang, Fengran Mo, Tianyu Zhu et al.KDD 2024 · 20 citations
  5. Rethinking Weak Supervision in Helping Contrastive LearningJingyi Cui, Weiran Huang, Yifei Wang, Yisen WangICML 2023 · 20 citations

Builds on24

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. 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
  3. Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
  4. Big Self-Supervised Models are Strong Semi-Supervised LearnersTing Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi et al.NeurIPS 2020 · 2,611 citations
  5. Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations

Related papers

  1. ReGCL: Rethinking Message Passing in Graph Contrastive LearningCheng Ji, Zixuan Huang, Qingyun Sun, Hao Peng et al.AAAI 2024 · 23 citations
  2. Rethinking Graph Masked Autoencoders through Alignment and UniformityLiang Wang, Xiang Tao, Qiang Liu, Shu Wu et al.AAAI 2024 · 40 citations
  3. Unified Graph Augmentations for Generalized Contrastive Learning on GraphsJiaming Zhuo, Yintong Lu, Hui Ning, Kun Fu et al.NeurIPS 2024 · 19 citations
  4. Revisiting Graph Autoencoders as Implicit Contrastive LearnersJintang Li, Ruofan Wu, Yuchang Zhu, Huizhe Zhang et al.KDD 2026 · 3 citations
  5. Enhancing the Influence of Labels on Unlabeled Nodes in Graph Convolutional NetworksJincheng Huang, Yujie Mo, Xiaoshuang Shi, Lei Feng et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines