Graph neural networks (GNNs) are increasingly widely used for community detection in attributed networks. They combine structural topology with node attributes through message passing and pooling. However, their robustness or lack of thereof with respect to different perturbations and targeted attacks in conjunction with community detection tasks is not well understood. To shed light into latent mechanisms behind GNN sensitivity on community detection tasks, we conduct a systematic computational evaluation of six widely adopted GNN architectures: GCN, GAT, Graph-SAGE, DiffPool, MinCUT, and DMoN. The analysis covers three perturbation categories: node attribute manipulations, edge topology distortions, and adversarial attacks. We use element-centric similarity as the evaluation metric on synthetic benchmarks and real-world citation networks. Our findings indicate that supervised GNNs tend to achieve higher baseline accuracy, while unsupervised methods, particularly DMoN, maintain stronger resilience under targeted and adversarial perturbations. Furthermore, robustness appears to be strongly influenced by community strength, with well-defined communities reducing performance loss. Across all models, node attribute perturbations associated with targeted edge deletions and shift in attribute distributions tend to cause the largest degradation in community recovery. These findings highlight important trade-offs between accuracy and robustness in GNN-based community detection and offer new insights into selecting architectures resilient to noise and adversarial attacks.
翻译:图神经网络(GNNs)在属性网络的社区检测中应用日益广泛,其通过消息传递与池化操作融合结构拓扑与节点属性。然而,针对社区检测任务中不同扰动类型与定向攻击的鲁棒性表现及其内在机制尚未得到充分理解。为揭示GNN在社区检测任务中敏感性的潜在机理,我们对六种主流GNN架构进行了系统性计算评估:GCN、GAT、Graph-SAGE、DiffPool、MinCUT与DMoN。分析涵盖三类扰动场景:节点属性篡改、边缘拓扑畸变及对抗攻击。我们在合成基准数据集与真实引文网络上采用以元素为中心的相似度作为评估指标。研究结果表明:监督式GNN往往获得更高的基线准确率,而无监督方法(特别是DMoN)在定向与对抗扰动下表现出更强的稳定性。此外,鲁棒性受社区结构强度显著影响,定义清晰的社区能有效降低性能损失。在所有模型中,与定向边删除及属性分布偏移相关的节点属性扰动往往导致社区恢复性能的最大幅度下降。这些发现揭示了基于GNN的社区检测中准确性与鲁棒性之间的重要权衡关系,并为选择抗噪声与抗对抗攻击的架构提供了新见解。