Graph Convolutional Networks Meet Markov Random Fields: Semi-Supervised Community Detection in Attribute Networks

Di Jin, Ziyang Liu, Weihao Li, Dongxiao He, Weixiong Zhang

Introduction

Community detection is a fundamental task in network science, aimed at identifying groups of nodes with dense internal connections. In modern contexts, these networks are often attribute networks, where nodes are enriched with high-dimensional semantic data. Traditional methods typically excel in one of two areas: Graph Convolutional Networks (GCNs) are powerful at integrating topology and attributes but often lack local smoothing constraints, while Markov Random Fields (MRFs) enforce local consistency but struggle with high-dimensional features and computational efficiency.

This paper introduces MRFasGCN, a novel end-to-end deep learning architecture that bridges this gap by reformulating MRF inference as a differentiable convolutional layer within a GCN framework.

Methods: The MRFasGCN Architecture

The MRFasGCN system integrates the global feature-extraction capabilities of GCNs with the local smoothing properties of MRFs into a unified, trainable model. The architecture consists of three primary components:

  1. GCN Layers (Unary Potentials): The first two layers utilize standard graph convolutions to process the network topology (adjacency matrix $A$) and node attributes ($X$). These layers generate a preliminary "coarse" community assignment, which serves as the unary potential for the subsequent MRF stage.
  2. The eMRF Layer (Pairwise Terms): The authors extend the traditional MRF (termed eMRF) by incorporating a similarity matrix $K$. This matrix balances topological adjacency with the cosine similarity of node attributes, allowing the model to identify semantically similar communities even in the presence of sparse or noisy connections.
  3. Differentiable Inference: The critical innovation is the reformulation of the Mean Field Approximation—a standard MRF inference technique—into a series of differentiable convolution operations. This allows the refinement step to be treated as a standard neural network layer ($KX^{(2)}W^{(2)}$).
The end-to-end MRFasGCN architecture, showing the flow from attributed networks through GCN and eMRF layers to the final optimizer.

By making the MRF layer differentiable, the entire system can be trained end-to-end using the Adam optimizer. Errors from the final refined labels propagate back to update the weights of the initial GCN layers, ensuring that the feature extraction and local smoothing are mutually optimized.

Experimental Results

The model was evaluated on nine diverse benchmark datasets, ranging from small webpage networks (WebKB) to massive knowledge graphs (NELL). The results demonstrate that MRFasGCN (referred to as "MasG" in experimental tables) consistently outperforms both standard GCNs and traditional semi-supervised community detection methods.

Performance and Efficiency

Across the tested datasets, MRFasGCN achieved an average accuracy improvement of 15.1% over the next best methods. Qualitative analysis confirms that the MRF layer effectively "smooths" the coarse outputs of the GCN, correcting mislabeled nodes by considering broader local community consistency.

Quantitative results comparing GCN, a two-stage G+M approach, and the proposed MRFasGCN (MasG) across Accuracy (AC), Normalized Mutual Information (NMI), and runtime.

Beyond accuracy, the model exhibits strong scalability. Its computational complexity is linear with respect to the number of edges, $O(emhk^2)$, making it suitable for large-scale networks. Interestingly, the integrated end-to-end training often results in faster convergence and lower total runtimes compared to "naive" two-stage GCN+MRF approaches.

Conclusion and Future Work

MRFasGCN represents a significant step forward in community detection by unifying statistical graphical models with deep learning. By treating MRF refinement as a convolutional layer, the authors achieve state-of-the-art performance while maintaining computational efficiency.

Future research directions include adapting the model for unsupervised settings, where community counts are unknown, and exploring dynamic similarity matrices that can adapt to evolving node attributes in real-time networks.

Summary updated

BibTeX
@inproceedings{jin2019graph,
  author = {Di Jin and Ziyang Liu and Weihao Li and Dongxiao He and Weixiong Zhang},
  title = {{Graph Convolutional Networks Meet Markov Random Fields: Semi-Supervised Community Detection in Attribute Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.3301152},
}
Figure