InfoBatch: Lossless Training Speed Up by Unbiased Dynamic Data Pruning

Ziheng Qin, Kai Wang, Zangwei Zheng, Jianyang Gu, Xiangyu Peng, xu Zhao Pan, Daquan Zhou, Lei Shang, Baigui Sun, Xuansong Xie, Yang You

Training large AI models is incredibly expensive and computationally demanding. To save time and resources, researchers often employ data pruning—identifying and removing less informative or "easy" samples from the training pipeline. However, simply throwing away easy data usually degrades model performance.

InfoBatch introduces a novel, plug-and-play framework that solves this by dynamically pruning well-learned samples and mathematically rescaling the remaining ones to prevent gradient bias. This approach losslessly cuts training costs by up to 40% across vision and language tasks with virtually zero computational overhead.

The Problem with Existing Pruning Methods

Deep learning models are trained on ultra-large-scale datasets, making data efficiency a top priority. While data pruning aims to reduce this burden, existing methods have major flaws:

  1. Static Pruning: Methods that score and prune data before training (like EL2N) require expensive pre-computation. On large datasets like ImageNet, this overhead can actually take longer than the training itself.
  2. Dynamic Pruning: Methods that prune data during training often suffer from performance drops. By completely removing "easy" samples, they alter the mathematical direction the model is learning—a phenomenon known as gradient expectation bias.

The core challenge is dynamically skipping data to save compute without changing the mathematical expectation of the training gradients, all while keeping the computational overhead near zero.

The InfoBatch Framework

InfoBatch is an architecture-agnostic framework that operates directly within the standard training loop. It relies on three key mechanisms to achieve unbiased dynamic pruning:

  • Soft Pruning: Instead of sorting the entire dataset to find the easiest samples (which costs $O(N \log N)$ time), InfoBatch simply looks at a sample's loss value from the previous epoch. If the loss is below the running average loss of the dataset, it is considered "well-learned." InfoBatch then randomly prunes a portion of these low-loss samples (e.g., a 50% chance to skip). This reduces the overhead to $O(1)$ per sample.
  • Expectation Rescaling: To fix the gradient bias caused by skipping data, InfoBatch scales up the gradients of the low-loss samples that are kept. For example, if 50% of easy samples are pruned, the remaining 50% have their gradients multiplied by 2. Mathematically, this ensures the expected gradient update remains identical to training on the full dataset.
  • Annealing: Because pruning reduces the total number of gradient updates, there can be slight variance in the final stages of training. InfoBatch stops pruning for the final few epochs (e.g., the last 12.5% of training) and uses the full dataset to ensure stable, lossless convergence.
The InfoBatch framework pipeline

By treating pruning as a probabilistic sampling problem, InfoBatch re-weights the kept samples to simulate the presence of the dropped ones. You get the speed of a smaller dataset with the mathematical guarantees of the full one.

Key Results and Performance

The framework was evaluated across a wide variety of tasks, including vision classification (CIFAR-10/100, ImageNet-1K), semantic segmentation (ADE20K), generative modeling (FFHQ), and LLM instruction tuning (Alpaca for LLaMA-7B).

  • Massive Cost Savings: InfoBatch consistently saves ~40% of total training cost on ImageNet-1K, CIFAR, and ADE20K without any drop in accuracy compared to full-dataset training.
  • Works on Pretraining & Generation: It saves 24.8% compute for MAE (Masked Autoencoder) pretraining and 27% for Latent Diffusion models, maintaining identical image generation quality (FID scores).
  • LLM Acceleration: When combined with Dataset Quantization (a static coreset method), InfoBatch sped up LLaMA-7B instruction tuning by 10x while maintaining benchmark performance.
  • Negligible Overhead: On ImageNet-1K, InfoBatch's dynamic pruning overhead is just 10 seconds over 90 epochs. For comparison, static methods like EL2N require over 24 hours of overhead.
Performance and efficiency gains of InfoBatch

Limitations and Future Work

While highly effective, InfoBatch currently relies on multi-epoch training schemes because it uses the loss from previous epochs to make pruning decisions. Massive models like GPT-3 or ViT-22B are often trained for only 1 or 2 epochs. Adapting InfoBatch for these limited-epoch regimes is a primary direction for future work.

Additionally, removing samples could inadvertently cause bias in model predictions, particularly on ethically sensitive datasets. While no obvious evidence of this has been found yet, it remains an area requiring careful monitoring as data pruning becomes more prevalent in large-scale AI training.

Summary updated

BibTeX
@inproceedings{qin2024infobatch,
  author = {Ziheng Qin and Kai Wang and Zangwei Zheng and Jianyang Gu and Xiangyu Peng and xu Zhao Pan and Daquan Zhou and Lei Shang and Baigui Sun and Xuansong Xie and Yang You},
  title = {{InfoBatch: Lossless Training Speed Up by Unbiased Dynamic Data Pruning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=C61sk5LsK6},
}
Figure