Learning to Evolve: Bayesian-Guided Continual Knowledge Graph Embedding

LinYu Li, Zhi Jin, Yuanpeng He, Dongming Jin, Yichi Zhang, Haoran Duan, Nyima TashiarXiv 2025 · DOI

Introduction: The Challenge of Dynamic Knowledge Graphs

Real-world Knowledge Graphs (KGs) are inherently dynamic, with new entities, events, and relationships emerging constantly. Traditional Knowledge Graph Embedding (KGE) models are static; updating them to reflect new information typically requires retraining the entire graph from scratch. For massive KGs, this process is computationally prohibitive.

Continual Knowledge Graph Embedding (CKGE) aims to update models incrementally. However, CKGE faces two major hurdles: catastrophic forgetting, where learning new facts overwrites existing representations, and semantic drift, where entity embeddings drift aimlessly in latent space, destroying the geometric structure essential for KGE performance.

Comparison of Temporal and Continual Knowledge Graphs.

The BAKE Framework

To address these challenges, the authors introduce BAKE (Bayesian-Guided Continual Knowledge Graph Embedding). BAKE treats knowledge updates as a sequential Bayesian inference problem and incorporates a clustering mechanism to maintain semantic stability.

Overview of the BAKE framework, illustrating the integration of Bayesian-guided evolution and continual clustering.

Bayesian-Guided Knowledge Evolution

Instead of treating embedding parameters as fixed points, BAKE models them as Gaussian distributions characterized by a mean and precision (inverse variance). CKGE is framed as sequential Bayesian inference: the posterior distribution from snapshot $t-1$ serves as the prior for snapshot $t$. A KL-divergence penalty protects dimensions with high certainty (high precision) from significant updates, while allowing more uncertain dimensions to adapt to new data. This principled approach balances plasticity (learning new facts) and stability (retaining old ones).

Continual Clustering

To combat semantic drift, BAKE employs a sequential contrastive clustering method. Since the entity set is constantly growing, BAKE uses an "importance score" based on network centrality to sort entities and assign them to fixed-size clusters. A contrastive loss pulls entities toward their cluster centroids—which act as semantic anchors—and pushes them away from others. These centroids are updated smoothly via momentum across snapshots, ensuring long-term structural consistency.

Experimental Evaluation

The authors evaluated BAKE across 8 diverse CKGE benchmarks, including datasets simulating different growth drivers (entities vs. relations) and varying growth speeds (accelerating vs. decelerating).

Key Results

  • State-of-the-Art Performance: BAKE consistently ranked first in Mean Reciprocal Rank (MRR) and Hits@10 across most datasets, outperforming recent baselines like IncDE and ETT-CKGE.
  • Ablation Studies: Removing the Bayesian component led to a ~7% drop in MRR, while removing Continual Clustering caused an ~11% drop in Hits@1. This confirms that both components are essential for accuracy and semantic consistency.
  • Forward Transfer (FWT): BAKE demonstrated superior FWT scores, indicating that retained knowledge effectively aids the learning of future snapshots, particularly during dramatic structural shifts.

Conclusion and Future Work

BAKE provides a mathematically grounded framework for evolving knowledge embeddings. By quantifying uncertainty through Bayesian inference and anchoring semantics through continual clustering, it effectively mitigates catastrophic forgetting and semantic drift.

While BAKE currently uses TransE as its base scorer, its Bayesian update mechanism is model-agnostic. Future work could involve integrating BAKE with more expressive scorers like RotatE or QuatE to better handle complex relational patterns in dynamic environments.

Summary updated

BibTeX
@misc{li2025learning,
  author = {LinYu Li and Zhi Jin and Yuanpeng He and Dongming Jin and Yichi Zhang and Haoran Duan and Nyima Tashi},
  title = {{Learning to Evolve: Bayesian-Guided Continual Knowledge Graph Embedding}},
  year = {2025},
  eprint = {2508.02426},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.02426},
}
Figure