Improved Knowledge Distillation via Adversarial Collaboration

Zhiqiang Liu, Chengkai Huang, Yanxia LiuarXiv 2021

Abstract

Knowledge distillation has become an important approach to obtain a compact yet effective model. To achieve this goal, a small student model is trained to exploit the knowledge of a large well-trained teacher model. However, due to the capacity gap between the teacher and the student, the student's performance is hard to reach the level of the teacher. Regarding this issue, existing methods propose to reduce the difficulty of the teacher's knowledge via a proxy way. We argue that these proxy-based methods overlook the knowledge loss of the teacher, which may cause the student to encounter capacity bottlenecks. In this paper, we alleviate the capacity gap problem from a new perspective with the purpose of averting knowledge loss. Instead of sacrificing part of the teacher's knowledge, we propose to build a more powerful student via adversarial collaborative learning. To this end, we further propose an Adversarial Collaborative Knowledge Distillation (ACKD) method that effectively improves the performance of knowledge distillation. Specifically, we construct the student model with multiple auxiliary learners. Meanwhile, we devise an adversarial collaborative module (ACM) that introduces attention mechanism and adversarial learning to enhance the capacity of the student. Extensive experiments on four classification tasks show the superiority of the proposed ACKD.

Introduction

Knowledge Distillation (KD) is a widely adopted model compression technique where a compact "student" network is trained to mimic the behavior of a larger, high-performance "teacher" network. A persistent challenge in KD is the capacity gap: the student often lacks the architectural complexity to fully capture the teacher's intricate feature representations.

To bridge this gap, previous research has introduced "proxies." For instance, Teacher Assistant Knowledge Distillation (TAKD) uses intermediate-sized models, while Early-Stopped Knowledge Distillation (ESKD) simplifies the teacher's features by halting its training early. However, the authors argue that these approaches create a "prisoner's dilemma": by simplifying the teacher's knowledge to make it easier to learn, they sacrifice the very depth and nuance that make the teacher valuable. ACKD addresses this by temporarily augmenting the student's learning capacity during training, ensuring no knowledge is lost from the teacher.

Methods

The proposed Adversarial Collaborative Knowledge Distillation (ACKD) framework enhances the student's ability to absorb knowledge through three primary components:

  1. Auxiliary Learners (ALs): During the training phase, the student model is expanded with multiple auxiliary learners. These branches share initial layers with the student but possess independent high-level feature extractors, allowing the model to explore diverse representational spaces.
  2. Adversarial Collaborative Module (ACM): This module coordinates the auxiliary learners using two key mechanisms:
  3. Attention Mechanism: It dynamically weights the contributions of different ALs, identifying which branch most effectively captures specific semantic components of the teacher's knowledge.
  4. Adversarial Learning: To prevent the ALs from becoming redundant, discriminators are employed. Each branch is encouraged to produce unique features to "fool" its respective discriminator, ensuring a diverse, multi-perspective distillation process.
  5. Knowledge Flow: Knowledge is first distilled from the teacher into the ensemble of auxiliary learners. Subsequently, these learners collaboratively transfer their refined, diverse insights into the final "Target Learner" (the student).
The ACKD architecture featuring the Teacher, Student (Target Learner and Auxiliary Learners), and the Adversarial Collaborative Module (ACM).

Importantly, all auxiliary branches and discriminators are discarded after training. The resulting student model remains as compact as a standard KD student, incurring zero additional computational cost during inference.

Experimental Results

The authors evaluated ACKD across four major image classification benchmarks: CIFAR-100, CINIC-10, Tiny-ImageNet, and ImageNet. The method was tested using a variety of architectures, including ResNet, WideResNet, MobileNetV2, and ShuffleNetV1.

Quantitative Performance

ACKD consistently outperformed state-of-the-art (SOTA) distillation methods. On CIFAR-100, ACKD improved student accuracy by an average of 3.62% compared to a vanilla student trained without distillation. It also surpassed established methods like TAKD and ESKD by margins ranging from 0.6% to 1.7%. On the large-scale ImageNet dataset, ACKD reduced the performance gap between a ResNet34 teacher and a ResNet18 student from 3.56% to just 1.98%, representing a 44% relative improvement in gap closure.

Comparison of ACKD against state-of-the-art knowledge distillation methods across various teacher-student architecture pairs.

Qualitative Insights

Qualitative analysis using Grad-CAM visualizations revealed that ACKD students often develop a more precise focus on target objects than their teachers, who can sometimes be distracted by background noise. This suggests that the adversarial collaborative process helps the student filter out irrelevant information while retaining core semantic features.

Conclusion

ACKD offers a novel solution to the capacity gap in knowledge distillation by strengthening the student rather than weakening the teacher. By leveraging adversarial collaboration among auxiliary learners, the framework enables the student to capture a richer, more diverse set of features. The method achieves superior accuracy across multiple benchmarks while maintaining the efficiency required for real-world deployment. Future work may extend this collaborative approach to other computer vision tasks such as object detection and segmentation.

Summary updated

BibTeX
@misc{liu2021improved,
  author = {Zhiqiang Liu and Chengkai Huang and Yanxia Liu},
  title = {{Improved Knowledge Distillation via Adversarial Collaboration}},
  year = {2021},
  eprint = {2111.14356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.14356},
}
Figure