Systematic Relational Reasoning With Epistemic Graph Neural Networks
Irtaza Khalid, Steven Schockaert
TL;DR
This work tackles systematic relational reasoning by showing that standard GNNs struggle to generalize to longer inference chains. The authors propose Epistemic GNN (EpiGNN), which treats node embeddings as epistemic states and uses forward/backward path-based reasoning aligned with a differentiable form of directional algebraic closure to handle multi-path disjunctive rules. They introduce RCC-8 and Interval Algebra benchmarks that require aggregating information across multiple paths, where neuro-symbolic methods falter but EpiGNN succeeds, while also performing competitively on inductive knowledge graph completion. The results demonstrate that EpiGNN achieves state-of-the-art or competitive performance on diverse reasoning tasks with a scalable, parameter-efficient architecture, and code is released for reproducibility.
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.
