Distilling the Knowledge in Data Pruning

Emanuel Ben Baruch, Adam Botach, Igor Kviatkovsky, Manoj Aggarwal, Gerard Medioni

As deep learning datasets grow to massive scales, training becomes computationally expensive and time-consuming. Data pruning aims to solve this by selecting a small, representative subset of the training data that maintains the model's performance. However, existing pruning algorithms face a major hurdle: as more data is pruned (the "high pruning regime"), accuracy drops significantly.

Many sophisticated algorithms try to retain "hard" samples—those the model finds difficult to classify. The problem is that these "hard" samples are often just noisy, low-quality, or ambiguous images. When they make up a large portion of a heavily pruned training set, they can lead the model astray.

Examples of "hard" samples selected by pruning algorithms, showing high ambiguity and low quality.

Integrating Knowledge Distillation

To combat this degradation, researchers propose integrating Knowledge Distillation (KD) into the data pruning pipeline. Instead of training a student model solely on ground-truth labels from a pruned subset, the student is guided by "soft labels" (probability distributions) from a teacher model pre-trained on the entire dataset.

Key technical components of this approach include:

  • Self-Distillation (SD): Employing a teacher and student with identical architectures.
  • Dynamic KD Weighting: The weight of the distillation loss ($\alpha$) should be adjusted based on the pruning factor ($f$). When only a tiny fraction of data is kept, the student must rely more heavily on the teacher than on the potentially noisy ground-truth labels.
  • Theoretical Grounding: Using a linear regression framework, the authors mathematically demonstrate that a teacher trained on the full dataset effectively reduces the estimation bias of a student trained on a subset.

Key Insights and Results

Evaluated across standard benchmarks like CIFAR-10/100, SVHN, and ImageNet-1K, the KD-enhanced pruning strategy yielded several surprising insights:

Random Pruning is a "Sleeper" Hit: One of the most practical findings is that when using KD, simple random pruning is often as good as, or better than, complex selection algorithms like 'forgetting' or GraNd. Because random pruning doesn't over-index on noisy "hard" samples, it provides a more balanced distribution for the teacher to distill from.

Accuracy vs. pruning methods on CIFAR-100, showing "Random + KD" outperforming sophisticated methods.

The KD Weight Paradox: As the pruning factor decreases (meaning less data is available), the optimal KD weight increases. Essentially, in data-scarce regimes, relying on the teacher's "dark knowledge" is crucial to mitigate label noise.

Smaller Teachers Can Be Better: In a counter-intuitive twist, the authors found that in high-pruning regimes, using a teacher with a smaller capacity than the student can actually improve results. This suggests that the "capacity gap"—the difficulty a student has in mimicking a much more complex teacher—becomes a major bottleneck when data is scarce.

Performance Gains: The results are substantial. On ImageNet, the authors achieved superior accuracy compared to a full-data baseline while training on a random subset of only 50% of the data. On CIFAR-100, with only 10% of the data retained, KD improved random pruning accuracy by 17% (from 39.8% to 56.8%).

Limitations and Future Work

While highly effective, the study currently focuses exclusively on image classification; it remains to be seen how these insights translate to domains like object detection or Large Language Models (LLMs). Additionally, while the student trains faster on pruned data, the method still requires training a teacher on the full dataset once. Future work could explore using off-the-shelf or "weak" teachers to eliminate this initial computational cost.

Summary updated

BibTeX
@inproceedings{baruch2025distilling,
  author = {Emanuel Ben Baruch and Adam Botach and Igor Kviatkovsky and Manoj Aggarwal and Gerard Medioni},
  title = {{Distilling the Knowledge in Data Pruning}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=D8xx4Gl3MJ},
}
Figure