Generating Counterfactual Hard Negative Samples for Graph Contrastive Learning

Haoran Yang, Hongxu Chen, Sixiao Zhang, Xiangguo Sun, Qian Li +2 more
7/1/2022
cs.LGcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Graph contrastive learning has emerged as a powerful tool for unsupervised graph representation learning. The key to the success of graph contrastive learning is to acquire high-quality positive and negative samples as contrasting pairs for the purpose of learning underlying structural semantics of the input graph. Recent works usually sample negative samples from the same training batch with the positive samples, or from an external irrelevant graph. However, a significant limitation lies in such strategies, which is the unavoidable problem of sampling false negative samples. In this paper, we propose a novel method to utilize \textbf{C}ounterfactual mechanism to generate artificial hard negative samples for \textbf{G}raph \textbf{C}ontrastive learning, namely \textbf{CGC}, which has a different perspective compared to those sampling-based strategies. We utilize counterfactual mechanism to produce hard negative samples, which ensures that the generated samples are similar to, but have labels that different from the positive sample. The proposed method achieves satisfying results on several datasets compared to some traditional unsupervised graph learning methods and some SOTA graph contrastive learning methods. We also conduct some supplementary experiments to give an extensive illustration of the proposed method, including the performances of CGC with different hard negative samples and evaluations for hard negative samples generated with different similarity measurements.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2022generating,
  title  = {Generating Counterfactual Hard Negative Samples for Graph Contrastive Learning},
  author = {Haoran Yang and Hongxu Chen and Sixiao Zhang and Xiangguo Sun and Qian Li and Xiangyu Zhao and Guandong Xu},
  year   = {2022},
  eprint = {2207.00148},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.00148v3}
}

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

Discussion