Role-Wise Data Augmentation for Knowledge Distillation

Jie Fu, Xue Geng, Zhijian Duan, Bohan Zhuang, Xingdi Yuan, Adam Trischler, Jie Lin, Chris Pal, Hao DongarXiv 2020

TL;DR

This paper introduces "Role-Wise Data Augmentation" for Knowledge Distillation (KD). Instead of using the same data augmentation for both teacher and student models, they propose separate, adaptive augmentation strategies tailored to each model's learning needs. This approach significantly improves KD performance, especially for low-precision networks.

What Problem Does This Paper Address?

Knowledge Distillation (KD) is a powerful technique for transferring knowledge from a large, high-capacity "teacher" model to a smaller, more efficient "student" model. However, current KD methods typically use the same training data for both models, failing to account for their differing learning capabilities. A student model, especially one with lower capacity or precision (like quantized networks), might not benefit optimally from data that the teacher model has already mastered. This paper addresses this gap by proposing a method where the teacher and student learn from data that is augmented differently, mimicking how a human teacher adapts their explanations to individual students.

Methods

The core innovation is a two-stage approach:

  • Stage-α (Teacher Training): First, the teacher network is trained using Population-Based Augmentation (PBA). PBA learns a dynamic, epoch-based schedule of augmentation policies that are optimized to improve the teacher's accuracy on a subset of the data. This improved teacher then serves as a better knowledge source.
  • Stage-β (Student Training with KD): In the second stage, the student network is trained using KD. Crucially, a separate PBA-based augmentation agent learns an augmentation schedule specifically for the student. This schedule is optimized based on the student's performance during KD, aiming to provide data that best helps the student learn from the teacher. This role-wise augmentation is orthogonal to existing KD methods and can be combined with them.

The paper also introduces "II-KD," a feature-based KD variant that combines intra- and inter-feature map relationships, as a strong baseline for comparison.

Datasets

The experiments were conducted on two benchmark datasets:

  • CIFAR-10
  • CIFAR-100

For evaluation, they used "reduced" versions of these datasets, with 4,000 training images and 36,000 validation images, consistent with previous work on data augmentation.

Key Insights and Ideas

  • The "Medium" Matters: The paper highlights that the training data itself is a crucial medium for knowledge transfer in KD. Simply using the same augmented data for both teacher and student is suboptimal.
  • Individualized Learning: The analogy to human education is powerful: just as teachers adapt to students, augmentation strategies should adapt to the specific learning needs of the student model.
  • Role-Wise Augmentation is Key: Separate augmentation schedules for teacher and student lead to demonstrably better results, especially for challenging low-precision models.
  • KD and Augmentation Synergy: Combining KD with adaptive, role-wise data augmentation creates a powerful synergy, boosting student performance beyond what either technique achieves alone.
  • Learned Schedules Evolve: The augmentation schedules learned by PBA are not static; they evolve over training epochs, adapting to the changing learning dynamics of the models. The student's schedule often starts with less augmentation and gradually incorporates more as training progresses.

Key Results

  • Improved Accuracy for Low-Precision Networks: The proposed role-wise data augmentation significantly improves the accuracy of low-precision (4-bit and 2-bit) student networks trained via KD. For example, 4-bit networks achieved accuracy comparable to full-precision models on CIFAR-10, with only a small drop on CIFAR-100.
  • Outperforming Baselines: The method consistently outperforms various KD baselines, including those using only soft labels or advanced feature-based KD methods, especially on the CIFAR-100 dataset.
  • Role-Wise Augmentation Advantage: Using augmentation schedules learned specifically for the student (Stage-β) consistently outperforms using schedules learned for the teacher (transferred schedules) or standard augmentation methods. For instance, on CIFAR-100, using the student's learned schedule improved performance by up to 1.5% over using the teacher's schedule.
  • Effective on Full-Precision Models: The approach also shows benefits for full-precision networks, demonstrating its general applicability.

Limitations and Future Work

  • Computational Cost of PBA: While effective, PBA's search process for optimal augmentation schedules can be computationally expensive. The paper notes that Population-Based Augmentation (PBA) uses an evolution-based algorithm, which can be computationally intensive.
  • Hyperparameter Tuning: The paper mentions that they did not extensively tune the coefficients within their proposed II-KD method, suggesting that further optimization might yield even better results.
  • Future Work: The authors suggest that their approach is orthogonal to existing KD methods and can be combined with them. They also highlight that the learned augmentation schedules are epoch-based and evolve, indicating potential for more dynamic and fine-grained adaptation strategies in the future. The effectiveness of the learned schedules on different network architectures and datasets could also be explored further.

Summary updated

BibTeX
@misc{fu2020role,
  author = {Jie Fu and Xue Geng and Zhijian Duan and Bohan Zhuang and Xingdi Yuan and Adam Trischler and Jie Lin and Chris Pal and Hao Dong},
  title = {{Role-Wise Data Augmentation for Knowledge Distillation}},
  year = {2020},
  eprint = {2004.08861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.08861},
}
Figure