TL;DR
Fine-tuning massive pre-trained models is computationally expensive, making dataset pruning—training on a smaller, highly informative subset of data—essential. This paper introduces Distorting-based Learning Complexity (DLC), a training-free method that scores how "hard" a sample is by evaluating it on masked versions of the pre-trained model. Combined with a randomized sampling strategy (FlexRand), this approach speeds up dataset pruning by 35$\times$ while achieving state-of-the-art performance across both vision and language tasks.
What Problem Does This Paper Address?
The dominant paradigm in AI today is pre-training and fine-tuning (PT-FT): train a massive foundation model on broad data, then fine-tune it on a smaller, task-specific downstream dataset. However, as models grow to billions of parameters, even fine-tuning becomes prohibitively expensive, especially for edge devices with limited compute.
Dataset pruning attempts to solve this by identifying and keeping only the most "informative" training examples. The catch? Existing pruning methods (like EL2N or GraNd) figure out which data points are important by training the model on the entire dataset first to see which samples the model struggles with. For large pre-trained models, this initial training run defeats the entire purpose of saving compute. The authors tackle the challenge of finding a way to score data importance without relying on costly backpropagation and training.
Methods
The authors propose a two-part solution: a novel scoring metric and a new sampling strategy.
- Distorting-based Learning Complexity (DLC): Instead of training a model from scratch to see which samples it learns quickly, the authors take the already pre-trained model and "distort" it. They do this by masking out its weights (based on the L1 norm) at various ratios (e.g., keeping only 2%, 10%, or 50% of the parameters active). They then calculate the loss for each sample across these artificially weakened models. The core idea is that an "easy" sample can be classified correctly even by a heavily masked, low-capacity model.
- FlexRand (Flexible Under-sampling with Randomness): Traditionally, once samples are scored, methods just keep the "Top-K" hardest or easiest examples. The authors found this causes a severe distribution shift, warping the dataset so much that it hurts performance. FlexRand instead splits the dataset into "easy" and "hard" bins and randomly samples from both. A hyperparameter ($\gamma$) adjusts the size of these bins based on the total data budget.
Datasets
The authors evaluated their method across two distinct domains:
- Downstream Image Classification: Evaluated on 5 diverse datasets: CXRB10 (Medical), DeepWeeds (Natural), DTD (Texture), FGVCAircraft (Manufacture), and Sketch (Illustrative). They used ResNet-18, ResNet-50, ViT-Small, and ViT-Base models pre-trained on ImageNet-1K.
- Instruction Fine-Tuning (LLMs): Evaluated using Alpaca Cleaned and Dolly & HH-RLHF datasets to fine-tune Mistral 7B, Llama3 8B, and Gemma2 9B. Performance was benchmarked on MMLU.
Key Insights and Ideas
- Training Time vs. Model Capacity: The most fascinating "aha" moment is the observation that a model learning over time (an optimization trajectory) behaves remarkably similarly to a pre-trained model being progressively unmasked (a capacity trajectory). Both trajectories rank the "hardness" of samples almost identically (with a high Spearman correlation of ~0.51).
- Top-K Sampling is Flawed: Simply picking the hardest examples to train on is a bad idea. It shifts the dataset's distribution so far away from the real world that the model's downstream performance actually drops below what you would get by just picking data completely at random.
- Data Regimes Dictate Preference: In a "data-poor" regime (where you can only afford to keep a tiny fraction of the data), easy samples are actually more informative because they help the model grasp the basic structure of the task. In "data-rich" regimes, hard samples become more valuable for refining the decision boundary. FlexRand dynamically adapts to this reality.
Key Results
- Massive Speedups: By eliminating the need to train the model to score the data, DLC reduces the time required for dataset pruning by 35$\times$ compared to existing training-based baselines.
- Superior Accuracy (Vision): On the image benchmarks, traditional pruning methods actually performed worse than random sampling when applied to the PT-FT paradigm. The authors' method (DLC + FlexRand) outperformed random sampling by an average of 1.24% (60.45% vs 59.21%), establishing a new state-of-the-art.
- Cross-Modality Success (Language): The method isn't just for images. When fine-tuning LLMs like Llama3 8B and Mistral 7B, the pruned datasets consistently yielded better MMLU scores than randomly pruned datasets.
- Robustness: The method works even if the pre-trained model was trained on lower-quality, weakly supervised data, maintaining a 1.42% lead over random baselines.
Limitations and Future Work
The authors acknowledge one primary limitation: the success of DLC relies entirely on the capability of the pre-trained model. Because the method uses the pre-trained weights to judge sample hardness, if the pre-trained model fails to provide meaningful representations for a highly niche or out-of-domain downstream task, the hardness scores will be inaccurate, and the pruning may fail to improve performance. Future work could explore how to adapt this scoring mechanism when the pre-trained model is severely misaligned with the target data.
Summary updated