Introduction
In the current landscape of deep learning, the prevailing philosophy has been that "bigger is better." However, as datasets scale into the millions and billions of samples, the community faces a significant efficiency challenge. The marginal benefit of each additional data point often diminishes, leading to a scenario where vast computational resources are expended on processing redundant duplicates, samples the model has already mastered, or noisy outliers that provide little to no learning signal.
To address this, researchers from Northwestern Polytechnical University have introduced SeTa (Scale Efficient Training). SeTa is a dynamic pruning framework designed to cut training costs by up to 50% without compromising model performance. In many instances, the framework actually enhances model quality by filtering out the noise that typically hinders the learning process.
The Challenge of Data Scaling
The "virtuous cycle" of data scaling—where larger datasets lead to more robust models, which in turn require even more data—is hitting a wall of diminishing returns. Training on massive datasets is increasingly inefficient due to three primary factors:
- Redundancy: Large-scale web-crawled datasets often contain numerous near-duplicate samples.
- Inefficient Easy Samples: Once a model has learned a simple pattern, repeated exposure to similar "easy" samples adds negligible value to the training process.
- Overly Challenging Samples: Outliers or mislabeled data can confuse the model, leading to degraded performance and slower convergence.
While existing solutions like static coresets attempt to find optimal data subsets before training, they often require expensive preprocessing. Dynamic methods, on the other hand, frequently focus solely on removing easy samples, neglecting the potential gains from pruning redundant or excessively difficult data. SeTa aims to be a lightweight, task-agnostic accelerator that addresses all three types of low-value data.
The SeTa Framework
SeTa operates on the principle that the loss value of a sample is a "free" and effective proxy for its learning difficulty. The framework is designed to be plug-and-play, requiring minimal code changes to integrate into existing pipelines.
The framework functions in three distinct phases:
- Loss-guided Clustering: The algorithm begins with random downsampling to eliminate obvious redundancy. It then employs K-means clustering to group the remaining samples into $k$ clusters based on their current loss values. This effectively stratifies the data from "easiest" to "hardest."
- Sliding Window Selection: Rather than training on the entire dataset, SeTa utilizes a "sliding window" that moves across the identified clusters. This follows a cyclical, easy-to-hard curriculum. Early in a training iteration, the focus is on easy clusters; as the iteration progresses, the window shifts toward harder samples. This ensures the model establishes a solid foundation before attempting to learn from complex data.
- Partial Annealing: To prevent the model from becoming biased toward the specific subsets encountered during the sliding window phase, SeTa introduces a partial annealing stage in the final epochs. During this stage, the model randomly samples from the full dataset to stabilize convergence and ensure broad generalization.
Experimental Evaluation
The effectiveness of SeTa was validated across 11 datasets and 10 distinct tasks, demonstrating its versatility. The test suite included:
- Synthetic and Web-Crawled Datasets: ToCa (3M LLM-generated text), SS1M (3M web-crawled), and ST+MJ (15M rendered image-text pairs).
- Standard Benchmarks: ImageNet-1K, COCO, and CIFAR-10/100.
- Downstream Applications: Image retrieval (CIRR), 3D reconstruction (WHU-MVS), geo-localization (CVACT), segmentation (RefCOCO), and LLM instruction tuning (Alpaca).
Key Results and Discussion
SeTa demonstrated significant improvements in both training efficiency and final model performance across various architectures, including CNNs (ResNet), Transformers (ViT, Swin), and State Space Models (Mamba/Vim).
Key findings from the experiments include:
- Substantial Speedups: SeTa reduced training costs by 30-50% across most tasks with minimal to no performance loss.
- Performance Enhancement: On the ToCa dataset for image captioning, SeTa improved the CIDEr score by 1.0 point while utilizing 31.7% less data.
- Robustness at High Pruning Rates: On CIFAR-10, SeTa maintained 95.0% accuracy even after pruning 70% of the data, significantly outperforming other state-of-the-art methods like InfoBatch.
- LLM Fine-tuning Efficiency: When fine-tuning LLaMA-7B on the Alpaca dataset, SeTa achieved a better average performance (27.3 vs. 26.3) while pruning 25.9% of the instruction data.
The results suggest that a cyclical curriculum—revisiting easy samples while progressively moving toward harder ones—is superior to training exclusively on "hard" samples. This approach prevents catastrophic forgetting of basic features. Furthermore, because loss is a universal metric calculated in every training step, SeTa is inherently task-agnostic.
Conclusion
SeTa presents a compelling solution to the data scaling challenge in deep learning. By intelligently pruning low-value samples through a loss-based sliding window strategy, it enables faster training and, in many cases, better model performance. While future work will look toward scaling SeTa to trillion-token datasets and further optimizing hyperparameter selection, its current form offers a powerful tool for researchers and practitioners looking to optimize their training pipelines.
Paper Citation: Zhou, Q., Gao, J., & Wang, Q. "Scale Efficient Training for Large Datasets." CVPR 2024. Code: https://github.com/mrazhou/SeTa
Summary updated