Abstract
Traditional community detection in networks often relies on spectral embedding, which requires pre-specifying the latent dimension ($d$) and the number of communities ($K$). This paper presents a Bayesian framework that treats both $d$ and $K$ as random variables, enabling simultaneous and automated inference. By modeling the spectral embedding as a Gaussian Mixture Model with a partitioned dimensionality structure, the approach eliminates reliance on heuristic "elbow-picking" and provides a statistically principled way to distinguish signal from noise.
Introduction
The Stochastic Blockmodel (SBM) is a fundamental tool for uncovering community structure in networks. A common workflow involves mapping nodes into a low-dimensional space via spectral embedding and then applying clustering algorithms like K-means. However, this process is plagued by a "chicken-and-egg" problem: determining the optimal number of communities ($K$) typically requires knowing the correct embedding dimension ($d$), and vice versa. Practitioners often resort to subjective heuristics, such as identifying an "elbow" in a scree plot of eigenvalues, which lacks automation and consistency.
Proposed Bayesian Framework
The authors propose a generative model for the rows of a spectral embedding matrix. Instead of treating the embedding as a fixed preprocessing step, they interpret it as being drawn from a Gaussian Mixture Model (GMM) with a specific structure designed to handle high-dimensional noise.
Dimensionality Partitioning
A key innovation is the partitioning of the embedding space into "signal" and "noise" components. The model assumes that for a total embedding dimension $m$, the first $d$ dimensions contain the primary signal—characterized by community-specific means ($\mu_k$) and covariances ($\Sigma_k$). The remaining $m-d$ dimensions are treated as noise, modeled with zero mean and diagonal covariance.
Second-Level Clustering and Inference
To mitigate the curse of dimensionality, the framework introduces a second-level clustering of community variances. This allows different communities to share variance parameters in the noise dimensions, preventing the model from underestimating $K$ in high-dimensional settings.
Inference is performed using a trans-dimensional Markov Chain Monte Carlo (MCMC) sampler. This sampler employs "split-merge" moves and dimension-changing steps to explore the joint posterior distribution of $d$ and $K$. The framework is versatile, extending to undirected, directed, and bipartite graphs.
Experimental Validation
The model's performance was evaluated across synthetic and real-world datasets:
- Synthetic SBMs: Simulations confirmed that the marginal log-likelihood peaks sharply at the true latent dimension, even when the embedding space is significantly larger than the signal dimension.
- Santander Bike Hires (London): Analyzing a network of bike stations, the model identified approximately 11-12 latent dimensions and communities. These findings mapped closely to geographical and touristic hubs, such as Westminster and East London, providing more nuanced insights than standard K-means.
- Enron Email Dataset: In this directed communication network, the model successfully recovered source and destination community structures, demonstrating the practical link between $d$ and $K$ in organizational data.
Key Insights
- Structured Noise: By explicitly modeling the "tail" of the embedding rather than discarding it, the Bayesian marginal likelihood provides a formal criterion for selecting $d$, effectively automating the scree plot analysis.
- Diagnostic Utility: The model allows for $d > K$. If the inferred $d$ is significantly larger than $K$, it serves as a diagnostic signal that the data may deviate from standard SBM assumptions.
- Robustness: The second-level clustering of variances is critical for stability; without it, the sampler tends to merge well-separated clusters to maintain parsimony in high dimensions.
Discussion and Limitations
While the framework offers a robust, automated alternative to heuristic methods, it faces certain challenges. The MCMC-based inference is computationally more intensive than simple clustering, posing scalability hurdles for networks with millions of nodes. Additionally, the model's reliance on the asymptotic normality of spectral embeddings may be less reliable for very sparse or small graphs. Finally, performance can be sensitive to the choice of variance hyperparameters relative to the data scale.
Despite these limitations, this Bayesian approach represents a significant step toward principled, automated network analysis, bridging the gap between spectral theory and practical community detection.
Summary updated