Abstract
Community-Invariant Graph Contrastive Learning (CI-GCL) is a novel framework designed to ensure that graph augmentations preserve high-level community structures. By leveraging spectral analysis to guide a learnable augmenter, CI-GCL addresses the "identity crisis" prevalent in standard contrastive methods, where random perturbations can inadvertently destroy functional clusters. The framework unifies topology and feature augmentation through a community-invariant constraint, leading to superior generalization and robustness across 21 benchmark datasets.
Introduction
Graph Contrastive Learning (GCL) has emerged as a powerful self-supervised technique, learning representations by comparing different augmented views of the same graph. However, mainstream GCL methods often rely on random augmentations, such as dropping edges or masking features. This stochastic approach can be detrimental if it disrupts a graph's community structure—the dense clusters of nodes that often define its functional identity (e.g., functional groups in molecules). When augmentations destroy these structures, the model learns noisy representations. Furthermore, existing methods typically treat topology and node features as separate entities, lacking a unified mechanism to protect community integrity across both domains.
The CI-GCL Framework
The authors propose CI-GCL to unify topology and feature augmentation under a single "Community-Invariant" (CI) constraint.
The framework consists of three core components:
- Spectral Proxy: The researchers identified that changes in the graph spectrum (eigenvalues of the Laplacian) correlate with community structure shifts. CI-GCL maximizes spectral changes during edge removal to target "bridge" edges between communities, thereby preserving internal cluster density.
- Bipartite Feature Mapping: To apply spectral logic to non-symmetric node feature matrices, features are transformed into a symmetric bipartite graph. This allows feature masking to be treated with the same spectral constraints as edge perturbation.
- Learnable Augmenter: Instead of random flipping, CI-GCL employs a Multi-Layer Perceptron (MLP) and the Gumbel-Softmax trick to learn optimal perturbations, making the augmentation process end-to-end differentiable and adaptive.
Key Insights
- Strategic Perturbation: Counterintuitively, maximizing the absolute change in eigenvalues during edge removal helps preserve communities. The edges causing the largest spectral shifts are usually those connecting distinct clusters; removing them clarifies community boundaries.
- Unified Augmentation: Treating features as nodes in a bipartite graph bridges the gap between structural and attribute-based augmentation, providing a single mathematical framework for both.
- Inherent Robustness: By training the model to be invariant to perturbations that do not affect communities, CI-GCL naturally becomes more resilient to adversarial noise.
Experimental Results
CI-GCL was rigorously evaluated on 21 benchmark datasets, including TU bioinformatics datasets, MoleculeNet, and OGB molecular regression tasks.
Key performance highlights include:
- Unsupervised Classification: Achieved a top average accuracy of 77.74% across TU datasets.
- Graph Regression: On OGB datasets, CI-GCL reached an average RMSE of 1.606, significantly outperforming the next best method (2.184).
- Transfer Learning: In pre-training scenarios on the ZINC dataset, the model achieved an average ROC-AUC of 75.1%, demonstrating high feature generalizability.
- Qualitative Analysis: Visualizations confirmed that CI-GCL maintains clear community separation, whereas random methods often merge distinct clusters.
Discussion and Future Work
While CI-GCL sets a new standard for community-aware GCL, it faces computational challenges. The primary bottleneck is eigendecomposition ($O(n^3)$), though the authors mitigate this using Lanczos algorithms and Truncated SVD for scalability. Additionally, balancing community constraints requires hyperparameter tuning. Future research may explore higher-level graph motifs or hierarchical structures beyond simple communities to further refine invariance constraints.
Summary updated