[Paper Review] DualDE: Dually Distilling Knowledge Graph Embedding for Faster and Cheaper Reasoning
DualDE proposes a knowledge distillation method to compress high-dimensional knowledge graph embeddings (KGEs) into low-dimensional student models for faster, cheaper reasoning. It uses a soft label evaluation mechanism to adaptively weight teacher-provided scores and a two-stage distillation process to enhance student learning, achieving 7×–15× parameter reduction and 2×–6× speedup with minimal performance loss on benchmark datasets.
Knowledge Graph Embedding (KGE) is a popular method for KG reasoning and training KGEs with higher dimension are usually preferred since they have better reasoning capability. However, high-dimensional KGEs pose huge challenges to storage and computing resources and are not suitable for resource-limited or time-constrained applications, for which faster and cheaper reasoning is necessary. To address this problem, we propose DualDE, a knowledge distillation method to build low-dimensional student KGE from pre-trained high-dimensional teacher KGE. DualDE considers the dual-influence between the teacher and the student. In DualDE, we propose a soft label evaluation mechanism to adaptively assign different soft label and hard label weights to different triples, and a two-stage distillation approach to improve the student's acceptance of the teacher. Our DualDE is general enough to be applied to various KGEs. Experimental results show that our method can successfully reduce the embedding parameters of a high-dimensional KGE by 7 times - 15 times and increase the inference speed by 2 times - 6 times while retaining a high performance. We also experimentally prove the effectiveness of our soft label evaluation mechanism and two-stage distillation approach via ablation study.
Motivation & Objective
- To address the high storage and computational cost of high-dimensional KGEs in resource-constrained environments.
- To enable fast and low-cost reasoning without sacrificing reasoning performance.
- To develop a generalizable distillation method that transfers knowledge from high-dimensional teacher KGEs to low-dimensional student KGEs.
- To improve student model performance by accounting for the quality of teacher-provided soft labels.
- To enable mutual adaptation between teacher and student through a two-stage distillation process.
Proposed method
- Introduces a soft label evaluation mechanism that assesses the reliability of teacher model predictions for each triple and assigns adaptive weights to soft and hard labels.
- Employs a two-stage distillation approach: first, train the student using soft and hard labels; second, jointly optimize teacher and student to enable mutual adaptation.
- Uses the teacher's output scores as soft labels, with confidence-weighted supervision to reduce noise from poorly predicted triples.
- Applies knowledge distillation with temperature scaling to improve student generalization and knowledge transfer.
- Supports various KGEs (e.g., TransE, ComplEx, RotatE) by being architecture-agnostic and generalizable across models.
- Utilizes a distillation loss combining cross-entropy over soft labels and ground-truth labels, with dynamic weighting based on label quality.
Experimental results
Research questions
- RQ1Can knowledge distillation effectively compress high-dimensional KGEs into low-dimensional models while preserving reasoning performance?
- RQ2How can the quality of teacher-provided soft labels be assessed to avoid negative knowledge transfer from unreliable predictions?
- RQ3Does a two-stage distillation process, involving initial student training followed by joint optimization, improve student performance compared to single-stage distillation?
- RQ4To what extent does adaptive soft label weighting improve performance on hard-to-predict triples?
- RQ5Can the proposed method achieve significant speedups and parameter reductions across diverse KGE architectures?
Key findings
- DualDE reduces KGE embedding parameters by 7× to 15× while maintaining high reasoning performance on benchmark datasets like WN18RR.
- The method increases inference speed by 2× to 6×, making it suitable for real-time or edge deployment.
- The soft label evaluation mechanism improves performance by 3.7% on average in MRR and 2.8% in Hit@10 for 64-dimensional students, and by 7.9% and 5.4% for 32-dimensional students.
- Removing the first stage of distillation (S1) leads to performance drops of up to 21.4% in MRR for 32-dimensional SimplE, showing its critical role in stable training.
- The second-stage joint optimization (S2) improves MRR by 2.4% on average for 64D students and 3.8% for 32D students, confirming its effectiveness in mutual adaptation.
- Ablation studies confirm that both the soft label evaluation and two-stage distillation are essential for optimal performance, with significant gains in accuracy and robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.