[Paper Review] Neural Methods for Logical Reasoning Over Knowledge Graphs
This paper proposes a neural network-based framework for logical reasoning over knowledge graphs that supports full First-Order Logic (FOL) queries, including conjunction, disjunction, and negation. By embedding queries and entities into a shared one-point vector space and using neural networks to implement logical operators, the model achieves a 10% relative improvement over state-of-the-art methods and over 30% improvement over prior one-point embedding baselines.
Reasoning is a fundamental problem for computers and deeply studied in Artificial Intelligence. In this paper, we specifically focus on answering multi-hop logical queries on Knowledge Graphs (KGs). This is a complicated task because, in real-world scenarios, the graphs tend to be large and incomplete. Most previous works have been unable to create models that accept full First-Order Logical (FOL) queries, which include negative queries, and have only been able to process a limited set of query structures. Additionally, most methods present logic operators that can only perform the logical operation they are made for. We introduce a set of models that use Neural Networks to create one-point vector embeddings to answer the queries. The versatility of neural networks allows the framework to handle FOL queries with Conjunction ($\wedge$), Disjunction ($\vee$) and Negation ($ eg$) operators. We demonstrate experimentally the performance of our model through extensive experimentation on well-known benchmarking datasets. Besides having more versatile operators, the models achieve a 10\% relative increase over the best performing state of the art and more than 30\% over the original method based on single-point vector embeddings.
Motivation & Objective
- To address the limitation of existing models that cannot handle full First-Order Logic (FOL) queries, particularly negative queries involving negation.
- To develop a unified, flexible framework for logical reasoning that supports complex query structures including conjunction (∧), disjunction (∨), and negation (¬).
- To improve performance on multi-hop logical reasoning tasks in large, incomplete knowledge graphs by leveraging neural network-based logical operators.
- To demonstrate that neural networks can effectively learn and generalize logical operations, outperforming geometric or rigid symbolic approaches.
Proposed method
- The framework embeds both queries and entities into a shared one-point vector space using neural networks.
- Logical operators (conjunction, disjunction, negation) are implemented via learnable neural modules, enabling end-to-end training on FOL queries.
- The model uses nearest-neighbor search in the vector space to rank candidate entities based on similarity to the query embedding.
- It supports full FOL queries, including existential quantifiers and negative conditions, which earlier methods could not handle.
- The architecture includes variants such as MLP, MLP-Mixer, and attention-based models to explore different inductive biases for reasoning.
- The framework is trained via contrastive learning to optimize the distance between query embeddings and correct answer entities.
Experimental results
Research questions
- RQ1Can a neural network-based framework effectively handle full First-Order Logic (FOL) queries, including negation, in knowledge graphs?
- RQ2How does the performance of a neural operator-based reasoning system compare to geometric or symbolic baselines on multi-hop logical queries?
- RQ3To what extent can learnable neural operators generalize across diverse logical operations like conjunction, disjunction, and negation?
- RQ4Does the use of one-point vector embeddings with neural logic operators outperform existing state-of-the-art models in reasoning over incomplete knowledge graphs?
- RQ5Can the model generalize to negative queries, such as 'find X that satisfies A but not B', which are often excluded in prior work?
Key findings
- The proposed model achieves a 10% relative improvement over the best-performing state-of-the-art method on EPFO (existential, conjunction, disjunction) queries across FB15k, FB15k-237, and NELL995.
- The model shows over 30% improvement over the original one-point embedding method (GQE) by Hamilton et al. (2018), demonstrating the effectiveness of neural logic operators.
- The 2-vector approach variant achieved the highest MRR of 45.8 on FB15k for EPFO queries, outperforming the base MLP and attention-based variants.
- For full FOL queries including negation, the model achieved 14.5 MRR on FB15k, significantly outperforming BetaE (11.8 MRR), proving its capability to handle negative queries.
- The attention mechanism and 2-vector approach improved performance over the base MLP, indicating that architectural choices significantly impact reasoning quality.
- The model successfully handles negative query structures such as 2in, 3in, and pni, with MRR scores of 17.2, 17.8, and 15.2 on FB15k, respectively, showing robustness to complex logical forms.
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.