[Paper Review] The State of Knowledge Distillation for Classification
This paper evaluates knowledge distillation (KD) techniques for image classification, finding that vanilla KD with careful hyperparameter tuning and data augmentation outperforms complex feature distillation methods. Surprisingly, feature distillation techniques fail to generalize and underperform baseline KD across different architectures and training setups.
We survey various knowledge distillation (KD) strategies for simple classification tasks and implement a set of techniques that claim state-of-the-art accuracy. Our experiments using standardized model architectures, fixed compute budgets, and consistent training schedules indicate that many of these distillation results are hard to reproduce. This is especially apparent with methods using some form of feature distillation. Further examination reveals a lack of generalizability where these techniques may only succeed for specific architectures and training settings. We observe that appropriately tuned classical distillation in combination with a data augmentation training scheme gives an orthogonal improvement over other techniques. We validate this approach and open-source our code.
Motivation & Objective
- To evaluate and reproduce state-of-the-art knowledge distillation techniques for image classification under consistent training conditions.
- To assess the generalizability of feature distillation methods across different model architectures and training settings.
- To investigate whether data augmentation and hyperparameter tuning can provide orthogonal improvements over existing distillation techniques.
- To identify why many advanced distillation methods fail to reproduce reported performance gains in controlled experiments.
Proposed method
- Used standardized ResNet architectures (ResNet8, ResNet18, ResNet26) and fixed compute budgets across all experiments.
- Applied a consistent training schedule and optimizer (Adam) with a single data augmentation scheme (MixUp) for all methods.
- Implemented multiple KD variants: vanilla KD (Hinton), feature distillation (AB-Distillation, Overhaul, TAKD, RKD), and unsupervised KD.
- Employed temperature scaling and KL divergence between soft labels for knowledge transfer in standard KD.
- Used mean squared error and KL divergence for feature-level distillation, with extensive hyperparameter tuning.
- Validated results through multiple training runs and compared performance across different teacher architectures.
Experimental results
Research questions
- RQ1Can state-of-the-art knowledge distillation methods for image classification be reliably reproduced under standardized training conditions?
- RQ2How does the performance of feature distillation compare to vanilla knowledge distillation across different model architectures?
- RQ3To what extent do data augmentation and hyperparameter tuning improve distillation performance independently of advanced distillation techniques?
- RQ4Why do many advanced feature distillation methods fail to generalize across different training setups and model architectures?
Key findings
- Vanilla knowledge distillation with proper hyperparameter tuning and data augmentation (MixUp) achieved the highest accuracy of 90.5% on CIFAR-10 with a ResNet8 student.
- Feature distillation methods, including AB-Distillation, Overhaul, TAKD, and RKD, consistently underperformed baseline KD, with accuracy drops of up to 2%.
- Switching from a ResNet18 teacher (95% accuracy) to a ResNet26 teacher (93% accuracy) improved student accuracy from 88.5% to 90.5%, indicating teacher capacity and alignment matter more than complex distillation.
- The performance gap between methods was largely due to architectural mismatch and sensitivity to training setup, not inherent superiority of feature distillation.
- A PyTorch bug in the KL divergence implementation was found to affect KD performance, and fixing it increased KD accuracy by 1% across experiments.
- Unsupervised knowledge distillation on STL-10 achieved 83% accuracy on CIFAR-10 without any labeled training data, suggesting potential for future exploration with large-scale unsupervised data.
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.