TL;DR
This paper introduces Partial Forward Blocking (PFB), a novel method for accelerating deep learning training by intelligently pruning less important data samples early in the forward pass. PFB significantly reduces computational costs without sacrificing model accuracy, achieving substantial speedups on large datasets like ImageNet.
What Problem Does This Paper Address?
The ever-increasing size of training datasets is crucial for achieving robust generalization in deep learning models. However, this also leads to exorbitant computational costs, making training slow and resource-intensive. Existing data pruning techniques, which aim to reduce training time by selecting a subset of data, often rely on computationally expensive methods like gradient back-propagation or training auxiliary proxy models. These approaches introduce significant overhead, limiting their effectiveness on large-scale datasets. The core challenge is to efficiently identify and prune less informative samples without compromising model performance or introducing substantial computational burdens.
Methods
The paper proposes Partial Forward Blocking (PFB), a novel framework that prunes samples in a batch-wise manner during the early stages of the forward pass. The key ideas are:
- Shallow Layer Feature Importance: Instead of relying on gradients or proxy models, PFB assesses sample importance based on features extracted from the shallow layers of the target model. This significantly reduces the computational cost of importance scoring.
- Forward Pass Blocking: Once importance scores are computed, less important samples are pruned. Crucially, their forward pass computation is blocked from proceeding to the deeper layers of the network. This directly cuts down on the expensive computations in deeper layers for these pruned samples. Retained samples, however, continue their forward pass, reusing the already computed shallow features.
- Probability Density Importance: To ensure the diversity of retained samples, PFB introduces a novel importance metric based on the probability density of a sample's feature representation. Samples in dense regions (high probability density) are considered redundant and less important, while samples in sparse regions (low probability density) are prioritized for their rarity and informativeness.
- Adaptive Distribution Estimation (ADE): To dynamically track the evolving data distribution during training, PFB employs an Adaptive Distribution Estimation module. This module uses Kernel Density Estimation (KDE) with clustering and centroid updates to estimate probability densities efficiently. It adaptively adjusts to distribution shifts, ensuring the pruning strategy remains relevant throughout training.
Datasets
The paper evaluates PFB on the following datasets:
- Image Classification: CIFAR-10, CIFAR-100, ImageNet-1k
- Semantic Segmentation: PASCAL VOC 2012 trainaug, Cityscapes
Key Insights and Ideas
- Early Pruning is Key: Blocking the forward pass at the shallowest possible layer (after feature extraction) is crucial for maximizing computational savings. Pruning too late means much of the expensive computation has already been done.
- Diversity Matters for Performance: Simply pruning based on "difficulty" (e.g., high loss or gradient norm) might not be enough. PFB's focus on probability density to ensure sample diversity leads to better generalization, even outperforming full-data training in some cases.
- Adaptability is Essential: The data distribution shifts during training. An adaptive mechanism like ADE is vital for maintaining effective pruning throughout the entire training process.
- Efficiency on Large-Scale Data: PFB's approach bypasses the need for expensive gradient computations or proxy model training, making it uniquely suited for accelerating training on massive datasets like ImageNet.
Key Results
- ImageNet-1k: PFB achieved a 0.5% accuracy improvement and a 33.2% training time reduction with 40% of data pruned, compared to training on the full dataset.
- CIFAR-10/100: PFB demonstrated "better-than-lossless" training, with accuracy improvements of up to 0.9% over full-data training at a 30% pruning ratio.
- Semantic Segmentation: PFB achieved significant speedups, including a threefold reduction in training time on Cityscapes compared to other methods.
- Efficiency: PFB consistently showed superior training efficiency, with reported overheads significantly lower than existing methods like InfoBatch and DivBS.
Limitations and Future Work
- Blocking Location Sensitivity: The paper notes that blocking at very early stages (e.g., stage-0 of ResNet) can lead to performance drops, suggesting that shallow features might not always be sufficiently informative on their own. The optimal blocking layer might depend on the network architecture.
- Random Term Sensitivity: While the random term in the importance metric enhances diversity, excessively large values can lead to performance degradation. The paper suggests a stable range for this parameter.
- Future Work: The paper concludes by highlighting PFB as a scalable and adaptive solution for large-scale dataset training, paving the way for more efficient deep learning models. Further exploration into optimal blocking locations for various architectures and more sophisticated adaptive distribution estimation techniques could be future directions.
Summary updated