Optimal community detection with graphical neural networks
Hongsong Yuan, Shenghang Luo, Yicheng Xu, Fengnan Gao
ICLR 2026 submission
Abstract. This paper investigates the theoretical optimality of community detection in networks using graph neural networks (GNNs). We show that appropriately designed GNNs for supervised community detection can match the performance of classical spectral and likelihood-based methods, achieving information-theoretic optimality under the stochastic block model. These results provide the first rigorous connection between deep learning algorithms and their statistical guarantees for community detection. We extend existing GNN-based methods into a two-stage framework, where the second stage is critical for ensuring theoretical optimality. Our algorithm is trained on synthetic and/or real-world graphs with known community labels and can be subsequently applied as generic algorithms to any network in an off-the-shelf manner, offering strong practicality. Extensive experiments on both synthetic and real-world datasets support our theoretical findings, demonstrating that the proposed two-stage GNN framework delivers high accuracy and remains robust under model mis-specification. These results establish GNNs as both a theoretically sound and practically effective approach to community detection.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…