[Paper Review] A Theory of Link Prediction via Relational Weisfeiler-Leman on Knowledge Graphs
This paper introduces conditional message passing neural networks (C-MPNNs), a framework for link prediction in knowledge graphs that computes pairwise node representations conditioned on a source node and query relation. It establishes a theoretical link between C-MPNNs and a relational Weisfeiler-Leman algorithm, proving their expressive power matches the algorithm, and demonstrates that global readout functions are essential for capturing global graph structure, validated empirically with 100% accuracy on a synthetic dataset where models without readout fail.
Graph neural networks are prominent models for representation learning over graph-structured data. While the capabilities and limitations of these models are well-understood for simple graphs, our understanding remains incomplete in the context of knowledge graphs. Our goal is to provide a systematic understanding of the landscape of graph neural networks for knowledge graphs pertaining to the prominent task of link prediction. Our analysis entails a unifying perspective on seemingly unrelated models and unlocks a series of other models. The expressive power of various models is characterized via a corresponding relational Weisfeiler-Leman algorithm. This analysis is extended to provide a precise logical characterization of the class of functions captured by a class of graph neural networks. The theoretical findings presented in this paper explain the benefits of some widely employed practical design choices, which are validated empirically.
Motivation & Objective
- To provide a systematic theoretical understanding of graph neural networks for knowledge graphs, particularly for the link prediction task.
- To unify seemingly disparate models for link prediction under a common framework based on conditional message passing.
- To characterize the expressive power of these models using a relational Weisfeiler-Leman algorithm and logical formalisms.
- To empirically validate theoretical insights, especially the role of global readout functions in capturing global graph structure.
- To explain the empirical success of models like NBFNets through their expressive power within the proposed framework.
Proposed method
- Proposes conditional message passing neural networks (C-MPNNs), where node representations are conditioned on a source node u and a query relation q, enabling pairwise representation learning.
- Introduces a relational Weisfeiler-Leman algorithm tailored for knowledge graphs to characterize the expressive power of C-MPNNs.
- Defines a logical characterization of C-MPNNs using graded modal logic variants, providing a declarative formalism for their capabilities.
- Employs a synthetic dataset (TRI-SQR) with graph pairs differing only in global structure to test model behavior.
- Uses two model variants: one with and one without global sum readout, to isolate the impact of global information access.
- Configures models with four layers, 32 hidden dimensions, and a learning rate of 1e-4, training for 500 epochs to evaluate performance.
Experimental results
Research questions
- RQ1How can we unify diverse link prediction models in knowledge graphs under a single theoretical framework?
- RQ2What is the expressive power of conditional message passing neural networks for link prediction, and how does it relate to existing graph isomorphism tests?
- RQ3Why do certain design choices—like global readout functions—significantly improve model performance, and can this be formally explained?
- RQ4Can the success of models like NBFNets be attributed to their expressive power, and is this power captured by a broader class of models?
- RQ5To what extent can logical formalisms like graded modal logic characterize the functions computable by C-MPNNs?
Key findings
- C-MPNNs with global sum readout achieve 100% accuracy on the TRI-SQR dataset, correctly identifying graph structure differences between triangle and square configurations.
- C-MPNNs without global readout achieve only 50% accuracy, equivalent to random guessing, due to inability to distinguish graphs with identical local representations.
- The expressive power of C-MPNNs matches that of the proposed relational Weisfeiler-Leman algorithm, establishing a theoretical foundation for model comparison.
- The framework explains the strong empirical performance of NBFNets as stemming from their high expressive power, which is shared by other C-MPNN instances.
- Global readout functions are essential for capturing global graph properties, such as the total number of nodes, which are necessary for distinguishing otherwise indistinguishable graph structures.
- The logical characterization via graded modal logic provides a formal, declarative counterpart to C-MPNNs, enabling precise analysis of their representational capabilities.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.