Adversarial Graph Contrastive Learning with Information Regularization

Shengyu Feng, Baoyu Jing, Yada Zhu, Hanghang Tong

Introduction

Unsupervised graph representation learning has seen significant progress through contrastive learning (CL). The fundamental principle involves pulling "positive" pairs—different views of the same node—closer in the embedding space while pushing "negative" pairs—embeddings of different nodes—further apart. However, the effectiveness of CL is heavily dependent on the quality of data augmentations used to generate these views.

The Challenge of Random Augmentations

Most existing graph CL methods rely on stochastic augmentations, such as random edge dropping or feature masking. Unlike in computer vision, where operations like cropping or color jittering preserve semantic meaning, graph structures are sensitive. A random change might be trivial or might inadvertently destroy critical structural information, such as community boundaries. This leads to "easy" contrastive tasks that fail to push the model toward learning robust, high-level features.

Drift in node embeddings caused by iterative random masking on Amazon datasets.

As shown in the figure above, even mild random masking (dropping 3% of features/edges iteratively) causes node embeddings to drift significantly. By the 60th iteration, the cosine similarity to the original graph's embeddings drops below 0.2, indicating that random perturbations can quickly decouple representations from their original context without necessarily providing useful training signals.

The ARIEL Framework

To address these limitations, we introduce ARIEL (Adversarial Graph Contrastive Learning). ARIEL moves beyond "blind" random noise by incorporating adversarial training and information-theoretic constraints.

Overview of the ARIEL framework, showing the generation of augmented and adversarial views and the application of contrastive and similarity losses.

The framework consists of three primary innovations:

  1. Adversarial Graph View ($G_{adv}$): Instead of relying solely on random augmentations, ARIEL employs Projected Gradient Descent (PGD) to create an adversarial view. This view is designed to maximize the contrastive loss, serving as a "hard" positive sample that challenges the model to remain invariant under the most damaging small perturbations.
  2. Information Regularization: Adversarial training can be unstable and lead to representation collapse. ARIEL introduces a regularizer based on the Data Processing Inequality. It treats the views as part of a Markov chain ($H_1 \leftarrow H \rightarrow H_2$) and enforces that the similarity between augmented views should not exceed their similarity to the original, unperturbed graph. This acts as an "anchor" to maintain semantic consistency.
  3. Efficient Subgraph Sampling: To ensure scalability to large-scale networks, ARIEL performs adversarial attacks and contrastive updates on sampled subgraphs. This reduces the computational complexity of gradient calculations across the entire adjacency matrix.

Key Results and Robustness

ARIEL was evaluated across six benchmark datasets, including citation networks (Cora, CiteSeer) and co-purchase graphs (Amazon-Computers, Amazon-Photo).

  • State-of-the-Art Performance: ARIEL consistently outperformed leading baselines. For example, on Amazon-Computers, it achieved an accuracy of 91.13%, a significant improvement over previous methods like GCA.
  • Adversarial Resilience: When subjected to Metattack (a potent poisoning attack), ARIEL demonstrated superior robustness. On Amazon-Computers under attack, ARIEL maintained 88.61% accuracy, whereas competitors saw much steeper declines.
  • Computational Efficiency: Despite the overhead of adversarial generation, the subgraph sampling strategy allows ARIEL to scale effectively. On the Coauthor-Physics dataset, ARIEL's iteration time was over 15x faster than GCA.

Conclusion

ARIEL demonstrates that "hard" contrastive samples generated via adversarial attacks, combined with principled information regularization, can significantly enhance both the accuracy and robustness of graph representation learning. By moving away from random augmentations toward targeted perturbations, ARIEL sets a new standard for unsupervised node classification.

Summary updated

BibTeX
@inproceedings{feng2022adversarial,
  author = {Shengyu Feng and Baoyu Jing and Yada Zhu and Hanghang Tong},
  title = {{Adversarial Graph Contrastive Learning with Information Regularization}},
  booktitle = {The Web Conference},
  year = {2022},
  doi = {10.1145/3485447.3512183},
}
Figure