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

分布式深度学习的学习梯度压缩

Learned Gradient Compression for Distributed Deep Learning

Vrije Universiteit Brussel(布鲁塞尔自由大学);imec

Lusine Abrahamyan, Yiming Chen, Giannis Bekoulis, Nikos Deligiannis

摘要:

在包含高维数据的大型数据集上训练深度神经网络需要大量的计算。这个问题的一个解决方案是数据并行分布式训练,其中模型被复制到几个可以访问不同数据块的计算节点中。然而,这种方法需要高的通信速率和延迟,因为计算的梯度需要在每次迭代时在节点之间共享。在节点之间存在无线通信的情况下(即,由于有限的网络带宽),该问题变得更加明显。为了解决这个问题,已经提出了各种压缩方法,包括稀疏化、量化和梯度的熵编码。现有方法利用节点内信息冗余,即它们独立地压缩每个节点处的梯度。相反,我们主张跨节点的梯度是相关的,并提出了利用这种节点间冗余来提高压缩效率的方法。根据节点通信协议(参数服务器或环allreduce),我们提出了两个实例的LGC方法,我们硬币学习梯度压缩(LGC)。我们的方法利用自动编码器(即在分布式训练的第一阶段进行训练)来捕获分布式节点梯度中存在的共同信息。我们已经使用不同的卷积神经网络(ResNet50,ResNet101,PSPNet)和多个数据集(ImageNet,Cifar10,CamVid)在图像分类和语义分割任务上测试了我们的LGC方法。在Cifar 10上训练的用于图像分类的ResNet 101模型达到了93.57%的准确率,这比使用未压缩梯度的基线分布式训练仅低0.18%。

英文摘要:

Training deep neural networks on large datasets containing high-dimensional data requires a large amount of computation. A solution to this problem is data-parallel distributed training, where a model is replicated into several computational nodes that have access to different chunks of the data. This approach, however, entails high communication rates and latency because of the computed gradients that need to be shared among nodes at every iteration. The problem becomes more pronounced in the case that there is wireless communication between the nodes (i.e. due to the limited network bandwidth). To address this problem, various compression methods have been proposed including sparsification, quantization, and entropy encoding of the gradients. Existing methods leverage the intra-node information redundancy, that is, they compress gradients at each node independently. In contrast, we advocate that the gradients across the nodes are correlated and propose methods to leverage this inter-node redundancy to improve compression efficiency. Depending on the node communication protocol (parameter server or ring-allreduce), we propose two instances of the LGC approach that we coin Learned Gradient Compression (LGC). Our methods exploit an autoencoder (i.e. trained during the first stages of the distributed training) to capture the common information that exists in the gradients of the distributed nodes. We have tested our LGC methods on the image classification and semantic segmentation tasks using different convolutional neural networks (ResNet50, ResNet101, PSPNet) and multiple datasets (ImageNet, Cifar10, CamVid). The ResNet101 model trained for image classification on Cifar10 achieved an accuracy of 93.57%, which is lower than the baseline distributed training with uncompressed gradients only by 0.18%.

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

↑