arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.09562cs.AIcs.DC
收藏

COMET:一种新的使用误差有界有损压缩的内存高效深度学习训练框架

COMET: A Novel Memory-Efficient Deep Learning Training Framework by Using Error-Bounded Lossy Compression

Washington State University(华盛顿州立大学);McGill University(麦吉尔大学);University of Washington(华盛顿大学);University of Massachusetts(马萨诸塞大学);University of Iowa(爱荷华大学);University of Sydney(悉尼大学)

Sian Jin, Chengming Zhang, Xintong Jiang, Yunhe Feng, Hui Guan, Guanpeng Li, Shuaiwen Leon Song, Dingwen Tao

摘要:

训练宽而深的神经网络(DNN)需要大量的存储资源,例如存储器,因为中间激活数据必须在前向传播期间保存在存储器中,然后恢复用于后向传播。然而,由于硬件设计的限制,最先进的加速器(如GPU)只配备了非常有限的内存容量,这极大地限制了最大批量大小,从而限制了训练大规模DNN时的性能加速。传统的存储器节省技术要么受到性能开销的影响,要么受到有限的互连带宽或特定互连技术的约束。在本文中,我们提出了一种新的内存高效的CNN训练框架(称为COMET),该框架利用误差有界有损压缩来显着降低训练的内存需求,以允许训练更大的模型或加速训练。与采用基于图像的有损压缩器(如JPEG)来压缩激活数据的最新解决方案不同,我们的框架故意采用具有严格错误控制机制的错误有界有损压缩。具体来说,我们对从改变的激活数据到梯度的压缩误差传播进行了理论分析,并根据经验研究了改变的梯度对训练过程的影响。基于这些分析,我们优化了误差有界有损压缩,并提出了一种自适应误差有界控制方案的激活数据压缩。我们使用五种广泛采用的CNN和ImageNet数据集来评估我们的设计。实验表明,我们提出的框架可以显着减少训练内存消耗高达13.5倍的基线训练和1.8倍的另一个国家的最先进的基于压缩的框架,分别很少或没有准确性损失。

英文摘要:

Training wide and deep neural networks (DNNs) require large amounts of storage resources such as memory because the intermediate activation data must be saved in the memory during forward propagation and then restored for backward propagation. However, state-of-the-art accelerators such as GPUs are only equipped with very limited memory capacities due to hardware design constraints, which significantly limits the maximum batch size and hence performance speedup when training large-scale DNNs. Traditional memory saving techniques either suffer from performance overhead or are constrained by limited interconnect bandwidth or specific interconnect technology. In this paper, we propose a novel memory-efficient CNN training framework (called COMET) that leverages error-bounded lossy compression to significantly reduce the memory requirement for training, to allow training larger models or to accelerate training. Different from the state-of-the-art solutions that adopt image-based lossy compressors (such as JPEG) to compress the activation data, our framework purposely adopts error-bounded lossy compression with a strict error-controlling mechanism. Specifically, we perform a theoretical analysis on the compression error propagation from the altered activation data to the gradients, and empirically investigate the impact of altered gradients over the training process. Based on these analyses, we optimize the error-bounded lossy compression and propose an adaptive error-bound control scheme for activation data compression. We evaluate our design against state-of-the-art solutions with five widely-adopted CNNs and ImageNet dataset. Experiments demonstrate that our proposed framework can significantly reduce the training memory consumption by up to 13.5X over the baseline training and 1.8X over another state-of-the-art compression-based framework, respectively, with little or no accuracy loss.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑