Calibrating and Improving Graph Contrastive Learning

Kaili Ma, Haochen Yang, Han Yang, Yongqiang Chen, James Cheng
1/27/2021
cs.LG
gnncontrastive-ssl

Official code: MaKaili/Contrast-Reg (4 stars, Python, last commit 2023-07-02).

Abstract

Graph contrastive learning algorithms have demonstrated remarkable success in various applications such as node classification, link prediction, and graph clustering. However, in unsupervised graph contrastive learning, some contrastive pairs may contradict the truths in downstream tasks and thus the decrease of losses on these pairs undesirably harms the performance in the downstream tasks.

Show full abstract

To assess the discrepancy between the prediction and the ground-truth in the downstream tasks for these contrastive pairs, we adapt the expected calibration error (ECE) to graph contrastive learning. The analysis of ECE motivates us to propose a novel regularization method, Contrast-Reg, to ensure that decreasing the contrastive loss leads to better performance in the downstream tasks. As a plug-in regularizer, Contrast-Reg effectively improves the performance of existing graph contrastive learning algorithms. We provide both theoretical and empirical results to demonstrate the effectiveness of Contrast-Reg in enhancing the generalizability of the Graph Neural Network(GNN) model and improving the performance of graph contrastive algorithms with different similarity definitions and encoder backbones across various downstream tasks.

View on arXivView PDF

Code Implementations(1)

40PythonJul 2, 20233 years ago

Similar Papers

Cite this paper

@article{ma2021calibrating,
  title  = {Calibrating and Improving Graph Contrastive Learning},
  author = {Kaili Ma and Haochen Yang and Han Yang and Yongqiang Chen and James Cheng},
  year   = {2021},
  eprint = {2101.11525},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.11525}
}

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/2101.11525.svg)](https://codeofpaper.com/paper/2101.11525)

Discussion