Towards Continual Knowledge Graph Embedding via Incremental Distillation

Jiajun Liu, Wenjun Ke, Peng Wang, Ziyu Shang, Jinhua Gao, Guozheng Li, Ke Ji, Yanhe Liu

Abstract

Knowledge Graphs (KGs) are dynamic entities that evolve over time. Traditional Knowledge Graph Embedding (KGE) methods struggle with this evolution, often requiring full retraining to incorporate new data. Continual Knowledge Graph Embedding (CKGE) aims to update embeddings incrementally but often suffers from "catastrophic forgetting." This paper introduces IncDE (Incremental Distillation), a graph-aware framework that leverages the inherent structural properties of KGs to maintain stability while learning new information. By employing hierarchical ordering and dynamic distillation weights based on node centrality, IncDE significantly outperforms existing state-of-the-art methods.

1. Introduction

Large-scale Knowledge Graphs like DBpedia and Wikidata are constantly expanding. For instance, Wikidata adds millions of new entities and relations annually. Updating the embeddings for these KGs is a significant challenge. Retraining from scratch is computationally expensive and time-consuming. Conversely, naive incremental updates lead to "catastrophic forgetting," where the model loses its ability to represent previously learned facts as it adjusts to new data.

Existing CKGE approaches often treat KGs as flat collections of triples, ignoring the rich topological information inherent in graph structures. This leads to two primary issues: a random learning order that neglects the logical flow from known to unknown entities, and a uniform preservation strategy that fails to prioritize structurally critical "hub" nodes.

2. The IncDE Framework

IncDE addresses these challenges by making the CKGE process "graph-aware." The framework consists of three main pillars designed to respect and utilize the graph's topology.

Overview of the IncDE framework, illustrating the hierarchical ordering and incremental distillation processes.

2.1 Hierarchical Ordering

Instead of processing new triples in random batches, IncDE implements a curriculum based on graph topology.

  • Inter-hierarchical Ordering: Using Breadth-First Search (BFS) starting from the existing KG ($G_{i-1}$), new triples are grouped into layers based on their distance from known data. This ensures the model learns "near" information before venturing further into the unknown.
  • Intra-hierarchical Ordering: Within each layer, triples are ranked using node centrality and betweenness centrality. This ensures that "bridge" entities—those most influential to the graph's connectivity—are prioritized and learned with higher precision.

2.2 Incremental Distillation

To preserve prior knowledge, IncDE distills entity representations from the previous time step into the current one. Crucially, it employs dynamic distillation weights. Entities that are more central to the graph's structure receive higher weights. This effectively signals to the model that these nodes are structural anchors and their embeddings should remain relatively stable to maintain the integrity of the global embedding space.

2.3 Two-Stage Training Strategy

To mitigate the noise introduced by newly initialized embeddings, IncDE utilizes a two-stage approach. In the first stage, the model freezes the embeddings of the old KG and trains only the new components. This prevents under-trained, noisy new embeddings from corrupting the stable representations of existing entities. In the second stage, the entire graph is unfrozen for joint fine-tuning and integration.

3. Experimental Evaluation

The authors evaluated IncDE against several state-of-the-art baselines, including LKGE and PNN, across seven datasets. These include standard benchmarks (ENTITY, RELATION, FACT, HYBRID) and three new datasets designed to simulate different growth patterns: GraphEqual (constant growth), GraphHigher (accelerating growth), and GraphLower (decelerating growth). These new benchmarks provide a more robust stress test for real-world KG evolution.

4. Results and Key Insights

IncDE consistently outperformed state-of-the-art methods across all tested scenarios.

Mean Reciprocal Rank (MRR) results across various datasets and time steps, demonstrating IncDE's superior performance in maintaining knowledge.

4.1 Performance Gains

IncDE achieved Mean Reciprocal Rank (MRR) improvements ranging from 2.9% to 10.6% over simple fine-tuning. Ablation studies further revealed that the incremental distillation mechanism alone contributed significantly to performance, with MRR increases of up to 6.5% compared to uniform distillation methods.

4.2 Structural Stability

The research highlights that the graph's structure itself provides a natural learning order. Learning an entity that is multiple hops away from the "known" graph is inherently less stable than learning one directly connected to it. By linking distillation to centrality, IncDE mimics a "memory hierarchy," prioritizing the "backbone" of the KG.

4.3 Case Study

In a practical test predicting the "major field of study" for Arizona State University, IncDE maintained the correct prediction ("Computer Science") across multiple time steps. In contrast, competing models eventually "forgot" the correct relation or pushed it out of the top candidate list as new, unrelated data was introduced.

5. Conclusion and Future Work

IncDE represents a significant step forward in Continual Knowledge Graph Embedding by integrating structural awareness into the learning process. While it excels at handling growing KGs, the authors note that future work should address knowledge deletion (obsolete facts) and explore strategies for heterogeneous graphs where different entity types might require specialized distillation approaches.

Summary updated

BibTeX
@inproceedings{liu2024towards,
  author = {Jiajun Liu and Wenjun Ke and Peng Wang and Ziyu Shang and Jinhua Gao and Guozheng Li and Ke Ji and Yanhe Liu},
  title = {{Towards Continual Knowledge Graph Embedding via Incremental Distillation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28722},
}
Figure