Abstract
This paper introduces a novel framework for mining logical rules from large-scale Knowledge Graphs (KGs) using Reinforcement Learning (RL). Traditional rule mining methods struggle with the combinatorial explosion of search spaces and the inherent incompleteness of KG data. The proposed approach treats rule generation as a sequential decision process, employing an RL agent guided by Knowledge Graph Embeddings and a curriculum learning strategy. By utilizing the agent's value function as a heuristic for search, the framework efficiently identifies high-quality, complex rules. Experimental results on datasets like FB15K-237 and Wikidata demonstrate significant improvements in mining speed and rule quality compared to state-of-the-art baselines.
Introduction
Knowledge Graphs (KGs), such as Wikidata or DBpedia, store world knowledge in the form of triples (e.g., Bill Gates -> bornIn -> Seattle). Rule mining is the process of extracting logical patterns from this data, such as:
bornIn(x, y) ∧ country(y, z) → nationality(x, z)
Despite their utility, traditional rule miners face two major hurdles. First is the combinatorial explosion: as the desired length of a rule increases, the number of possible predicate combinations grows exponentially, making brute-force enumeration impossible for large KGs. Second is data incompleteness: most KGs are missing significant portions of data. Traditional statistical measures like "support" and "confidence" rely on counting existing instances, which biases results toward popular facts while ignoring rare but valid patterns.
Methodology
The researchers address these challenges by treating rule generation as a sequential decision problem, solved through a "generation-then-evaluation" approach.
RL Agent as a Guide
The system models rule generation as a Markov Decision Process (MDP). An agent starts with a "head" (the conclusion) and sequentially adds "body" predicates (the conditions) to construct the rule.
Embedding-Based Rewards
To overcome the problem of missing data, the agent is rewarded based on Knowledge Graph Embeddings (specifically TransE). These embeddings represent entities and relations in a continuous vector space, allowing the agent to recognize semantic similarity even when specific data points are missing from the graph. This allows the system to capture latent knowledge that raw statistics might overlook.
Curriculum Learning and Value Function Guidance
To help the agent learn in a sparse reward environment, the authors implement a curriculum strategy. The agent begins by learning from "seed rules"—short, high-quality rules found via random sampling—and gradually moves to more complex, longer rules.
Once trained, the agent’s Value Function—its internal estimate of how "good" a partial rule is—serves as a heuristic to guide a Breadth-First Search (BFS). This allows the system to prune "dead-end" rules early in the generation process and focus computational resources on high-potential candidates. This hybrid approach bridges the gap between deep learning and classical search.
Experimental Evaluation
The authors evaluated their system on four diverse datasets: WN18RR (WordNet), FB15K-237 (Freebase), and industrial-scale versions of Wikidata and DBpedia 3.8.
Key Results
- Efficiency: On the FB15K-237 dataset, the proposed method mined over 3,000 rules in 150 hours. In contrast, the baseline AMIE+ required over 200 hours to find only a fraction of that amount.
- Quantity and Quality: On massive KGs like Wikidata, the system discovered double the number of high-quality rules compared to previous state-of-the-art RL-based miners (such as RLvLR).
- Predictive Accuracy: Rules mined by this system demonstrated superior performance in link prediction tasks, particularly on complex datasets containing hundreds of different relation types.
Discussion and Future Work
The core innovation of this work lies in the use of an intelligent agent to prune search paths early. By identifying low-quality rules at step one or two, the system can explore much deeper (longer) rules that traditional miners cannot reach.
However, the system currently has limitations. It is restricted to "closed-path" rules (simple chains) and cannot yet handle complex Horn clauses with branching logic. Additionally, the system occasionally generates "trivial" rules—patterns that are statistically true but offer little predictive value. Future research will explore combining statistical measures and embedding measures during the RL training phase to further refine rule quality and complexity.
Summary updated