Rethinking and Extending the Probabilistic Inference Capacity of GNNs

Tuo Xu, Lei ZouICLR 2024

Introduction

Historically, the Weisfeiler-Lehman (WL) hierarchy has served as the gold standard for measuring the expressive power of Graph Neural Networks (GNNs). Under this structural view, a GNN is considered expressive if it can distinguish between different graph topologies. However, this perspective falls short in explaining how well a GNN handles the uncertainty and statistical dependencies inherent in real-world data.

Many researchers have assumed that GNNs are fundamentally limited in capturing complex joint dependencies between nodes, often attempting to bolt Probabilistic Graphical Models (PGMs) onto GNN architectures to compensate. This paper introduces a paradigm shift by asking a different question: What if GNNs are already performing probabilistic inference? By reframing GNNs as approximate inference engines, the authors identify the missing pieces preventing standard models from reaching their full potential in tasks like node classification and link prediction.

The Probabilistic Perspective

The authors establish a theoretical bridge between Message Passing Neural Networks (MPNNs) and the Bethe approximation—a well-known method for approximate inference in PGMs, specifically loopy belief propagation.

The paper proves that 1-WL expressive GNNs are theoretically capable of learning marginal distributions that are at least as accurate as those produced by loopy belief propagation on pairwise Markov Random Fields. This insight reveals a critical "link prediction gap": while standard GNNs excel at predicting individual node properties (node marginals), they are theoretically limited when predicting relationships (joint posteriors) unless explicitly augmented to evaluate node pairs jointly.

Methodology: Phantom Nodes and Edges

To extend the capacity of GNNs beyond simple pairwise interactions without designing entirely new architectures, the authors propose two novel, simple preprocessing techniques:

  1. Phantom Nodes (for higher-order dependencies): To capture interactions involving more than two nodes, a "phantom node" is added for every maximum clique in the graph. This node acts as a message hub, allowing the GNN to simulate the factor-to-variable messages used in advanced probabilistic inference.
  2. Phantom Edges (for link prediction): Standard GNNs often struggle with link prediction because they treat node embeddings independently. By adding "phantom edges" between target node pairs during training, the model is forced to explicitly consider the joint distribution of those two nodes, mimicking how PGMs calculate edge marginals.

Crucially, these are purely graph augmentation steps. They act as a "software update" for the input graph, allowing standard models like GCN or GraphSAGE to achieve higher-order theoretical power without a "hardware redesign."

Experimental Results

The authors evaluated their probabilistic lifting methods across synthetic tasks, node classification, and link prediction benchmarks.

  • Synthetic Accuracy: In tests using graphs with known 3-order potential functions, GNNs augmented with Phantom Nodes achieved near-zero KL divergence compared to ground-truth probabilistic marginals, whereas standard GNNs failed to capture these higher-order distributions.
  • Link Prediction: On the Planetoid citation networks (Cora, Citeseer, Pubmed), adding Phantom Edges (+PE) yielded massive improvements. For instance, on the Citeseer dataset, augmenting a GCNII model boosted the Hit@10 score from 53.41 to 67.80.
  • Node Classification: The methods were tested on modified Protein-Protein Interaction datasets (PPI-1, PPI-2, PPI-10) to evaluate performance under limited training data regimes.
Node classification performance on PPI datasets showing the impact of Phantom Nodes (+PN).

As shown in the results, the Phantom Node (+PN) approach consistently outperforms standard baselines. On the highly constrained PPI-1 dataset, adding Phantom Nodes improved the Micro-F1 score of a standard GCN from 54.55 to 60.17.

Limitations and Future Work

The primary limitation of this approach is computational overhead. Finding maximum cliques to insert Phantom Nodes is an NP-hard problem. While the authors suggest a relaxation strategy—finding cliques only up to a maximum size $k$—this still introduces a preprocessing burden for very large, dense graphs.

Additionally, adding multiple phantom edges simultaneously can disrupt certain equivariance properties of the GNN, potentially reducing model stability in specific geometric tasks. Future research directions include developing more efficient algorithms to identify "important" cliques and designing robust mechanisms to handle the joint distributions of many nodes simultaneously.

Summary updated

BibTeX
@inproceedings{xu2024rethinking,
  author = {Tuo Xu and Lei Zou},
  title = {{Rethinking and Extending the Probabilistic Inference Capacity of GNNs}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=7vVWiCrFnd},
}
Figure