Modeling Graph Node Correlations with Neighbor Mixture Models

Linfeng Liu, Michael C. Hughes, Liping LiuarXiv 2021

Introduction

In many real-world graph datasets, such as social networks or citation indices, the labels of neighboring nodes exhibit high degrees of correlation. While Graph Neural Networks (GNNs) are powerful tools for learning node representations, they often assume that node labels are independent once these representations are learned. Conversely, Markov Random Fields (MRFs) are designed to explicitly model such dependencies but are computationally expensive, often requiring NP-hard exact inference or slow approximate methods.

The Neighbor Mixture Model (NMM) is a novel probabilistic framework that bridges this gap. It captures label correlations with the expressive power of an MRF while maintaining the computational efficiency of a standard GNN. By allowing nodes to "borrow" distribution parameters from their neighbors through an attention mechanism, NMM achieves state-of-the-art results in node classification and link prediction.

Methodology

The core of the NMM is a generative process that induces correlation through parameter sharing rather than edge potentials. Each node $j$ in the graph is associated with a latent probability distribution $z_j$, sampled from a Dirichlet distribution. To determine its own label, a node $i$ "attends" to its neighbors and selects one neighbor $c_i$ (which could be itself) based on learned attention weights. Node $i$ then adopts the distribution $z_{c_i}$ from that chosen neighbor to sample its own label $y_i$.

Integration and Inference

NMM uses a GNN backbone to predict the parameters of the model—specifically the Dirichlet concentrations and the attention weights—from node features. This architecture allows the entire model to be end-to-end differentiable. To ensure scalability, the authors derive a variational lower bound (ELBO) that enables efficient training without additional parameters. Unlike MRFs, NMM can evaluate marginal probabilities in linear time relative to the number of neighbors, making it suitable for large-scale graphs.

Log likelihood convergence for Cora and Citeseer datasets, demonstrating the tightness of the variational lower bound (ELBO) relative to the exact log likelihood.

Experimental Results

The NMM was evaluated on standard benchmarks including Cora, Citeseer, and Pubmed for node classification, as well as tasks in link prediction and image denoising.

Node Classification Performance

NMM variants consistently outperformed their base GNN counterparts and previous state-of-the-art models like the Graph Markov Neural Network (GMNN). When paired with an APPNP backbone, NMM achieved the highest reported accuracies on Cora (85.9%) and Citeseer (72.6%).

Test accuracy on Cora and Citeseer datasets across varying training dataset fractions. NMM-based models consistently exceed the performance of standard GNNs and the GMNN baseline.

Probabilistic Calibration

Beyond accuracy, NMM shows superior performance in "Pairwise Log Likelihood" tests. These tests measure how well a model predicts the joint labels of connected nodes. NMM's significant outperformance of GMNN in this metric suggests it captures actual neighborhood dependencies more effectively than models that rely on independent label assumptions.

Discussion and Key Insights

A critical insight of this work is that correlation can be modeled effectively through parameter sharing. The authors demonstrate an "always better" guarantee: because a standard GNN is a special case of NMM (where a node only attends to itself), NMM should theoretically match or exceed the performance of its backbone GNN. Furthermore, NMM acts as a fast and tight approximation for complex distributions; it provided a more accurate approximation for an Ising model than traditional mean-field approaches.

Limitations and Future Work

Despite its efficiency, the current implementation of NMM requires careful engineering to maximize GPU parallelization, particularly for the variational sampling step. Future research could investigate more advanced gradient estimators, such as RELAX or Rebar, to improve training stability. Additionally, while the current study focuses on homophilous graphs, adapting NMM to handle heterophily (negative correlations) remains an open area for exploration.

Summary updated

BibTeX
@misc{liu2021modeling,
  author = {Linfeng Liu and Michael C. Hughes and Liping Liu},
  title = {{Modeling Graph Node Correlations with Neighbor Mixture Models}},
  year = {2021},
  eprint = {2103.15966},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.15966},
}
Figure