Introduction
Knowledge Graphs (KGs) are essential for modern AI applications, yet high-quality reasoning typically requires Knowledge Graph Embeddings (KGEs) in high dimensions (e.g., 512 or 1024). These models impose significant storage and computational burdens, making them unsuitable for real-time or edge-device applications. While low-dimensional embeddings offer efficiency, training them from scratch often leads to a substantial drop in performance.
To address this, the DualDE (Dually Distilling Knowledge Graph Embedding) framework is proposed. DualDE compresses high-dimensional "teacher" models into low-dimensional "student" models, achieving significant parameter reduction and inference speedups while maintaining competitive accuracy.
Methodology
DualDE addresses the limitations of traditional knowledge distillation (KD) in KGEs, such as teacher fallibility and the static nature of one-way learning. The framework introduces two core innovations: the Soft Label Evaluation Mechanism (SEM) and a two-stage distillation process.
Soft Label Evaluation Mechanism (SEM)
In standard KD, students often blindly mimic the teacher's soft labels, potentially inheriting errors. SEM adaptively weights these soft labels against ground truth "hard labels." If a teacher provides an unreliable score for a specific triple, SEM reduces the weight of that soft label, prompting the student to rely more on the ground truth.
Two-Stage Distillation
Unlike static distillation, DualDE employs a dynamic approach:
- Stage 1: The teacher is frozen. The student learns to mimic the teacher's output and the geometric structure of the embeddings, including angles and length ratios between entity vectors.
- Stage 2: The teacher is unfrozen and co-optimized with the student. This allows the teacher to adjust its distribution to become more "teachable" based on the student's current state.
Experimental Evaluation
The framework was evaluated on the WN18RR and FB15k-237 benchmarks across four architectures: TransE, SimplE, ComplEx, and RotatE.
Performance and Efficiency
DualDE achieved parameter reductions of 7x to 15x and inference speedups of 2x to 6x. Notably, on WN18RR with the RotatE model, a 32-dimensional student was nearly 8 times faster than its 512-dimensional teacher. In some instances, distilled students even outperformed their high-dimensional teachers; for example, a 64-dimensional ComplEx student achieved an MRR of 0.303 on FB15k-237, surpassing the teacher's 0.298.
Discussion and Insights
The success of DualDE highlights the importance of geometric mimicry, where students capture the underlying logic of relations by learning the structure of the embedding space rather than just final scores. Furthermore, the "teachable teacher" concept suggests that distillation is most effective as a bidirectional process. Analysis indicates an "8x sweet spot" for compression; a gap larger than 8x between teacher and student dimensions often becomes too wide for effective knowledge transfer.
Conclusion
DualDE provides a robust blueprint for deploying state-of-the-art KG reasoning on resource-constrained hardware. Future work may explore integrating multi-modal data, such as text and images, and improving performance in extremely low-dimensional spaces (e.g., 16-dim) where relational logic preservation remains challenging.
Summary updated