Abstract
As neural network training scales to massive datasets, data pruning has emerged as a vital technique for reducing computational costs. However, existing pruning methods often suffer from significant accuracy degradation, particularly when keeping only a small fraction of the data. This paper introduces a framework that integrates Knowledge Distillation (KD) into the data pruning pipeline. By using a teacher model trained on the full dataset to guide a student training on a pruned subset, we demonstrate substantial performance improvements across various benchmarks. Crucially, we observe that with KD, simple random pruning often matches or exceeds the performance of complex, computationally expensive pruning algorithms. We also identify a "capacity gap paradox" where smaller teachers can outperform larger ones in extremely low-data regimes.
Introduction: The Challenges of Data Pruning
The exponential growth of datasets has made training state-of-the-art models prohibitively expensive. Data pruning seeks to mitigate this by selecting a subset of "informative" samples for training. Despite its promise, two primary bottlenecks persist:
- The Accuracy Gap: Models trained on pruned subsets rarely reach the performance of those trained on the full dataset, especially at high pruning rates (e.g., keeping <20% of data).
- The Noise Trap: Many algorithms prioritize "hard" samples, which in real-world data are often noisy, mislabeled, or low-quality. Training exclusively on these outliers can lead to poor generalization.
Methodology: Pruning with Knowledge Distillation
We propose a straightforward yet powerful solution: Pruning + KD. The process involves three steps:
- Teacher Training: A teacher model is trained on the complete dataset $\mathcal{D}$.
- Data Pruning: A subset $\mathcal{P}$ is selected using a pruning algorithm (e.g., Random, Forgetting, GraNd, or EL2N).
- Distillation: A student model is trained on the subset $\mathcal{P}$, guided by both ground-truth labels and the "soft" probability outputs of the teacher.
A key component of our approach is Adaptive KD Weighting. We found that as the pruning fraction ($f$) decreases, increasing the weight of the teacher's signal ($\alpha$) helps the student ignore the noise inherent in "hard" samples and focus on the underlying data distribution.
Key Empirical Findings
Random Pruning is a Strong Baseline
The most significant finding is that when KD is employed, the choice of pruning algorithm becomes less critical. In fact, simple random selection often outperforms sophisticated scoring methods.
As shown in Figure 2, "Random + KD" consistently maintains higher accuracy than complex methods like GraNd or EL2N, particularly in high-pruning regimes. On ImageNet, a model trained on a random 50% subset with KD even surpassed the accuracy of a model trained on the full 100% dataset without KD.
The Capacity Gap Paradox
In traditional KD, larger teachers generally provide better guidance. However, we discovered a "capacity gap paradox" in data pruning: when data is extremely scarce, larger teachers can actually hurt performance.
Figure 3 illustrates that for very small data fractions, students benefit more from teachers with capacities similar to or even smaller than their own. This suggests that the complexity of the teacher's internal representations might overwhelm the student when there aren't enough samples to ground the distillation process.
Discussion and Practical Implications
While our method requires training a teacher on the full dataset—which might seem to negate the savings of pruning—it remains highly practical for scenarios like Hyper-parameter Optimization (HPO) or Neural Architecture Search (NAS). In these cases, a single teacher can be trained once and then used to rapidly train and evaluate hundreds of student architectures on small, pruned subsets.
Furthermore, KD acts as a natural noise filter. By providing soft labels that reflect true class relationships, the teacher prevents the student from over-fitting to the "garbage" samples often selected by hard-sample pruning algorithms.
Conclusion
Integrating Knowledge Distillation into data pruning effectively bridges the accuracy gap and mitigates the impact of noisy data. By making simple random pruning a competitive strategy, this approach simplifies the data pruning pipeline and offers a robust baseline for future research in efficient deep learning.
Summary updated