Rule Based Temporal Inference

Melisachew Wudage Chekol, Heiner Stuckenschmidt

TL;DR

This paper tackles the challenge of reasoning over probabilistic temporal knowledge graphs (PTKGs), which combine temporal information with uncertainty. The authors propose using probabilistic programming languages like ProbLog and Probabilistic Soft Logic (PSL) to represent and query these complex KGs, introducing novel methods for temporal coalescing and query rewriting. Their work offers a more scalable and efficient approach to temporal inference, crucial for applications dealing with dynamic, uncertain real-world data.

What Problem Does This Paper Address?

Knowledge graphs (KGs) are increasingly used to represent vast amounts of information. However, many facts in the real world are not timeless; they are valid only for a specific period. This temporal aspect, combined with the inherent uncertainty in facts extracted from open text (often represented as confidence scores), leads to probabilistic temporal knowledge graphs (PTKGs). Reasoning over these PTKGs presents significant challenges, particularly in two key areas:

  1. Probabilistic Query Evaluation: This involves answering queries where the answer's probability needs to be calculated (marginal inference) or finding the most likely interpretation of the KG (Most Probable Explanation or MPE inference).
  2. Temporal Coalescing: This is the process of merging facts that refer to the same entity and have overlapping or adjacent time intervals. In probabilistic settings, determining the probability of the merged fact is complex and application-dependent.

Existing methods for temporal reasoning often struggle with the probabilistic nature of these KGs, and temporal coalescing in a probabilistic context is particularly difficult.

Methods

The paper proposes a framework for representing and reasoning with PTKGs using probabilistic programming languages, specifically ProbLog and Probabilistic Soft Logic (PSL).

  • ProbLog: This language extends Prolog with probabilistic facts and rules, allowing for direct representation of PTKGs. Temporal facts are represented as predicates with time interval arguments (e.g., r(s, o, tb, te)). Inference rules are temporalized by adding time interval variables and using overlap predicates.
  • Probabilistic Soft Logic (PSL): PSL uses first-order logic with weights to define probabilistic models, based on Hinge-Loss Markov Random Fields. The authors adapt PSL to represent temporal KGs by extending predicates with time intervals.
  • Temporal Coalescing: The paper introduces two approaches:
  • Rule-based coalescing: This involves constructing specific Horn rules in ProbLog for each relation to merge temporal facts with overlapping intervals.
  • Algorithmic coalescing: A more general algorithm that searches for facts with identical non-temporal arguments, orders them by time, merges overlapping intervals, and assigns probabilities to the coalesced facts using a provided table (Table 1).
  • Query Rewriting: For temporal conjunctive queries, the authors propose rewriting them to handle temporal predicates and interval overlaps, particularly for single-predicate queries.

Datasets

The experiments were conducted using fragments of the Wikidata knowledge graph. The authors extracted over 6.3 million temporal facts from Wikidata, focusing on relations with structured temporal information like playsFor, educatedAt, memberOf, occupation, and spouse.

Key Insights and Ideas

  • Probabilistic Programming as a Unifying Framework: ProbLog and PSL offer powerful and flexible ways to model and reason over PTKGs, bridging the gap between symbolic logic and probabilistic reasoning.
  • Temporal Coalescing is Crucial: Merging overlapping temporal facts is essential for reducing KG size, preventing redundant information, and ensuring accurate query answers, especially in probabilistic settings.
  • Scalability Matters: The choice of inference engine significantly impacts performance. ProbLog demonstrates better scalability for marginal inference compared to Markov Logic Network (MLN) based solvers like Tuffy and TuffyLite, especially for larger datasets.
  • MPE Inference Efficiency: While PSL is designed for MPE inference, ProbLog also shows competitive performance, and importantly, handles temporal predicates more effectively.

Key Results

  • Marginal Inference Performance: Experiments showed that ProbLog scales linearly with data size for marginal inference, outperforming Tuffy and TuffyLite, which exhibited non-linear and sharp increases in runtime as data size grew. Tuffy and TuffyLite struggled with predicates of arity 3 or more, leading to extremely large grounded databases.
  • MPE Inference Performance: ProbLog was found to be faster than PSL for MPE inference. ProbLog's runtime increased linearly with data size, whereas PSL's runtime was more sensitive to the complexity of conflicts within the data.
  • Temporal Predicate Handling: ProbLog demonstrated superior handling of temporal predicates used for interval overlap checks compared to PSL.

Limitations and Future Work

  • Scalability of PSL: While PSL is effective for MPE inference, its scalability can be an issue, particularly with complex temporal data and conflicts.
  • Query Operator Extension: The proposed query rewriting for coalescing currently focuses on single-predicate queries. Future work should address other query operators like union, negation, and selection.
  • Probabilistic Coalescing Probability Assignment: The paper notes that determining the probability of a coalesced fact in a probabilistic setting is not straightforward and can be application-dependent. While Table 1 provides a method, further research might be needed for more nuanced scenarios.
  • Addressing Uncertainty in Rules: The current work primarily focuses on probabilistic facts. Extending the framework to handle uncertainty in inference rules themselves is a potential future direction.

Summary updated

BibTeX
@inproceedings{chekol2018rule,
  author = {Melisachew Wudage Chekol and Heiner Stuckenschmidt},
  title = {{Rule Based Temporal Inference}},
  booktitle = {DROPS},
  year = {2018},
  doi = {10.4230/oasics.iclp.2017.4},
}
Figure