Medium-Difficulty Samples Constitute Smoothed Decision Boundary for Knowledge Distillation on Pruned Datasets

Yudong Chen, Xuwei Xu, Frank de Hoog, Jiajun Liu, Sen WangICLR 2025

TL;DR

Contrary to the conventional wisdom that "hard" samples are the most valuable for training, this paper demonstrates that for Knowledge Distillation (KD), medium-difficulty samples are actually the "Goldilocks" zone. By selecting these samples and applying a novel "logit reshaping" technique, the authors achieve higher accuracy than full-dataset training while cutting training time by up to 50%.

What Problem Does This Paper Address?

Training state-of-the-art Deep Neural Networks (DNNs) is computationally expensive and requires massive datasets. Dataset pruning aims to identify and keep only the most informative samples to reduce this burden.

In standard supervised learning, pruning methods typically prioritize "hard" samples—those closest to the decision boundary—because they define the fine nuances between classes. However, the authors find that this strategy fails in Knowledge Distillation (KD), where a small "student" model learns from a large "teacher" model. Because student models have limited capacity, they struggle to mimic the teacher’s complex handling of hard samples. This leads to "Decision Boundary Drift," where the student’s classification boundaries shift into incorrect territory, causing poor generalization.

Methods: MDSLR

The authors propose a two-pronged approach called MDSLR (Medium-Difficulty Samples with Logit Reshaping):

  1. Medium-Difficulty Selection: Instead of keeping the hardest samples (high loss) or easiest samples (low loss), the method selects samples from the middle of the difficulty distribution. The hypothesis is that these samples provide a "smoothed" version of the decision boundary that is easier for a capacity-constrained student to learn without causing boundary drift.
  2. Logit Reshaping: Pruning a dataset inherently shifts its statistical distribution. To fix this, the authors record the teacher's class-wise logit information (specifically the standard deviation of logits) across the entire dataset before pruning. During student training, they use this global information to "reshape" the teacher's logits for the remaining samples, ensuring the student still receives a "global" perspective of the class relationships despite seeing only a fraction of the data.

This is a static pruning method, meaning the dataset is pruned once at the beginning, which is significantly more I/O efficient than "dynamic" methods that re-evaluate the dataset every epoch.

Key Insights and Ideas

  • The Hard Sample Trap: In KD, hard samples are often "too hard." The student’s attempt to learn them results in overlapping feature clusters and a messy decision boundary. Medium samples provide enough information to distinguish classes without the noise of outliers.
t-SNE visualizations of feature distributions for Full, Hard, and Easy subsets
  • Smoothed Boundaries: Visualizations show that medium-difficulty samples create a decision boundary that is more stable and better aligned with the teacher’s original intent compared to hard or easy subsets.
  • Static Beats Dynamic: Surprisingly, this static approach outperformed state-of-the-art dynamic pruning methods. This suggests that which samples you pick is more important than when you pick them.
  • Efficiency vs. Accuracy: The paper challenges the idea of a "trade-off." In many cases, using 70% of the data actually resulted in better accuracy than using 100%, suggesting that pruning can act as a form of regularization by removing redundant or confusing data.

Key Results

  • ImageNet Performance: With a 50% keep ratio (half the data), the method improved student accuracy by 0.4% while halving the training time.
  • Surpassing Vanilla KD: When keeping 70% of the samples, the method achieved higher accuracy than training on the full dataset with standard KD, while still reducing training time by 30%.
  • Robustness: The benefits held true across various architectures, including ResNet, MobileNet, and VGG, proving the method isn't tied to a specific model type.
  • Transfer Learning: Students trained on pruned datasets using this method showed superior performance when transferred to new datasets (CUB-200/Cars-196), indicating they learned more robust features.

Limitations and Future Work

  • Teacher Dependency: The method requires a pre-trained teacher to rank sample difficulty. While standard in KD, this adds an initial computational step.
  • Class-Wise Granularity: The logit reshaping currently relies on class-level averages. The authors suggest that more fine-grained, instance-specific reshaping might yield even better results.
  • Advanced Losses: While the paper focuses on "vanilla" KD, preliminary results show it can be combined with more complex distillation losses, suggesting a promising path for future integration.

Summary updated

BibTeX
@inproceedings{chen2025medium,
  author = {Yudong Chen and Xuwei Xu and Frank de Hoog and Jiajun Liu and Sen Wang},
  title = {{Medium-Difficulty Samples Constitute Smoothed Decision Boundary for Knowledge Distillation on Pruned Datasets}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Rz4UkJziFe},
}
Figure