Perfect Alignment May be Poisonous to Graph Contrastive Learning

Jingyu Liu, Huayi Tang, Yong Liu
2/12/2026

No official code found. Best implementation: somebodyhh1/GRACEIS (4 stars, last commit 2024-05-23).

Abstract

Graph Contrastive Learning (GCL) aims to learn node representations by aligning positive pairs and separating negative ones. However, few of researchers have focused on the inner law behind specific augmentations used in graph-based learning. What kind of augmentation will help downstream performance, how does contrastive learning actually influence downstream tasks, and why the magnitude of augmentation matters so much? This paper seeks to address these questions by establishing a connection between augmentation and downstream performance. Our findings reveal that GCL contributes to downstream tasks mainly by separating different classes rather than gathering nodes of the same class. So perfect alignment and augmentation overlap which draw all intra-class samples the same can not fully explain the success of contrastive learning. Therefore, in order to understand how augmentation aids the contrastive learning process, we conduct further investigations into the generalization, finding that perfect alignment that draw positive pair the same could help contrastive loss but is poisonous to generalization, as a result, perfect alignment may not lead to best downstream performance, so specifically designed augmentation is needed to achieve appropriate alignment performance and improve downstream accuracy. We further analyse the result by information theory and graph spectrum theory and propose two simple but effective methods to verify the theories. The two methods could be easily applied to various GCL algorithms and extensive experiments are conducted to prove its effectiveness. The code is available at https://github.com/somebodyhh1/GRACEIS

View on arXivView PDF

Code Implementations(1)

somebodyhh1/GRACEISCommunity100%
41PythonMay 23, 20242 years ago

Similar Papers

Cite this paper

@article{liu2026perfect,
  title  = {Perfect Alignment May be Poisonous to Graph Contrastive Learning},
  author = {Jingyu Liu and Huayi Tang and Yong Liu},
  year   = {2026},
  eprint = {2310.03977},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.03977},
  journal = {ICML 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/2310.03977.svg)](https://codeofpaper.com/paper/2310.03977)

Discussion