Improving Knowledge Graph Embedding via Iterative Self-Semantic Knowledge Distillation

Zhehui Zhou, Defang Chen, Can Wang, Yan Feng, Chun ChenarXiv 2022 · DOI

TL;DR

This paper introduces Confidence-aware Self-Semantic Distillation (CSD), a novel method to improve low-dimensional Knowledge Graph Embedding (KGE) models. CSD allows a KGE model to learn from its own past iterations, extracting and filtering reliable semantic knowledge to enhance its expressiveness without needing a separate high-dimensional teacher model. This approach significantly boosts performance on link prediction tasks while maintaining computational efficiency.

What Problem Does This Paper Address?

Knowledge Graphs (KGs) are powerful tools for representing real-world facts, with applications ranging from question answering to recommendation systems. Knowledge Graph Embedding (KGE) is a crucial task that maps entities and relations in KGs to continuous vector spaces. While high-dimensional KGE models often achieve better performance, they demand substantial computational resources and memory, making them impractical for many real-world deployments. Conversely, low-dimensional KGE models are more efficient but suffer from limited expressiveness, leading to a significant drop in performance. Existing methods to bridge this gap, like knowledge distillation or non-Euclidean embeddings, either require pre-trained high-dimensional models or involve complex operations, adding to the computational burden. This paper addresses the challenge of improving low-dimensional KGE performance without incurring significant additional costs.

Methods

The core of this work is the Confidence-aware Self-Semantic Distillation (CSD) strategy. Unlike traditional knowledge distillation, CSD is a self-distillation approach, meaning the model learns from itself. Here's how it works:

  • Iterative Teacher-Student Roles: During training, the KGE model alternates between acting as a "teacher" and a "student." In one iteration (say, iteration l-1), the model generates embeddings. In the next iteration (l), these embeddings are used as knowledge to guide the learning of the current model.
  • Semantic Extraction Block: A key innovation is the semantic extraction block. This block is designed to filter "reliable" knowledge from the embeddings. It works by estimating the confidence of each entity's embedding. Embeddings that are further away from the average embedding (the "center") are considered less reliable and are down-weighted. This is crucial because KGs can be noisy, and directly distilling all information might be detrimental.
  • Confidence Estimation: Confidence is calculated by measuring the distance between an entity's embedding and the average embedding of all entities. A matrix-projected distance is used, and the resulting confidence scores are normalized using a softmax function.
  • Distillation Loss: The extracted semantic information from the previous iteration is used to supervise the current model's learning via a Huber loss. This encourages the student model to progressively incorporate and accumulate semantic knowledge.
  • Score Distillation: In addition to embedding distillation, CSD also distills knowledge from the model's prediction scores (e.g., the validity of a triplet), using another Huber loss.
  • Overall Loss: The final loss function is a weighted combination of the standard KGE loss (e.g., Binary Cross-Entropy), the semantic extraction loss, and the score distillation loss. The weights (β and α) are hyperparameters that balance these contributions.
  • Model-Agnostic: CSD is designed to be compatible with various KGE architectures, making it a versatile enhancement.

Datasets

The paper evaluates CSD on three standard benchmark datasets for link prediction:

  • YAGO3-10: A large-scale knowledge base.
  • WN18RR: A subset of WordNet, specifically designed to avoid data leakage issues present in the original WN18.
  • FB15K-237: A subset of Freebase, also curated to address data leakage.

The paper notes that FB15k and WN18 were not used due to known data leakage issues.

Key Insights and Ideas

  • Self-Distillation for KGE is Challenging: The paper highlights that directly applying existing self-distillation methods (often designed for classification) to KGE is problematic. KGE's objective (link prediction) and the interconnected nature of KG data differ significantly from classification tasks, making direct logit distillation ineffective or even detrimental.
  • Confidence is Key to Reliable Self-Learning: The core insight is that not all learned information is equally valuable. By introducing a confidence estimation mechanism, CSD can effectively filter out potentially noisy or outlier embeddings, ensuring that the model learns from reliable past knowledge.
  • Low-Dimensional KGE Can Be Powerful: CSD demonstrates that with the right techniques, low-dimensional KGE models can achieve performance levels comparable to, or even exceeding, much larger models, making KGE more practical for real-world applications.
  • Model-Agnosticism is a Major Advantage: The ability to integrate CSD with existing KGE models without architectural changes makes it a highly practical and broadly applicable solution.

Key Results

  • Significant Performance Gains: CSD consistently improved the performance of various KGE backbones (including DistMult, ComplEx, TuckER, LowFER, GIE, and CompoundE) across all tested datasets and embedding dimensions.
  • Outperforming Baselines: CSD-based models significantly outperformed their original baseline counterparts. For instance, on WN18RR with 25 dimensions, LowFER combined with CSD showed improvements of up to 279.4% in MRR.
  • Competitive with Other Distillation Methods: CSD surpassed other self-distillation methods like CS-KD and LWR, which struggled with KGE tasks. It also showed advantages over methods that use a teacher model.
  • Efficiency: While CSD increases training time slightly due to the iterative process, the inference speed remains comparable to the baseline models because the semantic extraction block is not used during inference.
  • Robustness Across Dimensions: CSD proved effective across a wide range of embedding dimensions, from 25 to 250, consistently boosting performance, especially in low-dimensional settings.

Limitations and Future Work

  • Increased Training Time: The paper acknowledges that CSD leads to a longer training duration compared to the baseline models. This is a trade-off for improved performance.
  • Hyperparameter Sensitivity: The performance of CSD is shown to be dependent on hyperparameters like β and λ, suggesting that careful tuning is required for optimal results on different datasets.
  • Future Work: The authors suggest that further research could explore more sophisticated semantic extraction mechanisms or investigate how CSD can be applied to other graph-based learning tasks beyond KGE.

Summary updated

BibTeX
@misc{zhou2022improving,
  author = {Zhehui Zhou and Defang Chen and Can Wang and Yan Feng and Chun Chen},
  title = {{Improving Knowledge Graph Embedding via Iterative Self-Semantic Knowledge Distillation}},
  year = {2022},
  eprint = {2206.02963},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.02963},
}
Figure