ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyond

Xiaojun Guo, Yifei Wang, Tianqi Du, Yisen Wang
3/12/2023
cs.LGcs.CVstat.ML

Official code: PKU-ML/ContraNorm (35 stars, MIT, last commit 2023-04-24).

Abstract

Oversmoothing is a common phenomenon in a wide range of Graph Neural Networks (GNNs) and Transformers, where performance worsens as the number of layers increases. Instead of characterizing oversmoothing from the view of complete collapse in which representations converge to a single point, we dive into a more general perspective of dimensional collapse in which representations lie in a narrow cone. Accordingly, inspired by the effectiveness of contrastive learning in preventing dimensional collapse, we propose a novel normalization layer called ContraNorm. Intuitively, ContraNorm implicitly shatters representations in the embedding space, leading to a more uniform distribution and a slighter dimensional collapse. On the theoretical analysis, we prove that ContraNorm can alleviate both complete collapse and dimensional collapse under certain conditions. Our proposed normalization layer can be easily integrated into GNNs and Transformers with negligible parameter overhead. Experiments on various real-world datasets demonstrate the effectiveness of our proposed ContraNorm. Our implementation is available at https://github.com/PKU-ML/ContraNorm.

View on arXivView PDF

Code Implementations(1)

PKU-ML/ContraNormOfficial100%
MIT

Official code for ICLR 2023 paper "ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyond "

355C, C++Feb 27, 20233 years agoMIT

Similar Papers

Cite this paper

@article{guo2023contranorm,
  title  = {ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyond},
  author = {Xiaojun Guo and Yifei Wang and Tianqi Du and Yisen Wang},
  year   = {2023},
  eprint = {2303.06562},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.06562v2},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.06562.svg)](https://codeofpaper.com/paper/2303.06562)

Discussion