[Paper Review] Better Teacher Better Student: Dynamic Prior Knowledge for Knowledge Distillation
This paper proposes Dynamic Prior Knowledge (DPK), a novel knowledge distillation framework that injects teacher features as dynamic prior knowledge into the student model before distillation. By adaptively mixing teacher features based on feature gap dynamics, DPK mitigates performance degradation from large teachers, achieving superior accuracy and making student performance positively correlate with teacher capacity—outperforming baselines on CIFAR-100, ImageNet, and MS COCO.
Knowledge distillation (KD) has shown very promising capabilities in transferring learning representations from large models (teachers) to small models (students). However, as the capacity gap between students and teachers becomes larger, existing KD methods fail to achieve better results. Our work shows that the `prior knowledge' is vital to KD, especially when applying large teachers. Particularly, we propose the dynamic prior knowledge (DPK), which integrates part of teacher's features as the prior knowledge before the feature distillation. This means that our method also takes the teacher's feature as `input', not just `target'. Besides, we dynamically adjust the ratio of the prior knowledge during the training phase according to the feature gap, thus guiding the student in an appropriate difficulty. To evaluate the proposed method, we conduct extensive experiments on two image classification benchmarks (i.e. CIFAR100 and ImageNet) and an object detection benchmark (i.e. MS COCO. The results demonstrate the superiority of our method in performance under varying settings. Besides, our DPK makes the performance of the student model positively correlated with that of the teacher model, which means that we can further boost the accuracy of students by applying larger teachers. More importantly, DPK provides a fast solution in teacher model selection for any given model.
Motivation & Objective
- Address the issue that larger teacher models often degrade student performance in knowledge distillation due to capacity gap.
- Overcome the limitation of existing KD methods that treat teacher features only as targets, not as input prior knowledge.
- Develop a dynamic mechanism that adjusts the ratio of teacher features injected into the student based on real-time feature gap analysis.
- Enable a positive correlation between student accuracy and teacher model capacity, making larger teachers beneficial.
- Provide a fast, scalable solution for teacher model selection in practical deployment scenarios.
Proposed method
- Inject teacher features into the student model at random spatial positions as prior knowledge before distillation.
- Use a ViT-style encoder-decoder module to effectively fuse the injected prior knowledge with student features.
- Dynamically compute the feature gap between student and teacher during training to adjust the ratio of teacher-to-student feature mixing.
- The dynamic ratio ensures the student learns at an appropriate difficulty, preventing overfitting or underfitting to high-level semantics.
- Integrate the prior knowledge injection as a learnable module within the student network, enabling end-to-end training.
- Support flexible feature transformation modules (e.g., 1x1 conv, MLP, lightweight ViT) with minimal computational overhead.
Experimental results
Research questions
- RQ1Can injecting teacher features as prior knowledge improve student performance in knowledge distillation?
- RQ2Does dynamically adjusting the proportion of prior knowledge based on feature gap lead to better generalization?
- RQ3Can the performance of student models be positively correlated with teacher model capacity using this method?
- RQ4Does the proposed method outperform existing KD baselines across diverse benchmarks including classification and object detection?
- RQ5Can DPK serve as a fast and effective solution for selecting optimal teacher models for a given student architecture?
Key findings
- DPK achieves state-of-the-art performance on CIFAR-100 and ImageNet, with top-1 accuracy of 72.48% on ImageNet using ResNet-34 as student and a 6-layer encoder-decoder.
- The method makes student accuracy positively correlated with teacher capacity—larger teachers lead to better student performance, reversing the typical degradation trend.
- On ImageNet, DPK with a lightweight ViT-style (1-1) encoder-decoder achieves 72.43% top-1 accuracy, surpassing stronger baselines like ReviewKD (71.61%) with fewer parameters and FLOPs.
- The method maintains strong performance across multiple settings, including object detection on MS COCO, demonstrating broad applicability.
- Ablation studies confirm that both the prior knowledge injection and dynamic ratio adaptation are essential for performance gains.
- The computational cost of DPK is comparable to prior methods, with only 1.6G FLOPs for the lightest configuration, making it practical for real-world deployment.
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.