Introduction
Knowledge Graph Embeddings (KGEs) are fundamental to modern link prediction and recommendation systems. However, they face a significant "Goldilocks" problem: high-dimensional models (e.g., 512 dimensions) provide high accuracy but are computationally expensive and memory-intensive, making them impractical for edge devices or real-time applications. Conversely, low-dimensional models (e.g., 32 dimensions) are efficient but suffer from a substantial drop in performance.
Standard Knowledge Distillation (KD), which involves a large "teacher" model training a smaller "student" model, often struggles to bridge this "dimension gap." If the teacher is too complex, the student cannot effectively mimic its output distribution. Furthermore, existing KGE distillation methods are often slower than training from scratch.
The IterDE Framework
To address these challenges, the authors propose IterDE, an iterative distillation framework designed to compress KGE models efficiently while maintaining high performance.
IterDE introduces two core innovations:
- Iterative Distillation: Instead of a single-step jump from high to low dimensions (e.g., 512 to 32), IterDE reduces dimensions in stages (e.g., 512 → 256 → 128 → 64 → 32). Each step uses the student from the previous round as the teacher for the next, creating a "curriculum" that smooths knowledge transfer.
- Soft-label Weighting Dynamic Adjustment (SWDA): This mechanism balances the "hard label" loss (ground truth) and "soft label" loss (teacher's advice). SWDA dynamically increases the weight of the teacher's soft labels as training progresses, allowing the student to first establish a general direction before fine-tuning its performance to match the teacher.
To optimize efficiency, IterDE fixes the teacher's parameters during each step and utilizes Huber loss, which has proven more effective than traditional KL-divergence for KGE scoring functions.
Key Insights: The "Good Teacher" Paradox
A critical finding of this work is the "Good Teacher" paradox: increasing a teacher's dimensions beyond a certain threshold can actually degrade the performance of a small student if distilled directly. For instance, a 1024-dimensional teacher may produce a less effective 32-dimensional student than a 256-dimensional teacher would. IterDE's iterative approach bypasses this by ensuring the student is never overwhelmed by a teacher far beyond its capacity.
Experimental Results
IterDE was evaluated on standard benchmarks (FB15K-237 and WN18RR) across four popular KGE architectures: TransE, ComplEx, SimplE, and RotatE.
The results demonstrate significant improvements:
- Performance Gains: On FB15K-237 with TransE, the 32-dimensional student's Mean Reciprocal Rank (MRR) improved by 45% compared to a non-distilled baseline.
- Efficiency: IterDE reduced training time by an average of 50% compared to previous state-of-the-art methods like DualDE. For the RotatE model, training time was reduced by 63%.
- Accuracy Retention: 32-dimensional students achieved 93-98% of the performance of their 512-dimensional teachers, despite the massive reduction in size.
Conclusion and Future Work
IterDE provides a robust and efficient solution for compressing KGE models. By leveraging iterative steps and dynamic loss weighting, it bridges the dimension gap that hampers traditional distillation. While highly effective for traditional lookup-table KGEs, future work will explore applying this framework to hyperbolic KGEs and Transformer-based models, as well as automating the selection of optimal compression ratios.
Summary updated