Scalable Rule Learning via Learning Representation

Pouya Ghiasnezhad Omran, Kewen Wang, Zhe Wang

Abstract

Extracting first-order logical rules from massive Knowledge Graphs (KGs) is essential for providing human-interpretable explanations and predicting missing facts. However, traditional rule-mining systems often struggle with the "combinatorial explosion" of search spaces in large datasets. This paper presents RLvLR (Rule Learner via Learning Representation), a novel framework that bridges symbolic logic and neural embeddings. By using representation learning to prune the search space and optimized matrix algebra for rule evaluation, RLvLR significantly outperforms state-of-the-art systems like AMIE+ and Neural LP in both efficiency and rule quality.

Introduction

Knowledge Graphs such as Wikidata and DBpedia serve as foundational backbones for many AI applications but are frequently incomplete. Rule mining offers a way to infer missing links while maintaining transparency. For example, a rule might state: "If $x$ is born in city $y$ and $y$ is in country $z$, then $x$ is a citizen of $z$." Despite their utility, extracting these rules from millions of facts is computationally daunting. Existing Inductive Logic Programming (ILP) methods often fail to scale, while purely neural approaches lack interpretability. RLvLR addresses this gap by using embeddings as a heuristic to guide symbolic search.

Methodology

RLvLR employs a three-stage hybrid approach to achieve scalability without sacrificing interpretability:

  1. Target-Oriented Sampling: To avoid processing the entire KG, the system samples a relevant subset of entities and facts specifically related to a "target predicate."
  2. Embedding-Guided Search: The system leverages RESCAL matrix factorization to generate low-dimensional embeddings for entities and predicates. Two scoring functions guide the search:
  3. Synonymy ($f_1$): Evaluates the semantic similarity between a candidate path and the target predicate.
  4. Co-occurrence ($f_2$): Uses "argument embeddings"—prototypical representations of subjects and objects—to ensure candidate rules are semantically plausible.
  5. Matrix-Based Evaluation: RLvLR represents the KG as adjacency matrices. Rule evaluation (calculating support and confidence) is transformed into optimized matrix multiplications, bypassing slow graph traversal operations.

Datasets

The framework was evaluated on several large-scale benchmarks, including massive KGs like YAGO2s (4.12M facts), Wikidata (8.40M facts), and DBpedia 3.8 (11.02M facts), as well as link prediction benchmarks like FB15K-237 and FB75K.

Results and Discussion

RLvLR demonstrates superior performance across multiple dimensions compared to traditional and differentiable logic systems.

Efficiency and Rule Quality

On the Wikidata dataset, RLvLR mined an average of 56 rules per predicate in approximately 2.41 hours. In contrast, the previous gold standard, AMIE+, required 10 hours to find an average of only 1 rule per predicate. Furthermore, RLvLR consistently identified more high-quality rules across all tested massive KGs.

Efficiency and rule count comparison between RLvLR and AMIE+ across large KGs.

When applied to link prediction tasks, RLvLR outperformed Neural LP, a leading differentiable logic system. On the FB75K dataset, RLvLR was roughly 25 times faster while achieving a significantly higher Hits@10 score (43.4 vs 25.7).

Link prediction performance and runtime comparison between RLvLR and Neural LP on FB75K and WikiData.

Key Insights

  • Embeddings as Pruning Tools: The core innovation lies in using "black-box" neural embeddings not for final inference, but as a sophisticated filter to guide symbolic search. This combines the efficiency of deep learning with the transparency of logic.
  • Linear Algebra for Logic: By treating rule satisfaction as numerical matrix operations, the system leverages highly optimized computing libraries, significantly reducing the overhead of database-style joins.

Conclusion and Future Work

RLvLR successfully scales rule mining to massive KGs by combining the strengths of representation learning and symbolic logic. While highly effective, the current implementation learns rules for target predicates independently; future work could explore parallelization. Additionally, expanding the system to handle more complex logic, such as rules involving constants or negations, remains an open area for development.

Summary updated

BibTeX
@inproceedings{omran2018scalable,
  author = {Pouya Ghiasnezhad Omran and Kewen Wang and Zhe Wang},
  title = {{Scalable Rule Learning via Learning Representation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/297},
}
Figure