Mixed Sample Augmentation for Online Distillation

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

TL;DR

This paper introduces Cut$^n$Mix, a novel data augmentation strategy specifically designed for online knowledge distillation. By providing peer networks with diverse, distorted views of the same mixed-sample labels and incorporating feature-level mutual learning, the framework consistently outperforms state-of-the-art distillation methods across various convolutional neural network (CNN) architectures.

What Problem Does This Paper Address?

Generalizing CNNs remains a core challenge in computer vision. Two popular solutions have emerged: Mixed Sample Regularization (MSR) (like MixUp and CutMix), which creates new training samples by interpolating images and labels, and Knowledge Distillation (KD), which transfers "dark knowledge" from a teacher to a student.

While MSR and traditional offline KD (where a pre-trained teacher guides a student) are known to be "orthogonal"—meaning their benefits stack—their interaction with online distillation is less understood. In online distillation, an ensemble of "peer" students learn from each other simultaneously without a pre-trained teacher. The authors found that simply plugging standard CutMix into existing online distillation frameworks yields only marginal improvements. This paper aims to bridge that gap and unlock the full potential of MSR in an online setting.

Methods

The authors propose a two-pronged approach: a new augmentation strategy and a comprehensive distillation framework.

1. Cut$^n$Mix

Standard CutMix generates a single mixed image for the entire training batch. In contrast, Cut$^n$Mix applies unique random distortions (like cropping or flipping) to the raw images for each peer network before mixing them.

As shown in the framework overview (Figure 2), each peer $j$ receives a distinct version of the mixed sample $\tilde{x}_i^j$. Crucially, all peers share the exact same mixed ground-truth label $\tilde{y}_i$. This diversity in input forces the networks to learn more robust, invariant features while maintaining a consistent learning target.

![Fig.

  1. The overall framework of the proposed online distillation and CutnMix.](/figures/art_e6f4d93c12954831a2e9cec45ecee0ba)

2. The Distillation Framework

The proposed framework optimizes a four-part loss function for each peer network:

  • Standard Cross-Entropy (CE): Learning from the hard labels.
  • Logit-level Mutual Distillation (DML): Peers mimic each other's output probabilities.
  • Feature-level Distillation (MMD): Using Maximum Mean Discrepancy (MMD) to align the internal feature representations of the peer networks.
  • Peer Teacher Distillation (PT): An "ensemble teacher" is created by aggregating features from all peers. This teacher provides a stronger supervision signal to guide the individual students.

Datasets

The researchers evaluated their method on two standard benchmarks:

  • CIFAR-10: 60,000 images across 10 classes.
  • CIFAR-100: 60,000 images across 100 classes.

They tested the approach across six diverse CNN backbones, including VGG-16/19, ResNet-32/110, WideResNet-20-8, and DenseNet-40-12, ensuring the results weren't architecture-specific.

Key Insights and Ideas

  • Diversity Drives Distillation: The "aha" moment of the paper is that online distillation thrives when peers see different perspectives of the same data. By giving each peer a unique "distorted" view via Cut$^n$Mix, the ensemble explores the data manifold more effectively.
  • Feature Alignment Matters: Simply matching output logits isn't enough. By adding the MMD loss, the authors ensure that the networks are also learning similar internal concepts, leading to better generalization.
  • The Self-Ensemble Teacher: The "Peer Teacher" acts as a "wisdom of the crowd" mechanism. Even if individual peers are weak, their combined feature representation is often stronger, providing a better target for each student to aim for.

Key Results

The proposed method achieved significant performance boosts over baseline models and outperformed existing state-of-the-art (SOTA) methods like DML, ONE, and OKDDip.

  • Accuracy Gains: The method achieved a 0.73-1.43% gain on CIFAR-10 and a 1.55-3.29% gain on CIFAR-100 compared to baseline training.
  • SOTA Comparison: As detailed in Table 1 (Figure 4), the approach (highlighted in red) consistently took the top spot across almost all tested architectures. For example, on CIFAR-100 with ResNet-110, it reached 79.32% accuracy, significantly higher than the baseline's 76.28%.
  • Ablation Success: The ablation study (Figure 5) confirms that every component—Cut$^n$Mix, MMD loss, and Peer Teacher loss—contributes to the final performance, with the full combination yielding the best results.
Table 1. Top-1 classification accuracy(%) comparison on CIFAR-10 and CIFAR-100 with the state-of-the-arts. The best and second best performance are highlighted in Red and Green respectively.

Limitations and Future Work

The primary limitation acknowledged by the authors is the computational scale. Due to resource constraints, the evaluations were limited to the relatively small CIFAR datasets. Testing the framework on large-scale datasets like ImageNet is a key goal for future research. Additionally, the authors suggest exploring how this framework could be adapted for other computer vision tasks beyond classification, such as object detection and image segmentation.

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