Systematic Relational Reasoning With Epistemic Graph Neural Networks

Irtaza Khalid, Steven Schockaert
7/24/2024
cs.AIcs.LG

Official code: erg0dic/gnn-sg (5 stars, MIT, last commit 2025-06-05).

Abstract

Developing models that can learn to reason is a notoriously challenging problem. We focus on reasoning in relational domains, where the use of Graph Neural Networks (GNNs) seems like a natural choice. However, previous work has shown that regular GNNs lack the ability to systematically generalize from training examples on test graphs requiring longer inference chains, which fundamentally limits their reasoning abilities. A common solution relies on neuro-symbolic methods that systematically reason by learning rules, but their scalability is often limited and they tend to make unrealistically strong assumptions, e.g.\ that the answer can always be inferred from a single relational path. We propose the Epistemic GNN (EpiGNN), a novel parameter-efficient and scalable GNN architecture with an epistemic inductive bias for systematic reasoning. Node embeddings in EpiGNNs are treated as epistemic states, and message passing is implemented accordingly. We show that EpiGNNs achieve state-of-the-art results on link prediction tasks that require systematic reasoning. Furthermore, for inductive knowledge graph completion, EpiGNNs rival the performance of state-of-the-art specialized approaches. Finally, we introduce two new benchmarks that go beyond standard relational reasoning by requiring the aggregation of information from multiple paths. Here, existing neuro-symbolic approaches fail, yet EpiGNNs learn to reason accurately. Code and datasets are available at https://github.com/erg0dic/gnn-sg.

View on arXivView PDF

Code Implementations(1)

erg0dic/gnn-sgOfficial100%
MIT

[ICLR 2025] Systematic relational reasoning using EpiGNNs

51PythonJul 24, 20241 years agoMIT
graph-neural-networksreasoningsystematic-generalization

Similar Papers

Cite this paper

@article{khalid2024systematic,
  title  = {Systematic Relational Reasoning With Epistemic Graph Neural Networks},
  author = {Irtaza Khalid and Steven Schockaert},
  year   = {2024},
  eprint = {2407.17396},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.17396v2},
  journal = {ICLR 2024 2024}
}

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/2407.17396.svg)](https://codeofpaper.com/paper/2407.17396)

Discussion