A Generative Adaptive Replay Continual Learning Model for Temporal Knowledge Graph Reasoning

Zhiyu Zhang, Wei Chen, Youfang Lin, Huaiyu Wan · DOI

Abstract

Temporal Knowledge Graph Reasoning (TKGR) involves predicting future facts based on historical event sequences. As new data arrives continuously, models must adapt without losing previously acquired knowledge—a challenge known as catastrophic forgetting. This paper presents Deep Generative Adaptive Replay (DGAR), a novel framework that leverages diffusion models to generate historical entity distributions. By combining a "Guider" mechanism to align past and present distributions with an adaptive replay strategy, DGAR significantly outperforms existing continual learning baselines in both reasoning accuracy and knowledge retention.

1. Introduction

Temporal Knowledge Graphs (TKGs) represent dynamic real-world facts as quadruples $(s, p, o, t)$, where a subject $s$ and object $o$ are linked by a predicate $p$ at a specific timestamp $t$. Unlike static knowledge graphs, TKGs evolve, requiring reasoning models to process streaming data. The traditional approach of retraining on the entire cumulative dataset is computationally prohibitive for large-scale, real-time applications like finance or transportation.

Continual Learning (CL) offers a more efficient alternative by fine-tuning models only on new data increments. However, this often leads to catastrophic forgetting, where the model's parameters are overwritten to accommodate new information, causing a sharp decline in performance on historical tasks. Existing CL methods for TKGs frequently suffer from context blindness—replaying facts in isolation—and distribution conflicts, where an entity's changing behavior over time creates logical inconsistencies between old and new data.

2. The DGAR Framework

To address these challenges, the authors introduce the Deep Generative Adaptive Replay (DGAR) method. The framework is built upon three core components designed to preserve historical context and harmonize it with new information.

2.1 Historical Context Prompt Building (HCP)

Traditional experience replay methods often sample isolated facts, which strips away the relational context necessary for understanding temporal dynamics. HCP addresses this by grouping facts into structured "prompts" based on specific entities and timestamps. By replaying the local neighborhood of an entity, DGAR preserves the historical semantic integrity of the graph, ensuring the model remembers the patterns of interaction rather than just disjointed facts.

2.2 Diffusion-Enhanced Historical Distribution Generation (Diff-HDG)

At the heart of DGAR is a generative approach to memory. Rather than maintaining a massive, storage-intensive buffer of past events, the model utilizes a pre-trained diffusion model to "re-generate" historical entity distributions.

A critical innovation here is the Guider mechanism. By utilizing the gradients of the current TKGR model itself, the Guider ensures that the generated historical distributions are compatible with current knowledge. This process enhances features shared between time steps while mitigating conflicts arising from distribution shifts, effectively bridging the gap between past and present semantics.

2.3 Deep Adaptive Replay (DAR)

Instead of a naive fusion of old and new data, DAR implements a layer-by-layer integration strategy. It employs an adaptive parameter ($\alpha$) to balance the injection of generated historical distributions into the current model's architecture. This allows for a nuanced fusion process where the model can selectively prioritize historical or current information depending on the specific layer's role in the reasoning process.

3. Experimental Evaluation

The efficacy of DGAR was evaluated on four widely recognized TKGR benchmarks:

  • ICEWS (ICE14, ICE18, ICE05-15): Geopolitical event datasets recording international relations over different timeframes.
  • GDELT: A massive, high-volatility dataset of global news events with 15-minute granularity.

The framework was tested as an enhancement for two popular TKG architectures: RE-GCN and TiRGN. Performance was measured using Mean Reciprocal Rank (MRR) and Hits@1, 10.

4. Key Results and Insights

DGAR demonstrated superior performance across all datasets and metrics, establishing a new state-of-the-art for continual learning in TKGs:

  • Mitigation of Forgetting: Compared to simple fine-tuning, DGAR achieved an average increase of 11.34% in MRR for historical tasks, proving its effectiveness in retaining past knowledge.
  • Outperforming Baselines: The model beat the strongest existing baselines (such as TIE or IncDE) by an average of 4.01% MRR on current tasks and 8.23% MRR on historical tasks.
  • The Importance of Context: Ablation studies confirmed that the Historical Context Prompts (HCP) are vital; replacing them with standard Experience Replay (ER) resulted in a significant performance drop, highlighting that the relationships between historical facts are as important as the facts themselves.

5. Limitations and Future Work

Despite its success, the authors identify several areas for further development:

  • New Entity Initialization: Currently, the model uses simple Xavier initialization for entirely new entities. More sophisticated strategies are needed to handle the "cold start" problem for entities with no historical context.
  • Efficiency and Overhead: While faster than retraining from scratch, the iterative denoising process of diffusion models adds a time cost during the training phase. Additionally, DGAR introduces more learnable parameters than simple fine-tuning, making it more computationally "cumbersome."

In conclusion, DGAR represents a significant step forward by moving from storage-based replay to a diffusion-based generative approach, achieving a more flexible and context-aware memory for dynamic knowledge graphs.

Summary updated

BibTeX
@inproceedings{zhang2025generative,
  author = {Zhiyu Zhang and Wei Chen and Youfang Lin and Huaiyu Wan},
  title = {{A Generative Adaptive Replay Continual Learning Model for Temporal Knowledge Graph Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure