Mixed Sample Augmentation for Online Distillation

Yiqing Shen, Liwu Xu, Yuzhe Yang, Yaqian Li, Yandong Guo

TL;DR

This paper introduces "CutMix," a novel data augmentation technique specifically designed for online knowledge distillation. By combining CutMix with a new distillation framework that includes feature-level learning and a self-ensemble teacher, the authors achieve significant improvements in model generalization across various architectures and datasets, outperforming existing state-of-the-art methods.

What Problem Does This Paper Address?

The paper tackles the challenge of improving the generalization ability of convolutional neural networks (CNNs), a crucial aspect for their real-world applicability. While techniques like Knowledge Distillation (KD) and data augmentation strategies like MixUp and CutMix have shown promise individually, their combined effectiveness, particularly in the context of online distillation (where multiple student networks learn from each other simultaneously), remains underexplored. Previous work has shown that while data augmentation can boost student performance in offline KD (where a pre-trained teacher guides a student), it can sometimes hinder the teacher's performance. This paper aims to bridge this gap by investigating the synergy between advanced data augmentation and online distillation.

Methods

The core of this work lies in two main contributions:

  • CutMix Augmentation: Building upon the existing CutMix data augmentation strategy, the authors propose a refined version tailored for online distillation. This involves applying data distortion with different random seeds to each peer student's input images. The mixed training samples and labels are generated by cutting and pasting patches from different images, ensuring that all peer students receive the same augmented data and labels. A key aspect is ensuring a consistent mixing ratio ($\lambda$) across all students for a valid distillation process.
  • Online Distillation Framework: The authors introduce a novel online distillation framework that leverages CutMix. This framework incorporates:
  • Logit-level Mutual Distillation: Students learn from each other's soft predictions, similar to existing online distillation methods.
  • Feature-level Mutual Distillation: A Maximum Mean Discrepancy (MMD) loss is used to encourage peer students to learn similar feature representations from their penultimate layers.
  • Peer Teacher Distillation: An ensemble of peer students forms a "peer teacher," whose knowledge is then transferred to individual students. This peer teacher is trained using a standard cross-entropy loss on the augmented data.

The overall loss function for each student network is a weighted sum of the standard cross-entropy loss, the logit-level distillation loss, the MMD loss, and the peer teacher distillation loss.

Datasets

The proposed method is evaluated on two widely used image classification datasets:

  • CIFAR-10: Contains 60,000 RGB images (32x32 pixels) across 10 classes.
  • CIFAR-100: Contains 60,000 RGB images (32x32 pixels) across 100 classes.

The authors use the standard 50,000 training images and 10,000 testing images for both datasets.

Key Insights and Ideas

  • Orthogonality of MSR and Online KD: The paper empirically demonstrates an "orthogonality" between Mixed Sample Regularization (MSR) like CutMix and online distillation. This means that MSR can consistently improve performance when integrated into online distillation, without negatively impacting the distillation process itself.
  • CutMix's Superiority for Online Distillation: While standard CutMix provides some improvement when plugged into existing online distillation methods (like DML), the authors' specifically designed "Cut Mix" augmentation strategy, coupled with their novel framework, yields significantly better results.
  • Synergistic Effect of Components: The ablation study highlights that each component of their proposed framework (CutMix augmentation, MMD loss for feature distillation, and peer teacher distillation) contributes to the overall performance improvement, indicating a strong synergistic effect.
  • Benefit for Larger Models: The authors observe that more complex backbone architectures, such as WideResNet, tend to benefit more from their proposed method compared to lighter models.

Key Results

The proposed method consistently improves the performance of various backbone networks (Vgg-16, Vgg-19, ResNet-32, ResNet-110, WideResNet, DenseNet) on both CIFAR-10 and CIFAR-100.

  • CIFAR-10: Achieved performance gains of 0.73-1.43% over baselines.
  • CIFAR-100: Achieved performance gains of 1.55-3.29% over baselines.

In most cases, the proposed method outperforms state-of-the-art self-distillation and online distillation approaches, with specific improvements noted in Table 1 of the paper. For instance, on CIFAR-100 with ResNet-110, their method achieves 79.32±0.35% accuracy, a notable improvement over other methods.

Limitations and Future Work

  • Computational Cost: The authors acknowledge that evaluations on larger-scale datasets like ImageNet were not performed due to computational resource limitations.
  • Future Directions: The paper suggests several promising avenues for future research:
  • Applying the proposed framework to more complex tasks such as object detection and image segmentation.
  • Exploring the integration of their method with other regularization techniques.
  • Further investigating the theoretical underpinnings of the observed orthogonality.

Summary updated

BibTeX
@inproceedings{shen2023mixed,
  author = {Yiqing Shen and Liwu Xu and Yuzhe Yang and Yaqian Li and Yandong Guo},
  title = {{Mixed Sample Augmentation for Online Distillation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096043},
}
Figure