[Paper Review] InfoBatch: Lossless Training Speed Up by Unbiased Dynamic Data Pruning
InfoBatch proposes a novel, unbiased dynamic data pruning framework that accelerates deep learning training without performance loss by randomly pruning low-loss (well-learned) samples and rescaling gradients to preserve original gradient expectation. It achieves lossless training speedups of up to 40% on ImageNet-1K, 27% on diffusion models, and 20% on LLaMA instruction tuning, with minimal overhead and compatibility across vision and NLP tasks.
Data pruning aims to obtain lossless performances with less overall cost. A common approach is to filter out samples that make less contribution to the training. This could lead to gradient expectation bias compared to the original data. To solve this problem, we propose extbf{InfoBatch}, a novel framework aiming to achieve lossless training acceleration by unbiased dynamic data pruning. Specifically, InfoBatch randomly prunes a portion of less informative samples based on the loss distribution and rescales the gradients of the remaining samples to approximate the original gradient. As a plug-and-play and architecture-agnostic framework, InfoBatch consistently obtains lossless training results on classification, semantic segmentation, vision pertaining, and instruction fine-tuning tasks. On CIFAR10/100, ImageNet-1K, and ADE20K, InfoBatch losslessly saves 40\% overall cost. For pertaining MAE and diffusion model, InfoBatch can respectively save 24.8\% and 27\% cost. For LLaMA instruction fine-tuning, InfoBatch is also able to save 20\% cost and is compatible with coreset selection methods. The code is publicly available at \href{https://github.com/henryqin1997/InfoBatch}{github.com/NUS-HPC-AI-Lab/InfoBatch}.
Motivation & Objective
- To address the high computational cost of training large-scale deep learning models on massive datasets.
- To overcome the gradient expectation bias introduced by static and dynamic data pruning methods that discard samples without compensation.
- To develop a plug-and-play, architecture-agnostic framework that enables lossless training speedup with minimal additional overhead.
- To ensure compatibility with existing data compression techniques like coreset selection and dataset quantization.
Proposed method
- InfoBatch maintains a running loss score for each sample during forward passes to identify low-loss (well-learned) samples.
- In each training epoch, it randomly prunes a fixed ratio of the lowest-loss samples, avoiding sorting or heuristic scoring overhead.
- The gradients of the remaining samples are rescaled to preserve the expected total gradient update, ensuring unbiased optimization.
- The framework uses expectation rescaling to maintain the same gradient expectation direction as full-batch training on the original dataset.
- It dynamically adjusts pruning based on real-time loss values during training, enabling online, low-overhead adaptation.
- In the final few epochs, full dataset training is restored to improve convergence stability and reduce variance.
Experimental results
Research questions
- RQ1Can dynamic data pruning achieve lossless training acceleration without introducing gradient expectation bias?
- RQ2Can a simple, low-overhead pruning strategy outperform existing heuristic or iterative methods in terms of both speedup and accuracy?
- RQ3Does gradient rescaling effectively preserve the original optimization trajectory despite sample removal?
- RQ4Can InfoBatch be universally applied across diverse deep learning tasks, including vision and NLP, without architectural modifications?
- RQ5How does InfoBatch compare to state-of-the-art methods in terms of training cost reduction and computational overhead?
Key findings
- InfoBatch achieves a 40% reduction in overall training cost on CIFAR-10/100, ImageNet-1K, and ADE20K datasets while maintaining identical accuracy to full-batch training.
- On masked autoencoding (MAE) pretraining, InfoBatch reduces cost by 24.8% with no degradation in image reconstruction quality.
- For diffusion model pretraining, InfoBatch saves 27% training cost without affecting generated image quality.
- In instruction fine-tuning of LLaMA-7B, InfoBatch reduces training cost by 20% while maintaining state-of-the-art benchmark scores on BBH, DROP, MMLU, and HumanEval.
- InfoBatch reduces the overhead of sample scoring by at least 10x compared to state-of-the-art methods like EL2N, which require O(MNT) time for score estimation.
- The framework is fully compatible with coreset selection and dataset quantization, enabling further cost reduction in combination with existing compression techniques.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.