Peer Collaborative Learning for Online Knowledge Distillation

Guile Wu, Shaogang Gong

Abstract

Peer Collaborative Learning (PCL) is a novel one-stage framework for online knowledge distillation that eliminates the need for a pre-trained teacher model. By integrating a learnable "ensemble teacher" derived from diverse data augmentations and a stable "mean teacher" using temporal weight averaging, PCL significantly enhances the performance of compact networks. Experimental results on CIFAR and ImageNet demonstrate that PCL consistently outperforms state-of-the-art online distillation methods without increasing inference costs.

Introduction

Knowledge Distillation (KD) is a widely used technique to transfer knowledge from a large, high-capacity "teacher" network to a smaller, efficient "student" network. Traditional KD is a two-stage process: first training the teacher, then the student. This is computationally expensive and slow. Online KD methods attempt to solve this by training multiple student networks (peers) simultaneously in a single stage, where they learn from each other. However, existing online methods often lack high-quality guidance and suffer from "homogenization," where peers become identical and stop providing diverse information to one another.

Methods

The proposed Peer Collaborative Learning (PCL) framework introduces a multi-branch architecture where peers share early layers but maintain separate high-level layers. PCL incorporates two unique types of online teachers to provide robust guidance:

  • Peer Ensemble Teacher: Unlike standard methods that provide the same augmented image to all branches, PCL applies different random augmentations to the input for each peer. The feature representations from all peers are concatenated and passed through a learnable classifier. This ensemble acts as a strong teacher optimized alongside the peers.
  • Peer Mean Teacher: Inspired by temporal ensembling in semi-supervised learning, PCL maintains a "temporal mean" of each peer—a moving average of the model's weights during training. This provides stable and consistent predictions for distillation, smoothing the training signal.
Detailed architecture of the Peer Collaborative Learning (PCL) framework.

By combining these, the network benefits from both the "wisdom of the crowd" (Ensemble) and the "stable experience" of the temporal models.

Results

PCL was evaluated on CIFAR-10, CIFAR-100, and ImageNet across various popular architectures, including ResNet, VGG, DenseNet, and ResNeXt. It consistently outperformed baseline models and state-of-the-art online distillation methods like DML, ONE, and OKDDip.

On CIFAR-100 with a ResNet-110 backbone, PCL reduced the top-1 error rate from 23.79% (baseline) to 20.02%, outperforming the next best method (OKDDip) by nearly 1.5%. For ImageNet with ResNet-18, PCL achieved a top-1 error of 29.58%, compared to the 30.49% baseline.

Training and test error curves on CIFAR-100 demonstrating the effectiveness of PCL components.

The ablation study shown in Figure 3 demonstrates the impact of various loss components. The combination of the ensemble teacher loss ($L_{pe}$) and the mean teacher loss ($L_{pm}$) leads to the most significant reduction in error rates. Notably, PCL achieves these gains with zero extra inference cost, as only a single peer is deployed in the final model.

Conclusion

PCL provides a robust and efficient approach to online knowledge distillation. By leveraging both learning-based ensembling and temporal weight averaging, it overcomes the limitations of previous online KD methods. While it introduces some training overhead and hyperparameter sensitivity, its superior performance across standard benchmarks makes it a compelling choice for developing efficient deep learning models. Future work may explore its application to other computer vision tasks such as object detection and semantic segmentation.

Summary updated

BibTeX
@inproceedings{wu2021peer,
  author = {Guile Wu and Shaogang Gong},
  title = {{Peer Collaborative Learning for Online Knowledge Distillation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17234},
}
Figure