CGCL: Collaborative Graph Contrastive Learning Without Handcrafted Graph Data Augmentations

Tianyu Zhang, Yuxiang Ren, Wenzheng Feng, Weitao Du, Xuecang Zhang

TL;DR

This paper introduces CGCL, a novel framework for unsupervised graph representation learning that eliminates the need for handcrafted data augmentations. By using multiple graph encoders to generate diverse views of the same graph, CGCL achieves robust invariance learning and outperforms existing methods on several benchmark datasets.

What Problem Does This Paper Address?

Unsupervised graph representation learning aims to learn meaningful embeddings for graphs without relying on labeled data. A popular approach is contrastive learning, which teaches models to recognize similar representations across different "views" of the same data. However, existing graph contrastive learning (GCL) methods heavily depend on handcrafted graph data augmentations (e.g., adding/removing nodes/edges) to create these views. The problem is that these augmentations can be brittle; inappropriate ones can actually destroy the desired invariance, leading to unstable performance and complex pipelines. The authors highlight that the intricate structure of graphs makes it difficult to design augmentations that consistently preserve essential information across diverse graph types.

Methods

CGCL tackles the augmentation problem by proposing a Collaborative Graph Contrastive Learning framework. Instead of relying on external augmentations, CGCL generates multiple contrastive views internally by using multiple GNN-based graph encoders. Each encoder observes the same input graph, and their distinct outputs serve as the contrastive views.

The core design principles are:

  • Encoder Perspective for Views: Contrastive views are derived from the outputs of different encoders, not from data transformations. This avoids the instability of handcrafted augmentations.
  • Asymmetric Architecture: To prevent "model collapse" (where encoders learn trivial representations), CGCL employs GNN encoders with different message-passing schemes. This inherent difference creates asymmetry in their learning processes.
  • Complementary Encoders: The encoders are designed to be complementary, meaning they capture diverse aspects of the graph structure and attributes, leading to a richer overall representation.

To quantify these principles, the authors introduce two metrics:

  • Asymmetry Coefficient (AC): Measures the difference in representational dissimilarity matrices (RDMs) generated by pairs of encoders. Higher AC indicates greater asymmetry.
  • Complementarity Coefficient (CC): Measures the fitting ability of the assembly based on the collaborative training loss. Higher CC suggests better complementarity.

Datasets

The paper evaluates CGCL on 9 widely used benchmark datasets for graph-level representation learning:

  • NCI1
  • PROTEINS
  • D&D
  • MUTAG
  • COLLAB
  • IMDB-BINARY
  • IMDB-MULTI
  • REDDIT-BINARY
  • REDDIT-MULTI-5K

All these datasets are sourced from the TUDataset benchmark collection.

Key Insights and Ideas

  • Augmentation-Free Contrastive Learning is Viable: The most significant insight is that effective contrastive learning for graphs can be achieved without manual data augmentation. This simplifies the process and improves robustness.
  • Diversity in Encoders is Key: Using multiple, diverse GNN architectures (e.g., GIN, GCN, GAT) as encoders is crucial. This diversity naturally creates the asymmetry needed to prevent model collapse and fosters complementarity for better learning.
  • Asymmetry and Complementarity are Quantifiable and Predictive: The AC and CC metrics provide a theoretical basis for understanding and selecting effective encoder assemblies. The experiments show a strong correlation between high AC/CC and improved performance.
  • Small/Sparse Graphs are Sensitive to Augmentations: The paper's illustration (Figure 1) and experimental observations suggest that handcrafted augmentations can be particularly detrimental to small or sparse graphs, reinforcing the benefit of an augmentation-free approach.

Key Results

  • State-of-the-Art Performance: CGCL achieves the best performance on 7 out of 9 benchmark datasets in unsupervised graph classification tasks.
  • Robustness: CGCL demonstrates better generalization across datasets compared to methods that rely on data augmentations, especially on datasets with low average node degrees.
  • Assembly Matters: Experiments with AC and CC metrics show that assemblies with high asymmetry and complementarity generally yield superior results. For instance, an assembly with high asymmetry but low complementarity performed poorly.
  • Synchronous Convergence: The study shows that different graph encoders within the CGCL framework converge synchronously, validating the collaborative learning mechanism.

Limitations and Future Work

  • Assembly Selection: While AC and CC metrics help guide assembly selection, the paper doesn't explicitly detail an automated method for choosing the optimal combination of encoders. Future work could explore automated assembly optimization.
  • Encoder Types: The current framework primarily uses GNN-based encoders. Exploring the integration of other types of models or more diverse GNN architectures could further enhance performance.
  • Theoretical Guarantees: While the paper provides theoretical metrics (AC/CC), further theoretical analysis into the convergence properties and guarantees of the collaborative framework could be beneficial.

Summary updated

BibTeX
@inproceedings{zhang2024cgcl,
  author = {Tianyu Zhang and Yuxiang Ren and Wenzheng Feng and Weitao Du and Xuecang Zhang},
  title = {{CGCL: Collaborative Graph Contrastive Learning Without Handcrafted Graph Data Augmentations}},
  booktitle = {DASFAA},
  year = {2024},
  doi = {10.1007/978-981-97-5572-1\_30},
}
Figure