InfoBatch:通过无偏动态数据剪枝实现无损训练加速
InfoBatch: Lossless Training Speed Up by Unbiased Dynamic Data Pruning
AI总结:
提出InfoBatch框架,通过基于损失分布的无偏动态数据剪枝和梯度重缩放,在分类、分割及微调等多种任务上实现无损训练加速并显著降低成本。
摘要:
数据剪枝旨在以更少的总成本获得无损性能。一种常见方法是过滤掉对训练贡献较小的样本。这可能导致与原始数据相比产生梯度期望偏差。为解决此问题,我们提出了InfoBatch,这是一个旨在通过无偏动态数据剪枝实现无损训练加速的新颖框架。具体而言,InfoBatch根据损失分布随机剪枝一部分信息量较小的样本,并重新缩放剩余样本的梯度以近似原始梯度。作为一个即插即用且与架构无关的框架,InfoBatch在分类、语义分割、视觉预训练和指令微调任务上持续获得无损训练结果。在CIFAR10/100、ImageNet-1K和ADE20K上,InfoBatch无损地节省了40%的总成本。对于预训练MAE和扩散模型,InfoBatch分别能节省24.8%和27%的成本。对于LLaMA指令微调,InfoBatch也能节省20%的成本,并且与核心集选择方法兼容。代码公开于github.com/NUS-HPC-AI-Lab/InfoBatch。
英文摘要:
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 \textbf{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}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。