OS-GCL: A One-Shot Learner in Graph Contrastive Learning

Abstract

Graph contrastive learning (GCL) enhances the self-supervised learning capacity for graph representation learning. Nevertheless, the previous research has neglected to consider one fundamental nature of GCL -- graph contrastive learning operates as a one-shot learner, guided by the widely utilized noise contrastive estimation (e.g., the InfoNCE loss). Theoretically, to initially investigate the factors that contribute to the one-shot learner essence, we analyze the InfoNCE-based objective and derive its equivalent form of the softmax-based cross-entropy function. It is concluded that the InfoNCE-based GCL is determined to be a (2n-1)-way 1-shot classifier (n is the number of nodes). In this particular context, each sample is indicative of a unique ideational class, and each class has only one sample. Consequently, the one-shot learning nature of GCL leads to the issue of the limited self-supervised signal. To further address the above issue, we propose a One-Shot Learner in Graph Contrastive Learning (OS-GCL). Firstly, we estimate the potential probability distributions of the deterministic node features and discrete graph topology. Secondly, we develop a probabilistic message-passing mechanism to propagate probability (of feature) on probability (of topology). Thirdly, we propose the ProbNCE loss functions to contrast distributions. Extensive experimental results demonstrate the superiority of OS-GCL. To the best of our knowledge, this is the first study to examine the one-shot learning essence and the limited self-supervised signal issue of GCL.

Cite

Text

Ji et al. "OS-GCL: A One-Shot Learner in Graph Contrastive Learning." International Joint Conference on Artificial Intelligence, 2025. doi:10.24963/IJCAI.2025/330

Markdown

[Ji et al. "OS-GCL: A One-Shot Learner in Graph Contrastive Learning." International Joint Conference on Artificial Intelligence, 2025.](https://mlanthology.org/ijcai/2025/ji2025ijcai-os/) doi:10.24963/IJCAI.2025/330

BibTeX

@inproceedings{ji2025ijcai-os,
  title     = {{OS-GCL: A One-Shot Learner in Graph Contrastive Learning}},
  author    = {Ji, Cheng and He, Chenrui and Li, Qian and Sun, Qingyun and Fu, Xingcheng and Li, Jianxin},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year      = {2025},
  pages     = {2964-2972},
  doi       = {10.24963/IJCAI.2025/330},
  url       = {https://mlanthology.org/ijcai/2025/ji2025ijcai-os/}
}