Abstract
This paper introduces Semantic Representational Distillation (SRD), a framework that redefines the relationship between Knowledge Distillation (KD) and Open-Set Semi-supervised Learning (SSL). By employing a teacher’s classifier as a "semantic critic," SRD enables a student model to learn from both labeled and unlabeled data, including samples from unknown classes. While traditional SSL methods often discard out-of-distribution (OOD) data as noise, SRD demonstrates that these samples contain rich structural information. Our results show that SRD consistently improves student performance across various benchmarks, often surpassing existing state-of-the-art KD and SSL techniques.
Introduction
The deployment of high-performance deep learning models on resource-constrained edge devices necessitates efficient model compression. Knowledge Distillation (KD) has emerged as a primary technique for this, transferring knowledge from a large "teacher" model to a smaller "student." However, conventional KD methods frequently focus on output logits or raw intermediate features, neglecting the complex, high-order correlations between feature dimensions—what we term "structured representation."
Furthermore, in real-world Semi-supervised Learning (SSL) scenarios, unlabeled datasets often contain "Open-Set" samples from classes not present in the labeled training set. Standard SSL approaches typically attempt to filter these OOD samples to prevent training "poisoning." SRD challenges this paradigm, suggesting that unseen classes can serve as a valuable source of semantic information if the known classes are viewed as a coordinate system or "basis" for the broader semantic space.
Methodology: Semantic Representational Distillation
The primary innovation of SRD is the use of the teacher's pre-trained classifier to evaluate the student's internal representations. This process involves three key stages:
- Teacher Pre-training: The teacher model is first trained on a labeled dataset ($D_l$) to establish a robust feature extractor ($f^t$) and classifier ($h^t$).
- The Semantic Critic: During student training, the student's feature representation ($x^s$) is passed through a learnable feature adaptor ($\phi$) to produce an adapted representation ($\hat{x}$). This adapted feature is then fed into the teacher's fixed classifier ($h^t$) to generate a "cross-network logit" ($\hat{z}$).
- Alignment and Distillation: The student is trained to minimize the discrepancy between its cross-network logit ($\hat{z}$) and the teacher's own logit ($z^t$). This forces the student to organize its feature space in a way that is semantically consistent with the teacher's expertise.
This distillation is applied to all available data ($D_l \cup D_u$). By processing unlabeled OOD data through the teacher's classifier, the student learns shared semantic attributes (e.g., textures or shapes) that are common across both seen and unseen categories.
Experimental Results
The effectiveness of SRD was evaluated across multiple domains, including general image classification (CIFAR, ImageNet) and high-dimensional face recognition (MegaFace).
Performance Benchmarks
- CIFAR-100: A WRN16-4 student trained with SRD achieved 79.58% accuracy, notably outperforming its WRN40-4 teacher (79.50%). This demonstrates that SRD can push student models beyond the performance limits of their supervisors.
- Open-Set SSL: When trained with CIFAR-100 as labeled data and Tiny-ImageNet as unlabeled OOD data, SRD improved a ResNet8x4 model's accuracy from 72.50% to 76.24%. In contrast, traditional SSL methods often showed performance degradation in the presence of such diverse unlabeled data.
- Face Recognition: SRD achieved top-tier results on the MegaFace benchmark, proving its utility for fine-grained tasks where feature structure is critical.
Architecture Agnosticism
SRD proved robust across various architectural pairings. For instance, it successfully transferred knowledge from a Vision Transformer (ViT) teacher to a CNN student, highlighting its flexibility. It also showed significant gains in training binary neural networks, which are essential for ultra-low-power hardware but notoriously difficult to optimize.
Discussion and Conclusion
SRD provides a powerful new perspective on both KD and SSL. By treating the teacher's classifier as a semantic critic, the method captures structured knowledge that simpler distillation techniques miss. More importantly, it turns the "problem" of OOD data in SSL into an opportunity for better feature learning.
While SRD shows great promise, some limitations remain. The training process requires maintaining the teacher's classifier in memory, and certain data augmentation strategies common in SSL can occasionally conflict with the teacher's guidance. Future work will explore scaling SRD to even larger, uncurated "data in the wild" to further bridge the gap between supervised and self-supervised learning.
Summary updated