Introduction
Deep learning models have achieved remarkable success across various domains, but their deployment on resource-constrained edge devices remains challenging due to high computational and memory requirements. Knowledge Transfer (KT), particularly Knowledge Distillation, has emerged as a primary solution for compressing large "teacher" models into smaller "student" networks. However, traditional KT methods often suffer from classification bias—relying heavily on final class labels—and architectural rigidity, requiring specific feature dimensions or complex adapter layers.
This paper introduces Probabilistic Knowledge Transfer (PKT), a novel approach that shifts the focus from matching raw feature values or labels to matching the underlying probability distribution of data in the feature space. By preserving the geometric relationships between samples, PKT enables robust knowledge transfer across diverse architectures and even different data modalities.
The PKT Framework
The core innovation of PKT lies in its treatment of the feature space as a probability density function. Instead of forcing a student to replicate the exact coordinates of a teacher's feature vector, PKT ensures that the relative distances and "neighborhoods" of data points are preserved.
Methodology
- Pairwise Interactions: PKT operates on batches of data. For each batch, it calculates the similarity between every pair of samples in the teacher’s feature space.
- Kernel Density Estimation (KDE): These pairwise relationships are transformed into a conditional probability distribution using a kernel-based approach. The authors employ a Cosine Similarity Kernel, which eliminates the need for manual hyperparameter tuning (like Gaussian bandwidth) and ensures robustness across different data types.
- Distribution Matching: The student network is trained to minimize the Kullback-Leibler (KL) Divergence between its own feature distribution and that of the teacher. This process effectively "unwraps" the teacher's complex data manifolds into the student's potentially lower-dimensional space.
Experimental Evaluation
The authors validated PKT across four distinct scenarios to demonstrate its versatility:
- Image Retrieval (CIFAR-10): Testing the ability to learn compact representations without explicit class labels.
- Handcrafted to Deep (YouTube Faces): Transferring knowledge from traditional features (LBP) to modern neural networks.
- Cross-Modal Transfer (SUN Attribute): Bridging the gap between textual attributes and visual features.
- Object Detection (PASCAL VOC): Enhancing lightweight detectors like Tiny YOLO.
Key Results and Insights
- Superior Compression: On CIFAR-10, a student network with 700x fewer parameters than a ResNet-18 teacher achieved a mean Average Precision (mAP) of 51.19%, significantly outperforming standard distillation (40.13%).
- Dimension Agnosticism: Because PKT matches scalar probability distributions rather than high-dimensional vectors, it naturally handles cases where the teacher and student have different feature dimensions without requiring additional projection layers.
- Cross-Modal Efficacy: In the SUN Attribute task, PKT achieved a 47.26% mAP, representing an 80% relative improvement over existing "Hint"-based methods. This demonstrates PKT's ability to transfer knowledge even when the teacher and student process different input modalities.
- Detection Performance: Integrating PKT into the training of a Tiny YOLO detector increased its mAP from 38.02% to 44.14% on PASCAL VOC, proving its utility in complex localization tasks.
Conclusion and Future Work
Probabilistic Knowledge Transfer offers a flexible, geometry-aware alternative to traditional distillation methods. By focusing on the relative structure of the feature space, it overcomes the limitations of classification-centric approaches and enables knowledge transfer across disparate architectures and modalities.
Future research may explore the trade-offs between local and global geometry preservation. While KL divergence emphasizes local neighborhoods, symmetric divergence metrics might offer benefits for tasks requiring global structural consistency. Additionally, PKT opens avenues for incorporating qualitative human expertise directly into the training process via structured probability distributions.
Summary updated