Generating Compressed Counterfactual Hard Negative Samples for Graph Contrastive Learning
Abstract
ABSTRACT Graph contrastive learning (GCL) relies on acquiring high‐quality positive and negative samples to learn the structural semantics of the input graph. Previous approaches typically sampled negative samples from the same training batch or an irrelevant external graph. However, this approach is limited by the problem of sampling false negatives. To address this limitation, this paper introduces a novel method called CGC. CGC uses a counterfactual mechanism to generate hard negative samples that are similar to positive samples but have different semantics. However, CGC faces the challenge of high space complexity due to the storage requirements of augmented graphs. To overcome this challenge, an expansion of CGC is proposed in this paper, called CCGC (compressed CGC), which incorporates a compression module using knowledge distillation techniques to compress the features of augmented graphs. The effectiveness of the proposed method is demonstrated through satisfactory results on multiple datasets, outperforming traditional unsupervised graph learning methods and state‐of‐the‐art GCL methods. Supplementary experiments are conducted to compare CGC and CCGC at different compression ratios.
Fields of Study & Subjects
Advanced Graph Neural Networks
Graph Theory and Algorithms
Recommender Systems and Techniques
Publication details
- Journal / source
- CAAI Transactions on Intelligence Technology
- Publication date
- 9 February 2026
- Language
- EN