Learning Rules from Incomplete KGs using Embeddings

Vinh Thinh Ho, Daria Stepanova, Mohamed H. Gad-Elrab, Evgeny Kharlamov, Gerhard Weikum

Abstract

Knowledge Graphs (KGs) are essential for structured data representation but suffer from inherent incompleteness, which biases traditional rule-learning algorithms. This paper introduces RuLES (Rule Learning with Embeddings and Sources), a hybrid framework that integrates classical statistical rule mining with KG embeddings. By using embeddings as a "soft oracle" to estimate the truth of missing facts, RuLES more accurately ranks and prunes rules in sparse data environments. The approach supports increased expressivity, including negated atoms and partially grounded rules, while maintaining scalability through iterative pruning.

Introduction

Knowledge Graphs like Wikidata and YAGO represent information as triples—$(subject, predicate, object)$—forming a vast network of human knowledge. However, these graphs are rarely complete. Because they are often constructed from semi-structured web sources, many valid relations are missing. This incompleteness poses a significant challenge for inductive logic programming and rule learning.

Traditional rule-learning systems rely on confidence measures to evaluate the validity of a rule (e.g., "If $X$ works for $Y$, then $X$ lives in the city where $Y$ is headquartered"). In a complete KG, confidence is the ratio of predicted facts that exist in the database. In an incomplete KG, however, a valid rule may appear to have low confidence simply because its predicted facts have not yet been recorded. Conversely, spurious patterns in small data subsets can lead to overconfident, biased rules.

The RuLES Framework

To address the limitations of sparse data, the authors propose RuLES, a system that evaluates rule quality using a hybrid measure. This measure, $\mu$, combines traditional evidence with probabilistic predictions from KG embeddings.

1. The Hybrid Quality Measure

The quality of a candidate rule is defined as a weighted sum of two components:

  • $\mu_1$ (Classical Confidence): This is the standard statistical measure based on facts already present in the KG.
  • $\mu_2$ (Embedding-based Confidence): This component utilizes a precomputed embedding model—a latent space representation of entities and relations. The model estimates the probability that a predicted triple is true, even if it is absent from the current KG.

2. Iterative Construction and Pruning

RuLES does not simply filter rules after they are generated. Instead, it interleaves the rule-building process with feedback from the embedding model. By evaluating rule branches during the induction loop, the system can prune unpromising candidates early. This iterative approach prevents the combinatorial explosion of the search space, which is a common bottleneck in complex rule mining.

3. Increased Expressivity

Unlike many traditional Horn rule learners, RuLES supports more complex logical structures:

  • Negated Atoms: The system can learn rules with exceptions, such as "Most employees live in the same country as their employer, unless they work remotely."
  • Partially Grounded Atoms: The system can incorporate specific constants (e.g., country(X, USA)) rather than relying solely on variables, allowing for more localized and specific rule discovery.

Key Insights

Embeddings as a "Soft Oracle"

A central insight of this work is the role of embeddings as a "soft oracle." While embeddings are generally too noisy to serve as a primary source of truth, they are highly effective at providing "hints." They allow the learner to look beyond the "Open World Assumption"—the principle that the absence of a fact does not imply its falsehood—by providing a mathematical estimate of a fact's likelihood.

The Role of the Weighting Factor ($\lambda$)

The framework introduces a weighting factor, $\lambda$, which allows users to tune the balance between "hard" KG data and "soft" embedding predictions. This flexibility is crucial because it allows the system to adapt to different levels of KG density; in very sparse graphs, one might rely more heavily on the embedding model, whereas in denser graphs, the empirical data might take precedence.

Results and Impact

The evaluation of RuLES on real-world KGs like Wikidata and YAGO demonstrated several key advantages:

  • Improved Rule Quality: The rules identified were more semantically meaningful and less susceptible to the biases inherent in incomplete datasets.
  • Fact Prediction: Rules learned through the hybrid method outperformed those learned via traditional statistical measures in link prediction tasks, effectively helping to "fill in" the missing parts of the KG.
  • Scalability: Despite the added complexity of querying embedding models, the iterative pruning mechanism ensured that the system remained scalable, avoiding the computational overhead typically associated with high-expressivity rule mining.

Limitations and Future Work

The primary limitation of RuLES is its dependency on the quality of the underlying embedding model. If the embeddings are trained on biased data or are insufficiently expressive, the rule learner will inherit these deficiencies. Furthermore, while pruning helps, the computational cost of querying embeddings remains higher than simple frequency counting.

Future research directions include the direct integration of external information sources, such as raw text corpora, into the rule-evaluation loop. This would allow the system to verify candidate rules against a broader range of evidence, further mitigating the impact of KG incompleteness.

Summary updated

BibTeX
@inproceedings{ho2018learning,
  author = {Vinh Thinh Ho and Daria Stepanova and Mohamed H. Gad-Elrab and Evgeny Kharlamov and Gerhard Weikum},
  title = {{Learning Rules from Incomplete KGs using Embeddings}},
  booktitle = {ISWC (P\&D/Industry/BlueSky)},
  year = {2018},
}
Figure