Efficient inference and learning in a large knowledge base - Reasoning with extracted information using a locally groundable first-order probabilistic logic

William Yang Wang, Kathryn Mazaitis, Ni Lao, William W. Cohen · DOI

Introduction

Reasoning with "noisy" data extracted from the web presents a significant challenge for traditional probabilistic first-order logics. While powerful, these systems often struggle with scalability when applied to massive knowledge bases (KBs) containing millions of facts. This paper introduces ProPPR (Programming with Personalized PageRank), a system designed to perform efficient inference and learning by focusing on local portions of a KB.

The Grounding Bottleneck

Most probabilistic logic systems, such as Markov Logic Networks (MLNs), suffer from the "grounding bottleneck." To answer a query, they must translate abstract logical rules into a massive propositional network that encompasses every relevant fact in the database. As KBs grow, this process becomes computationally prohibitive. ProPPR addresses this by asking: can we reason effectively by only examining a tiny, "local" portion of the KB relevant to a specific query?

ProPPR: Logic as a Random Walk

ProPPR extends Stochastic Logic Programs (SLPs) by treating logical inference as a random walk on a graph of possible derivations. By incorporating "restart" links that point back to the original query, the system biases itself toward shorter, more reliable chains of reasoning.

A derivation graph in ProPPR showing how a query is resolved through a series of logical steps and database lookups.

This transformation allows the use of the PageRank-Nibble algorithm for local grounding. Instead of building a full proof graph, ProPPR constructs a small, approximate local grounding. Crucially, the size of this local graph depends on the desired accuracy and restart probability, rather than the total size of the underlying database.

Feature-Based Learning

A key innovation in ProPPR is the association of features with logical rules. This allows the system to learn weights for different rules using Stochastic Gradient Descent (SGD).

Example ProPPR rules with associated feature templates, allowing for flexible weight learning across different predicates.

Because each query's local grounding is independent, the learning process is "embarrassingly parallel," enabling significant speedups on multi-core architectures. This decoupling of logic and features allows a single rule to have different weights depending on the specific constants involved, which is vital for handling the variability in information extraction tasks.

Experimental Results and Scalability

The authors evaluated ProPPR on several benchmarks, including the NELL (Never-Ending Language Learning) dataset. ProPPR successfully handled KBs with up to 1 million entities, a scale where traditional tools like Alchemy often fail.

Key findings include:

  • Speed: Training on NELL datasets was orders of magnitude faster than MLNs, completing in seconds or minutes rather than hours.
  • Parallel Efficiency: The system demonstrated near-linear speedup; for instance, increasing from 1 to 16 threads reduced training time on the 1M entity task from ~116 seconds to ~15 seconds.
  • Joint Learning: Using recursive rules allowed different predicates to inform one another, significantly improving predictive performance (AUC).

Conclusion

ProPPR represents a significant step forward in scaling probabilistic logic to real-world, web-scale data. By combining the strengths of logic programming with the efficiency of Personalized PageRank, it overcomes the grounding bottleneck, providing a fast and parallelizable framework for reasoning in large, noisy knowledge bases.

Summary updated

BibTeX
@article{wang2015efficient,
  author = {William Yang Wang and Kathryn Mazaitis and Ni Lao and William W. Cohen},
  title = {{Efficient inference and learning in a large knowledge base - Reasoning with extracted information using a locally groundable first-order probabilistic logic}},
  journal = {Machine Learning},
  year = {2015},
  doi = {10.1007/s10994-015-5488-x},
}
Figure