CountTRuCoLa: Rule Learning for Interpretable Temporal Knowledge Graph Forecasting

Julia Gastinger, Christian Meilicke, Heiner Stuckenschmidt

TL;DR

CountTRuCoLa is a simple, inherently interpretable rule-based method for forecasting future links in Temporal Knowledge Graphs (TKGs). By learning four basic symbolic rule types equipped with parametric confidence functions that balance both event recency and frequency, it matches or outperforms complex deep learning models. Crucially, it runs entirely on CPUs, executes over five times faster than state-of-the-art neural approaches, and scales seamlessly to massive datasets where deep learning methods crash due to memory or runtime limits.

What Problem Does This Paper Address?

Temporal Knowledge Graphs (TKGs) record real-world facts along with the timestamps of when they occurred (e.g., (Alexis_T., Consult, Evangelos_V., t=334)). Forecasting future events in these graphs is a critical task for applications in finance, career trajectory planning, and clinical prediction.

Currently, the field is dominated by complex, black-box architectures like deep graph neural networks, reinforcement learning agents, and large language models (LLMs). However, recent research revealed a surprising vulnerability: a dead-simple baseline that merely predicts events based on whether they have occurred before (fact recurrence) routinely beats these sophisticated neural models.

The authors of this paper identify a clear gap: we lack forecasting methods that are deliberately simple, transparent, and computationally efficient, yet capable of outperforming these recurrence baselines by extracting richer temporal patterns.

Methods

The authors introduce CountTRuCoLa (Temporal Rule Confidence Learning), an inherently interpretable symbolic forecasting framework. Instead of relying on opaque vector embeddings, it operates using four simple rule types:

  1. xy-rules: Connect two variables over time (e.g., if $X$ and $Y$ were engaged at time $t$, they might be dated at a future time $t^*$). This includes recurrent rules where the relation simply repeats.
  2. c-rules: Capture relationships involving frequent constants (e.g., if a person is born in Amsterdam, they will likely study at the University of Amsterdam).
  3. z-rules & f-rules: Empty-body rules that act as historical baselines, capturing global frequency distributions of entities and relations across the dataset.

The Temporal Confidence Function

Unlike static knowledge graphs where a rule is either true or false, temporal rules depend heavily on when the supporting facts happened. CountTRuCoLa scores each prediction using a per-rule parametric confidence function:

$$\text{conf}_r(\Delta) = f_r(\Delta) + g_r(\Delta)$$

  • Recency ($f_r$): Uses an exponential decay function to score predictions based on the minimum time distance ($\min(\Delta)$) to the most recent observation.
  • Frequency ($g_r$): Measures how often the supporting fact occurred within a historical sliding time window ($W$).
Fig. 1: Aggregated view of the Examples Er (points) and predicted curves (blue lines) for one rule r. Colors indicate the number of samples in Er that led to the aggregated value. Left: Learning fr, confidence vs. min(∆). Right: Learning gr, residuals ˜y −f(∆) vs. frequency |∆W|

Predictions from multiple rules are combined using a modified noisy-or aggregation strategy, which sorts rule confidences and applies a decay factor to lower-ranked rules to mitigate the inflation effect caused by highly correlated rules.

Datasets

CountTRuCoLa was evaluated across nine diverse datasets:

  • Standard Benchmarks: GDELT, YAGO, WIKI, ICEWS14, and ICEWS18.
  • Large-Scale Benchmarks (TGB 2.0): smallpedia, polecat, icews, and wikidata. These datasets scale up to nearly 11 million quadruples and feature granularities ranging from 15-minute intervals to full years.

Key Insights and Ideas

  • The Power of Simplicity: Restricting rules to a single body atom (length-1) drastically reduces the risk of overfitting and preserves absolute interpretability without sacrificing predictive accuracy.
  • Recency vs. Frequency: Ablation studies show that while recency provides the largest performance leap over static baselines, incorporating a symbolic frequency count over a sliding window provides a vital, complementary boost.
  • Inherent Traceability: Because the model is entirely symbolic, every single prediction can be traced back to the exact rule that fired, its exact confidence score, and the specific historical timestamps that triggered it. No post-hoc explanation tools are required.

Key Results

  • Competitive Performance: CountTRuCoLa achieved the highest Mean Reciprocal Rank (MRR) on 4 out of the 9 datasets and ranked second or third on the remaining five.
  • Unmatched Scalability: On the massive TGB 2.0 datasets, CountTRuCoLa was the only advanced forecasting method that successfully ran across all benchmarks. Opaque neural models like TempValid and CognTKE consistently suffered from Out-of-Memory (OM) or Out-of-Time (OT) errors.
  • High Efficiency: Operating entirely on a CPU, CountTRuCoLa executed over 5 times faster than state-of-the-art neural models running on high-end GPUs.

Limitations and Future Work

The primary limitation identified was on the GDELT dataset, where CountTRuCoLa underperformed compared to the basic Recurrency Baseline. GDELT features highly complex, overlapping temporal dynamics (e.g., rapid 15-minute news cycles mixed with multi-year geopolitical reactions). CountTRuCoLa's single-window approach struggles to cleanly disentangle these multi-granularity patterns.

For future work, the authors propose extending the confidence function to handle multiple time granularities simultaneously and exploring more advanced symbolic aggregation strategies.

Summary updated

BibTeX
@misc{gastinger2025counttrucola,
  author = {Julia Gastinger and Christian Meilicke and Heiner Stuckenschmidt},
  title = {{CountTRuCoLa: Rule Learning for Interpretable Temporal Knowledge Graph Forecasting}},
  year = {2025},
  eprint = {2509.09474},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.09474},
}
Figure