Rule mining with AMIE

Luis Galárraga, Christina Teflioudi, Katja Hose, Fabian M. SuchanekVBN 2015

Abstract

Recent advances in information extraction have led to huge knowledge bases (KBs), which capture knowledge in a machine-readable format. Inductive Logic Programming (ILP) can be used to mine logical rules from these KBs, such as "If two persons are married, then they (usually) live in the same city." While ILP is a mature field, mining logical rules from KBs is difficult because KBs operate under an Open World Assumption (OWA). This means that absent information cannot be taken as counterexamples. Our approach, AMIE, has shown how rules can be mined effectively from KBs even in the absence of counterexamples. In this paper, we show how this approach can be optimized (AMIE+) to mine even larger KBs with more than 12 million statements. We also explain how the precision of the rule predictions can be increased to 70%. Extensive experiments show how our new approach extends to areas of mining that were previously beyond reach.

Introduction: The Challenge of Open World Knowledge

Modern Knowledge Bases (KBs) like Wikidata, YAGO, and DBpedia contain millions of facts, yet they remain notoriously incomplete. Inductive Logic Programming (ILP) offers a path to "fill in the blanks" by discovering logical rules that govern the relationships within these datasets. However, two major hurdles have historically limited the application of ILP to web-scale data:

  1. The Open World Assumption (OWA): Unlike standard relational databases where missing data is assumed false, KBs treat missing facts as "unknown." Traditional mining tools require explicit negative examples to evaluate rule quality, making them ill-suited for OWA environments.
  2. Scalability: Most ILP systems were designed for small, curated datasets. When faced with KBs containing tens of millions of facts and thousands of relations, traditional systems often fail to scale, requiring days of computation or crashing entirely.

AMIE+ addresses these challenges by introducing statistical approximations and a novel heuristic for negative evidence, allowing for high-performance rule discovery on massive datasets.

Methodology: The AMIE+ Framework

Partial Completeness Assumption (PCA)

To overcome the lack of negative examples, AMIE+ utilizes the Partial Completeness Assumption (PCA). This heuristic assumes that if a KB contains at least one value for a functional property (e.g., a person's birth city), it likely contains all relevant values for that property. Consequently, if a rule predicts a different birth city for that person, that prediction is treated as a synthetic counterexample. This allows the system to calculate confidence scores without requiring a fully closed world.

Pruning and Statistical Approximations

The "plus" in AMIE+ refers to significant optimizations in the search process. The system employs statistical approximations to estimate the quality of a rule in less than 1ms. If the estimated confidence falls below a threshold, the rule is pruned immediately, avoiding expensive database queries. This pruning strategy correctly identifies 96% of low-quality rules while only erroneously discarding 4% of potentially useful ones.

System Architecture

To support rapid rule exploration, AMIE+ utilizes a custom in-memory database. Facts are indexed in six different permutations (e.g., SRO, SOR, OSR), enabling constant-time lookups. The system explores the search space using refinement operators that iteratively add "dangling" atoms (new variables), "instantiated" atoms (specific entities), or "closing" atoms (linking existing variables) to build complex Horn rules.

Experimental Evaluation

Datasets

The authors evaluated AMIE+ on several state-of-the-art knowledge bases:

  • YAGO2: Up to 4.12M facts.
  • DBpedia (v2.0 and v3.8): Up to 11.02M facts and 650 relations.
  • Wikidata: A 2014 snapshot containing 8.4M facts and 431 relations.

Performance and Precision

AMIE+ demonstrated massive speedups, performing up to 6.7x faster than the original AMIE on YAGO2. Crucially, it completed tasks on DBpedia and Wikidata in minutes or hours—tasks that traditional ILP tools like ALEPH or WARMR could not finish within days.

Beyond speed, the system achieved high predictive accuracy. By combining mined rules with type constraints (e.g., ensuring a "birthplace" is a city) and joint reasoning, AMIE+ reached a precision of 70% when predicting new facts. The inclusion of rdf:type information was particularly effective in reducing "hallucinated" facts during the discovery process.

Conclusion and Future Work

AMIE+ represents a significant leap in the scalability of rule mining for the Semantic Web. While the PCA heuristic is highly effective for functional relations (like spouse or birthplace), future work is needed to address non-functional relations where completeness is harder to assume (e.g., "influences"). Additionally, while the system is optimized for Horn rules of limited length, extending these techniques to longer, recursive rules remains a computational frontier. The software and data are publicly available to support further research in large-scale knowledge discovery.

Summary updated

BibTeX
@inproceedings{galarraga2015rule,
  author = {Luis Galárraga and Christina Teflioudi and Katja Hose and Fabian M. Suchanek},
  title = {{Rule mining with AMIE}},
  booktitle = {VBN},
  year = {2015},
}
Figure