Abstract
Graph Contrastive Learning (GCL) models typically augment graph structures and node attributes separately, ignoring the deep correlations between them. This paper introduces GCL-JAM, a novel framework that unifies attributes and topology by treating attributes as virtual nodes. This allows for a joint spectral augmentation strategy that effectively perturbs noisy attributes and inter-class edges, leading to state-of-the-art performance across diverse graph types, particularly heterophilic ones.
Introduction: The Correlation Gap in GCL
In self-supervised Graph Contrastive Learning (GCL), models learn by comparing different augmented "views" of the same graph. Standard methods often apply random perturbations, such as dropping edges or masking features, in isolation. However, a graph's topology and its node attributes are highly correlated: features influence connections, and connections shape features. By augmenting them separately, current models risk destroying critical semantic information and failing to capture the graph's full structural integrity. GCL-JAM addresses this by providing a unified mathematical view to align and jointly augment both information types.
Methodology: The GCL-JAM Framework
The proposed GCL-JAM (Joint spectrAl augMentation) bridges the gap between topology and attributes through a three-step process:
- Attribute-Interpolated Graph Construction: Instead of maintaining a separate feature matrix, node attributes are abstracted into "attribute nodes." Edges are then created between original nodes and these attribute nodes based on feature values, forming a heterogeneous graph.
- Joint Spectral Augmentation: With attributes and topology unified, the framework applies spectral augmentation. By calculating the Laplacian matrix of this new graph, the model selectively perturbs edges that cause the most significant changes in the graph's eigenvalues (the spectrum).
- Contrastive Learning: These augmented views are processed by a shared GNN encoder. A local-local contrastive loss is employed to align representations of the same node while distinguishing them from others.
The authors mathematically demonstrate that spectral clustering on this attribute-interpolated graph is equivalent to the standard graph learning objective of GNNs, providing a robust theoretical foundation for this unification.
Experimental Evaluation
GCL-JAM was evaluated across 12 benchmark datasets, categorized by their degree of homophily:
- Homophilic Graphs: Citation networks (Cora, CiteSeer, PubMed), hyperlink networks (Wiki-CS), and co-purchase networks (Computers, Photo).
- Heterophilic Graphs: Page-page networks (Chameleon, Squirrel), co-occurrence networks (Actor), and webpage datasets (Cornell, Texas, Wisconsin).
Key Results and Insights
- Performance Dominance: GCL-JAM achieved top performance on 5 of 6 homophilic datasets (e.g., 85.54% on Cora). More impressively, it dominated heterophilic benchmarks, outperforming baselines by 6.74% on Chameleon and 12.76% on Squirrel.
- Homophilic Bridges: In heterophilic graphs, where nodes connect to dissimilar neighbors, the introduction of attribute nodes creates artificial homophilic bridges between nodes of the same class, significantly improving cluster learning.
- Targeted Perturbation: Spectral augmentation naturally targets inter-class edges and noisy attributes because intra-class nodes form tighter clusters in the interpolated graph. Empirical analysis confirms that GCL-JAM perturbs a higher proportion of inter-class edges compared to topology-only methods.
Conclusion and Future Work
While GCL-JAM sets new benchmarks, its primary limitation is the computational cost of eigenvalue decomposition, $O(T(N+F)^3)$. The authors suggest using the Lanczos Algorithm to reduce this to $O(TK(N+F)^2)$ by focusing on specific eigenvalues. Future work involves scaling this joint spectral approach to industrial-sized graphs.
Summary updated