Skip to main content
QUICK REVIEW

[论文解读] Fast Distributed Training of Deep Neural Networks: Dynamic Communication Thresholding for Model and Data Parallelism.

Vipul Gupta, Dhruv Choudhary|arXiv (Cornell University)|Oct 18, 2020
Stochastic Gradient Optimization TechniquesComputer Science参考文献 67被引用 11
一句话总结

本文提出动态通信阈值化(DCT),一种压缩框架,通过硬阈值化仅过滤最相关的梯度和激活值,从而在混合模型并行与数据并行训练中提升通信效率。DCT 在工业规模模型上将通信量减少20倍,并使端到端训练速度提升37%,同时通过隐式正则化保持收敛性并提升模型性能。

ABSTRACT

Data Parallelism (DP) and Model Parallelism (MP) are two common paradigms to enable large-scale distributed training of neural networks. Recent trends, such as the improved model performance of deeper and wider neural networks when trained with billions of data points, have prompted the use of hybrid parallelism---a paradigm that employs both DP and MP to scale further parallelization for machine learning. Hybrid training allows compute power to increase, but it runs up against the key bottleneck of communication overhead that hinders scalability. In this paper, we propose a compression framework called Dynamic Communication Thresholding (DCT) for communication-efficient hybrid training. DCT filters the entities to be communicated across the network through a simple hard-thresholding function, allowing only the most relevant information to pass through. For communication efficient DP, DCT compresses the parameter gradients sent to the parameter server during model synchronization, while compensating for the introduced errors with known techniques. For communication efficient MP, DCT incorporates a novel technique to compress the activations and gradients sent across the network during the forward and backward propagation, respectively. This is done by identifying and updating only the most relevant neurons of the neural network for each training sample in the data. Under modest assumptions, we show that the convergence of training is maintained with DCT. We evaluate DCT on natural language processing and recommender system models. DCT reduces overall communication by 20x, improving end-to-end training time on industry scale models by 37%. Moreover, we observe an improvement in the trained model performance, as the induced sparsity is possibly acting as an implicit sparsity based regularization.

研究动机与目标

  • 解决大规模分布式深度学习训练中的通信开销瓶颈问题。
  • 通过高效结合模型并行与数据并行,实现可扩展的混合并行训练。
  • 在大幅减少分布式训练通信量的同时,保持训练收敛性。
  • 通过引入稀疏性作为隐式正则化,提升模型性能。
  • 设计一种适用于真实世界NLP与推荐系统模型的通信高效框架。

提出的方法

  • DCT在梯度和激活值通过网络传输前,应用硬阈值函数以过滤不重要的部分。
  • 在数据并行中,DCT对发送至参数服务器的梯度进行压缩,并使用误差补偿技术以维持收敛性。
  • 在模型并行中,DCT识别并仅更新每个训练样本中最重要的神经元,从而减少激活值与梯度的通信量。
  • 该框架在适度假设下运行,即使存在压缩引起的误差,也能保证收敛性。
  • DCT整合了已知的误差补偿技术,以纠正因阈值化导致的信息损失。
  • 该方法在训练过程中根据参数与激活值的重要性动态调整阈值。

实验结果

研究问题

  • RQ1在混合模型并行与数据并行训练中,能否在不牺牲模型收敛性或性能的前提下显著减少通信开销?
  • RQ2对梯度与激活值进行硬阈值化,在分布式DNN训练中对减少通信量有多大的有效性?
  • RQ3阈值化所引入的稀疏性在实践中是否具有有益的正则化效果?
  • RQ4DCT是否能在适度假设下,于大规模分布式训练中保持收敛性保证?
  • RQ5在真实世界模型上,DCT可实现的端到端训练加速与通信节省量是多少?

主要发现

  • 在混合模型并行与数据并行训练设置中,DCT将整体通信量减少了20倍。
  • 在工业规模模型上,使用DCT可使端到端训练时间提升37%。
  • 模型性能略有提升,表明所引入的稀疏性起到了隐式正则化的作用。
  • 在适度假设下保持了收敛性,验证了该方法的理论鲁棒性。
  • 该框架在多种工作负载中均表现有效,包括NLP与推荐系统模型。
  • 该方法在无需复杂压缩方案或模型微调的情况下,实现了高效的压缩。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。