[Paper Review] Neural Compositional Rule Learning for Knowledge Graph Reasoning
NCRL is an end-to-end neural model that learns compositional logical rules for KG reasoning, enabling scalable rule discovery and strong generalization to large and unseen graphs, achieving state-of-the-art results among rule-learning methods.
Learning logical rules is critical to improving reasoning in KGs. This is due to their ability to provide logical and interpretable explanations when used for predictions, as well as their ability to generalize to other tasks, domains, and data. While recent methods have been proposed to learn logical rules, the majority of these methods are either restricted by their computational complexity and can not handle the large search space of large-scale KGs, or show poor generalization when exposed to data outside the training set. In this paper, we propose an end-to-end neural model for learning compositional logical rules called NCRL. NCRL detects the best compositional structure of a rule body, and breaks it into small compositions in order to infer the rule head. By recurrently merging compositions in the rule body with a recurrent attention unit, NCRL finally predicts a single rule head. Experimental results show that NCRL learns high-quality rules, as well as being generalizable. Specifically, we show that NCRL is scalable, efficient, and yields state-of-the-art results for knowledge graph completion on large-scale KGs. Moreover, we test NCRL for systematic generalization by learning to reason on small-scale observed graphs and evaluating on larger unseen ones.
Motivation & Objective
- Motivate learning logical rules to provide interpretable explanations and generalization in knowledge graphs.
- Propose a neural framework to discover compositional rule bodies and infer rule heads through hierarchical structures.
- Ensure scalability to large-scale KGs and assess systematic generalization to unseen graphs.
- Demonstrate that learned rules improve KG completion and inductive relational reasoning beyond existing rule learners.
Proposed method
- Define the rule score as semantic consistency between rule body and head.
- Sample paths from the KG and split each path into short compositions with a sliding window (sizes 2 and 3).
- Use a recurrent attention unit to merge a selected composition into a single predicate, allowing unseen heads via a null predicate.
- Employ an RNN-based encoder to process sequences of compositions and a softmax-based selector to choose meaningful compositions.
- Compute attention-based likelihood for the rule head using scaled dot-product attention and a corresponding value projection.
- Train end-to-end with cross-entropy loss over predicted heads and extract top-scoring rules for the rule set.
Experimental results
Research questions
- RQ1Can NCRL learn high-quality compositional rules that generalize beyond observed training graphs?
- RQ2Is NCRL scalable to large-scale knowledge graphs and efficient compared to existing rule learners?
- RQ3Does NCRL exhibit systematic generalization to larger unseen graphs with longer reasoning paths?
- RQ4How does NCRL perform on KG completion and inductive relational reasoning tasks relative to state-of-the-art methods ?
Key findings
- NCRL achieves state-of-the-art results among rule-learning methods on multiple benchmarks for KG completion.
- NCRL provides strong systematic generalization, performing well on larger unseen graphs and longer reasoning paths.
- NCRL is significantly faster to train compared to other rule-learning baselines, demonstrating scalability.
- Ablation and sparsity analyses show NCRL maintains robust performance under data sparsity and varying rule counts.
- A case study illustrates diverse and meaningful generated rules that align with semantic groupings of predicates.
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.