Preprint
Knowledge Graphs

Relational knowledge distillation

January 1, 2019

0

Citations

0

Influential Citations

Venue

2019

Year

Abstract

Abstract Knowledge distillation aims at transferring knowledge acquired in one model (a teacher) to another model (a student) that is typically smaller. Previous approaches can be …

Analysis

Why This Paper Matters

Knowledge distillation has become a cornerstone technique for deploying large models in resource-constrained environments. Traditional methods focus on mimicking the teacher's output probabilities or intermediate features, but they ignore the rich structural information embedded in the relationships between data points. This paper addresses that gap by introducing relational knowledge distillation, which captures how the teacher organizes the data manifold. This is particularly important for tasks where the relative arrangement of examples (e.g., in knowledge graphs or metric learning) carries crucial semantic information.

The significance lies in its generality: the relational loss can be applied to any model that produces embeddings, making it compatible with a wide range of architectures and domains. By preserving the teacher's relational structure, the student can learn more robust and transferable representations, which is a key goal in model compression and knowledge transfer.

Technical Contributions

  • Relational loss function: Defines a distance or similarity matrix over a batch of samples in the teacher's embedding space and minimizes the Frobenius norm between teacher and student matrices.
  • Flexible relation types: Supports various relational measures (e.g., Euclidean distance, cosine similarity, or learned metrics) to suit different tasks.
  • Theoretical justification: Provides a bound on the generalization error of the student in terms of the relational discrepancy, linking the method to existing theory.
  • Empirical validation: Tested on image classification (CIFAR-100, ImageNet) and knowledge graph completion (WN18RR, FB15k-237), showing consistent improvements over baseline distillation.

Results

On CIFAR-100, a ResNet-18 student trained with relational distillation achieved 75.2% accuracy versus 73.8% with standard distillation, a 1.4% gain. On ImageNet, a MobileNet student reached 71.3% top-1 accuracy compared to 70.1% with conventional methods. For knowledge graph completion, the student model improved mean reciprocal rank (MRR) from 0.42 to 0.45 on WN18RR. These results demonstrate that relational knowledge is complementary to existing distillation objectives and consistently boosts performance across diverse tasks.

Significance

This paper opens a new direction for knowledge distillation by emphasizing structural knowledge. It has practical implications for deploying compact models in production, especially in domains like recommendation systems and graph analytics where relational patterns are critical. Future work could explore adaptive relation weighting or combining relational distillation with other forms of knowledge transfer.