Graph Adversarial Self-Supervised Learning

Longqi Yang, Liangliang Zhang, Wenjing YangNeurIPS 2021

Overview

Graph Neural Networks (GNNs) have revolutionized the analysis of complex structured data, from social networks to molecular chemistry. However, they typically require massive amounts of labeled data, which is notoriously expensive and slow to produce in specialized fields like biochemistry.

Self-supervised learning (SSL) attempts to solve this by training models on unlabeled data using "pretext tasks." Currently, most graph SSL methods rely on handcrafted views—human-designed transformations like dropping nodes, masking attributes, or perturbing edges. Graph Adversarial Self-Supervised Learning (GASSL) is a novel framework that learns powerful graph representations without any human labels or handcrafted data augmentations. By using adversarial training to automatically generate "challenging" views of graph data, it outperforms state-of-the-art self-supervised methods and performs on par with fully supervised models.

The Problem with Handcrafted Views

The authors identify three major flaws with relying on handcrafted augmentations for graph SSL:

  1. Expert Dependency: Designing effective views requires deep domain knowledge.
  2. Trial and Error: An augmentation that works well for a social network might completely destroy the semantic meaning of a protein molecule.
  3. Inconsistency: Handcrafted views do not yield consistent performance gains across different tasks and datasets.

Methodology: The GASSL Framework

GASSL replaces human intuition with an adversarial "view generator" that mathematically computes the most challenging augmentations for the network to learn from.

GASSL Architecture showing the teacher-student setup and adversarial perturbation
  • Teacher-Student Architecture: Inspired by BYOL (Bootstrap Your Own Latent), GASSL utilizes two networks. The "teacher" network's weights are an exponential moving average (EMA) of the "student" network. This asymmetric design prevents the model from "collapsing" into a state where it outputs the exact same representation for every graph.
  • Adversarial View Generation: Instead of manually dropping nodes or edges, GASSL adds small, calculated perturbations ($\delta$) to the input node features or the first hidden layer. This is framed as a min-max optimization problem:
  • The Adversary (Inner Loop): Attempts to find a perturbation that maximizes the difference between the original graph and its perturbed version.
  • The Encoder (Outer Loop): Attempts to minimize this difference, forcing the model to learn features that are invariant to these difficult, automated distortions.
  • Efficiency Trick: Because adversarial training is notoriously slow, GASSL employs a gradient accumulation strategy (often called the "free" strategy). This updates the model parameters and the perturbation simultaneously, significantly accelerating the training process.

Key Insights and Results

The researchers evaluated GASSL on 10 widely recognized benchmarks, including TU Datasets (e.g., MUTAG, PTC-MR, COLLAB) and the Open Graph Benchmark (e.g., HIV, Tox21).

Performance comparison showing GASSL outperforming baselines like GraphCL
  • Superior Performance: GASSL consistently outperformed state-of-the-art SSL baselines like GraphCL, InfoGraph, and MVGRL. For example, on the MUTAG dataset, it achieved 90.9% accuracy, a notable improvement over previous self-supervised leaders.
  • Adversarial vs. Handcrafted: The results highlight that mathematically generated "challenging" views are often more effective than those designed by humans. Adversarial perturbations create "faithful" but difficult views that force the encoder to capture more robust intrinsic properties of the graph.
  • Hidden Layer Perturbation: Perturbing the hidden layers of the GNN often yielded better results than perturbing the raw input features, suggesting that attacking internal representations helps the model learn better high-level abstractions.
  • Stability and Speed: Unlike many SSL methods that require massive batch sizes, GASSL remains stable even with smaller batches (e.g., 128). Furthermore, the gradient accumulation strategy resulted in up to a 1.46x speedup in training time compared to standard adversarial approaches, without sacrificing accuracy.

Limitations and Future Work

While GASSL presents a significant step forward, the authors note a few areas for future exploration:

  • Uniform Perturbations: Currently, GASSL uses a uniformly norm-bounded perturbation, which ignores the underlying distribution of the data. Future work could involve "non-uniform" perturbations that adapt specifically to the graph's unique structure.
  • Hybrid Approaches: While the paper focuses on replacing handcrafted views, combining adversarial training with existing handcrafted augmentations might push performance even further.
  • Theoretical Gap: The empirical results are strong, but a deeper theoretical analysis of why adversarial views generalize so well in the graph domain remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{yang2021graph,
  author = {Longqi Yang and Liangliang Zhang and Wenjing Yang},
  title = {{Graph Adversarial Self-Supervised Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=xrVpkQw1g7},
}
Figure