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

CAKD: A Correlation-Aware Knowledge Distillation Framework Based on Decoupling Kullback-Leibler Divergence

Zao Zhang, Huaming Chen, Pei Ning, Nan Yang, Dong Yuan · DOI

Abstract

Knowledge Distillation (KD) is a widely used technique for transferring knowledge from a complex teacher model to a compact student model. Traditional methods rely on Kullback-Leibler (KL) divergence to minimize the difference between probability distributions; however, this approach often treats the distillation loss as a monolithic "black box," potentially transferring redundant noise alongside critical information. This paper introduces Correlation-Aware Knowledge Distillation (CAKD), a framework that mathematically decouples the standard KL divergence into three distinct components: Binary Classification Divergence (BCD), Strong Correlation Divergence (SCD), and Weak Correlation Divergence (WCD). By independently weighting these components, CAKD allows student models to prioritize high-quality, relevant information, resulting in state-of-the-art performance across multiple computer vision benchmarks.

Introduction

In the pursuit of deploying deep learning models on resource-constrained devices, Knowledge Distillation (KD) has emerged as a vital strategy. The standard objective is to train a student model to mimic the output distribution of a pre-trained teacher. While effective, the standard KL divergence loss function does not distinguish between the varying levels of importance within the teacher's output. Drawing inspiration from model pruning—where specific features are identified as critical while others are deemed redundant—the authors of CAKD argue that not all parts of a teacher's knowledge are equally beneficial for the student. Treating every logit or feature with equal weight can lead to the transfer of less relevant information, effectively capping the student's potential.

The CAKD Framework

The core innovation of CAKD lies in the rigorous, lossless decomposition of the KL divergence loss. The framework identifies that the standard loss can be broken down into three sub-parts that represent different aspects of the teacher's knowledge:

  1. Binary Classification Divergence (BCD): This component measures the student's ability to distinguish between "important" (strong correlation) and "unimportant" (weak correlation) features as defined by the teacher.
  2. Strong Correlation Divergence (SCD): This focuses specifically on the internal distribution of features that are highly relevant to the final prediction, ensuring the student captures the teacher's primary logic.
  3. Weak Correlation Divergence (WCD): This addresses the distribution of the remaining, less-relevant features, which may still contain subtle nuances of the teacher's reasoning.

Implementation Strategy

The CAKD framework operates through a two-step process. First, it employs Feature Scoring to categorize logits or internal representations into two clusters: $S$ (Strong) and $W$ (Weak). Second, it applies a Weighted Loss mechanism. By introducing hyperparameters ($\alpha$ and $\beta$) to the SCD and WCD components, researchers can selectively amplify the most critical knowledge streams. This versatility allows CAKD to be applied to both logit-based distillation (final outputs) and feature-based distillation (internal representations).

Experimental Results

The authors evaluated the CAKD framework on three standard image classification benchmarks: CIFAR-100, Tiny-ImageNet, and ImageNet. The testing involved various architectures, including ResNet, WideResNet, ShuffleNet, and MobileNet, to ensure the method's robustness.

Performance Highlights

CAKD consistently outperformed baseline KD and other state-of-the-art (SOTA) methods such as Decoupled Knowledge Distillation (DKD) and ReviewKD:

  • CIFAR-100: In a ResNet56 (teacher) to ResNet20 (student) distillation task, CAKD achieved 72.27% accuracy, significantly higher than the baseline KD (70.38%) and the previous SOTA, NKD (71.98%).
  • ImageNet: For ResNet34 to ResNet18 distillation, CAKD reached 72.17% Top-1 accuracy, demonstrating its effectiveness on large-scale datasets.
  • Cross-Architecture Robustness: The framework proved successful even when the teacher and student utilized different architectural styles (e.g., distilling from a ResNet to a ShuffleNet), highlighting its generalizability.

Discussion and Key Insights

A critical finding of this research is the relationship between Teacher Confidence and the ideal balance of loss components. The authors observed that when a teacher is highly confident, the "strong" features are distinct, and SCD should be prioritized. Conversely, if the teacher is less certain, the WCD component often carries more "difficult knowledge" that is essential for the student to parse.

Unlike methods that rely on approximations or simplifications, CAKD's decoupling is mathematically rigorous. This "lossless" nature provides a clearer understanding of the internal mechanics of KL divergence, transforming it from a black box into a tunable instrument for model optimization.

Limitations and Future Work

While CAKD shows significant promise, its effectiveness is sensitive to the accuracy of the clustering of Strong and Weak features. On complex datasets like Tiny-ImageNet, lower teacher confidence can lead to less accurate feature masks, resulting in more modest performance gains compared to CIFAR-100.

Future research will focus on extending CAKD to more complex multi-class classification scenarios and exploring its application in domains beyond computer vision, such as natural language processing, to further validate the framework's broad utility.

Summary updated

BibTeX
@inproceedings{zhang2024cakd,
  author = {Zao Zhang and Huaming Chen and Pei Ning and Nan Yang and Dong Yuan},
  title = {{CAKD: A Correlation-Aware Knowledge Distillation Framework Based on Decoupling Kullback-Leibler Divergence}},
  booktitle = {ICDM},
  year = {2024},
  doi = {10.1109/icdm59182.2024.00122},
}
Figure