TL;DR
Real-world Temporal Knowledge Graphs (TKGs) grow incrementally as events unfold, but updating completion models on new data typically causes them to forget past facts. This paper introduces a general continual learning framework that combines temporal regularization (decayed Elastic Weight Consolidation) and clustering-based experience replay to successfully adapt to new events while mitigating catastrophic forgetting.
What Problem Does This Paper Address?
Knowledge graphs (KGs) represent factual information as interconnected triples (subject, relation, object). In event-centric Temporal Knowledge Graphs (TKGs), these facts are tied to specific timestamps (e.g., (Obama, meet, Merkel, 2015-03-10)). Because real-world events happen continuously, TKG data naturally arrives in streams.
Traditional TKG completion models assume access to the entire graph during training. When these models are deployed in production and naively fine-tuned on new incoming data, they suffer from catastrophic forgetting—they overfit to the newest events and lose their ability to predict past patterns. While retraining the model from scratch on the entire accumulated dataset prevents forgetting, it is computationally prohibitive for large, rapidly growing graphs.
Methods
The authors propose a model-agnostic continual training framework (evaluated using the state-of-the-art RE-NET architecture) built on two core strategies:
- Decayed Elastic Weight Consolidation (DEWC): Standard EWC calculates parameter importance using the Fisher Information Matrix, penalizing changes to weights crucial for past tasks. The authors adapt this for streaming data by introducing an exponentially decaying hyperparameter ($\alpha$). This prioritizes protecting recent tasks over older ones, acknowledging that temporal dependencies naturally drift.
- Clustering-Based Experience Replay (CER): Instead of keeping a massive history or uniformly sampling past events, the framework uses the HDBSCAN algorithm to cluster past event representations (specifically the concatenated embeddings of the subject and object entities). It then selects exemplar points closest to the cluster centroids to populate a fixed-size memory buffer. This ensures the buffer maintains structural diversity even when memory is highly constrained.
Datasets
The authors constructed three incremental benchmarks from two widely used event-centric TKG datasets:
- ICEWS-M: 13 monthly snapshots from the 2015 Integrated Crisis Early Warning System dataset.
- ICEWS-2M: 13 two-month snapshots spanning 2015–2017.
- GDELT: 21 three-day snapshots from a 20-day window of the Global Database of Events, Language, and Tone.
Key Insights and Ideas
- Time-Decay is Crucial for Regularization: Treating all historical time steps with equal importance hurts the model's ability to learn new patterns. Allowing older constraints to decay gracefully gives the model the flexibility it needs to adapt to non-stationary data streams.
- Uniform Sampling Misses the Graph Structure: Randomly sampling past events for a replay buffer can easily drop rare but structurally vital entity interactions. Clustering guarantees that distinct "subspaces" of the event landscape remain represented in memory.
- The Memory Buffer Sweet Spot: The benefit of clustering-based replay over random replay follows an inverted U-shape relative to buffer size. If the buffer is too small, neither method helps; if it is too large, random sampling naturally captures the distribution. Clustering shines brightest when memory is sufficient but constrained.
Key Results
The proposed framework (Full) significantly outperformed standard fine-tuning (FT), random experience replay (ER), standard EWC, and the state-of-the-art baseline TIE across all benchmarks.
- ICEWS-M Results: The Full model achieved an average Mean Reciprocal Rank (MRR) of 0.280, compared to 0.239 for simple fine-tuning and 0.235 for TIE.
- Balancing Act: While the model experiences a slight dip in performance on the immediate current task compared to naive fine-tuning, it maintains a vastly higher average performance across the entire historical timeline, successfully striking a balance between plasticity and stability.
Limitations and Future Work
- Fixed Entity/Relation Vocabulary: The framework is currently non-inductive; it assumes all entities and relations are known at the start and cannot handle entirely new entities or relations appearing in later streams.
- Hyperparameter Optimization: Tuning parameters like buffer size and regularization coefficients currently depends on knowing the total number of time steps in advance, which is impractical for open-ended streaming data.
- The Upper-Bound Gap: Although the model beats other continual learning baselines, a noticeable performance gap remains between this framework and the upper bound (UPP) achieved by retraining on all data from scratch.
Summary updated