Abstract
Graph representation learning is essential for transforming complex network structures into low-dimensional vectors suitable for downstream tasks. While contrastive learning has recently dominated this field, existing methods often struggle to balance coarse global alignment with strict local consistency. We present GRCCA (Graph Representation via Contrasting Cluster Assignments), a novel unsupervised framework that utilizes clustering as a bridge between local and global views. By forcing nodes from different augmented views to predict each other's cluster assignments, GRCCA captures fine-grained community structures while preserving local feature integrity. Our evaluation across six benchmark datasets shows that GRCCA achieves state-of-the-art performance while maintaining a significantly smaller parameter footprint than competing models.
Introduction
The goal of graph representation learning is to encode nodes into a dense embedding space where structural and feature-based similarities are preserved. Current unsupervised methods typically follow one of two contrastive paradigms: maximizing mutual information between a node and a global graph summary, or enforcing consistency between different local views of the same node. The former often results in representations that are too vague, while the latter ignores the broader community context.
GRCCA addresses this "missing middle" by introducing clusters as a structured representation of global information. Instead of a single global vector, clusters provide a multi-faceted view of the network's community structure. By contrasting these assignments across different augmentations, the model learns features that are invariant to local noise but sensitive to the overall network topology.
Methodology
The GRCCA workflow is built upon four primary components designed to integrate local and global perspectives:
- Dual Augmentation Strategy: To capture different scales of information, the model generates two distinct views. One view employs Graph Diffusion (GD) to emphasize long-range dependencies (global context), while the other uses Removing Edges (RE) to focus on the immediate neighborhood (local context). Both views incorporate node feature masking to enhance robustness.
- Shared Encoding: A shared Graph Convolutional Network (GCN) and a non-linear projector map both augmented views into a unified embedding space.
- Clustering and Prototypes: The model identifies a set of "prototypes" (cluster centers) within the embedding space. Each node is assigned to these clusters based on its proximity to the prototypes.
- Swapped Prediction Mechanism: Inspired by the SwAV model in computer vision, GRCCA uses a "swap" logic. A node from the first view is tasked with predicting the cluster assignment it received in the second view, and vice versa. This is optimized using a cross-entropy loss between the predicted cluster distributions and the actual assignments.
To ensure stability and performance, the authors implement a multi-clustering strategy—analogous to multi-head attention—and an asynchronous memory bank to maintain consistent cluster assignments throughout the training process.
Experimental Results
We evaluated GRCCA on six benchmark datasets, including citation networks (Cora, Citeseer, Pubmed), co-purchase graphs (Amazon-Photo, Amazon-Computers), and co-authorship networks (Coauthor-CS).
Node Classification Performance
GRCCA consistently outperformed state-of-the-art unsupervised models and even rivaled supervised Graph Neural Networks (GNNs).
As shown in the results, GRCCA achieved a notable 91.7% accuracy on the Amazon-Photo dataset, representing a 2.3% improvement over the previous best unsupervised model, GCA. Similar gains were observed across all other benchmarks, particularly in the Coauthor-CS and Amazon-Computers datasets.
Efficiency and Scalability
Beyond raw accuracy, GRCCA is remarkably efficient. By avoiding the heavy computational requirements of massive negative sampling or complex readout functions, it maintains a low parameter count. For instance, on the Cora dataset, GRCCA utilizes approximately 499k parameters, whereas competing models like MERIT require over 14 million parameters to achieve lower accuracy. This efficiency makes GRCCA a more viable candidate for resource-constrained environments.
Conclusion and Future Work
GRCCA demonstrates that contrasting cluster assignments is a powerful mechanism for balancing local and global graph information. By treating clusters as fine-grained global descriptors, the model achieves superior representation quality with high efficiency.
Future research will focus on scaling these clustering mechanisms to massive networks with billions of nodes and adapting the framework for dynamic graphs where the topology evolves over time. Additionally, exploring incremental learning techniques to update cluster assignments without full retraining remains a key area for development.
Summary updated