Probabilistic Case-based Reasoning in Knowledge Bases

Rajarshi Das, Ameya Godbole, Nicholas Monath, Manzil Zaheer, Andrew McCallum

Probabilistic Case-based Reasoning in Knowledge Bases

Introduction

Knowledge Graphs (KGs) serve as the backbone for modern AI applications, representing facts as triples like (Einstein, BornIn, Germany). Despite their utility, KGs are inherently incomplete. The task of KG completion—predicting missing links—is typically handled by parametric embedding models or rule-learning systems. However, these methods often struggle with "open-world" scenarios where new entities are added continuously, requiring expensive retraining or failing to adapt to the specific context of new data.

An illustration of the open-world challenge where a Knowledge Graph is incrementally updated with new entities and facts.

To address these challenges, researchers have proposed Probabilistic Case-Based Reasoning (Prob-CBR). This non-parametric approach avoids iterative training by reasoning through analogy, retrieving reasoning paths from similar entities and weighting them based on historical precision.

Methodology: Reasoning by Analogy

Prob-CBR operates on the principle that similar entities often share similar reasoning patterns. The process follows five key steps:

  1. KNN Retrieval: For a query such as (John Von Neumann, PlaceOfDeath, ?), the system identifies $k$ similar entities (e.g., Albert Einstein, Edward Teller) that already possess the target relation. Similarity is determined using sparse vectors of outgoing relation types.
  2. Path Gathering: The model extracts paths from these "contextual entities" to their known answers. For instance, a path might be: Einstein → Affiliated → IAS → Located → USA.
  3. Probabilistic Weighting: Two statistics are calculated for each path type: Prior (frequency of the path for the entity type) and Precision (how often the path leads to the correct answer).
  4. Online Clustering: To ensure robust statistics, entities are grouped into clusters (e.g., using the GRINCH algorithm). This allows the model to distinguish between different "cases," such as immigrant scientists versus locally-born ones, who may have different typical death-place patterns.
  5. Non-Parametric Updates: "Training" involves updating count statistics and cluster assignments, making it nearly instantaneous and highly suitable for open-world environments.
The Prob-CBR pipeline: A query triggers KNN search, path gathering, and cluster-based probabilistic weighting to predict missing relations.

Experimental Evaluation

The model was evaluated on standard benchmarks—FB122, WN18RR, and NELL-995—as well as custom "Open-World" variants where entities were introduced in incremental batches.

Key findings include:

  • Performance: Prob-CBR achieved results comparable to state-of-the-art embedding models like RotatE while significantly outperforming traditional rule-learning methods.
  • Adaptability: In online settings, while embedding models saw an 8-11 point drop in Mean Reciprocal Rank (MRR) due to the difficulty of integrating new data, Prob-CBR maintained consistent performance.
  • Efficiency: The model's "training" time is remarkably low, requiring only about 20 minutes for the WN18RR dataset, compared to hours of GPU time for deep learning alternatives.

Discussion and Future Directions

The success of Prob-CBR highlights that complex neural architectures are not always necessary for effective KG reasoning; the graph structure itself often contains the required rules if the right "cases" are identified. The use of clustering is particularly vital for overcoming data sparsity at the individual entity level.

However, limitations remain. The model's efficiency decreases with very long reasoning paths (length > 5), and entity similarity is currently based only on relation types. Future work may involve incorporating textual descriptions or more sophisticated precision update formulas to further enhance accuracy and scalability.

Summary updated

BibTeX
@inproceedings{das2020probabilistic,
  author = {Rajarshi Das and Ameya Godbole and Nicholas Monath and Manzil Zaheer and Andrew McCallum},
  title = {{Probabilistic Case-based Reasoning in Knowledge Bases}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.427},
}
Figure