Introduction
Self-supervised contrastive learning has emerged as a powerful technique for learning graph representations without manual labels. The core idea is to pull "positive" pairs (augmentations of the same graph) together while pushing "negative" pairs (different graphs) apart. While significant research has focused on generating effective positive views, the selection of negative samples has remained largely unoptimized, typically relying on random sampling.
This approach is suboptimal for two reasons. First, negative samples vary in difficulty; "easy" negatives provide minimal information, while "hard" negatives are essential for defining precise decision boundaries. Second, the absence of labels leads to the "False Negative Trap," where semantically similar graphs are incorrectly pushed apart, hindering generalization. To address these challenges, we introduce CuCo (Curriculum Contrastive learning), a framework that adopts a human-like curriculum to prioritize learning from easier negatives before tackling harder ones.
Methodology
The CuCo framework integrates curriculum learning into the contrastive pipeline through a four-stage process:
- Graph Augmentation: Standard techniques such as node dropping, edge perturbation, attribute masking, and subgraph sampling are used to generate diverse views of the input graphs.
- Difficulty Scoring: A scoring function (e.g., Cosine or Dot Product similarity) evaluates the "hardness" of negative samples. Samples highly similar to the anchor in the embedding space are classified as "hard."
- Pacing Function: Acting as a "teacher," the pacing function determines the subset of negative samples available for training. It initially selects the most dissimilar (easiest) negatives from a memory bank, gradually incorporating harder samples as the model matures.
- Early Stop Mechanism: To mitigate the impact of false negatives, CuCo employs a patience-based early stop. Training terminates if the loss plateaus, preventing the model from over-fitting to potentially misleading hard negatives in the final stages.
Experimental Setup
CuCo was evaluated across 15 real-world datasets:
- Unsupervised Benchmarks: Seven datasets including molecular structures (MUTAG, NCI1, PROTEINS, DD) and social networks (COLLAB, RDT-B, RDT-M5K).
- Transfer Learning: Eight datasets from the Open Graph Benchmark (OGB), including BBBP, Tox21, and HIV, to test the robustness of pre-trained representations.
Results and Discussion
CuCo achieves state-of-the-art performance while significantly improving training efficiency.
Enhanced Accuracy and Generalization
CuCo outperformed existing methods on 6 out of 7 unsupervised benchmarks. Notably, it achieved 90.55% accuracy on the MUTAG dataset, a substantial improvement over the GraphCL baseline (86.80%). In transfer learning tasks, CuCo provided a 5% performance boost over non-pretrained models, demonstrating that its curriculum-based approach learns more transferable features.
Efficiency and Convergence
By focusing on informative samples, CuCo reduces redundant computations. The model achieves a 40% reduction in training time compared to GraphCL.
The curriculum strategy also stabilizes early training. A linear pacing function was found to be most effective, suggesting that a steady increase in difficulty allows the GNN encoder to build a robust embedding space before refining it with subtle distinctions.
Conclusion
CuCo demonstrates that the "how" of negative sampling is as critical as the "what" of positive augmentation. By mimicking human learning patterns and implementing a safety buffer against false negatives, CuCo sets a new standard for efficient and accurate self-supervised graph representation learning. Future work will explore more sophisticated scoring functions and the application of curriculum learning to the positive augmentation process.
Summary updated