[Paper Review] Dynamic Rectification Knowledge Distillation
This paper proposes Dynamic Rectification Knowledge Distillation (DR-KD), a teacher-free knowledge distillation framework that transforms the student network into its own dynamic teacher by rectifying incorrect logits using ground-truth labels before distillation. DR-KD achieves a 2.65% accuracy gain on Tiny ImageNet and 3.28% on CIFAR-100 over baselines, outperforming state-of-the-art methods without additional training cost or large teacher models.
Knowledge Distillation is a technique which aims to utilize dark knowledge to compress and transfer information from a vast, well-trained neural network (teacher model) to a smaller, less capable neural network (student model) with improved inference efficiency. This approach of distilling knowledge has gained popularity as a result of the prohibitively complicated nature of such cumbersome models for deployment on edge computing devices. Generally, the teacher models used to teach smaller student models are cumbersome in nature and expensive to train. To eliminate the necessity for a cumbersome teacher model completely, we propose a simple yet effective knowledge distillation framework that we termed Dynamic Rectification Knowledge Distillation (DR-KD). Our method transforms the student into its own teacher, and if the self-teacher makes wrong predictions while distilling information, the error is rectified prior to the knowledge being distilled. Specifically, the teacher targets are dynamically tweaked by the agency of ground-truth while distilling the knowledge gained from traditional training. Our proposed DR-KD performs remarkably well in the absence of a sophisticated cumbersome teacher model and achieves comparable performance to existing state-of-the-art teacher-free knowledge distillation frameworks when implemented by a low-cost dynamic mannered teacher. Our approach is all-encompassing and can be utilized for any deep neural network training that requires categorization or object recognition. DR-KD enhances the test accuracy on Tiny ImageNet by 2.65% over prominent baseline models, which is significantly better than any other knowledge distillation approach while requiring no additional training costs.
Motivation & Objective
- To address the high computational and training cost of traditional knowledge distillation, which relies on large, pre-trained teacher models.
- To eliminate the need for a cumbersome, expensive teacher model by enabling the student to act as its own teacher.
- To improve student model performance by dynamically correcting incorrect knowledge distillation using ground-truth supervision.
- To develop a low-cost, efficient distillation framework suitable for edge devices and resource-constrained environments.
- To demonstrate that a poorly trained teacher, when rectified, can outperform a well-trained teacher in knowledge distillation.
Proposed method
- The student model acts as its own teacher, generating logits that are dynamically rectified using ground-truth labels before knowledge distillation.
- Incorrect logits from the student are corrected by replacing them with ground-truth one-hot vectors prior to softmax activation, ensuring only accurate knowledge is distilled.
- Knowledge distillation is performed using Kullback-Leibler (KLD) divergence between the rectified student (as teacher) and the original student (as student) at temperature T.
- The final loss combines KLD between teacher and student with cross-entropy loss using ground truth, enabling end-to-end training.
- The framework uses temperature scaling in the student’s softmax to stabilize soft label learning during distillation.
- The method is compatible with any deep neural network architecture and can be applied to image classification and object recognition tasks.
Experimental results
Research questions
- RQ1Can a student network achieve superior performance by acting as its own teacher with dynamic rectification of incorrect predictions?
- RQ2Does eliminating the need for a large, pre-trained teacher model improve efficiency and performance in knowledge distillation?
- RQ3Can rectifying logits using ground-truth labels before distillation lead to better generalization than traditional distillation with a large teacher?
- RQ4How does DR-KD compare to state-of-the-art teacher-free and teacher-based distillation methods across different datasets and model architectures?
- RQ5Can a weakly trained teacher model, when rectified, outperform a highly trained teacher model in knowledge distillation?
Key findings
- DR-KD achieves a 2.65% improvement in test accuracy on Tiny ImageNet over the baseline for MobileNetV2, surpassing all compared methods including Normal KD and Tf-KD.
- On CIFAR-100, DR-KD improves performance by 3.28% when applied to a poorly trained teacher, significantly outperforming all baselines.
- For MobileNetV2 on Tiny ImageNet, DR-KD achieves 57.71% test accuracy, compared to 55.06% for the baseline, a 2.65% absolute gain.
- The rectified self-teacher model (2M parameters) outperforms a ResNet18 teacher (11M parameters) on ShuffleNetV2 in Tiny ImageNet, demonstrating the efficacy of dynamic rectification.
- DR-KD consistently improves accuracy across all evaluated models—MobileNetV2, ShuffleNetV2, ResNet50, and DenseNet121—on all three datasets: CIFAR-100, CIFAR-10, and Tiny ImageNet.
- The method incurs no additional training cost and is compatible with any deep learning model, making it highly practical for edge 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.