Correlation Congruence for Knowledge Distillation

Baoyun Peng, Xiao Jin, Dongsheng Li, Shunfeng Zhou, Yichao Wu, Jiaheng Liu, Zhaoning Zhang, Yu LiuICCV 2019 · DOI

Abstract

Knowledge Distillation (KD) typically focuses on instance-level congruence, where a student model mimics a teacher's output for individual samples. We present Correlation Congruence (CCKD), a framework that transfers the relational knowledge between instances. By capturing the underlying topology of the teacher's feature space using kernel-based correlation matrices, CCKD enables students to learn complex inter-instance structures. Experiments across classification, person re-identification, and face recognition demonstrate significant performance gains over traditional KD methods.

Introduction

Deep Neural Networks (DNNs) have achieved state-of-the-art performance in various computer vision tasks but are often too computationally expensive for deployment on resource-constrained devices. Knowledge Distillation has emerged as a primary technique to address this, where a compact "student" network is trained to replicate the behavior of a larger, pre-trained "teacher" network.

The Limitation of Instance Congruence

Traditional KD methods primarily rely on instance congruence. In this paradigm, the student is supervised to produce feature representations or soft labels for a single image that match those of the teacher. While effective, this approach overlooks the rich structural information present in the relationships between different instances.

Conceptual comparison between traditional Instance Congruence and the proposed Correlation Congruence.

A teacher model does more than just classify individual images; its internal feature space encodes the relative similarities and differences between classes (e.g., how a "husky" is more similar to a "wolf" than to a "car"). Without learning these relational structures, the student's embedding space may lack the discriminative power and cohesive topology of the teacher's.

Correlation Congruence (CCKD)

To bridge this gap, we propose Correlation Congruence for Knowledge Distillation (CCKD). This framework encourages the student to mimic the inter-instance correlations found in the teacher's feature space.

Overview of the CCKD framework, illustrating the simultaneous transfer of instance-level and correlation-level knowledge.

Technical Innovations

  1. Correlation Congruence Loss: We introduce a loss term that minimizes the distance between the teacher’s and student’s correlation matrices within a mini-batch. This ensures the student learns the "big picture" of how data points relate to one another.
  2. Generalized Kernel-Based Correlation: To capture complex, non-linear relationships, we utilize a Gaussian RBF kernel. To maintain computational efficiency during training, we approximate this kernel using a Taylor series expansion, allowing the model to capture higher-order structural information without the overhead of full kernel computation.
  3. Relational Sampling Strategies: Effective correlation learning requires mini-batches with meaningful relationships. We introduce the CUR-sampler (sampling within classes) and the SUR-sampler (sampling from teacher-defined "superclasses" via K-means) to provide the student with diverse and structured relational data.

Experimental Results

CCKD was evaluated across several challenging benchmarks, consistently outperforming standard KD and other state-of-the-art distillation techniques:

  • Image Classification: On CIFAR-100, a ResNet-20 student achieved 72.4% Top-1 accuracy, a significant improvement over the 70.8% achieved by standard KD. On ImageNet, CCKD helped a MobileNetV2 student reach 67.7% accuracy.
  • Metric Learning: In Person Re-Identification (MSMT17), CCKD improved Rank-1 accuracy by 3.1% over standard KD, demonstrating its strength in open-set tasks where embedding topology is critical.
  • Face Recognition: On the million-scale MegaFace benchmark, CCKD achieved an 86.29% Rank-1 identification rate, significantly surpassing the baseline student model.

Conclusion

Correlation Congruence shifts the focus of knowledge distillation from individual data points to the broader relational structure of the feature space. By teaching students the "big picture," CCKD produces more robust and discriminative models suitable for a wide range of vision tasks. Future work may explore applying these relational principles to other domains, such as Natural Language Processing.

Summary updated

BibTeX
@inproceedings{peng2019correlation,
  author = {Baoyun Peng and Xiao Jin and Dongsheng Li and Shunfeng Zhou and Yichao Wu and Jiaheng Liu and Zhaoning Zhang and Yu Liu},
  title = {{Correlation Congruence for Knowledge Distillation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00511},
}
Figure