Lune

ICDE2026Top-tier venue

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 Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. Neural Compositional Rule Learning for Knowledge Graph ReasoningKewei Cheng, Nesreen K. Ahmed, Yizhou SunICLR 2023 · 15 citations
  2. RulE: Knowledge Graph Reasoning with Rule EmbeddingXiaojuan Tang, Song-Chun Zhu, Yitao Liang, Muhan ZhangACL Findings 2024 · 13 citations
  3. 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
  4. Transfer Rule Learning over Large Knowledge GraphsHong Liu, Zhe Wang, Kewen Wang, Xiaowang Zhang et al.WWW 2025 · 1 citation
  5. Differentiable learning of numerical rules in knowledge graphsPo-Wei Wang, Daria Stepanova, Csaba Domokos, J. Zico KolterICLR 2020 · 47 citations
Dusk over the sea between two cliffs drawn in fine vertical lines