Abstract
Analyzing attributed networks—graphs where nodes are associated with rich feature data—requires models that can simultaneously capture structural connectivity and attribute correlations. We present the Restricted Boltzmann Stochastic Block Model (RB-SBM), a generative framework that integrates Stochastic Block Models (SBMs) for structural modeling with Restricted Boltzmann Machines (RBMs) for feature modeling. By learning a joint distribution over attributes and community memberships, RB-SBM achieves state-of-the-art performance in community detection and link prediction while remaining inherently interpretable and domain-independent.
Introduction
In modern network analysis, data often arrives as attributed graphs, such as social networks with user demographics or citation networks with document text. Traditional community detection methods typically prioritize either structural links or node attributes, often failing to leverage the synergy between them. While deep learning approaches like Graph Neural Networks (GNNs) have set performance benchmarks, they often function as "black boxes," offering little insight into the underlying reasons for community formation.
This paper introduces the RB-SBM to bridge the gap between high-performance deep learning and explainable statistical modeling. The model is designed to be scalable, domain-independent, and capable of providing clear justifications for its community assignments through its learned parameters.
The RB-SBM Framework
The RB-SBM is a generative model that describes how node attributes and network edges are co-generated. It consists of two primary components:
- Restricted Boltzmann Machine (RBM): Models the joint relationship between a node's attributes ($y_i$) and its community membership ($z_i$).
- Stochastic Block Model (SBM): Describes the probability of an edge existing between two nodes ($A_{ij}$) based on their respective community memberships and a block probability matrix ($B_{ij}$).
A key innovation of this framework is the modeling of the joint distribution of attributes and communities. Unlike models that assume a strict causal direction (e.g., attributes causing community membership), the joint approach allows the RB-SBM to be applied across diverse domains without prior assumptions about the data-generating process.
Inference and Scalability
To perform inference, the authors derive an efficient variational Expectation-Maximization (EM) algorithm. While RBMs are traditionally difficult to train due to an intractable normalization constant, the authors leverage the one-hot encoded nature of community vectors in the RB-SBM to calculate this constant exactly.
The resulting algorithm is highly scalable. For the standard RB-SBM, the complexity scales linearly with the number of nodes and edges, $O(n + |E|)$, making it suitable for large-scale networks. The authors also propose an extension, RB-MMSBM, which supports mixed membership, allowing nodes to belong to multiple communities simultaneously, though this version currently carries a higher computational cost.
Experimental Evaluation
The model was evaluated on several benchmark datasets, including citation networks (Cora, Citeseer, PubMed) and social networks (Wikipedia Philosophers, Sinanet).
- Community Detection: On Cora and Citeseer, RB-SBM outperformed other explainable methods and remained competitive with complex deep learning models in terms of Normalized Mutual Information (NMI).
- Link Prediction: The model achieved high AUC scores (e.g., 0.884 on Cora), demonstrating its ability to accurately reconstruct missing network structure.
- Scalability: Empirical tests confirmed linear scaling, with the model efficiently processing networks containing up to 100,000 nodes.
Interpretability and Insights
One of the primary advantages of the RB-SBM is its explainability. The RBM's weight matrix ($W$) serves as a direct bridge between features and communities. By inspecting the highest weights in $W$, researchers can identify the specific attributes that define a community. For example, in a "Philosophers" dataset, the model successfully identified clusters like "Asian Buddhism" and "Political Liberalism" by highlighting keywords such as "Nirvana" and "Republic," respectively.
Conclusion
The RB-SBM offers a powerful, interpretable alternative to black-box models for attributed network analysis. By combining the strengths of RBMs and SBMs, it provides a domain-independent tool that scales to large datasets. Future work includes extending the model to handle degree-corrected structures and incorporating link-level covariates to further enhance its predictive and descriptive power.
Summary updated