Dataset Pruning: Reducing Training Data by Examining Generalization Influence

Shuo Yang, Zeke Xie, Hanyu Peng, Min Xu, Mingming Sun, Ping Li

Deep learning’s remarkable success is largely fueled by massive datasets, but this scale comes with a staggering price tag in terms of computation, electricity, and infrastructure. While the research community has developed numerous techniques to prune "redundant" parameters from models, "redundant" training data has received far less attention.

Recent research introduces an optimization-based Dataset Pruning method that removes redundant training data while theoretically guaranteeing the "generalization gap." By analyzing how groups of samples interact, the method can prune 40% of a dataset like CIFAR-10, halving training time with only a negligible 1.3% drop in accuracy.

The Problem with Existing Data Selection

Existing data selection methods typically assign a "score" to each individual sample—such as how often a model forgets it during training or the magnitude of its gradient—and retain the highest-scoring examples. However, these heuristic approaches suffer from two major flaws:

  1. Lack of Guarantees: They offer no theoretical assurance that the selected subset will generalize well to unseen data.
  2. Ignoring the "Joint Effect": They treat samples in isolation. In reality, two samples might both have high gradients but point in opposite directions, effectively canceling each other out. A score-based method would keep both, whereas an ideal method would recognize the redundancy.

Optimization-Based Dataset Pruning

To address these flaws, the authors propose looking at the influence of a subset on the model's final parameters, rather than evaluating samples one by one.

  • Influence Functions: Retraining a model $2^n$ times to evaluate every possible subset is computationally impossible. Instead, the authors use "Influence Functions," a technique leveraging a linear approximation (involving the Hessian matrix of the loss function) to estimate how the model's parameters would change if a specific set of data were omitted.
  • Discrete Optimization: Pruning is formulated as a search for the largest possible subset of data that can be removed such that the estimated change in model parameters remains below a strict, small threshold ($\epsilon$).
  • Simulated Annealing: Because finding the absolute best subset is a complex combinatorial problem, the researchers employ simulated annealing—a probabilistic search algorithm—to find a high-quality solution within a reasonable time budget.

Key Insights and Cross-Architecture Generalization

The most significant takeaway from this approach is that the group effect matters. The joint influence of a subset is not merely the sum of its individual scores. By optimizing for collective influence, the method identifies redundancies that popular score-based methods (like GraNd or EL2N) miss. Furthermore, the authors provide a mathematical proof showing that the performance gap between a model trained on the full set versus the pruned set is strictly bounded by the parameter change constraint ($\epsilon$).

Interestingly, the pruned datasets are highly robust across different neural network architectures.

Cross-architecture generalization performance. Datasets pruned using a smaller model (e.g., SENet) maintain high performance when used to train larger models (e.g., ResNet50).

As shown above, you can use a small, computationally "cheap" model (like SENet) to identify redundant data, and then use that pruned dataset to train a much larger, "expensive" model (like ResNet50) without losing the generalization benefits. This architecture agnosticism makes the method highly practical.

Empirical Results and Efficiency Gains

The researchers evaluated their method on standard computer vision benchmarks: CIFAR-10, CIFAR-100, and Tiny-ImageNet.

  • Efficiency and Accuracy: On CIFAR-10, the method pruned 40% of the training data, which halved the convergence time. This massive reduction resulted in only a 1.3% decrease in test accuracy.
  • Superiority at Scale: As data becomes scarcer at higher pruning ratios (e.g., removing 60% or 80% of the data), the "group effect" becomes increasingly critical.
Test accuracy across different pruning ratios on CIFAR-10, CIFAR-100, and Tiny-ImageNet. The optimization-based method consistently outperforms score-based baselines.

The optimization-based method significantly widens the performance gap over traditional score-based methods at these extreme pruning levels.

Additionally, dataset pruning acts as a force multiplier for Neural Architecture Search (NAS). By using a pruned "proxy" dataset (just 2% of the original size), the authors identified top-performing architectures in a 720-network search space in just 113 minutes, compared to over 3,000 minutes required when using the full dataset.

Limitations and Future Directions

While highly effective, the method does have computational overhead. Calculating the Hessian matrix for influence functions is expensive for very large models. The authors mitigated this by only calculating influence for the last linear layer, but extending this efficiently to all layers in massive models remains an open challenge.

Furthermore, simulated annealing adds an upfront optimization cost. For a single training run, this might not yield a net time savings. However, for scenarios like NAS or hyperparameter tuning where the same dataset is iterated over hundreds of times, the trade-off is overwhelmingly favorable. Future research will likely explore whether these generalization guarantees hold for more complex domains, such as natural language processing and generative modeling.

Summary updated

BibTeX
@inproceedings{yang2023dataset,
  author = {Shuo Yang and Zeke Xie and Hanyu Peng and Min Xu and Mingming Sun and Ping Li},
  title = {{Dataset Pruning: Reducing Training Data by Examining Generalization Influence}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=4wZiAXD29TQ},
}
Figure