Stochastic block models with multiple continuous attributes

Natalie Stanley, Thomas Bonacci, Roland Kwitt, Marc Niethammer, Peter J. Mucha · DOI

Abstract

This paper introduces an augmented Stochastic Block Model (SBM) that integrates network connectivity data with multiple continuous node attributes to enhance community detection. By modeling attributes as multivariate Gaussian distributions tied to latent community assignments, the framework demonstrates that fusing these data sources improves detection accuracy and enables superior performance in link prediction and collaborative filtering tasks.

Introduction

In network science, community detection traditionally relies on the "who-connects-to-whom" data found in an adjacency matrix. However, in many real-world scenarios—particularly in biological and social sciences—nodes are accompanied by rich metadata or attributes. A significant challenge arises when structural communities (based on edges) do not perfectly align with functional communities (based on attributes). While previous research has attempted to incorporate metadata into SBMs, most models were limited to discrete labels or single continuous variables. This paper addresses this gap by proposing a principled generative probabilistic framework to integrate multiple continuous attributes, allowing the model to refine noisy network data using attribute information.

Methodology

The authors propose an Attributed Stochastic Block Model based on the core idea that observed network connectivity ($A$) and node attributes ($X$) are generated by the same underlying community assignments ($Z$).

Generative Framework

The model assumes that connectivity follows a standard SBM (Bernoulli distribution for edges), while the attributes for each community are drawn from a unique multivariate Gaussian distribution. A key assumption is conditional independence: given the community labels, the edges and attributes are independent. This allows the total log-likelihood to be expressed as the sum of the connectivity likelihood and the attribute likelihood.

Generative model for community membership based on attributes and connectivity.

Inference and Implementation

To determine community assignments and model parameters (such as community means and covariance matrices), the authors utilize an Expectation-Maximization (EM) algorithm. This iteratively updates the probability of a node belonging to a community based on both its neighborhood structure and its attribute vector. To mitigate sensitivity to starting conditions, the Louvain algorithm is used on the network structure to provide an initial partition.

Results and Discussion

The model was evaluated across synthetic networks, microbiome subject similarity networks, and protein interaction networks.

Accuracy and Performance

On synthetic data, the attributed SBM achieved a Normalized Mutual Information (NMI) of 0.83, significantly outperforming connectivity-only (0.65) or attribute-only (0.68) approaches. In link prediction tasks within protein interaction networks, the model achieved an Area Under the Curve (AUC) of 0.61, surpassing the standard SBM (0.42) and traditional Jaccard similarity methods (0.58).

Key Insights

  • Smoothing the Phase Transition: Standard SBMs face a "detectability limit" where community structure becomes invisible if the signal-to-noise ratio is too low. Adding attributes "smooths" this transition, maintaining accuracy even in noisy networks.
  • Mutual Reinforcement: The model excels when one data source is weak. If the network is sparse, attributes guide the clustering; if attributes overlap, the network structure provides the necessary separation.
  • Biological Coherence: In microbiome datasets, the model reduced noisy assignments, creating more spatially coherent clusters. In protein networks, it successfully partitioned high-entropy groups into functionally pure communities.

Conclusion and Future Work

While the attributed SBM provides a robust framework for multi-modal data, several avenues for future work remain. The current model lacks "degree correction," which is essential for handling "hubs" in scale-free networks. Additionally, the number of communities ($K$) must currently be pre-specified. Future iterations could extend the model to handle diverse data types—including discrete and non-Gaussian continuous data—and incorporate edge weights to further improve resolution in biological similarity networks.

Summary updated

BibTeX
@article{stanley2019stochastic,
  author = {Natalie Stanley and Thomas Bonacci and Roland Kwitt and Marc Niethammer and Peter J. Mucha},
  title = {{Stochastic block models with multiple continuous attributes}},
  journal = {Appl. Netw. Sci.},
  year = {2019},
  doi = {10.1007/s41109-019-0170-z},
}
Figure