TL;DR
TED (Internal Generalization Distance pruning) is a new dynamic dataset pruning method that removes 60-70% of training data without sacrificing model performance. By focusing on "Internal Generalization"—the model's ability to learn from pruned data while only seeing a subset—and using a unique "roller-coaster" pruning schedule, TED significantly cuts training costs across vision, language, and LLM fine-tuning tasks.
What Problem Does This Paper Address?
Training modern deep learning models, especially Large Language Models (LLMs), is incredibly expensive in terms of both time and compute. Dataset pruning—selecting only the most "important" samples to train on—is a popular solution, but it faces two major hurdles:
- Overfitting to the Subset: When you train on a small fraction of data, the model often "forgets" the broader distribution of the full dataset, leading to poor generalization.
- Computational Overhead: Many existing pruning methods require training "surrogate" models to score data importance, which can sometimes cost as much as the training they are trying to save.
The authors of TED argue that current methods focus too much on samples that are "hard to learn" (high loss) and ignore how well the model generalizes from the retained data to the discarded data.
Methods
The researchers introduce a concept called Internal Generalization (IG). This measures how training on a subset $D - \hat{D}$ implicitly reduces the loss on the pruned subset $\hat{D}$.
Key components of the TED approach include:
- Internal Generalization Distance (IGD): This metric quantifies the change in IG before and after pruning. By minimizing IGD, the authors ensure the model's performance on the subset remains a good proxy for the whole dataset, providing a form of implicit regularization.
- Fast Estimation via Taylor Expansion: To avoid the cost of training multiple models, they use a mask-based approach and Taylor expansion to rapidly estimate the impact of removing a specific sample on the overall IGD.
- The "Roller-Coaster" Schedule: Unlike static pruning (which keeps a fixed amount of data), TED uses a dynamic schedule. It prunes aggressively in the early stages of training (when the model is learning general patterns) and slows down in later stages (when the model is fine-tuning on specific details).
- Unbiased Loss: They apply a linear transformation to the loss function based on the current data retention ratio, ensuring that the gradients calculated on the subset remain aligned with the gradients of the full dataset.
Datasets
The authors validated TED across a wide range of benchmarks:
- Image Classification: CIFAR-10, CIFAR-100, and the large-scale ImageNet-1K.
- Natural Language Understanding (NLU): The GLUE benchmark (including tasks like MNLI, QQP, SST-2, and QNLI) using a BERT-base model.
- LLM Fine-tuning: Fine-tuning LLaMA2-7B using the Alpaca-GPT4 dataset (English instructions).
Key Insights and Ideas
- IG as Regularization: The most striking insight is that focusing on Internal Generalization acts as a regularizer. It prevents the model from "tunnel visioning" on the small subset of retained data.
- The Prior Effect: The authors found that IGD has a "prior effect," meaning that pruning decisions made early in training have a bounded and predictable impact on the final model state. This justifies the use of dynamic pruning from the very start of the training process.
- Gradient Correlation: Contrary to some previous research, this paper demonstrates that the gradients of the pruned subset and the full dataset are highly linearly correlated, especially in early training. This allows for simple loss scaling to keep training stable.
- Flat Minima: Using one-dimensional linear interpolation, the authors show that TED helps the model settle into "flatter" minima in the loss landscape, which is a classic indicator of superior generalization.
Key Results
- Lossless Pruning: On CIFAR-100 and GLUE tasks, TED achieved "lossless" performance (matching or slightly exceeding the baseline trained on 100% of data) while using only 30-40% of the data.
- SOTA Performance: TED consistently outperformed other dynamic pruning methods like InfoBatch, $\epsilon$-greedy, and UCB, particularly at high pruning ratios (e.g., 70% data removal).
- LLM Efficiency: In LLaMA2-7B fine-tuning, TED maintained baseline accuracy on the MMLU benchmark while removing 30% of the instruction data, proving its utility for massive-scale models.
- ImageNet-1K: While no method achieved perfectly lossless performance on ImageNet-1K (likely because the ResNet-50 model used is too small to fully "saturate" the dataset), TED still led the pack in accuracy at a 70% pruning ratio.
Limitations and Future Work
- Low Pruning Ratios: Interestingly, TED does not perform significantly better than random pruning when the pruning ratio is very low (e.g., only removing 10-20% of data). The authors suggest that at these levels, the "noise" and outliers in the small pruned set might outweigh the benefits of the IGD metric.
- Model Capacity: On very large datasets like ImageNet, the effectiveness is limited by whether the model can fully fit the data.
- Untrained Models: Currently, TED identifies redundant samples during the training process. The authors note that their next goal is to find ways to identify these subsets for completely untrained models or even earlier in the training cycle to save even more compute.
Summary updated