[Paper Review] Can Graph Neural Networks Help Logic Reasoning?
This paper proposes ExpressGNN, a hybrid model combining inductive graph neural networks (GNNs) with tunable, transductive embeddings to enable scalable and effective probabilistic logic reasoning in Markov Logic Networks (MLNs). By addressing the asymmetry introduced by logic formulae, ExpressGNN achieves state-of-the-art performance on knowledge base completion tasks, significantly outperforming supervised methods under low-data regimes and demonstrating strong inductive generalization on unseen relations.
Effectively combining logic reasoning and probabilistic inference has been a long-standing goal of machine learning: the former has the ability to generalize with small training data, while the latter provides a principled framework for dealing with noisy data. However, existing methods for combining the best of both worlds are typically computationally intensive. In this paper, we focus on Markov Logic Networks and explore the use of graph neural networks (GNNs) for representing probabilistic logic inference. It is revealed from our analysis that the representation power of GNN alone is not enough for such a task. We instead propose a more expressive variant, called ExpressGNN, which can perform effective probabilistic logic inference while being able to scale to a large number of entities. We demonstrate by several benchmark datasets that ExpressGNN has the potential to advance probabilistic logic reasoning to the next stage.
Motivation & Objective
- To address the computational intractability of probabilistic inference in large-scale Markov Logic Networks (MLNs), which grow combinatorially with the number of entities.
- To investigate whether Graph Neural Networks (GNNs) can effectively represent knowledge bases for probabilistic logic inference, despite inherent limitations in expressive power.
- To overcome the inconsistency in parametrization caused by asymmetric logic formulae when using standard GNNs for MLN inference.
- To develop a scalable, hybrid architecture that combines inductive GNNs with tunable embeddings to balance model expressiveness and parameter efficiency.
- To demonstrate that the proposed method enables effective and efficient inference in both transductive and inductive settings, especially under data-scarce conditions.
Proposed method
- ExpressGNN uses an inductive GNN component to learn node-level representations from the knowledge base as a bipartite graph of entities and observed facts.
- It introduces a separate, transductive, and tunable embedding component to correct for asymmetries introduced by logic formulae in MLNs, which standard GNNs fail to capture.
- The model employs mean field approximation for inference, using GNN and tunable embeddings to define variational distributions over latent variables in the MLN.
- It integrates logic formulae via weighted potential functions, with formula weights learned through end-to-end training using a discriminative loss on observed facts.
- The architecture is designed to be parameter-efficient, with the inductive GNN reducing the number of parameters compared to purely transductive methods.
- The method supports both transductive and inductive learning, enabling generalization to new entities and relations not seen during training.
Experimental results
Research questions
- RQ1Can standard Graph Neural Networks effectively support probabilistic logic reasoning in Markov Logic Networks, given the asymmetry introduced by first-order logic formulae?
- RQ2Why do standard GNNs fail to provide consistent parametrization in MLN inference, and what structural limitations underlie this failure?
- RQ3Can a hybrid architecture combining inductive GNNs with tunable embeddings achieve better expressiveness and scalability than purely transductive or GNN-only approaches in MLN inference?
- RQ4How does the proposed method perform under low-data regimes, and can it generalize effectively to new entities and relations not present in the training data?
- RQ5To what extent can ExpressGNN scale to large knowledge bases while maintaining high accuracy and efficiency in probabilistic logic reasoning?
Key findings
- On the UW-CSE and Kinship datasets, ExpressGNN achieved inference times of 14–20ms, significantly outperforming lifted BP (321–525ms) and MC-SAT (172–196ms), demonstrating superior scalability.
- On FB15K-237 with 100% training data, ExpressGNN achieved an MRR of 0.45 and Hits@10 of 57.3%, surpassing TransE (MRR: 0.28, Hits@10: 44.5%) and NTN (MRR: 0.13, Hits@10: 23.9%).
- With only 5% of training data, ExpressGNN achieved an MRR of 0.42 and Hits@10 of 53.1%, significantly outperforming Neural LP (MRR: 0.13, Hits@10: 23.2%) under the same low-data regime.
- In an inductive setting with entirely new relations, ExpressGNN achieved an MRR of 0.18 and Hits@10 of 29.3%, while TransE and NTN dropped to near-zero performance (MRR < 0.01).
- ExpressGNN achieved state-of-the-art performance on knowledge base completion tasks, demonstrating strong data efficiency and inductive generalization capabilities.
- The model achieved high performance with far fewer parameters than purely transductive methods, highlighting its parameter efficiency and scalability.
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.