DropIT:删除中间张量以实现记忆高效的DNN训练
DropIT: Dropping Intermediate Tensors for Memory-Efficient DNN Training
摘要:
训练深度神经网络时的一个标准硬件瓶颈是GPU内存。大部分内存被缓存中间张量占用,用于向后传递中的梯度计算。我们提出了一种新的方法来减少这种足迹-丢弃中间张量(DropIT)。DropIT丢弃中间张量的min-k个元素,并在向后传递中近似稀疏张量的梯度。理论上,DropIT减少了估计梯度上的噪声,因此比vanilla-SGD具有更高的收敛速度。实验表明,我们可以在完全连接和卷积层中丢弃高达90%的中间张量元素,同时在各种任务上实现视觉Transformers和卷积神经网络的更高测试精度(例如,分类、目标检测、实例分割)。我们的代码和模型可在https://github.com/chenjoya/dropit上找到。
英文摘要:
A standard hardware bottleneck when training deep neural networks is GPU memory. The bulk of memory is occupied by caching intermediate tensors for gradient computation in the backward pass. We propose a novel method to reduce this footprint - Dropping Intermediate Tensors (DropIT). DropIT drops min-k elements of the intermediate tensors and approximates gradients from the sparsified tensors in the backward pass. Theoretically, DropIT reduces noise on estimated gradients and therefore has a higher rate of convergence than vanilla-SGD. Experiments show that we can drop up to 90\% of the intermediate tensor elements in fully-connected and convolutional layers while achieving higher testing accuracy for Visual Transformers and Convolutional Neural Networks on various tasks (e.g., classification, object detection, instance segmentation). Our code and models are available at https://github.com/chenjoya/dropit.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。