TL;DR
This paper introduces DualDE, a novel knowledge distillation method to create smaller, faster knowledge graph embeddings (KGEs) from larger, pre-trained ones. By considering the "dual-influence" between a teacher and student model, DualDE achieves significant reductions in model size and inference time while maintaining high performance, making KGs more accessible for resource-constrained applications.
What Problem Does This Paper Address?
Knowledge Graphs (KGs) are powerful tools for various AI tasks, but their reasoning capabilities are often tied to high-dimensional embeddings. While these embeddings offer better performance, they demand substantial computational resources for storage and inference, rendering them impractical for edge devices or time-sensitive applications. Directly training KGEs with smaller dimensions typically results in a significant performance drop. This paper addresses the challenge of obtaining compact, efficient KGEs that retain the accuracy of their larger counterparts, enabling faster and cheaper KG reasoning.
Methods
The core of DualDE is a knowledge distillation framework that leverages a pre-trained high-dimensional KGE (teacher) to train a low-dimensional KGE (student). What sets DualDE apart is its consideration of the "dual-influence" between the teacher and student:
- Teacher's Influence on Student: Traditional knowledge distillation often treats all training samples equally. DualDE introduces a soft label evaluation mechanism that adaptively assigns different weights to soft and hard labels for each triple. This mechanism assesses the "quality" of the teacher's predictions, down-weighting unreliable scores for difficult triples to prevent negative learning.
- Student's Influence on Teacher: This is a less explored aspect in distillation. DualDE proposes a two-stage distillation approach. In the first stage, the student learns from a fixed teacher. In the second stage, the teacher is unfrozen and also trained to adapt to the student's output. This "reverse learning" makes the teacher more suitable for the student, improving the overall distillation effectiveness.
The overall loss function combines losses from both the student and teacher, with a weighting factor that changes between the two stages.
Datasets
The paper evaluates DualDE on two standard knowledge graph completion benchmark datasets:
- WN18RR: A subset of WordNet.
- FB15k-237: A subset of Freebase.
These datasets are commonly used for evaluating KGE models. No new benchmarks were introduced.
Key Insights and Ideas
- The "Dual-Influence" is Key: The paper argues that effective distillation requires considering how both the teacher influences the student and how the student can, in turn, influence the teacher to become more compatible.
- Not All Teacher Signals Are Equal: The soft label evaluation mechanism highlights that a teacher's confidence in its predictions varies. Adapting to this variation is crucial for successful distillation, especially for challenging triples.
- Teacher Adaptation Improves Student Learning: The two-stage distillation, where the teacher is fine-tuned based on the student's progress, is shown to be more effective than a static teacher, leading to better student performance.
- Compression Ratio Matters: While higher compression is desirable, the paper observes that excessively high compression ratios (e.g., > 8x) can sometimes lead to worse student performance, suggesting a trade-off between compression and knowledge transfer.
Key Results
DualDE demonstrates significant improvements in both model size and inference speed:
- Model Size Reduction: DualDE can reduce embedding parameters by 7x-15x (e.g., from 512-dimensional to 32-dimensional teachers).
- Inference Speed Increase: The distilled low-dimensional KGEs achieve inference speeds 2x-6x faster than their high-dimensional teacher counterparts.
- Performance Retention: The distilled students perform comparably to the original high-dimensional teachers, often retaining over 90% of their performance, and significantly outperform models trained directly at the lower dimension.
- Ablation Studies: Both the soft label evaluation mechanism and the two-stage distillation approach were shown to be crucial for DualDE's success, with their removal leading to performance degradation.
Limitations and Future Work
- Limitations:
- The paper notes that extremely high compression ratios (beyond 8x) might not always yield optimal results, suggesting a practical limit to the compression achievable while maintaining performance.
- The two-stage distillation, while effective, can be unstable if the second stage is used without the first, indicating the necessity of the initial student training phase.
- Future Work:
- The authors propose extending KGE distillation to multi-modal data, incorporating information beyond just the graph structure (e.g., text or image data associated with entities) to further enhance low-dimensional KGE performance.
Summary updated