Knowledge Condensation Distillation

Chenxin Li, Mingbao Lin, Zhiyuan Ding, Nie Lin, Yihong Zhuang, Yue Huang, Xinghao Ding, Liujuan Cao

Summary

Knowledge Condensation Distillation (KCD) shifts the paradigm of knowledge distillation from a passive process to an active one. By identifying and learning only from the most "valuable" information using an Expectation-Maximization (EM) framework, KCD achieves superior accuracy while significantly reducing computational training burdens.

The Redundancy Problem in Knowledge Distillation

Standard Knowledge Distillation (KD) typically involves a large "teacher" model transferring its knowledge—often in the form of soft predictions or feature maps—to a smaller "student" model. Conventionally, this transfer occurs across the entire dataset throughout the training process. However, this approach suffers from significant knowledge redundancy.

As training progresses, not all samples remain equally informative. Once a student has effectively "memorized" a simple sample, continued distillation of that point yields diminishing returns and consumes unnecessary computational resources. This "training burden" not only increases memory and time requirements but can also hinder performance by preventing the student from focusing on more difficult, informative samples.

Comparison between the existing KD paradigm and the proposed Knowledge Condensation Distillation (KCD).

The KCD Framework: An Active Learning Approach

KCD reimagines the student as an active learner. Instead of passively receiving all teacher data, the student identifies and learns only from the most "valuable" information. This is formalized through an Expectation-Maximization (EM) framework where the "value" of a knowledge point is treated as a latent variable:

  1. E-step (Knowledge Condensation): The system estimates the current value of samples based on prediction entropy. Higher entropy indicates student uncertainty, marking the sample as highly informative.
  2. M-step (Model Distillation): The student is trained specifically on the condensed subset of high-value knowledge.

Technical Implementation: OGVE and VAKS

To implement this framework efficiently in batch-based training, KCD introduces two core modules:

Online Global Value Estimation (OGVE)

Because models process data in batches, OGVE maintains a moving average of value statistics across the entire dataset. It incorporates a cost-aware ranking system that prioritizes under-seen samples, ensuring the student doesn't prematurely ignore data it hasn't sufficiently explored.

Value-Adaptive Knowledge Summary (VAKS)

VAKS manages the data partitioning. It categorizes samples into high-value ($K_{1H}$), boundary ($K_{1L}$), and valueless ($K_0$). Rather than simply discarding $K_0$, VAKS uses these samples to perturb the boundary samples, effectively augmenting them to be more informative for the student.

The detailed workflow of Online Global Value Estimation (OGVE) and Value-Adaptive Knowledge Summary (VAKS).

Experimental Evaluation

The researchers evaluated KCD on CIFAR-100 and ImageNet using various architectures (WRN, ShuffleNet, MobileNetV2, VGG).

  • Accuracy Gains: KCD consistently outperformed state-of-the-art methods. On CIFAR-100, a WRN-16-2 student reached 75.70% accuracy, compared to 74.92% with standard KD.
  • Efficiency: On ImageNet (ResNet34 to ResNet18), KCD reduced relative computational costs to 81.61% while simultaneously reducing Top-1 error from 29.34% to 28.61%.
  • Transferability: Knowledge sets condensed for one student architecture were found to be effective for others, suggesting that "knowledge value" reflects fundamental properties of the dataset-teacher relationship.

Conclusion and Future Work

KCD demonstrates that training on less data—if carefully selected—can lead to better results. While highly effective for image classification, future work is needed to adapt this value estimation to complex tasks like object detection and to further explore the theoretical bounds of the EM optimization schedule.

Summary updated

BibTeX
@inproceedings{li2022knowledge,
  author = {Chenxin Li and Mingbao Lin and Zhiyuan Ding and Nie Lin and Yihong Zhuang and Yue Huang and Xinghao Ding and Liujuan Cao},
  title = {{Knowledge Condensation Distillation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20083-0\_2},
}
Figure