Graph Contrastive Learning With Personalized Augmentation

Xin Zhang, Qiaoyu Tan, Xiao Huang, Bo Li

TL;DR

Graph Contrastive Learning (GCL) typically applies the same "one-size-fits-all" data augmentation to every graph in a dataset. This paper introduces GPA (Graph Personalized Augmentation), a framework that uses a learnable selector to pick tailored augmentation strategies for each individual graph based on its unique topology and attributes, significantly boosting representation quality across diverse domains.

What Problem Does This Paper Address?

Graph Contrastive Learning is a powerful self-supervised technique where a model learns by maximizing the similarity between two different "views" (augmentations) of the same graph. Standard augmentations include dropping nodes, perturbing edges, or masking node attributes.

However, the authors point out a major flaw in current SOTA methods: they assume all graphs in a dataset should be augmented the same way. In reality, graphs are incredibly diverse. A social network might be robust to edge changes, while a molecular graph's "meaning" might completely change if a single bond is removed. As shown in Figure 1, different graph instances within the same dataset actually favor different augmentation pairs to achieve peak performance.

Figure 1: The effect of different augmentation strategies toward four randomly sampled graphs from MUTAG.

Methods

The authors propose GPA, a plug-and-play module that automates the selection of augmentations. The framework consists of two main parts:

  1. Personalized Augmentation Selector ($g_\theta$): A learnable module (a two-layer MLP) that takes a graph as input and predicts the most informative pair of augmentations from a pool of candidates (NodeDrop, EdgePert, AttMask, Subgraph, and Identical).
  2. Bi-level Optimization: To handle the massive search space (which grows exponentially with the number of graphs), GPA uses a bi-level optimization strategy.
  3. The lower-level trains the GNN encoder to minimize contrastive loss using the chosen augmentations.
  4. The upper-level updates the selector by treating the GCL performance on a validation set as a reward signal.

To make this process differentiable, they relax the discrete selection space into a continuous one, allowing the model to learn via gradient descent.

Figure 2: Illustration of our GPA framework.

Datasets

The authors evaluated GPA on 11 benchmark datasets covering various domains:

  • Small Molecules: NCI1, MUTAG, ogbg-molhiv (large-scale).
  • Bioinformatics: DD, PROTEINS.
  • Social Networks: COLLAB, REDDIT-BINARY, REDDIT-MULTI-5K, IMDB-BINARY, GITHUB.

Key Insights and Ideas

  • The "Skip" Operation: Interestingly, GPA sometimes chooses the "Identical" augmentation (no change). The authors suggest this acts as a "skip" operation for noisy graphs where standard augmentations might destroy essential semantic information.
  • Instance-Level Awareness: Unlike previous automated GCL methods (like JOAO) that learn a single distribution for the whole dataset, GPA is truly personalized. It looks at the specific topology and node features of each graph before deciding how to perturb it.
  • End-to-End Training: The selector isn't a separate pre-processing step; it evolves alongside the GNN encoder, creating a feedback loop where better augmentations lead to better representations, and vice versa.

Key Results

GPA consistently outperformed vanilla GCL methods and previous automated approaches (see Table 1/Figure 3 for a comparison of properties).

Table 1: An overview of graph contrastive learning methods.
  • Unsupervised Learning: GPA achieved significant gains, such as a 9.9% improvement over JOAOv2 on the COLLAB dataset.
  • Semi-supervised Learning: With only 10% labeled data, GPA remained superior, outperforming competitors on nearly all benchmarks.
  • Scalability: On the large-scale ogbg-molhiv dataset, GPA improved performance by 9.5% over the standard GraphCL baseline, proving it can handle real-world, large-scale data.

Limitations and Future Work

While GPA is a significant step forward, the authors note a few areas for growth:

  • Scope: The current work focuses primarily on graph-level tasks (classification). Extending this personalized approach to node-level contrastive learning is a logical next step.
  • Augmentation Pool: The study uses five standard augmentation types. Future work could explore more complex, domain-specific augmentations.
  • Cross-Modal Potential: The authors are curious if this personalized augmentation logic could be applied to other data types, such as images or text, where data samples also exhibit high heterogeneity.

Summary updated

BibTeX
@article{zhang2024graph,
  author = {Xin Zhang and Qiaoyu Tan and Xiao Huang and Bo Li},
  title = {{Graph Contrastive Learning With Personalized Augmentation}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2024},
  url = {https://openreview.net/forum?id=tZD6n0hTVC},
}
Figure