Data pruning

Also known as: coreset selection

On this page 7

Data pruning is the practice of selecting a smaller, more informative subset of a training set and discarding the rest, so that a model trained on the subset reaches accuracy close to the full-data baseline at a fraction of the cost. In artificial intelligence it belongs to the curation of Training data, and it is also known as coreset selection when the goal is a subset that provably approximates the full dataset.

The idea rests on a simple observation: not every example contributes equally to learning. Many examples are near-duplicates, trivially easy or mislabeled, and removing them can cut training compute by 20-60 percent on large datasets with little or no loss, and sometimes with a measurable gain.

How data pruning scores and removes examples

Data pruning works by assigning each example an importance score, ranking the dataset by that score and keeping a chosen fraction. The score is computed by a proxy model, by the target model early in training or by an embedding model, and the kept fraction is called the pruning ratio or retention rate.

A typical pipeline has four steps: train or load a scoring model, compute a per-example metric, sort and select by a rule such as top-k or class-balanced sampling, then retrain from scratch on the subset. Retraining matters, because scores from a partly trained model reflect its current state rather than the final difficulty of each sample.

The table below lists the most widely used scoring signals and what each one measures.

ScoreWhat it measuresCost to compute
EL2NNorm of the error vector early in trainingA few epochs of training
GraNdExpected gradient norm per exampleSeveral gradient passes
Forgetting scoreHow often a learned example is later misclassifiedFull training run with logging
Loss or perplexityHow surprising the example is to a reference modelOne forward pass
Embedding prototypicalityDistance to a cluster centroid in embedding spaceOne embedding pass plus clustering
Common importance scores in data pruning

Pruning strategies and when each applies

The central design choice is which examples to keep: the easy ones, the hard ones or a mix. Research on neural scaling shows that the answer depends on dataset size. With abundant data, keeping hard examples works best; with scarce data, keeping easy examples protects the model from noise and outliers it cannot yet fit.

Hard-example selection carries a specific risk. The hardest examples often include mislabeled samples, so aggressive hard-only pruning concentrates label noise. Practitioners therefore remove the extreme top tail as well, or combine pruning with a label noise method such as confident learning.

StrategyWhat is keptBest suited to
Hard-example pruningHigh-loss or high-gradient examplesLarge, fairly clean datasets
Easy-example pruningLow-loss, prototypical examplesSmall or noisy datasets
Semantic deduplicationOne representative per embedding clusterWeb-scale image and text corpora
Coreset selectionSubset whose gradients approximate the full setFixed compute budgets with guarantees
Class-balanced pruningEqual or capped share per classLong-tail distributions
Main pruning strategies compared

Data pruning is defined by its objective: it removes valid data to improve efficiency, whereas neighboring steps mainly remove invalid data or synthesize new data. The distinction matters because the same tool, such as an embedding model, can serve several of these steps with different goals.

TechniquePrimary goalOutput
Data pruningKeep the most useful examplesSubset of real examples
Training data deduplicationRemove exact or near copiesCorpus without duplicates
Data quality filteringRemove low-quality or unsafe contentFiltered corpus
Dataset distillationCompress knowledge into few samplesSmall set of synthetic examples
Active learningChoose which unlabeled data to labelLabeling queue
Data pruning and neighboring techniques

In practice these steps are chained in a fixed order: deduplication and quality filtering run first, and pruning operates on the cleaned corpus. Pruning before filtering wastes the scoring budget on content that would be dropped anyway.

Choosing a pruning ratio and validating the subset

The right pruning ratio is found empirically for each dataset and model family. A reliable procedure trains small proxy models on several retention rates, plots accuracy against retained data and selects the point where the curve starts to bend downward.

SituationTypical retentionReason
Web-scale pretraining corpus30-70 percentHigh redundancy after deduplication
Curated image benchmark70-90 percentLittle redundancy, gains are modest
Instruction dataset for fine-tuning5-30 percentQuality matters more than quantity
Small domain dataset90-100 percentEvery example carries information
Typical retention rates by situation

Validation must use a held-out test set that was never pruned and should report accuracy per class and per subgroup, not only the average. A subset that preserves overall accuracy can still erase rare classes, which only a disaggregated evaluation reveals.

Limitations, risks and common mistakes

Data pruning has real costs that are easy to underestimate. Scoring a dataset requires compute, and on small datasets that overhead can exceed the savings from training on the subset.

  • Amplified dataset bias: difficulty scores correlate with minority groups, so pruning can remove them disproportionately.
  • Score transfer failure: a subset chosen with one architecture may not suit another, especially across model scales.
  • Noise concentration: hard-example selection keeps mislabeled samples unless they are filtered first.
  • Leakage: scoring with a model that saw the test set inflates the apparent quality of the subset.
  • Diminishing returns: beyond a certain ratio, accuracy falls quickly and the compute saving no longer pays off.

In plain words

Data pruning means throwing out the examples a model does not need. Imagine studying for an exam with a stack of 1,000 practice questions. Many questions repeat. Some are far too easy. A few have wrong answers in the key.

If you remove those, you study fewer questions but learn just as much. The model learns faster on the smaller pile. The hard part is choosing well. Cut too much, and you lose the rare questions that would have mattered on exam day.

A real-world example

A machine learning team training an image classifier for retail products has 12 million labeled photos collected from shelf cameras. After deduplication, it trains a small proxy network for three epochs and computes an EL2N score for every image.

The team tests retention rates of 40, 60 and 80 percent on proxy models and sees accuracy fall by less than half a point at 60 percent. It then applies class-balanced pruning so that rare product categories keep at least 2,000 images each, and retrains the full model on the subset.

The final model matches the baseline within 0.3 percentage points of top-1 accuracy while training takes about 40 percent less GPU time. A per-category check confirms that no rare product line lost accuracy, so the pruned subset becomes the default training set for future runs.