Fitting community models to large sparse networks

Aiyou Chen, Arash A. Amini, Peter J. Bickel, Elizaveta LevinaarXiv 2012 · DOI

Abstract

Many algorithms have been proposed for fitting network models with communities, but most do not scale well to large networks and often fail on sparse data. This paper introduces a fast pseudo-likelihood method for fitting the Stochastic Block Model (SBM), alongside a variant that conditions on node degrees to accommodate arbitrary degree distributions. We demonstrate that these algorithms perform well across various settings, including very sparse networks, and illustrate their efficacy on a network of political blogs. Additionally, we propose spectral clustering with perturbations (SCP)—a method of independent interest—to provide robust initial values for the pseudo-likelihood algorithm in sparse settings. We provide theoretical proof that pseudo-likelihood yields consistent community estimates under mild conditions.

Introduction

Community detection—the process of grouping nodes that are more densely connected to each other than to the rest of the network—is a cornerstone of network science. While the Stochastic Block Model (SBM) is the standard statistical tool for this task, it faces two significant hurdles in the era of Big Data: scalability and sparsity.

First, finding the maximum likelihood estimate for community labels is NP-hard. Existing Bayesian (MCMC) or variational methods struggle to scale beyond a few thousand nodes. Second, real-world networks are often "sparse," meaning most nodes have very few connections. In these settings, standard techniques like spectral clustering often break down because the network fragments into many tiny, disconnected components, causing the graph Laplacian to lose its informative structure.

Methodology

Pseudo-Likelihood Estimation

The authors propose a Pseudo-Likelihood approach to bypass the computational complexity of the full likelihood. Instead of maximizing the joint probability of all edges, the method focuses on "block sums"—the number of edges a node has to each initialized community.

Two primary versions are developed:

  1. Unconditional Pseudo-Likelihood (UPL): A fast approximation for the standard SBM.
  2. Conditional Pseudo-Likelihood (CPL): A variant that conditions on node degrees. This is crucial for real-world networks containing "hubs" (nodes with massive numbers of connections). CPL prevents the algorithm from mistakenly grouping all high-degree nodes into the same community regardless of their actual connectivity patterns.

By treating the adjacency matrix as if it were directed (ignoring the symmetry of $A_{ij} = A_{ji}$), the authors decouple the dependencies that make the full likelihood calculation intractable. This "pseudo" approach provides a massive speedup with negligible loss in accuracy.

Spectral Clustering with Perturbations (SCP)

To solve the "cold start" problem inherent in iterative algorithms, the authors introduce SCP. Standard spectral clustering fails on sparse graphs because the Laplacian matrix "collapses" when a graph has many disconnected components. By adding a small constant perturbation (a tiny amount of weight to all possible edges), the network is essentially "glued" together just enough for the underlying community structure to emerge in the eigenvectors. This provides a robust starting point for the pseudo-likelihood EM algorithm.

Key Insights

The Neighborhood Majority Intuition

In a balanced network, the pseudo-likelihood update acts similarly to a "neighborhood majority vote." A node is assigned to the community to which the majority of its neighbors belong. This intuitive mechanism allows the algorithm to refine community labels iteratively and efficiently.

Theoretical Consistency

The paper provides a rigorous proof that the pseudo-likelihood estimate is "weakly consistent." This means the fraction of misclassified nodes approaches zero as the network size $n$ increases, provided the average degree also grows (even if only slowly). This theoretical guarantee holds for the case of two communities under mild conditions on the starting value.

Experimental Results

Scalability and Simulations

The algorithm scales almost linearly with the number of nodes. In simulations, the authors demonstrate fitting models to networks with tens of millions of nodes—a feat that was previously impossible for standard MCMC or variational approaches. The methods were tested against varying "out-in-ratios" (the ratio of inter-community edges to intra-community edges) and average degrees, showing resilience in sparse conditions where other methods failed.

Political Blogs Network

The authors applied their methods to a famous 2004 dataset of 1,222 blogs labeled as "liberal" or "conservative." This dataset is a benchmark for degree heterogeneity.

  • UPL Results: The unconditional version was distracted by node degrees, simply grouping high-degree blogs together regardless of political leaning.
  • CPL Results: The conditional version correctly identified the liberal/conservative split by accounting for the degree distribution, demonstrating the necessity of degree-correction in real-world social data.

Conclusion and Future Work

This pseudo-likelihood framework offers a scalable, statistically consistent solution for community detection in massive, sparse networks. While the current theoretical proofs focus on two balanced communities, the empirical results suggest the method is robust across broader settings. Future research may extend the formal consistency proofs to $K > 2$ communities and explore the asymptotic normality of the estimated block model parameters to further refine statistical inference in network science.

Summary updated

BibTeX
@misc{chen2012fitting,
  author = {Aiyou Chen and Arash A. Amini and Peter J. Bickel and Elizaveta Levina},
  title = {{Fitting community models to large sparse networks}},
  year = {2012},
  eprint = {1207.2340},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1207.2340},
}
Figure