Adversarial Curriculum Graph Contrastive Learning with Pair-wise Augmentation

Xinjian Zhao, Liang Zhang, Yang Liu, Ruocheng Guo, Xiangyu ZhaoarXiv 2024 · DOI

Graph Contrastive Learning (GCL) has emerged as a powerful paradigm for unsupervised representation learning on graphs. However, existing methods often rely on stochastic augmentations that lack semantic control and suffer from a bias toward "easy" samples, leading to suboptimal representations. This paper introduces Adversarial Curriculum Graph Contrastive Learning (ACGCL), a framework that addresses these challenges through controllable "mirror graph" generation and an adversarial curriculum training strategy. By adaptively focusing on challenging yet learnable samples, ACGCL achieves state-of-the-art performance across multiple node classification benchmarks, including an 84.4% accuracy on the Cora dataset.

Introduction

The success of Graph Contrastive Learning (GCL) hinges on the quality of augmented views. The standard approach involves pulling representations of positive pairs (different views of the same graph) together while pushing negative pairs apart. Despite its effectiveness, GCL faces two critical limitations. First, random augmentations—such as edge dropping or node masking—provide little control over the semantic consistency of the resulting views. This can lead to "false negatives" or semantically disjoint positive pairs. Second, traditional training often falls into the "easy sample trap," where the model converges on simple patterns and ignores the complex, nuanced information present in harder samples.

The ACGCL Framework

To overcome these hurdles, the ACGCL framework introduces a systematic approach to augmentation and training.

Overview of the ACGCL framework architecture.

The architecture consists of three main components: subgraph sampling, pair-wise augmentation, and adversarial curriculum learning. Initially, subgraphs are sampled using Personalized PageRank (PPR) to ensure local structural information is preserved while maintaining computational efficiency.

Pair-wise Graph Augmentation

The core innovation in ACGCL's augmentation strategy is the creation of Mirror Graphs. Instead of random perturbations, the model identifies "mirror node pairs"—nodes that exhibit high feature similarity (for positive samples) or high dissimilarity (for negative samples).

Generation of positive and negative mirror graphs through edge swapping.

By swapping edges between these identified pairs, the framework generates mirror graphs with controllable difficulty. This allows for a precise tuning of the "distance" between the original and augmented graphs, ensuring that positive samples remain semantically grounded while negative samples are meaningfully distinct.

Adversarial Curriculum Training

Standard curriculum learning typically follows a fixed pacing function, moving from easy to hard samples. However, in the context of GCL, this can lead to a "sparsity of difficult samples" where the model never encounters enough challenging data to learn robust features. ACGCL employs an adversarial re-weighting strategy that frames training as a max-min optimization problem. The model adaptively assigns higher weights to samples that are difficult but still within a "learnable" range, preventing the model from ignoring the data most critical for high-quality representation learning.

Experimental Evaluation

The authors evaluated ACGCL on six benchmark datasets: Cora, Citeseer, PubMed, DBLP, Amazon-Computers, and Coauthor-Physics. The results demonstrate that ACGCL consistently outperforms established baselines such as DGI, GCA, and MVGRL. Notably, on the Cora citation network, ACGCL reached an accuracy of 84.4%, surpassing the previous state-of-the-art. Ablation studies further confirmed that both the curriculum strategy and the batch balance loss (which prevents model collapse using Wasserstein distance) are essential for these performance gains.

Key Insights and Discussion

  • Controllable Difficulty: By using a hyperparameter ($\gamma$) to control mirror pair selection, the augmentation process becomes a precision tool rather than a random process.
  • The Sparsity Problem: The paper highlights that standard curriculum learning often fails because models "coast" on easy wins. Adversarial weighting forces the model to develop the complexity needed to handle hard cases.
  • Value-Sensitive Distance: In their analysis, the authors found that Euclidean distance outperformed Cosine similarity for finding mirror pairs, suggesting that the magnitude of feature differences is a vital component of graph semantics.

Conclusion

ACGCL represents a significant step forward in making Graph Contrastive Learning more robust and semantically aware. By combining controllable mirror graph generation with an adversarial curriculum, the framework effectively navigates the trade-off between sample difficulty and learnability. Future work may explore model-based augmentation strategies to further automate the mirror pair selection process and enhance scalability for billion-node graphs.

Summary updated

BibTeX
@misc{zhao2024adversarial,
  author = {Xinjian Zhao and Liang Zhang and Yang Liu and Ruocheng Guo and Xiangyu Zhao},
  title = {{Adversarial Curriculum Graph Contrastive Learning with Pair-wise Augmentation}},
  year = {2024},
  eprint = {2402.10468},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.10468},
}
Figure