DEFT:利用模型层间梯度范数差异实现可扩展梯度稀疏化
DEFT: Exploiting Gradient Norm Difference between Model Layers for Scalable Gradient Sparsification
AI总结:
本文提出 DEFT 梯度稀疏化方案,通过分区选择、层间梯度范数差异和装箱负载均衡,降低计算与通信开销,并在实验中显著提升选择速度且保持高收敛性能。
摘要:
梯度稀疏化是一种被广泛采用的解决方案,用于减少分布式深度学习中过多的通信流量。然而,由于梯度选择带来的可观计算成本,以及/或者梯度累积造成的通信流量增加,大多数现有梯度稀疏化器的可扩展性相对较差。为应对这些挑战,我们提出了一种新型梯度稀疏化方案 DEFT,它将梯度选择任务划分为多个子任务,并将这些子任务分发给各个 worker。DEFT 与现有稀疏化器不同:在现有方法中,每个 worker 都要在全部梯度中选择梯度;因此,随着 worker 数量增加,计算成本可以降低。此外,由于 DEFT 允许各 worker 在彼此不相交的分区中选择梯度,梯度累积可以被消除。因此,即使 worker 数量增加,通信流量也能够按照用户需求保持不变。为避免梯度选择的重要性损失,DEFT 会在梯度范数大于其他层的层中选择更多梯度。由于每一层具有不同的计算负载,DEFT 使用装箱算法将各层分配给 worker,以保持 worker 之间梯度选择负载的均衡。在我们的实证评估中,DEFT 在梯度选择速度方面相较现有稀疏化器展现出显著的训练性能提升,同时实现了较高的收敛性能。
英文摘要:
Gradient sparsification is a widely adopted solution for reducing the excessive communication traffic in distributed deep learning. However, most existing gradient sparsifiers have relatively poor scalability because of considerable computational cost of gradient selection and/or increased communication traffic owing to gradient build-up. To address these challenges, we propose a novel gradient sparsification scheme, DEFT, that partitions the gradient selection task into sub tasks and distributes them to workers. DEFT differs from existing sparsifiers, wherein every worker selects gradients among all gradients. Consequently, the computational cost can be reduced as the number of workers increases. Moreover, gradient build-up can be eliminated because DEFT allows workers to select gradients in partitions that are non-intersecting (between workers). Therefore, even if the number of workers increases, the communication traffic can be maintained as per user requirement. To avoid the loss of significance of gradient selection, DEFT selects more gradients in the layers that have a larger gradient norm than the other layers. Because every layer has a different computational load, DEFT allocates layers to workers using a bin-packing algorithm to maintain a balanced load of gradient selection between workers. In our empirical evaluation, DEFT shows a significant improvement in training performance in terms of speed in gradient selection over existing sparsifiers while achieving high convergence performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。