Subsampling-based modified Bayesian information criterion for large-scale stochastic block models

Jiayi Deng, Danyang Huang, Xiangyu Chang, Bo Zhang

Abstract: Identifying the number of communities is a fundamental problem in community detection, which has received increasing attention recently. However, rapid advances in technology have led to the emergence of large-scale networks in various disciplines, thereby making existing methods computationally infeasible. To address this challenge, we propose a novel subsampling-based modified Bayesian information criterion (SM-BIC) for identifying the number of communities in a network generated via the stochastic block model and degree-corrected stochastic block model. We first propose a node-pair subsampling method to extract an informative subnetwork from the entire network, and then we derive a purely data-driven criterion to identify the number of communities for the subnetwork. In this way, the SM-BIC can identify the number of communities based on the subsampled network instead of the entire dataset. This leads to important computational advantages over existing methods. We theoretically investigate the computational complexity and identification consistency of the SM-BIC. Furthermore, the advantages of the SM-BIC are demonstrated by extensive numerical studies.

Introduction

In network science, community detection is the essential task of grouping nodes that are more densely connected to each other than to the rest of the network. A major hurdle in this process is determining the true number of communities ($K_0$) beforehand. While several criteria exist—such as the standard Bayesian Information Criterion (BIC) or cross-validation—they generally require processing the entire adjacency matrix.

For modern large-scale networks, such as social media graphs with millions of users, the computational cost of these traditional methods is prohibitive. Standard spectral clustering or likelihood-based methods often scale at $O(N^2)$ or $O(N^3)$, rendering them computationally infeasible for massive datasets. This paper introduces the Subsampling-based Modified BIC (SM-BIC), a framework designed to find $K_0$ accurately using only a small representative portion of the data without losing global structural information.

The SM-BIC Framework

The core innovation of SM-BIC lies in its two-step process: node-pair subsampling and the application of a data-driven modified criterion.

Node-pair Subsampling

Instead of analyzing the full $N \times N$ adjacency matrix, the method randomly selects $n$ "landmark" nodes ($n \ll N$). It then extracts all edges between these $n$ nodes and every other node in the entire network. This results in an $N \times n$ sub-adjacency matrix ($A^S$). This "thin" matrix is the "secret sauce" of the method; it significantly reduces data volume while still capturing how every node in the network relates to the sampled landmarks.

Illustration of node-pair subsampling from an entire network to an informative sub-network.

The Modified Criterion

The authors derive a purely data-driven BIC specifically for this $A^S$ matrix. Unlike "corrected BIC" methods that require manual tuning of penalty parameters, SM-BIC is parameter-free, making it more robust for practitioners who do not know the ground truth of their data. For each candidate number of communities $K$, the algorithm performs spectral clustering on the thin $A^S$ matrix, estimates model parameters, and calculates the SM-BIC score. The $K$ that maximizes this score is selected as the optimal number of communities.

Theoretical and Computational Advantages

SM-BIC achieves a computational complexity of $O(N \log^2 N)$, making it nearly linear and highly scalable. By reducing the complexity of Singular Value Decomposition (SVD) from $O(N^2)$ to $O(Nn)$, the method becomes viable for networks with millions of nodes.

Crucially, the authors provide a theoretical proof of identification consistency. They demonstrate that even though a massive amount of data is discarded through subsampling, the probability of picking the correct $K_0$ still approaches 1 as the network size $N$ grows. This holds true for both the basic Stochastic Block Model (SBM) and the Degree-Corrected SBM (DCSBM), which accounts for "hub" nodes with naturally higher connectivity.

Empirical Evaluation

The method was validated using both synthetic and real-world data:

  • Simulated Networks: In simulations with $N=10,000$, SM-BIC was roughly 40-50 times faster than the Bethe-Hessian (BHMC) method and nearly 200 times faster than Edge-sampling Cross-Validation (ECV).
  • Beijing House Price Dataset: In a dataset of 6,000 housing samples, SM-BIC correctly identified 3 communities (matching the 3 administrative districts) in just 8.75 seconds. In contrast, methods like ECV took over 10 minutes to reach the same conclusion.
  • Political Blog Dataset: The method successfully categorized a classic network of 1,222 blogs from the 2004 US election into "liberal" and "conservative" clusters.

Conclusion

SM-BIC provides a robust, parameter-free, and computationally efficient solution for community detection in massive networks. While the current theory assumes a fixed $K_0$, future work may explore growing networks where the number of communities increases with size. Additionally, incorporating resampling or bootstrap techniques could further reduce estimation bias at a manageable computational cost.

Summary updated

BibTeX
@inproceedings{deng2024subsampling,
  author = {Jiayi Deng and Danyang Huang and Xiangyu Chang and Bo Zhang},
  title = {{Subsampling-based modified Bayesian information criterion for large-scale stochastic block models}},
  booktitle = {Electronic},
  year = {2024},
  doi = {10.1214/24-ejs2309},
}
Figure