Rethinking Higher-order Representation Learning with Graph Neural Networks

Tuo Xu, Lei ZouLoG 2023

Abstract

In the field of graph machine learning, graph neural networks (GNNs) are promising models for learning graph representations and node representations. However, many GNNs perform poorly on learning higher-order representations such as links due to their limited expressive power. Zhang et al. summarize recent advances in link prediction and propose labeling trick as a common framework for learning node set representations with GNNs. However, their theory is limited to employing an ideally expressive GNN as the backend, and can only justify a limited series of link prediction models. In this paper, we take a further step to study the expressive power of various higher-order representation learning methods. Our analysis begins with showing the inherent symmetry between node labeling and higher-order GNNs, which directly justifies previous labeling trick methods (SEAL, GraIL) and other node labeling methods (ID-GNN, NBFNet), also higher-order GNNs through a unified framework. Then, we study the utilization of MPNNs for computing representations in these methods, and show the expressive power upper bounds under these situations. After that, we provide a comprehensive analysis about how these previous methods surpass plain GNNs by showing their ability to capture path information. Finally, using the intuitions provided by the analysis, we propose an extremely simple method for link prediction tasks, which we believe could bring insights for designing more complicated and powerful models in the future.

Standard Message Passing Neural Networks (MPNNs) are highly effective for node and graph classification but struggle with "higher-order" tasks like link prediction. This limitation is fundamentally tied to the 1-Weisfeiler-Lehman (1-WL) test: if two nodes are structurally identical within their local neighborhoods, an MPNN assigns them identical embeddings. Consequently, the network cannot distinguish whether two nodes are adjacent or on opposite sides of a graph, leading to poor performance in predicting relationships between node pairs.

While researchers have developed workarounds like node labeling (e.g., SEAL, NBFNet) and higher-order GNNs, the field lacked a unified theoretical framework to explain their success and compare their expressive powers.

A Unified Theoretical Framework: $i$-$j$-NL

The authors introduce the $i$-$j$-NL framework to represent the process of learning a $k$-node tuple (where $k = i+j$). Here, $i$ represents the order of Node Labeling (number of target nodes tagged), and $j$ represents the order of the GNN applied.

Figure 2: Illustration of graph structures and complex logical patterns captured by higher-order representations.

The framework reveals a critical symmetry under ideal conditions ($i$-$j$-NL$E$): a perfectly expressive GNN makes node labeling and higher-order message passing interchangeable. However, in practical applications using standard MPNNs ($i$-$j$-NL${MP}$), this symmetry breaks. Shifting the computational burden from labeling to higher-order message passing strictly increases expressive power, albeit at an exponential cost in complexity.

Key Insights: The Primacy of Path Information

The research demonstrates that the fundamental reason higher-order methods outperform standard MPNNs is their ability to capture path information between target nodes. While plain GNNs lose relative positional data, these advanced methods implicitly encode the paths connecting nodes.

Figure 4: Examples of path information captured by different node labeling and GNN configurations.

This insight explains why heuristic methods like counting common neighbors are effective and suggests that the "secret sauce" of complex labeling tricks is essentially the recovery of path-based features.

Building on these findings, the authors propose Simplified Link Prediction (SLP). SLP abandons complex message passing in favor of explicitly computing path features using sparse matrix multiplications of the adjacency matrix ($S, S^2, \dots, S^k$). These deterministic features are then fed into a standard MLP.

Despite its simplicity and lack of trainable GNN parameters, SLP achieves state-of-the-art results on link prediction benchmarks:

  • Cora: 89.83% (Hits@100), significantly outperforming GCN (66.79%) and SEAL (81.71%).
  • Citeseer: 93.61% (Hits@100).
  • Pubmed: 74.94% (Hits@100).

Conclusion and Future Work

This work provides a rigorous theoretical hierarchy for higher-order representation learning, proving that path information is the key driver of performance in link prediction. While the current analysis focuses on standard MPNNs, it opens the door for designing more efficient architectures that capture higher-order representations without the massive computational overhead typically associated with higher-order GNNs.

Summary updated

BibTeX
@inproceedings{xu2023rethinking,
  author = {Tuo Xu and Lei Zou},
  title = {{Rethinking Higher-order Representation Learning with Graph Neural Networks}},
  booktitle = {LoG},
  year = {2023},
  url = {https://openreview.net/forum?id=2OyoYw4InI},
}
Figure