NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data Pruning via Moving-one-Sample-out

Haoru Tan, Sitong Wu, Fei Du, Yukang Chen, Zhibin Wang, Fan Wang, Xiaojuan Qi

Abstract

Modern deep learning relies on massive datasets that often contain redundant or harmful samples. Data pruning aims to identify a "core set" of informative data to reduce computational costs without sacrificing performance. This paper introduces Moving-one-Sample-out (MoSo), a novel pruning metric that estimates the change in empirical risk when a specific sample is removed. By utilizing a first-order gradient approximation, MoSo effectively distinguishes between truly informative samples and noisy outliers, outperforming existing state-of-the-art methods particularly at high pruning ratios.

Introduction

As dataset sizes grow, the computational burden of training state-of-the-art models increases exponentially. However, not all data points contribute equally to model generalization. Existing pruning techniques often rely on the "hard sample" fallacy, assuming that samples with the highest loss are the most valuable. In reality, these high-loss samples are frequently mislabeled data or outliers that can degrade model performance. Furthermore, many current methods rely on static snapshots of pre-trained models, failing to account for the evolving importance of samples throughout the training process.

To address these gaps, we propose Moving-one-Sample-out (MoSo), a dynamic pruning metric that measures a sample's contribution to the overall learning objective by analyzing its alignment with the global gradient trajectory.

Methodology

The MoSo Score

Theoretically, the importance of a sample $z$ can be defined by the difference between the optimal loss of a model trained on the full dataset and a model trained on the dataset excluding $z$. Since retraining the model $N$ times is computationally prohibitive, MoSo employs a first-order approximator.

Core Algorithm and Intuition

Instead of exhaustive retraining, MoSo calculates the inner product between the gradient of a specific sample and the average gradient of the entire training set across multiple training epochs.

  • Gradient Alignment: If a sample’s gradient consistently aligns with the global gradient, optimizing for that sample helps the model generalize to the rest of the data. These are identified as "representative" samples.
  • Dynamics: By sampling gradients from different training stages, MoSo captures the cumulative importance of a sample, accounting for the fact that some data may be critical early in training but redundant later.

Parallel Acceleration and Partitioning

To scale to massive datasets like ImageNet-1K, the authors partition the data into subsets. Interestingly, scoring a sample within a smaller subset makes its individual impact on the "average gradient" more pronounced. This partitioning not only speeds up the scoring process through parallelization but also improves the accuracy of the importance scores.

Experimental Evaluation

Datasets and Setup

The researchers evaluated MoSo on three standard benchmarks:

  • CIFAR-100: 50,000 images, 100 categories.
  • Tiny-ImageNet: 100,000 images, 200 categories.
  • ImageNet-1K: Over 1 million images, 1,000 categories.

To test robustness, the authors also introduced versions of these datasets with 20% synthetic label noise.

Key Results

  1. State-of-the-Art Performance: MoSo significantly outperformed baselines such as GraNd, EL2N, and Forgetting scores. The performance gap was most notable at high pruning rates (70-80%), where MoSo maintained higher accuracy than its competitors.
  2. Noise Robustness: In the presence of 20% label noise, MoSo successfully identified and excluded harmful samples. While difficulty-based metrics often mistakenly prioritize noise (due to high loss), MoSo's accuracy remained stable.
  3. Cross-Architecture Generalization: Scores calculated using a ResNet-50 surrogate model proved effective when training entirely different architectures, such as SENet or EfficientNet, on the resulting core set.
  4. Efficiency: MoSo provides a superior balance between accuracy and compute time compared to optimization-based methods (like OPT), making it viable for large-scale applications.

Discussion and Insights

The success of MoSo highlights a shift in data pruning philosophy: from asking "how hard is this sample?" to "how much does this sample agree with the overall goal of the dataset?" By focusing on agreement rather than difficulty, MoSo mathematically distinguishes between helpful signal and harmful noise. Informative samples yield positive scores (their removal increases risk), while noisy samples often yield negative scores (their removal decreases risk).

Limitations and Future Work

MoSo assumes that the "signal" in a dataset is stronger than the "noise." In scenarios where a dataset is overwhelmingly comprised of incorrect data, the average gradient vector could become biased, potentially leading to incorrect sample selection. Future research should explore MoSo's effectiveness in complex, non-classification domains, such as large-scale multimodal learning (e.g., CLIP), and investigate higher-order approximations for even greater robustness in extreme noise conditions.

Conclusion

Moving-one-Sample-out (MoSo) provides a theoretically grounded and computationally efficient framework for data pruning. By leveraging training dynamics and gradient alignment, it identifies high-quality core sets that maintain model performance even at extreme pruning ratios, offering a scalable solution for efficient deep learning.

Summary updated

BibTeX
@inproceedings{tan2023data,
  author = {Haoru Tan and Sitong Wu and Fei Du and Yukang Chen and Zhibin Wang and Fan Wang and XIAOJUAN QI},
  title = {{Data Pruning via Moving-one-Sample-out}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=vO6ZdPWaHc},
}
Figure