A Theory of Link Prediction via Relational Weisfeiler-Leman

Xingyue Huang, Miguel Romero, I. Ceylan, P. Barceló
2/12/2026

No official code found. Best implementation: HxyScotthuang/CMPNN (13 stars, MIT, last commit 2025-09-01).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

The official implementation of "A Theory of Link Prediction via Relational Weisfeiler-Leman on Knowledge Graphs" (NeurIPS 2023)

131Python, Jupyter NotebookOct 16, 20231 years agoMIT

Similar Papers

Cite this paper

@article{huang2026theory,
  title  = {A Theory of Link Prediction via Relational Weisfeiler-Leman},
  author = {Xingyue Huang and Miguel Romero and I. Ceylan and P. Barceló},
  year   = {2026},
  eprint = {2302.02209},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2302.02209},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.02209.svg)](https://codeofpaper.com/paper/2302.02209)

Discussion