Deep Mutual Learning

Ying Zhang, Tao Xiang, Timothy M. Hospedales, Huchuan Lu

Introduction

In the pursuit of deploying deep neural networks on resource-constrained edge devices, researchers have sought methods to create small, efficient models that do not sacrifice accuracy. A common technique is Knowledge Distillation (KD), where a large, pre-trained "teacher" model guides a smaller "student" model by encouraging it to mimic the teacher's output probabilities. However, KD is limited by the requirement of a high-capacity teacher and the one-way nature of the knowledge transfer.

Deep Mutual Learning (DML) introduces a collaborative alternative. Instead of a static teacher-student hierarchy, DML utilizes a cohort of untrained student networks that learn together. This "study group" approach allows models to improve each other through mutual interaction, often outperforming both independent training and traditional distillation.

Methodology

The core of Deep Mutual Learning is the simultaneous training of multiple networks on the same task. Each network in the cohort is optimized using a composite loss function consisting of two primary components:

  1. Supervised Loss: A standard cross-entropy loss calculated against ground-truth labels, ensuring the models learn the target task.
  2. Mimicry Loss: A Kullback-Leibler (KL) Divergence loss that encourages each network's class probability distributions to align with those of its peers.
The Deep Mutual Learning (DML) architecture for a pair of networks.

In this framework, there is no fixed teacher. During every mini-batch, all networks update their parameters based on the current state of their peers. This collaborative process can be scaled to $K$ networks, where each student learns from the ensemble average of the remaining $K-1$ networks.

Experiments and Datasets

The effectiveness of DML was validated across several benchmarks:

  • CIFAR-10 & CIFAR-100: Standard datasets for evaluating image classification performance.
  • ImageNet: A large-scale dataset used to test the scalability of the approach.
  • Market-1501: A person re-identification (Re-ID) dataset that challenges the models with instance-level recognition tasks.

Results and Discussion

Experimental results demonstrate that DML consistently provides a performance boost. For instance, on CIFAR-100, a ResNet-32 model improved its accuracy from 68.99% (independent training) to 71.19% when trained in a DML pair. Remarkably, DML can outperform traditional distillation; a MobileNet trained via DML reached 76.13% accuracy, significantly higher than the 69.12% achieved when distilled from a much larger Wide ResNet teacher.

Training loss curves demonstrating the convergence of DML variants.

The success of DML is attributed to several key factors:

  • Shared Secondary Information: By mimicking peers, models share information about class similarities (e.g., which classes are easily confused), providing a richer signal than hard labels alone.
  • Robust Minima: Analysis suggests that DML helps models converge to "wider" or "flatter" minima in the loss landscape, which are associated with better generalization to unseen data.
  • Informed Regularization: The mimicry loss acts as a form of regularization that directs model uncertainty toward plausible alternative classes identified by the cohort.

Conclusion

Deep Mutual Learning demonstrates that a group of simple models can achieve superior performance by learning collaboratively, effectively replacing the need for a complex, pre-trained teacher. While the training phase requires more computational resources to run multiple models, the resulting individual models are highly efficient and accurate. Future research may explore the optimal composition of heterogeneous cohorts and the application of DML to tasks beyond classification, such as object detection.

Summary updated

BibTeX
@inproceedings{zhang2018deep,
  author = {Ying Zhang and Tao Xiang and Timothy M. Hospedales and Huchuan Lu},
  title = {{Deep Mutual Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00454},
}
Figure