Introduction
Knowledge Graph Embedding (KGE) is a fundamental task in representing entities and relations as low-dimensional vectors. While increasing vector dimensionality typically improves performance, it also leads to significant memory and computational overhead. Standard Knowledge Distillation (KD) addresses this by training a small "student" model to mimic a large, pre-trained "teacher." However, the cost of training the teacher model remains a bottleneck.
This paper introduces SKDE (Self-Knowledge Distillation for Knowledge Graph Embedding), a framework that enables models to "teach themselves" iteratively. By leveraging self-distillation alongside novel mechanisms for error correction and dynamic scaling, SKDE achieves superior performance and efficiency without the need for an external teacher.
The SKDE Framework
The SKDE framework addresses two primary challenges in self-distillation: the propagation of early-training errors and the loss of discriminative information due to fixed softening temperatures.
The framework consists of three core components:
- Self-Knowledge Distillation (SKD): Predictions from the previous training iteration serve as "soft targets" for the current iteration, providing a regularization effect based on the model's own evolving logic.
- Knowledge Adjustment (KA): To prevent the model from learning its own mistakes, KA validates the "teacher" prediction against ground truth labels. If the top prediction is incorrect, its probability is swapped with that of the ground truth entity, ensuring the distillation signal remains accurate while preserving "dark knowledge."
- Dynamic Temperature Distillation (DTD): Instead of a global temperature, DTD applies sample-wise temperature scaling. Lower temperatures are used for confusing samples to sharpen the distribution and force discriminative learning, while higher temperatures are used for easy samples to reveal subtle inter-class relationships.
Experimental Setup
The effectiveness of SKDE was evaluated on two benchmark datasets:
- WN18RR: A subset of WordNet focusing on lexical relations between English words.
- FB15k-237: A subset of Freebase containing real-world facts, specifically filtered to remove simple inverse relation leaks.
The framework was integrated into four diverse and popular KGE architectures: DistMult, ComplEx, ConvE, and AcrE.
Key Results and Insights
SKDE consistently improves performance across all tested architectures and metrics. Notably, the framework provides these gains as a pure training-time optimization, requiring no additional parameters during inference.
Key findings include:
- Significant Performance Gains: The framework significantly outperformed base models. For instance, on the FB15k-237 dataset, the ComplEx model's Mean Reciprocal Rank (MRR) jumped from 0.247 to 0.349.
- Efficiency and Lightweight Models: "Lightweight" (LW) versions of SKDE using only 100 dimensions frequently outperformed original baseline models that used 200 dimensions, demonstrating that SKDE can effectively compress knowledge into smaller vectors.
- Reduced Training Time: By enabling lower-dimensional embeddings to reach high performance, the authors reduced average training times by approximately 4% to 12%, depending on the specific model configuration.
Conclusion and Future Work
SKDE demonstrates that self-distillation, when coupled with intelligent adjustment and dynamic scaling, is a powerful tool for Knowledge Graph Embedding. It effectively bridges the gap between model size and performance. Future research will explore extending SKDE to newer Transformer-based KGEs and Graph Neural Networks (GNNs), as well as automating hyperparameter tuning for diverse knowledge graph structures.
Summary updated