ArieL: Adversarial Graph Contrastive Learning

Shengyu Feng, Baoyu Jing, Yada Zhu, Hanghang Tong · DOI · OpenReview

TL;DR

This paper introduces ARIEL, a novel adversarial graph contrastive learning framework that generates more informative augmented graph views by using adversarial attacks. This approach leads to improved performance and significantly enhanced robustness against adversarial attacks, outperforming existing methods on both node and graph classification tasks.

What Problem Does This Paper Address?

Graph representation learning aims to learn meaningful embeddings for nodes and entire graphs in an unsupervised manner. Contrastive learning has emerged as a powerful technique, relying on the creation of "positive" (similar) and "negative" (dissimilar) sample pairs to guide the learning process. A key challenge in graph contrastive learning is generating high-quality augmented views of a graph that are sufficiently distinct yet retain essential information. Traditional data augmentation methods for graphs, unlike those for images, are less intuitive and can result in augmented views that are either too similar or too different from the original, hindering effective contrastive learning. Furthermore, existing graph contrastive learning methods often exhibit vulnerability to adversarial attacks, leading to a drop in performance. This paper addresses these limitations by proposing a method to generate more informative augmented views through adversarial attacks and to stabilize the training process for improved robustness.

Methods

ARIEL builds upon existing contrastive learning frameworks like SimCLR and GRACE. Its core innovation lies in introducing an adversarial graph view for data augmentation. Instead of relying solely on random augmentations (like edge dropping or feature masking), ARIEL employs an adversarial attack to generate a perturbed graph view that maximizes the contrastive loss. This adversarial view is then treated as another positive sample, forcing the model to learn more discriminative representations.

To handle large graphs and computational constraints, ARIEL utilizes subgraph sampling. This allows the adversarial attack and augmentation to be performed on smaller subgraphs, significantly reducing computational cost without sacrificing performance.

To address potential training instability and collapse issues that can arise from adversarial training, ARIEL introduces information regularization. This technique leverages the Markov relation between graph views to penalize overly similar embeddings between positive pairs, ensuring more stable and robust learning.

Finally, ARIEL unifies node-level and graph-level contrastive learning by treating each graph instance as a "super-node" in the graph-level setting, making it a versatile framework.

Datasets

The paper evaluates ARIEL on a variety of datasets:

Node-level contrastive learning: * Cora * CiteSeer * Amazon-Computers * Amazon-Photo * Coauthor-CS * Coauthor-Physics * Facebook * LastFM Asia

Graph-level contrastive learning: * NCI1 * PROTEINS * DD * MUTAG

The paper notes that the node-level datasets are standard benchmarks in graph representation learning, while the graph-level datasets are from the TUDataset benchmark.

Key Insights and Ideas

  • Adversarial augmentation is more informative: By actively seeking to maximize the contrastive loss, adversarial attacks generate augmented views that are more challenging for the model to distinguish from the original, leading to more robust and discriminative embeddings.
  • Subgraph sampling for scalability: Applying adversarial attacks on entire large graphs is computationally prohibitive. Subgraph sampling effectively mitigates this by allowing the adversarial process to operate on smaller, manageable portions of the graph, making the method scalable.
  • Information regularization prevents collapse: Adversarial training can sometimes lead to unstable training or model collapse. The proposed information regularization acts as a stabilizing force, ensuring that the model learns meaningful representations even under challenging adversarial conditions.
  • Unified framework for node and graph tasks: ARIEL's ability to seamlessly handle both node-level and graph-level tasks by treating graphs as super-nodes simplifies its application and demonstrates its broad applicability.

Key Results

  • Improved performance: ARIEL consistently outperforms existing graph contrastive learning methods (e.g., GRACE, GCA, MVGRL) on both node classification and graph classification tasks across multiple real-world datasets. For instance, it achieves an almost 3% gain on Amazon-Computers for node classification.
  • Enhanced robustness: ARIEL demonstrates significantly higher robustness against adversarial attacks compared to other methods. On datasets like CiteSeer and Amazon-Computers, the performance drop under attack is considerably smaller for ARIEL than for its competitors.
  • Scalability: Through subgraph sampling, ARIEL achieves better scalability than methods like GRACE and GCA, especially on larger graphs, with significantly faster iteration times.

Limitations and Future Work

  • Computational cost of attack: While subgraph sampling addresses scalability, the adversarial attack itself can still be computationally intensive. The paper mentions that the attack is "highly computationally expensive" and that ARIEL's subgraph sampling is a key solution.
  • Potential for imbalanced perturbations: In graph-level contrastive learning, the constraint on total perturbation over a batch, rather than per-graph, could lead to imbalanced perturbations among graphs. While not observed in their experiments, this is noted as a potential issue.
  • Future work: The authors plan to further investigate (1) adversarial attacks on graph contrastive learning and (2) the integration of graph contrastive learning with supervised methods. They also suggest that the attack is not always needed on the whole graph and that selecting anchor nodes could be an alternative approach.

Summary updated

BibTeX
@article{feng2024ariel,
  author = {Shengyu Feng and Baoyu Jing and Yada Zhu and Hanghang Tong},
  title = {{ArieL: Adversarial Graph Contrastive Learning}},
  journal = {ACM Trans. Knowl. Discov. Data},
  year = {2024},
  doi = {10.1145/3638054},
}
Figure