Neural Compositional Rule Learning for Knowledge Graph Reasoning
Kewei Cheng, Nesreen K. Ahmed, Yizhou Sun
Abstract
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext c2026f0b-6d54-494c-b138-bfe8c5fd7f5bCited by top-tier papers17
- How Far Can Transformers Reason? The Globality Barrier and Inductive ScratchpadEmmanuel Abbe, Samy Bengio, Aryo Lotfi, Colin Sandon et al.NeurIPS 2024 · 52 citations
- HyperLogic: Enhancing Diversity and Accuracy in Rule Learning with HyperNetsYang Yang, Wendi Ren, Shuang LiNeurIPS 2024 · 9 citations
- LLM-DR: A Novel LLM-Aided Diffusion Model for Rule Generation on Temporal Knowledge GraphsKai Chen, Xin Song, Ye Wang, Liqun Gao et al.AAAI 2025 · 6 citations
- Untargeted Adversarial Attack on Knowledge Graph EmbeddingsTianzhe Zhao, Jiaoyan Chen, Yanchi Ru, Qika Lin et al.SIGIR 2024 · 5 citations
- Rule-Guided Graph Neural Networks for Explainable Knowledge Graph ReasoningZhe Wang, Suxue Ma, Kewen Wang, Zhiqiang ZhuangAAAI 2025 · 5 citations
Builds on5
- Learning Reasoning Strategies in End-to-End Differentiable ProvingPasquale Minervini, Sebastian Riedel, Pontus Stenetorp, Edward Grefenstette et al.ICML 2020 · 102 citations
- Differentiable Reasoning on Large Knowledge Bases and Natural LanguagePasquale Minervini, Matko Bosnjak, Tim Rocktäschel, Sebastian Riedel et al.AAAI 2020 · 94 citations
- Learn to Explain Efficiently via Neural Logic Inductive LearningYuan Yang, Le SongICLR 2020 · 83 citations
- RLogic: Recursive Logical Rule Learning from Knowledge GraphsKewei Cheng, Jiahao Liu, Wei Wang, Yizhou SunKDD 2022 · 57 citations
- Neuro-Symbolic Hierarchical Rule InductionClaire Glanois, Zhaohui Jiang, Xuening Feng, Paul Weng et al.ICML 2022 · 34 citations
Related papers
- Reconstructing TensorLog for Scalable End-to-End Rule LearningKunxun Qi, Jianfeng Du, Hai Wan, Wei WangICDE 2026
- RNNLogic: Learning Logic Rules for Reasoning on Knowledge GraphsMeng Qu, Jun-Kun Chen, Louis-Pascal A. C. Xhonneux, Yoshua Bengio et al.ICLR 2021 · 230 citations
- Logical Neural Networks for Knowledge Base Completion with Embeddings & RulesPrithviraj Sen, Breno W. S. R. de Carvalho, Ibrahim Abdelaziz, Pavan Kapanipathi et al.EMNLP 2022 · 2 citations
- Understanding Expressivity of GNN in Rule LearningHaiquan Qiu, Yongqi Zhang, Yong Li, Quanming YaoICLR 2024 · 10 citations
- R5: Rule Discovery with Reinforced and Recurrent Relational ReasoningShengyao Lu, Bang Liu, Keith G. Mills, Shangling Jui et al.ICLR 2022 · 10 citations
