NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Decoupled Knowledge Distillation

Borui Zhao, Quan Cui, Renjie Song, Yiyu Qiu, Jiajun LiangarXiv 2022

Abstract

State-of-the-art distillation methods are mainly based on distilling deep features from intermediate layers, while the significance of logit distillation is greatly overlooked. To provide a novel viewpoint to study logit distillation, we reformulate the classical KD loss into two parts, i.e., target class knowledge distillation (TCKD) and non-target class knowledge distillation (NCKD). We empirically investigate and prove the effects of the two parts: TCKD transfers knowledge concerning the "difficulty" of training samples, while NCKD is the prominent reason why logit distillation works. More importantly, we reveal that the classical KD loss is a coupled formulation, which (1) suppresses the effectiveness of NCKD and (2) limits the flexibility to balance these two parts. To address these issues, we present Decoupled Knowledge Distillation (DKD), enabling TCKD and NCKD to play their roles more efficiently and flexibly. Compared with complex feature-based methods, our DKD achieves comparable or even better results and has better training efficiency on CIFAR-100, ImageNet, and MS-COCO datasets for image classification and object detection tasks. This paper proves the great potential of logit distillation, and we hope it will be helpful for future research.

Introduction

Knowledge Distillation (KD) aims to transfer "knowledge" from a large, powerful "teacher" model to a smaller, efficient "student" model. Historically, this was done using logit distillation—comparing the final output probabilities of both models. However, logit distillation has recently been overshadowed by feature distillation, which compares high-dimensional internal representations. While feature distillation often performs better, it is computationally expensive, requiring extra memory and complex "hint" layers. This research investigates why logit distillation underperforms and discovers that the standard KD loss function (KL-Divergence) inherently couples two types of information in a way that limits the student's ability to learn, especially when the teacher is highly confident.

Methods: Decoupling the Loss

The core contribution is a mathematical reformulation of the classical KD loss into two distinct parts:

  1. Target Class Knowledge Distillation (TCKD): This focuses on the binary relationship between the correct (target) class and all other classes, essentially conveying how "difficult" a specific sample is to classify.
  2. Non-Target Class Knowledge Distillation (NCKD): This focuses on the relative probabilities among the incorrect classes, providing the "dark knowledge" that characterizes class similarities.
Comparison between Classical KD and Decoupled KD (DKD).

In the classical formula, the NCKD term is multiplied by a coefficient $(1 - p_t^T)$, where $p_t^T$ is the teacher's confidence. This means if a teacher is very sure (e.g., 99% confident), the "dark knowledge" from non-target classes is almost entirely ignored. Decoupled Knowledge Distillation (DKD) removes this suppression, defining the loss as $DKD = \alpha TCKD + \beta NCKD$. By using independent hyperparameters, DKD allows the student to learn from non-target relationships even when the teacher is highly confident.

Key Results and Discussion

The authors validated DKD across several standard benchmarks, including CIFAR-100, ImageNet-1K, and MS-COCO.

  • Performance and Efficiency: On ImageNet, DKD helped a ResNet-18 student reach 71.70% top-1 accuracy, outperforming classical KD (70.66%) and matching complex feature-based methods like ReviewKD. Crucially, DKD adds zero parameters and has negligible computational overhead. As shown in the figure below, DKD achieves state-of-the-art accuracy with significantly lower training time compared to methods like CRD.
Accuracy vs. training time for various distillation methods.
  • Insights: The study proves that TCKD is most beneficial when training data is challenging (e.g., strong augmentation), while NCKD is the primary driver of logit distillation success. By decoupling them, DKD demonstrates that logits—representing high-level semantic abstraction—can be as effective as features for distillation.
  • Object Detection: When applied to Faster R-CNN on MS-COCO, DKD improved Average Precision (AP) significantly, showing that logit and feature distillation can be complementary.

Limitations and Future Work

While DKD excels in classification, logit-based methods still struggle to transfer "localization" knowledge in object detection as effectively as feature-based methods. Additionally, optimal values for $\alpha$ and $\beta$ can vary slightly depending on the teacher-student pair. Future research could explore the application of this decoupling logic to other domains, such as Natural Language Processing.

Summary updated

BibTeX
@misc{zhao2022decoupled,
  author = {Borui Zhao and Quan Cui and Renjie Song and Yiyu Qiu and Jiajun Liang},
  title = {{Decoupled Knowledge Distillation}},
  year = {2022},
  eprint = {2203.08679},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.08679},
}
Figure