DRUM: End-To-End Differentiable Rule Mining On Knowledge Graphs

Ali Sadeghian, Mohammadreza Armandpour, Patrick Ding, Daisy Zhe Wang

TL;DR

DRUM is a scalable, end-to-end differentiable framework for mining logical rules from Knowledge Graphs (KGs). By treating rule discovery as a low-rank tensor approximation and using bidirectional RNNs to share knowledge across relations, it produces more accurate and interpretable predictions than previous state-of-the-art methods, especially in inductive scenarios.

What Problem Does This Paper Address?

Knowledge Graphs—structured databases of real-world facts like (Barack Obama, bornIn, Honolulu)—are notoriously incomplete. To fill the gaps, researchers typically use two methods: representation learning (embeddings) or rule mining.

While embeddings are powerful, they are "black boxes" that struggle with inductive reasoning. If a new person is added to the graph, an embedding model usually needs to be retrained from scratch. Rule mining, which discovers logical formulas like brotherOf(X, Z) ∧ fatherOf(Z, Y) ⇒ uncleOf(X, Y), is much better because rules can be applied to unseen entities.

Inductive reasoning via logical rules.

However, traditional rule mining is discrete and hard to scale. Recent "differentiable" attempts like Neural LP made progress but suffered from a mathematical bottleneck: they essentially perform a "rank-1" approximation of the rule space. This forces the model to assign high confidence to incorrect rules simply because they share components with correct ones, leading to poor interpretability and "noisy" results.

Methods

The authors propose DRUM (Differentiable RUle Mining) to solve these expressive limitations.

  1. Low-Rank Tensor Approximation: DRUM frames the search for rules as a tensor approximation problem. While previous models were limited to rank-1 (a single path of reasoning), DRUM generalizes this to a rank-$L$ approximation. This allows the model to learn multiple, independent rules for the same relation without them "leaking" into each other.
  2. Bidirectional RNNs: Instead of learning rule weights as static parameters, DRUM uses $L$ bidirectional LSTMs to generate them. The RNN takes the embedding of a "head" relation (the thing we want to predict) and produces the weights for the "body" of the rule.
  3. Knowledge Sharing: Because the same RNNs are used for all relations in the KG, the model learns the underlying "ontology." For example, it might learn that certain relations (like wifeOf) can never follow others (like fatherOf), sharing this "common sense" across the entire mining process.

Datasets

The authors evaluated DRUM on two types of tasks:

  • Statistical Relation Learning: Small, dense datasets including UMLS (biomedical), Kinship (tribal relations), and Family (genealogy).
  • Knowledge Graph Completion: Large-scale benchmarks WN18RR (WordNet) and FB15K-237 (Freebase). These are "cleaned" versions of older datasets that prevent models from cheating via simple inverse relations.

Key Insights and Ideas

  • The Expressivity Theorem: The paper provides a formal proof showing why rank-1 models (like Neural LP) are mathematically guaranteed to produce incorrect rules if they find two or more valid rules. DRUM’s rank-$L$ formulation proves it can represent any set of rules without this interference.
  • Inductive Strength: Because DRUM learns logical patterns rather than entity positions, its performance barely drops when tested on entirely new entities.
  • Order Matters: By using a bidirectional RNN, DRUM captures the importance of the sequence of relations in a rule, effectively "looking" both forward and backward through a chain of facts.

Key Results

  • State-of-the-Art Accuracy: On WN18RR, DRUM (T=3) achieved an MRR of 0.486, significantly outperforming Neural LP (0.435) and even beating several popular embedding-based models like DistMult and ConvE.
Performance comparison on WN18RR and FB15K-237 datasets.
  • Inductive Superiority: In inductive tests on WN18RR, DRUM maintained a 95.21 Hits@10, while the embedding-based TransE collapsed to 0.01.
  • Human-Verified Quality: In a blind study, human annotators found that DRUM produced far more "consecutive correct rules" than previous models. For the sister relation, DRUM produced 10 correct rules in a row, compared to just 3 for Neural LP.

Limitations and Future Work

  • Positive-Only Training: DRUM currently operates under the "Open World Assumption," meaning it is trained only on known positive facts. The authors suggest that incorporating negative sampling (explicitly telling the model what is not true) could further boost performance.
  • Hybrid Potential: While DRUM is a "pure" rule miner, the authors note that combining differentiable rule mining with entity embeddings remains a promising, though complex, frontier for future research.

Summary updated

BibTeX
@inproceedings{sadeghian2019drum,
  author = {Ali Sadeghian and Mohammadreza Armandpour and Patrick Ding and Daisy Zhe Wang},
  title = {{DRUM: End-To-End Differentiable Rule Mining On Knowledge Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure