Abstract
Community detection for large networks poses challenges due to the high computational cost as well as heterogeneous community structures. In this paper, we consider widely existing real-world networks with "grouped communities" (or "the group structure"), where nodes within grouped communities are densely connected and nodes across grouped communities are relatively loosely connected. We propose a two-step community detection approach for such networks. Firstly, we leverage modularity optimization methods to partition the network into groups, where between-group connectivity is low. Secondly, we employ the stochastic block model (SBM) or degree-corrected SBM (DCSBM) to further partition the groups into communities, allowing for varying levels of between-community connectivity. By incorporating this two-step structure, we introduce a novel divide-and-conquer algorithm that asymptotically recovers both the group structure and the community structure. Numerical studies confirm that our approach significantly reduces computational costs while achieving competitive performance. This framework provides a comprehensive solution for detecting community structures in networks with grouped communities, offering a valuable tool for various applications.
Introduction
Community detection—the task of identifying clusters of nodes that are more densely connected to each other than to the rest of the network—is a cornerstone of network science. However, researchers face a significant trade-off between statistical rigor and computational scalability. Statistical models like the Stochastic Block Model (SBM) are highly accurate and theoretically sound, but optimizing them for large networks is NP-hard, making them impractical for massive datasets. Conversely, heuristic methods like modularity optimization are incredibly fast but suffer from a "resolution limit," often failing to detect small, refined communities within larger structures.
This paper addresses these challenges by identifying a common feature in real-world networks: grouped community structure. In many systems, nodes are organized hierarchically. For instance, in an airline network, airports are grouped by geography (continents), and within those continents, they form communities based on economic or political hubs. By leveraging this hierarchical reality, we propose a framework that is both fast and mathematically rigorous.
Methodology: A Divide-and-Conquer Approach
The proposed algorithm follows a two-step "divide-and-conquer" strategy to achieve efficiency without sacrificing accuracy.
- Step 1: Group Division (The "Divide"): The network is first partitioned into $G$ disjoint groups using fast-greedy modularity optimization. This "coarse-grained" step identifies regions where between-group connectivity is low, effectively breaking the massive network into manageable pieces.
- Step 2: Community Detection (The "Conquer"): Within each isolated group, more sophisticated models—either the standard SBM or the Degree-Corrected SBM (DCSBM)—are applied to identify the actual communities. The Likelihood Ratio Bayesian Information Criterion (LRBIC) is used to automatically determine the optimal number of communities within each group.
While two-step clustering is not entirely new, this work provides the first rigorous proof that this specific combination is "consistent." As the network grows, the probability of correctly identifying every node's group and community label approaches unity.
The Grouped Community Assumption
The core insight of this approach is the "Grouped Community" assumption. Traditional methods often require the entire network to be "assortative" (where nodes primarily connect to others of the same type). Our framework only requires the groups to be assortative. Within a group, communities can exhibit diverse structures, including non-assortative patterns like bipartite configurations.
As shown in the figure above, the probability matrix $\mathbf{B}_n^1$ represents a non-assortative structure within groups, while $\mathbf{B}_n^2$ represents an assortative structure. The ability to handle both cases within the same distributed framework is a key advantage of the proposed method.
Experimental Results
The algorithm was evaluated using synthetic networks and large-scale real-world datasets, including airline route networks and social media ego networks (Facebook, Twitter, Google+).
Performance and Scalability
The distributed approach offers massive computational speedups. On a network of 5,000 nodes, a standard global SBM (VSBM) required nearly 7,000 seconds to converge. In contrast, the proposed distributed version (D-VSBM) finished in just 42 seconds while maintaining a high Normalized Mutual Information (NMI) of 0.97. Furthermore, the algorithm successfully processed networks with up to 500,000 nodes, a scale where traditional likelihood-based SBM methods typically become computationally intractable.
Real-World Applications
In the airline network analysis, the first step correctly identified broad geographical regions (e.g., South America, Canada), while the second step successfully pinpointed specific domestic hubs within those regions. In social networks, the model achieved an Area Under the Curve (AUC) of over 0.98 for predicting missing links, demonstrating its practical utility for link prediction and network inference.
Conclusion
This research introduces a scalable, distributed framework for community detection that bridges the gap between fast heuristics and rigorous statistical models. By exploiting the inherent group structure of real-world networks, the divide-and-conquer algorithm achieves significant speedups and theoretical consistency. Future work will explore relaxing the assumption of a fixed number of groups and extending the model to dynamic networks where community structures evolve over time.
Summary updated