[Paper Review] Neural-Symbolic Models for Logical Queries on Knowledge Graphs
This paper proposes GNN-QE, a neural-symbolic model that combines graph neural networks with fuzzy logic to answer complex first-order logic (FOL) queries on incomplete knowledge graphs. By decomposing queries into interpretable fuzzy set operations and using a GNN for relation projections, GNN-QE achieves state-of-the-art performance with improved interpretability, including visualization of intermediate reasoning and zero-shot prediction of answer counts.
Answering complex first-order logic (FOL) queries on knowledge graphs is a fundamental task for multi-hop reasoning. Traditional symbolic methods traverse a complete knowledge graph to extract the answers, which provides good interpretation for each step. Recent neural methods learn geometric embeddings for complex queries. These methods can generalize to incomplete knowledge graphs, but their reasoning process is hard to interpret. In this paper, we propose Graph Neural Network Query Executor (GNN-QE), a neural-symbolic model that enjoys the advantages of both worlds. GNN-QE decomposes a complex FOL query into relation projections and logical operations over fuzzy sets, which provides interpretability for intermediate variables. To reason about the missing links, GNN-QE adapts a graph neural network from knowledge graph completion to execute the relation projections, and models the logical operations with product fuzzy logic. Experiments on 3 datasets show that GNN-QE significantly improves over previous state-of-the-art models in answering FOL queries. Meanwhile, GNN-QE can predict the number of answers without explicit supervision, and provide visualizations for intermediate variables.
Motivation & Objective
- To address the challenge of answering complex FOL queries on incomplete knowledge graphs, where symbolic methods fail due to missing links and neural methods lack interpretability.
- To develop a model that retains the interpretability of symbolic reasoning while leveraging the generalization of neural networks for incomplete graphs.
- To enable prediction of answer counts without explicit supervision and provide visualizations of intermediate reasoning steps.
- To achieve state-of-the-art performance on standard FOL query benchmarks while maintaining differentiable, interpretable reasoning.
Proposed method
- Decomposes complex FOL queries into a sequence of relation projections and logical operations over fuzzy sets, enabling interpretability of intermediate variables.
- Uses a graph neural network (GNN) adapted from knowledge graph completion to perform relation projections, mapping fuzzy sets of head entities to fuzzy sets of tail entities.
- Models logical operations (conjunction, disjunction, negation) using product fuzzy logic, which preserves logical laws and enables gradient-based optimization.
- Introduces traversal dropout to regularize the GNN and batch expression execution to accelerate training and inference.
- Employs a differentiable symbolic framework that allows backpropagation through logical operations and entity set manipulations.
- Supports end-to-end training with supervision on final answers, while enabling intermediate variable visualization and answer count prediction.
Experimental results
Research questions
- RQ1Can a neural-symbolic model combine the generalization of neural networks with the interpretability of symbolic reasoning for FOL queries on incomplete knowledge graphs?
- RQ2Can the model predict the number of answers to a query without explicit supervision, leveraging its symbolic formulation?
- RQ3How does the model’s performance compare to state-of-the-art methods on complex FOL queries, especially in handling negation and existential quantifiers?
- RQ4To what extent can the model’s intermediate fuzzy sets be visualized to improve interpretability of multi-hop reasoning?
- RQ5Does the integration of GNN-based relation projections with fuzzy logic operations lead to better generalization than purely neural or symbolic approaches?
Key findings
- GNN-QE achieves a 22.3% average relative improvement on existential positive first-order (EPFO) queries and a 95.1% improvement on negation queries over previous state-of-the-art models.
- The model generalizes well from knowledge graph completion to complex query answering, outperforming other methods in both accuracy and robustness on incomplete graphs.
- GNN-QE can predict the number of answers to a query without any explicit supervision, thanks to its symbolic formulation of fuzzy set cardinalities.
- The model provides meaningful visualizations of intermediate fuzzy sets, enabling users to inspect and interpret the reasoning path step-by-step.
- Through ablation, the authors show that the combination of GNN-based projections and fuzzy logic operations is key to the model’s performance and interpretability.
- The use of traversal dropout improves generalization and reduces overfitting, especially in low-data regimes.
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.