Confidence is not Timeless: Modeling Temporal Validity for Rule-based Temporal Knowledge Graph Forecasting

Rikui Huang, Wei Wei, Xiaoye Qu, Shengzhe Zhang, Dangyang Chen, Yu Cheng

Abstract

Temporal Knowledge Graph Forecasting (TKGF) predicts future events based on historical interactions. While rule-based methods offer transparency and efficiency, they typically treat rule confidence as a static, "timeless" value. We present TempValid, a framework that models rule confidence as a decaying function of time. By learning rule-specific decay rates, TempValid significantly improves forecasting accuracy while remaining highly efficient and interpretable, outperforming state-of-the-art rule-based baselines across multiple benchmarks.

Introduction

Temporal Knowledge Graph Forecasting (TKGF) is the task of predicting future events (e.g., "Who will Merkel visit next week?") based on a history of past interactions. While deep learning models often dominate this field, they are frequently criticized as "black boxes." Rule-based methods are preferred for their transparency and efficiency, but they have a major flaw: they assume that if a logical rule is valid, it is always equally valid, regardless of when the premise occurred.

In reality, temporal proximity matters. If a leader expresses an intent to meet today, they are very likely to meet tomorrow, but much less likely to meet three years from now. Existing methods use heuristic, static confidence scores that ignore this temporal sensitivity, leading to inaccuracies in dynamic environments.

The TempValid Framework

TempValid addresses these limitations by treating rule confidence and temporal validity as learnable parameters rather than fixed heuristics. The framework introduces several key innovations:

1. Exponential Time Decay

Instead of a flat confidence score, TempValid employs a time function: $tv(\Delta t) = e^{-\beta \Delta t}$. Here, $\beta$ is a learnable "decay coefficient." A large $\beta$ indicates that a rule's predictive power vanishes quickly, while a $\beta$ of zero suggests the rule is "evergreen" or timeless. This allows the model to distinguish between short-term triggers and long-term strategic intentions.

An example of rule-based TKGF and temporal patterns showing how different rules (e.g., IntentToMeet vs. EconomicCooperate) exhibit different decay rates over time.

2. Learnable Confidence and Linearized Scoring

The base confidence of a rule is also a learnable parameter. To avoid the mathematical "gradient vanishing" problems associated with traditional rule aggregation (like the Noisy-OR function), TempValid transforms the scoring into a linear model, facilitating more stable training.

3. Smart Negative Sampling

To train the model effectively, the authors propose two strategies:

  • Rule-Adversarial: Selecting "hard" negative samples—entities that the rules could reach but are actually incorrect.
  • Time-Aware: Creating negative samples by taking a true event and swapping its timestamp, forcing the model to learn when an event is likely to happen, not just what will happen.

Key Insights and Results

TempValid consistently outperformed the previous state-of-the-art rule-based method, TLogic, across six standard benchmarks (ICEWS14, ICEWS18, ICEWS05-15, YAGO, WIKI, and GDELT). On the ICEWS18 dataset, it achieved a Mean Reciprocal Rank (MRR) of 33.50, compared to TLogic's 29.59.

Relative performance across different decay coefficients (beta) showing that model performance peaks when the temporal decay is correctly optimized.

Efficiency and Generalization

TempValid is remarkably lightweight, training with fewer than 50,000 parameters across all datasets—orders of magnitude smaller than typical neural network-based forecasters. Furthermore, because the model learns about relations and rules rather than specific entities, it generalizes well to unseen data and low-resource settings, achieving competitive results with as few as 16 to 32 training instances per relation.

Conclusion and Future Work

TempValid proves that modeling the "half-life" of logical rules significantly boosts the accuracy of interpretable forecasting systems. While currently focused on simple decay models for cyclic rules, future work may expand the framework to account for complex temporal patterns like periodicity or acyclic historical patterns, further closing the gap between transparent rule-based systems and complex neural models.

Summary updated

BibTeX
@inproceedings{huang2024confidence,
  author = {Rikui Huang and Wei Wei and Xiaoye Qu and Shengzhe Zhang and Dangyang Chen and Yu Cheng},
  title = {{Confidence is not Timeless: Modeling Temporal Validity for Rule-based Temporal Knowledge Graph Forecasting}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.580},
}
Figure