Abstract
Knowledge distillation (KD) is one of the most potent ways for model compression. The key idea is to transfer the knowledge from a deep teacher model (T) to a shallower student (S). However, existing methods suffer from performance degradation due to the substantial gap between the learning capacities of S and T. To remedy this problem, this work proposes Residual Knowledge Distillation (RKD), which further distills the knowledge by introducing an assistant (A). Specifically, S is trained to mimic the feature maps of T, and A aids this process by learning the residual error between them. In this way, S and A complement with each other to get better knowledge from T. Furthermore, we devise an effective method to derive S and A from a given model without increasing the total computational cost. Extensive experiments show that our approach achieves appealing results on popular classification datasets, CIFAR-100 and ImageNet, surpassing state-of-the-art methods.
Introduction
Knowledge Distillation (KD) has become a cornerstone of model compression, enabling the transfer of knowledge from a large, high-performing "teacher" model (T) to a smaller "student" model (S). The goal is to achieve teacher-level performance with a fraction of the computational footprint. However, a persistent "capacity gap" often limits this process: a small student lacks the representational power to perfectly mimic a complex teacher, leading to significant information loss and a performance plateau.
To address this, we introduce Residual Knowledge Distillation (RKD). Instead of relying solely on a single student, RKD introduces a lightweight "assistant" model (A) to capture the residual knowledge that the student fails to learn. As shown in the performance curves, RKD consistently outperforms vanilla KD and standard student models across various computational budgets.
Methodology
The core innovation of RKD is the introduction of an assistant model that works in tandem with the student, inspired by the philosophy of Residual Networks (ResNets).
Residual Learning
In RKD, the student $S$ learns the primary features of the teacher $T$, while the assistant $A$ is specifically trained to learn the residual error—the "leftover" knowledge that $S$ missed. The final output is the sum of the student and assistant feature maps ($S + A \approx T$). This "divide and conquer" strategy allows for more efficient knowledge transfer within a fixed computational budget. To ensure efficiency, RKD splits the capacity of a target architecture (e.g., ResNet-18) rather than adding new parameters. Empirical results suggest a 90/10 split (90% channels for $S$, 10% for $A$) is the optimal balance.
Architectural Variants
We propose three architectural variants to implement this residual transfer:
- Plain RKD: Mimics the final layer's feature maps.
- Progressive RKD: Mimics intermediate blocks, providing layer-wise supervision.
- Integrated RKD: Combines both approaches, allowing the assistant to receive multi-level supervision throughout the network, which proves to be the most robust variant.
Experiments and Results
We evaluated RKD on two benchmark image classification datasets: CIFAR-100 and ImageNet.
Key Results
- ImageNet Performance: Distilling a ResNet-34 into a ResNet-18 using RKD achieved a 71.46% Top-1 accuracy, significantly outperforming the 70.29% baseline and other state-of-the-art methods like FitNets and Attention Transfer (AT).
- Closing the Gap: When distilling a ResNet-101 into a ResNet-50, RKD reached 77.69% accuracy, nearly matching the teacher's original 77.99%.
- Efficiency: Splitting a fixed budget of GFLOPs between a student and an assistant yields higher accuracy than allocating the entire budget to a single monolithic student, proving that the "missing knowledge" in KD is structured and learnable.
Discussion and Conclusion
RKD demonstrates that the performance plateau in standard KD is largely due to the student's inability to capture complex residual information. By introducing a tiny assistant (only 1/10th the size of the student), we can recover this missing knowledge. While the current 90/10 capacity split was determined empirically, future work could utilize Neural Architecture Search (NAS) for automatic optimization. Additionally, the RKD framework could potentially be extended to other forms of knowledge, such as relational or cross-layer correlations. In summary, RKD provides a robust and efficient solution for narrowing the performance gap in model compression.
Summary updated