Logic and Commonsense-Guided Temporal Knowledge Graph Completion

Guanglin Niu, Bo Li

Introduction

Temporal Knowledge Graphs (TKGs) record events as quadruples: (subject, predicate, object, timestamp). Predicting missing events in these graphs is a significant challenge because events are highly sensitive to the temporal dimension. The Logic and Commonsense-Guided Embedding (LCGE) model advances Temporal Knowledge Graph Completion (TKGC) by jointly modeling the timeliness of events, the causality between them, and underlying commonsense knowledge.

The Problem: Timeliness, Causality, and Commonsense

The authors identify three major gaps in existing TKG research:

  1. The Timeliness vs. Causality Trade-off: Most models focus either on timeliness (is this event valid at time $t$?) or evolution/causality (did event A cause event B?). Few models integrate both effectively.
  2. Ignoring Commonsense: Events do not happen in a vacuum. Long-term, static "commonsense" knowledge (e.g., Barack Obama is a politician) remains true regardless of specific timestamps, yet most TKG models treat every event as purely time-dependent.
  3. The "Black Box" Problem: Most embedding-based models lack explainability, offering predictions without human-readable reasoning.
Timeliness vs. Causality in Temporal Knowledge Graphs.

The LCGE Framework

The LCGE framework consists of three main pillars designed to capture the complexity of temporal events while maintaining logical consistency.

The LCGE framework architecture.

1. Temporal Rule Learning

The model employs a "static-to-dynamic" mining strategy. It first masks time information to create a Global Static KG (GSKG) and uses standard tools (like AMIE+) to find static rules. These are then projected back into the temporal domain using five specific patterns (e.g., "If A visits B at time $t$, A might host B at time $t+t_1$").

2. Rule-Guided Predicate Embedding Regularization (RGPR)

To integrate logic into the embedding space, LCGE uses mined rules to regularize predicate embeddings. A time transfer operator ($T$) aligns predicates from different time steps into the same window, ensuring that if a rule dictates "Event A leads to Event B," the mathematical relationship between their embeddings reflects this causality.

3. Commonsense-Based KGE

To capture time-independent facts, LCGE learns low-dimensional concept embeddings. While a specific event might be "Obama visits China," the commonsense layer understands the abstract interaction between the concepts "Politician" and "Country." This acts as a prior that improves prediction accuracy and acts as a "sanity check."

4. Joint Scoring

The final score for an event is a weighted sum of a time-sensitive score (handling timeliness and causality) and a time-independent score (handling commonsense).

Key Insights and Results

LCGE was evaluated on standard TKG benchmarks including ICEWS14, ICEWS05-15, and Wikidata12k.

  • Causality as a Constraint: By treating causality as a logical regularization problem, LCGE forces the latent space to respect the "flow of time" dictated by mined rules.
  • The Power of Static Knowledge: Interestingly, incorporating "time-ignorant" commonsense knowledge actually improves temporal predictions by helping the model avoid overfitting on noisy temporal fluctuations.
  • State-of-the-Art Performance: LCGE outperformed all baselines by a wide margin. On the ICEWS14 dataset, it achieved an MRR (Mean Reciprocal Rank) of 0.925, a nearly 48% relative improvement over previous best models like TeLM. Its Hits@1 reached 0.916, representing a 68% relative increase.

Conclusion and Future Work

LCGE demonstrates that combining temporal logic with static commonsense significantly enhances the accuracy and explainability of TKG completion. While currently limited to five specific temporal rule patterns, future work may involve mining more complex multi-step dependencies and integrating larger-scale external commonsense bases like ConceptNet to further refine the embedding process.

Summary updated

BibTeX
@inproceedings{niu2023logic,
  author = {Guanglin Niu and Bo Li},
  title = {{Logic and Commonsense-Guided Temporal Knowledge Graph Completion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i4.25579},
}
Figure