Abstract
Spectral clustering is a popular method for community detection in network graphs: starting from a matrix representation of the graph, the nodes are clustered on a low dimensional projection obtained from a truncated spectral decomposition of the matrix. Estimating correctly the number of communities and the dimension of the reduced latent space is critical for good performance of spectral clustering algorithms. Furthermore, many real-world graphs, such as enterprise computer networks, often display heterogeneous within-community degree distributions. Such heterogeneous degree distributions are usually not well captured by standard spectral clustering algorithms. In this article, a novel spectral clustering algorithm is proposed for community detection under the degree-corrected stochastic blockmodel (DCSBM). The proposed method is based on a transformation of the spectral embedding to spherical coordinates and a novel modelling assumption in the transformed space. The method allows for simultaneous and automated selection of the number of communities and the latent dimension for spectral embeddings of graphs with uneven node degrees. Results show improved performance over competing methods in representing computer networks.
Introduction: The Degree-Correction Problem
In network science, community detection is the task of grouping similar nodes together. The gold standard for modeling these groups is the Stochastic Blockmodel (SBM). However, the basic SBM assumes every node in a community has roughly the same number of connections—a "homogeneity" that rarely exists in the real world.
In contrast, the Degree-Corrected Stochastic Blockmodel (DCSBM) accounts for the fact that in a computer network, a busy server and a quiet workstation might belong to the same "department" community despite having vastly different connection counts. Standard Spectral Clustering (SC) often fails on these real-world networks because degree heterogeneity causes nodes from the same community to spread out along rays emanating from the origin in the latent space, rather than forming tight clusters.
Methodology: From Rays to Blobs
The authors propose a three-step pipeline to address the "ray" problem:
- Adjacency Spectral Embedding (ASE): The network is represented as a set of points in $m$-dimensional space using a truncated spectral decomposition.
- Spherical Transformation: This is the core innovation. By mapping Cartesian coordinates $(x_1, \dots, x_m)$ to spherical coordinates (angles), the algorithm collapses the rays into compact clusters. Because nodes in a DCSBM community share the same direction regardless of their distance from the origin (their degree), this transformation makes the data naturally clusterable.
- Joint Model Selection: A Gaussian Mixture Model (GMM) is fitted to these angular coordinates. Using the Bayesian Information Criterion (BIC), the method simultaneously estimates the number of communities ($K$) and the true latent dimension ($d$).
The paper provides a formal proof showing that as the network grows, these angular embeddings converge to a multivariate normal distribution, justifying the use of GMMs.
Key Results
The researchers validated their method using synthetic networks and Imperial College London (ICL) network flow data.
- Superior Accuracy: On the ICL2 dataset, the proposed method achieved an Adjusted Rand Index (ARI) of 0.938, while standard spectral clustering and the Louvain algorithm lagged significantly behind (often scoring below 0.6).
- Automated Selection: The method correctly identified the number of university departments (the ground truth communities) much more consistently than alternative spectral methods.
- Visual Clarity: While Cartesian embeddings often result in a tangled mess of overlapping fans, the spherical transformation reveals distinct, separable clusters that allow for more robust community detection.
Limitations and Future Work
While effective, the current implementation relies on a grid search for $d$ and $K$ using multiple iterations of the Expectation-Maximization (EM) algorithm, which is not yet scalable to networks with millions of nodes. Additionally, the method requires an initial choice of a "large enough" embedding dimension $m$. Future work will focus on improving computational efficiency and extending the approach to dynamic networks that change over time.
Summary updated