Nested stochastic block model for simultaneously clustering networks and nodes

Nathaniel Josephs, Arash A. Amini, Marina S. Paez, Lizhen LinarXiv 2023 · DOI

Introduction

In the field of network science, researchers typically focus on one of two distinct tasks: community detection (identifying groups of nodes within a single network) or network clustering (grouping similar whole networks together). However, performing both tasks simultaneously is a significant challenge, particularly when dealing with "unlabeled" data. Unlabeled networks occur when node correspondence is unknown—for instance, when comparing social networks from different schools with anonymous participants or protein interaction networks across different species where nodes do not map one-to-one.

To address this, researchers have developed the Nested Stochastic Block Model (NSBM). This Bayesian framework is designed to group a collection of networks into categories while identifying internal communities within each network, even when nodes are anonymous or vary in number across the collection. As shown in the comparison below, NSBM fills a critical gap in existing literature by supporting unlabeled networks and automatic parameter learning.

Comparison of NSBM with existing network clustering and community detection methods.

Methodology

The NSBM framework integrates the Nested Dirichlet Process (NDP) with the Stochastic Block Model (SBM). The SBM serves as the base model for finding communities based on edge probabilities between node groups. The NDP acts as a "cluster of clusters" prior, allowing the model to group networks into high-level classes. Networks within the same class "borrow strength" from one another to more accurately define their internal community structures.

Due to the complex dependencies inherent in network data, standard sampling techniques for the NDP are insufficient. The authors developed and evaluated four Markov chain Monte Carlo (MCMC) algorithms to facilitate inference:

  1. Standard Gibbs (G): Sequential parameter updates.
  2. Collapsed Gibbs (CG): Marginalizes out certain variables to improve efficiency.
  3. Blocked Gibbs (BG): Jointly samples network and node labels.
  4. Incompatible Blocked Gibbs (IBG): A variant that alters update orders to better explore the data space.

Experimental Setup

The model was evaluated using a combination of synthetic simulations and real-world datasets:

  • Simulated Networks: Tested on both assortative (nodes link to their own group) and non-assortative structures.
  • Social Network Aggregate: A massive collection of over 2,300 anonymous networks from sources like Facebook, Tumblr, and DBLP, with sizes ranging from 20 to 100 nodes.
  • Pop Culture Networks: Character-interaction networks from Star Wars, Game of Thrones, and Lord of the Rings, where nodes represent characters sharing scenes.

Key Insights and Results

Automatic Complexity and Heterogeneity

A major advantage of NSBM is that it does not require a pre-specified number of network classes or node communities. It automatically learns the optimal values for $K$ (network clusters) and $L$ (node communities) from the data. Furthermore, it accounts for "community heterogeneity," allowing nodes to belong to different communities even if their parent networks are in the same class.

Performance and Robustness

In head-to-head comparisons with NCLM (a leading method for unlabeled networks), NSBM demonstrated significantly higher accuracy as measured by Normalized Mutual Information (NMI). The model also proved remarkably robust to noise; while competing methods like NCGE and ALMA failed when node labels were perturbed by more than 50%, NSBM remained stable.

Interestingly, the Incompatible Blocked Gibbs (IBG) sampler often yielded the best clustering results. Although it deviates from standard Bayesian theory by swapping update orders, this characteristic helped the model escape local modes and more effectively explore the posterior distribution.

Real-World Application

When applied to film networks, NSBM successfully grouped Star Wars films and Game of Thrones seasons together based solely on the underlying interaction structure, without any knowledge of character names or plot points.

Conclusion and Future Work

While NSBM is a powerful tool for simultaneous clustering, it faces challenges regarding computational complexity due to the intractable nature of exact sampling for network labels. Current implementations rely on approximations to maintain manageable run-times. Future research will focus on extending the model to handle directed networks and incorporating degree-correction to better account for "hub" nodes with high connectivity.

Summary updated

BibTeX
@misc{josephs2023nested,
  author = {Nathaniel Josephs and Arash A. Amini and Marina S. Paez and Lizhen Lin},
  title = {{Nested stochastic block model for simultaneously clustering networks and nodes}},
  year = {2023},
  eprint = {2307.09210},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.09210},
}
Figure