Introduction
Community detection—the process of clustering nodes into dense, meaningful groups—is a fundamental task in network science with applications ranging from social network analysis to bioinformatics. While Graph Neural Networks (GNNs) have significantly advanced this field by integrating topological data with node attributes, their reliance on message-passing mechanisms introduces a potential vulnerability: small perturbations in the graph can propagate, potentially destabilizing the entire community structure. This paper provides a comprehensive benchmark of GNN robustness in community detection, comparing supervised and unsupervised architectures under various noise conditions and adversarial attacks.
Methodology
The study evaluates six GNN architectures categorized into two distinct paradigms:
- Supervised Models: GCN, GAT, and GraphSAGE, which are trained using ground-truth community labels.
- Unsupervised Models: DiffPool, MinCUT, and DMoN, which optimize graph-theoretic objectives like modularity or normalized cuts without requiring labels.
The robustness of these models was tested against three primary attack vectors:
- Node Attribute Manipulations: Altering the mean (location) or variance (scale) of node features.
- Structural Distortions: Deleting edges randomly or targeting high-betweenness edges.
- Adversarial Attacks: Utilizing Nettack and Metattack to degrade performance through nearly invisible perturbations.
Performance was quantified using Element-Centric Similarity (ECS), a metric chosen for its ability to handle overlapping and hierarchical community structures more effectively than traditional measures.
Experimental Results
The experiments utilized both synthetic (LFR, ADC-SBM) and real-world citation networks (Cora, Citeseer, Pubmed). A key finding is the inherent trade-off between initial accuracy and long-term robustness.
The Fragility of Supervision
Supervised models, particularly GAT, often achieved superior accuracy on clean datasets but proved highly fragile. For instance, shifting node attribute distributions (location shifts) caused performance drops as high as 78%. These models appear to overfit to specific attribute distributions, making them sensitive to even minor feature noise.
The Resilience of Modularity
In contrast, unsupervised models—specifically DMoN—demonstrated remarkable resilience. By optimizing for global modularity rather than local labels, DMoN remains stable under local noise or individual edge deletions. The study found that structural signals can act as a buffer; the more well-defined the original communities (indicated by a low mixing parameter $\mu$), the more resilient the GNN is to attacks.
Structural vs. Attribute Attacks
The research highlights that targeted structural attacks (deleting high-importance edges) are far more devastating than random deletions. For GCN, targeted attacks resulted in a 79% decrease in ECS. Furthermore, manipulating the "meaning" of attributes (location shift) is significantly more damaging than simply increasing noise (scale shift).
Conclusion
While supervised GNNs offer high precision, their vulnerability to noise poses risks in real-world applications where data is often imperfect. Unsupervised models like DMoN provide a more robust alternative for community detection. Future work should explore neural scaling laws and hyperbolic embeddings to further bridge the gap between accuracy and robustness, potentially developing defense mechanisms that incorporate the resilience of unsupervised objectives into supervised frameworks.
Summary updated