Collaborative Teacher-Student Learning via Multiple Knowledge Transfer

Liyuan Sun, Jianping Gou, Baosheng Yu, Lan Du, Dacheng TaoarXiv 2021

Introduction

Deep neural networks are powerful but often too large to run on mobile or embedded devices. Knowledge Distillation (KD) is the standard solution, where a large "teacher" model trains a smaller "student" model. However, traditional KD has three main flaws: the capacity gap between a massive teacher and a tiny student, a focus on limited knowledge types (ignoring structural relationships), and static architectures that do not adapt to student progress.

Collaborative Teacher-Student Learning via Multiple Knowledge Transfer (CTSL-MKT) addresses these issues by moving away from rigid hierarchies toward a collaborative "peer learning" environment. This framework allows multiple student networks to learn together without needing a massive, pre-trained teacher.

Conceptual framework of CTSL-MKT showing self-distillation and online distillation of individual features and instance relations.

Methodology

CTSL-MKT unifies three distinct distillation strategies into a single training objective to boost the performance of lightweight models:

  1. Response-Based Mutual Learning: Peer networks (e.g., two ResNets or a ResNet and a MobileNet) train simultaneously. They use Kullback-Leibler (KL) divergence to encourage their output probability distributions to match, effectively "teaching" each other their predictions.
  2. Relation-Based Mutual Learning: A key innovation where models look at how images relate to one another. Using distance-wise and angle-wise functions, the models ensure they perceive the underlying geometric structure of the dataset similarly.
  3. Self-Distillation: To prevent peer networks from drifting too far or confusing each other, each network uses a version of itself from an earlier training stage as a "stable" anchor to maintain consistency.
Detailed architecture of the CTSL-MKT framework illustrating the integration of various loss functions ($L_{KL}$, $L_{RD}$, $L_{SD}$, $L_{CE}$).

The final loss function is a weighted sum of standard cross-entropy (learning from ground truth labels) and these three distillation losses. This framework is highly flexible, supporting heterogeneous learning where peer networks have completely different architectures.

Experimental Results

The authors evaluated CTSL-MKT on several benchmarks, including CIFAR-10/100, Tiny-ImageNet, and the Market-1501 person re-identification dataset. The method consistently outperformed state-of-the-art techniques like Deep Mutual Learning (DML) and Relational Knowledge Distillation (RKD).

  • CIFAR-100: A ShuffleNetV2 peer pair achieved 72.13% accuracy, compared to 70.47% for DML.
  • Tiny-ImageNet: For an AlexNet/SqueezeNet pair, the method improved AlexNet's accuracy to 50.98%, a significant jump over the 44.35% achieved by DML.
  • Market-1501: The method showed strong gains in Mean Average Precision (mAP), improving by 4.69% over self-learning alone, proving its utility in complex retrieval tasks beyond simple classification.

Conclusion and Future Work

CTSL-MKT demonstrates that peers at similar learning stages can often outperform a single giant teacher by bridging the capacity gap. By distilling the relationships between samples and using self-learning as a stabilizer, the framework achieves superior performance for lightweight models.

While effective, the approach introduces computational overhead during training due to simultaneous model processing and requires careful hyperparameter tuning to balance the multiple loss components. Future research may explore scaling this "classroom" approach to more than two peer networks.

Summary updated

BibTeX
@misc{sun2021collaborative,
  author = {Liyuan Sun and Jianping Gou and Baosheng Yu and Lan Du and Dacheng Tao},
  title = {{Collaborative Teacher-Student Learning via Multiple Knowledge Transfer}},
  year = {2021},
  eprint = {2101.08471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.08471},
}
Figure