Self-Distillation with Meta Learning for Knowledge Graph Completion

Yunshui Li, Junhao Liu, Min Yang, Chengming Li

Abstract

Knowledge Graph Completion (KGC) is essential for modern AI, yet current state-of-the-art models often rely on massive embedding sizes that hinder deployment and struggle with rare "long-tail" relations. We present MetaSD (Self-Distillation with Meta Learning), a novel framework that combines dynamic network pruning with a meta-learning-based teacher-student co-evolution strategy. MetaSD produces models that are up to 10x smaller than standard baselines while achieving superior accuracy, particularly on sparse, long-tail data.

Introduction

Knowledge Graphs (KGs) like Freebase and WordNet are foundational for question answering and recommendation systems but are inherently incomplete. Knowledge Graph Embedding (KGE) methods predict missing links by mapping entities and relations into low-dimensional spaces. While increasing embedding dimensionality typically improves performance, it introduces significant memory overhead and leads to poor generalization on infrequent relations. MetaSD addresses these challenges by leveraging pruning not just for compression, but as a mechanism to identify hard-to-learn samples, coupled with a meta-learning objective that optimizes the knowledge transfer process.

Methodology

MetaSD employs a "teacher-student" co-evolution strategy consisting of two primary components:

Dynamic Network Pruning

Unlike traditional post-training pruning, MetaSD prunes the teacher model at the start of every epoch. This magnitude-based, adaptive pruning creates a "student" model that is naturally less capable of memorizing common patterns, making it more sensitive to difficult samples in the long tail.

Meta Self-Distillation

The framework uses a bi-level optimization process to turn distillation into a dynamic interaction.

  1. Virtual-Train: The student model is updated based on the teacher's current parameters.
  2. Meta-Train: The teacher's performance is evaluated based on how well the student performs on a held-out "quiz set." The teacher then adjusts its own parameters to provide more effective guidance.
  3. Actual-Train: Both models undergo mutual updates, ensuring the teacher adapts its knowledge transfer to the student's evolving state.
Overview of the MetaSD framework showing (a) self-distillation via meta learning and (b) mutual update processes.

Experimental Results

We evaluated MetaSD on the WN18RR and FB15k-237 benchmarks. The results demonstrate that MetaSD significantly outperforms much larger models while maintaining a tiny memory footprint.

Performance and Compression

On the FB15k-237 dataset, MetaSD achieved a Mean Reciprocal Rank (MRR) of 0.391 using only 6 million parameters. In comparison, the RP baseline requires 60 million parameters to reach an MRR of 0.388. This represents a 10x reduction in model size alongside a performance gain.

Comparison of MetaSD against various KGE baselines on FB15k-237 and WN18RR datasets.

Long-Tail Robustness

Analysis of rare relations (those with fewer than 1,000 training instances) shows that MetaSD's meta-learning approach effectively mitigates data sparsity. On these long-tail subsets, MetaSD achieved an MRR of 0.471, outperforming the next best baseline (RP) at 0.462, proving that the meta-learning approach effectively tackles the data sparsity problem.

Conclusion and Future Work

MetaSD demonstrates that massive parameter counts are not a prerequisite for high-quality Knowledge Graph Completion. By intelligently pruning and using meta-learning to refine the distillation process, we can create efficient models that generalize better to rare relations. Future research will focus on extending this framework to handle multi-hop reasoning and high-cardinality relations where a single relation maps to many valid entities.

Summary updated

BibTeX
@inproceedings{li2022self,
  author = {Yunshui Li and Junhao Liu and Min Yang and Chengming Li},
  title = {{Self-Distillation with Meta Learning for Knowledge Graph Completion}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.149},
}
Figure