Reconstructing TensorLog for Scalable End-to-End Rule Learning
Kunxun Qi, Jianfeng Du, Hai Wan, Wei Wang
Abstract
Logical rules play a crucial role in knowledge graph (KG) reasoning. They underpin various database applications and serve as pivotal components for enhancing large language models (LLMs) with KGs. In recent years, end-to-end rule learning has emerged as a promising paradigm to learn logical rules. The key insight of end-to-end rule learning is to transform the rule learning problem in a discrete space into the parameter learning problem in a continuous space, by employing TensorLog operators to simulate the inference of logical rules. However, these TensorLog-based methods struggle with limited scalability in learning rules from large-scale KGs. To improve the efficiency and scalability of end-to-end rule learning, we propose an efficient framework named FastLog which reconstructs TensorLog by reducing vector-matrix multiplications to vector computations. We theoretically show that FastLog has a lower time complexity than TensorLog. Furthermore, we propose a dynamic pruning strategy in FastLog to further improve efficiency. Thanks to this strategy, the time complexity of FastLog can be further reduced to a constant. Extensive experimental results on a variety of benchmark KGs demonstrate that FastLog improves the efficiency of end-to-end methods by a significant margin without efficacy degradation in link prediction. Notably, with our reconstruction of TensorLog, existing TensorLog-based methods are enabled to learn logical rules on two large-scale datasets with up to three hundred million triples, while achieving a high efficacy comparable with the most advanced rule learner.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 5ac06a14-3e01-4d94-887c-45e4d7face67Related papers
- Neural Compositional Rule Learning for Knowledge Graph ReasoningKewei Cheng, Nesreen K. Ahmed, Yizhou SunICLR 2023 · 15 citations
- UniKER: A Unified Framework for Combining Embedding and Definite Horn Rule Reasoning for Knowledge Graph InferenceKewei Cheng, Ziqing Yang, Ming Zhang, Yizhou SunEMNLP 2021 · 37 citations
- Differentiable learning of numerical rules in knowledge graphsPo-Wei Wang, Daria Stepanova, Csaba Domokos, J. Zico KolterICLR 2020 · 47 citations
- A Unified Framework for Rule Learning: Integrating Commonsense Knowledge from LLMs with Structured Knowledge from Knowledge GraphsQirui Hao, Kewei Cheng, Tongze Zhang, Hongyuan Liu et al.WWW 2026
- RLogic: Recursive Logical Rule Learning from Knowledge GraphsKewei Cheng, Jiahao Liu, Wei Wang, Yizhou SunKDD 2022 · 57 citations
