Abstract
In this paper, we present SwiftLearn, a data-efficient approach to accelerate training of deep learning models using a subset of data samples selected during the warm-up stages of training. This subset is selected based on an importance criteria measured over the entire dataset during warm-up stages, aiming to preserve the model performance with fewer examples during the rest of training. The importance measure we propose could be updated during training every once in a while, to make sure that all of the data samples have a chance to return to the training loop if they show a higher importance. The model architecture is unchanged but since the number of data samples controls the number of forward and backward passes during training, we can reduce the training time by reducing the number of training samples used in each epoch of training. Experimental results on a variety of CV and NLP models during both pretraining and finetuning show that the model performance could be preserved while achieving a significant speed-up during training. More specifically, BERT finetuning on GLUE benchmark shows that almost 90% of the data can be dropped achieving an end-to-end average speedup of 3.36x while keeping the average accuracy drop less than 0.92%.
Introduction
The training of state-of-the-art models (like BERT, ViT, or Llama) requires massive datasets and weeks of computational time. This creates a high barrier to entry and a significant carbon footprint. While many efficiency techniques focus on structural changes (pruning) or hardware optimization (quantization), SwiftLearn focuses on data efficiency. The core premise is that not all data samples are equally informative; some are redundant or "easy" for the model to learn early on. By identifying which samples drive gradient updates, we can skip the rest, directly reducing the number of forward and backward passes required.
Methodology
SwiftLearn introduces a two-stage approach: Warm-up and Sampling.
1. The Warm-up Stage
For the initial epochs (typically two), the model processes the entire dataset. During these passes, the system records the logits (raw output scores) for every sample.
2. Importance Metric and Sampling
The importance of a sample is defined by the fluctuation in its logits. Specifically, SwiftLearn calculates the difference between the logits of a sample in epoch $s$ and epoch $s-1$. High fluctuation indicates the model is still learning from the sample, while low fluctuation suggests stability. These scores are normalized into a probability distribution $\text{Pr}(x_i)$.
Based on a user-defined drop ratio ($r$), the algorithm selects the top $r$ fraction of samples. This importance can be re-evaluated every $K$ epochs to allow samples to return to the training loop if their importance increases over time.
Experimental Results
The authors validated SwiftLearn across a diverse range of tasks and architectures, including NLP (BERT, RoBERTa, T5), Computer Vision (ViT, Swin Transformer), and Speech (Conformer).
Key findings include:
- NLP: On the GLUE benchmark, SwiftLearn dropped 90% of the data, resulting in a 3.36x speedup with less than a 0.92% accuracy drop.
- Zero-Loss Speedups: For models like RoBERTa (SST-2) and SwinT (ImageNet), the method achieved 1.35x and 1.13x speedups, respectively, with 0% loss in final validation accuracy.
- Speech Recognition: On LibriSpeech, it achieved a 1.33x speedup with a negligible 0.25% drop in accuracy.
Conclusion
SwiftLearn demonstrates that logit stability is a highly effective, low-overhead proxy for sample difficulty. By operating at the data layer rather than the architecture, it remains model-agnostic and can be combined with other structural efficiency techniques. SwiftLearn represents a pragmatic step toward "Green AI," proving that being a more selective teacher is often more efficient than building a larger model.
Summary updated