Model Selection for Degree-corrected Block Models

Xiaoran Yan, Jacob E. Jensen, Florent Krzakala, Cristopher Moore, Cosma Rohilla Shalizi, Lenka Zdeborová, Pan Zhang, Yaojia ZhuarXiv 2012

Abstract

Choosing the appropriate level of complexity for community detection models is a fundamental challenge in network science. While the Stochastic Block Model (SBM) provides a baseline for group identification, the Degree-Corrected Block Model (DCBM) accounts for the heterogeneous degree distributions common in real-world networks. However, the additional parameters in the DCBM often lead to overfitting, and traditional statistical tests like the $\chi^2$ likelihood ratio test fail in the sparse regime. This paper introduces a principled approach to model selection using belief propagation and new asymptotic calculations to determine when degree correction is statistically justified in sparse graphs.

Introduction

In the study of complex networks, the Stochastic Block Model (SBM) is a standard tool for uncovering community structure. It operates on the assumption of stochastic equivalence: nodes within the same community are expected to have similar connectivity patterns. Real-world networks, however, frequently violate this assumption, featuring "hubs" and "followers" within a single group. The Degree-Corrected Block Model (DCBM) addresses this by introducing $n$ additional parameters to account for individual node popularities.

While the DCBM offers a more flexible fit, it introduces significant complexity. The central problem of model selection is determining whether this complexity captures genuine structural variation or merely overfits random noise. In dense graphs, classical statistics provide reliable tools for this; however, in sparse networks—where the number of edges is proportional to the number of nodes—traditional assumptions break down, necessitating a more robust analytical framework.

Methodology

The authors propose a two-pronged approach to solve the model selection problem in sparse regimes:

1. Belief Propagation (BP)

Calculating the exact likelihood of a network model requires summing over all possible group assignments, a task that is computationally intractable for large networks. The authors utilize Belief Propagation, a technique from statistical physics, to approximate the "free energy" (and thus the likelihood) in linear time. This allows the method to scale efficiently to large, sparse datasets.

2. Corrected Asymptotic Analysis

Standard statistical theory suggests that the log-likelihood ratio between two nested models should follow a $\chi^2$ distribution. The authors demonstrate that this expectation is incorrect for sparse networks. Because the number of parameters grows with the number of nodes ($n$), and the data (edges) only grows as $O(n)$, the "large data limit" required for $\chi^2$ tests is never reached. The authors derive new formulas for the expected mean and variance of the likelihood ratio under the null (SBM) hypothesis, showing that while the distribution eventually becomes Gaussian, its parameters are significantly shifted from classical predictions.

Data and Validation

The framework was validated using a combination of synthetic and empirical datasets:

  • Synthetic Networks: Simulations with $n=10,000$ nodes were used to verify the accuracy of the derived asymptotic formulas across varying levels of sparsity.
  • Zachary’s Karate Club: A small, 34-node social network used as a benchmark for community detection.
  • Political Blogs: A network of 1,222 blogs from the 2004 US election, characterized by a highly skewed degree distribution.

Key Insights

The Sparse Data Trap

In dense graphs, $O(n^2)$ potential edges provide ample information to estimate $O(n)$ parameters. In sparse graphs, the ratio of observations to parameters is roughly 1:1. This lack of data causes standard tests to underestimate natural variance, leading to "over-rejection" where the simpler SBM is discarded in favor of the DCBM even when no true degree correction exists.

Re-evaluating Classic Benchmarks

The application of this corrected test yielded surprising results for famous datasets. For Zachary’s Karate Club, previous literature favored the DCBM. However, the authors' corrected test produced a p-value of approximately 0.18, suggesting that the evidence for degree correction is statistically weak and potentially a result of small-sample noise. Conversely, for the Political Blogs network, the likelihood ratio was 330 standard deviations above the predicted mean, providing rigorous confirmation that degree correction is essential for that specific dataset.

Conclusion

This work provides a mathematically rigorous foundation for model selection in high-dimensional, sparse network data. By correcting the asymptotics of the likelihood ratio test, the authors offer a way to avoid the pitfalls of overfitting in community detection. Future research may extend this blueprint to other selection problems, such as determining the optimal number of communities ($k$) or testing for overlapping community structures.

Summary updated

BibTeX
@misc{yan2012model,
  author = {Xiaoran Yan and Jacob E. Jensen and Florent Krzakala and Cristopher Moore and Cosma Rohilla Shalizi and Lenka Zdeborová and Pan Zhang and Yaojia Zhu},
  title = {{Model Selection for Degree-corrected Block Models}},
  year = {2012},
  eprint = {1207.3994},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1207.3994},
}
Figure