Introduction
Knowledge Distillation (KD) has traditionally relied on a hierarchical "teacher-student" paradigm where a large, pre-trained model transfers its learned representations to a smaller model. While effective, this offline approach is computationally expensive, requiring a two-stage training process, and is limited by the static nature of the teacher. If the teacher's predictions are noisy or architectural differences between the teacher and student are too vast, the student's performance is inherently capped.
To address these limitations, recent research has shifted toward "online" distillation, where multiple models train simultaneously. However, existing methods like Deep Mutual Learning (DML) often struggle when models have significantly different capacities, potentially degrading the performance of stronger models. This paper introduces Knowledge Distillation via Collaborative Learning (KDCL), a framework that treats all participating networks as peers in a collaborative "super network," enabling models of varying architectures to improve one another through dynamic ensembling and diverse data augmentations.
Methodology
Collaborative Learning Framework
The core of KDCL is the generation of a high-quality collaborative signal, or "soft target," that all participating students aim to follow. Unlike traditional KD, which uses a fixed teacher, KDCL dynamically constructs an ensemble prediction from all students to serve as the supervision signal.
The authors propose four distinct strategies for generating this ensemble signal:
- KDCL-Naive: The predictions of the best-performing student in the current iteration (based on lowest training loss) are used as the target for others.
- KDCL-Linear: The teacher signal is formulated as an optimization problem, seeking the optimal linear combination of student outputs to minimize the overall training loss.
- KDCL-MinLogit: An efficient variant of the linear approach that selects minimum logit values across students to produce a more confident and sharp probability distribution.
- KDCL-General: The most robust variant, which utilizes a small validation set to calculate weighted ensemble targets based on each student's generalization performance.
Invariant Collaborative Learning
To further enhance robustness, KDCL incorporates Invariant Collaborative Learning. In this setup, each student is fed a differently distorted version of the same input image (e.g., different crops or color jitters).
Despite receiving different "views" of the data, all students are tasked with predicting the same ensemble soft target. This forces the networks to learn features that are invariant to input perturbations, acting as a powerful regularizer.
Experimental Results
Performance on ImageNet and CIFAR-100
KDCL was evaluated on standard benchmarks including CIFAR-100 and ImageNet-2012. On ImageNet, when training a ResNet-50 and a MobileNetV2 together, KDCL achieved top-1 accuracies of 78.2% and 74.0%, respectively. This represents a gain of 1.4% for ResNet-50 and 2.0% for MobileNetV2 over their baseline versions. Notably, the "weak" model (MobileNetV2) was able to improve the "strong" model (ResNet-50), demonstrating that diverse perspectives in a peer-learning setup are more beneficial than a strict hierarchy.
Transfer Learning and Robustness
Models pre-trained with KDCL showed superior performance on downstream tasks. For instance, an FPN detector using a KDCL-trained backbone achieved a 0.9% mAP improvement on the MS COCO dataset. Furthermore, the KDCL-General method proved exceptionally effective at maintaining high performance even when test data was corrupted by heavy noise, validating the benefits of the invariant learning approach.
Discussion and Conclusion
KDCL demonstrates that ensembling is a critical component of online distillation. By mimicking an ensemble of peers rather than a single peer, models receive a more stable and high-quality supervision signal. The framework effectively bridges the gap between models of different capacities, allowing them to mutually benefit from each other's unique learned representations.
While KDCL is highly efficient during inference (as the ensemble is only used during training), the training phase is more memory-intensive due to the simultaneous processing of multiple models. Additionally, the KDCL-General method requires a separate validation set, which may not be available in all scenarios. Future work may explore extending this collaborative framework to other domains such as Natural Language Processing or automating the selection of student architectures to maximize collaborative gains.
Summary updated