Introduction
Graph clustering is a fundamental task in unsupervised learning, aiming to group nodes with similar semantic properties without relying on ground-truth labels. While Graph Contrastive Learning (GCL) has significantly advanced this field, most existing methods are bottlenecked by a rigid homophily assumption. This assumption posits that connected nodes are inherently similar and should be pulled together in the embedding space. However, real-world graphs are frequently heterophilic, where edges connect dissimilar nodes (e.g., different atom types in chemical networks or fraudsters connecting to legitimate users in transaction networks). In such cases, standard contrastive methods force dissimilar nodes together, blurring cluster boundaries and degrading performance.
To address this, we introduce NeuCGC (Neutral Contrastive Graph Clustering). By introducing the concept of "neutral pairs"—node pairs treated as weighted positives rather than strictly similar or dissimilar—the framework adaptively mines trustworthy neighborhoods, allowing it to excel on both homophilic and heterophilic graphs.
The NeuCGC Framework
NeuCGC is built upon a pseudo-Siamese network architecture, utilizing two MLPs with unshared parameters to extract features. This design avoids the over-smoothing issues often encountered in deep Graph Neural Networks (GNNs). The framework's core innovation is distributed across three primary modules:
- Neutral Contrastive Factor Estimation (NCFE): Instead of assigning binary labels to node pairs, NCFE estimates a coarse-grained homophily factor ($\eta$). This factor serves as a weight that determines the degree to which a neighbor should contribute to the contrastive loss, effectively filtering out noise from untrustworthy edges.
- Neutral Contrastive Distribution Alignment (NCA): This module aligns local neighborhood distributions between the two Siamese views. By employing Symmetric KL divergence weighted by the $\eta$ factor, NCA ensures that only reliable neighborhood information is emphasized during the alignment process.
- Adaptive Feature Consistency (AFC): Acting as a fine-grained counterpart, AFC utilizes K-means on learned embeddings to generate high-confidence pseudo-labels. It identifies "congeners"—nodes likely belonging to the same category—even if they lack direct structural connections. This effectively "rewires" the neighborhood to prioritize semantic feature consistency over potentially noisy graph topology.
Experimental Evaluation
The model was rigorously evaluated on 11 benchmark datasets with varying homophily ratios ($r_h$), ranging from highly homophilic graphs like Cora ($r_h \approx 0.81$) to highly heterophilic graphs like Texas ($r_h \approx 0.06$).
Key Results and Performance
NeuCGC was compared against 16 state-of-the-art methods, including GraphMAE, DCRN, and HeterGCL. As shown in the results table, NeuCGC achieved the best or second-best performance across nearly all metrics (ACC, NMI, ARI, F1).
The gains were particularly pronounced on heterophilic datasets. For instance, on the Wisconsin dataset ($r_h = 0.18$), NeuCGC achieved a remarkable 73.6% Accuracy, significantly outperforming the next best neighbor-based method, SCGC, which reached only 45.9%. This demonstrates the framework's ability to successfully navigate environments where structural neighbors are not semantically similar.
Theoretical and Practical Insights
Beyond empirical success, NeuCGC is supported by theoretical grounding. The authors provide proof (Theorem 1) that the AFC loss serves as a stricter estimator for maximizing mutual information between original attributes and latent representations compared to the standard InfoNCE loss. This suggests that NeuCGC is mathematically more robust than traditional heuristic-based contrastive methods.
From a practical standpoint, the model maintains a computational complexity of $O(N^2d)$, making it comparable to standard InfoNCE. Empirical tests confirm that it strikes an efficient balance between training time and memory usage, even when incorporating its advanced alignment modules.
Conclusion and Future Work
NeuCGC represents a significant step forward in graph clustering by breaking the restrictive homophily assumption. By introducing a "neutral" middle ground in contrastive learning, it provides a flexible mechanism for handling the inherent noise in real-world graph structures. While the model shows sensitivity to certain hyperparameters like the confidence threshold, its superior performance on heterophilic graphs opens new avenues for research. Future work may explore applying the concept of "neutrality" to other graph-based tasks, such as link prediction or node classification in extremely sparse or noisy environments.
Summary updated