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

Improving Knowledge Distillation via Category Structure

Zailiang Chen, Xianxian Zheng, Hailan Shen, Ziyang Zeng, Yukun Zhou, Rongchang ZhaoECCV 2020

Abstract

Knowledge Distillation (KD) aims to transfer expertise from a large "teacher" model to a compact "student" model. While traditional methods focus on individual samples or pairwise correlations, they often introduce noise and lack high-level structural understanding. This paper introduces Category Structure Knowledge Distillation (CSKD), a framework that models intra-category and inter-category relations. By focusing on category centers, CSKD provides a sparser, more principled knowledge transfer mechanism. Experimental results on CIFAR and Tiny ImageNet demonstrate that CSKD consistently outperforms state-of-the-art methods, with student models occasionally surpassing their teachers.

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success but are often too computationally intensive for edge devices. Knowledge Distillation (KD) addresses this by training a smaller student model to mimic a larger teacher. Conventional KD focuses on point-to-point mimicry of soft targets. Recent relational KD methods attempt to capture sample-to-sample correlations, but these can be noisy as they treat all pairs equally regardless of semantic relevance.

Comparison of Knowledge Distillation approaches: (a) Conventional KD, (b) Correlation KD, and (c) the proposed Category Structure KD.

As shown in Figure 1, Category Structure KD (CSKD) moves beyond simple correlations by introducing abstract, category-level structured relations. This approach filters out redundant sample-level noise and focuses on the underlying geometry of the feature space.

Methodology: Category Structure Knowledge Distillation

CSKD models the data distribution through two primary structural components that capture high-level relations:

1. Intra-category Structure

Instead of comparing every sample to every other sample, CSKD calculates a category center—the mean feature representation for a specific class within a mini-batch. The student model is then tasked with mimicking the relative distance of each sample to its respective category center. This encourages the student to form tight, cohesive clusters for each class in the embedding space.

2. Inter-category Structure

This component captures the global relationships between different classes by calculating the similarity between category centers themselves. For instance, it helps the student learn that the "cat" category is semantically closer to "dog" than to "airplane."

The CSKD framework illustrating the flow of Intra-category and Inter-category structure transfer from teacher to student.

By utilizing these centers, the method creates a more efficient and principled set of relations to transfer. Mathematically, this reduces complexity and focuses the distillation process on the most informative structural features of the teacher's knowledge, ignoring redundant sample-to-sample noise.

Experimental Results

The researchers evaluated CSKD across several benchmarks, including CIFAR-10, CIFAR-100, and Tiny ImageNet, using various ResNet architectures.

  • Performance Gains: On CIFAR-100, student models achieved accuracy boosts of up to 4.15% over baseline training. On Tiny ImageNet, CSKD outperformed standard KD by approximately 4% in both Top-1 and Top-5 accuracy, even with a massive capacity gap between teacher and student.
  • Student Surpassing Teacher: A notable finding was that on CIFAR-10, a ResNet50 student trained via CSKD reached 93.20% accuracy, surpassing its ResNet101 teacher (92.91%).
  • Feature Visualization: t-SNE visualizations confirmed that CSKD leads to significantly tighter class clusters and clearer decision boundaries compared to other state-of-the-art relational KD methods.

Conclusion

Category Structure Knowledge Distillation (CSKD) represents a shift from noisy sample-level correlations to principled category-level structures. By leveraging intra-category and inter-category relations, CSKD enables student models to capture the high-level semantic organization of the teacher model. While the method currently depends on mini-batch composition, future work will explore specialized samplers and applications to multi-label classification tasks.

Summary updated

BibTeX
@inproceedings{chen2020improving,
  author = {Zailiang Chen and Xianxian Zheng and Hailan Shen and Ziyang Zeng and Yukun Zhou and Rongchang Zhao},
  title = {{Improving Knowledge Distillation via Category Structure}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58604-1\_13},
}
Figure