用分布式自动微分超越梯度面纱
Peering Beyond the Gradient Veil with Distributed Auto Differentiation
摘要:
虽然分布式机器学习开辟了许多新的和令人兴奋的研究前沿,但不同机器、节点和站点之间的模型和数据碎片化仍然会导致相当大的通信开销,阻碍了真实环境中的可靠训练。在训练过程中将梯度作为主要的共享统计数据的关注催生了许多用于分布式深度学习的直观算法;然而,大型深度神经网络(DNN)的以梯度为中心的训练往往是通信繁重的,通常需要额外的调整,例如稀疏约束、压缩、量化等,以减少带宽。我们引入了一种创新的、通信友好的方法来训练分布式DNN,该方法利用了自动微分机制所揭示的梯度的外积结构。梯度的暴露结构唤起了一类新的分布式学习算法,这自然比完全梯度共享更有通信效率。我们的方法,称为分布式自动微分(dAD),建立了基于秩的压缩和梯度的固有结构作为外产品的婚姻。我们证明了,当应用于大规模文本和成像数据集时,dAD比现代架构(如Transformers)上的其他最先进的分布式方法更有效地训练。我们确定,分布式学习的未来不需要由以梯度为中心的算法主导。
英文摘要:
Although distributed machine learning has opened up many new and exciting research frontiers, fragmentation of models and data across different machines, nodes, and sites still results in considerable communication overhead, impeding reliable training in real-world contexts. The focus on gradients as the primary shared statistic during training has spawned a number of intuitive algorithms for distributed deep learning; however, gradient-centric training of large deep neural networks (DNNs) tends to be communication-heavy, often requiring additional adaptations such as sparsity constraints, compression, quantization, and more, to curtail bandwidth. We introduce an innovative, communication-friendly approach for training distributed DNNs, which capitalizes on the outer-product structure of the gradient as revealed by the mechanics of auto-differentiation. The exposed structure of the gradient evokes a new class of distributed learning algorithm, which is naturally more communication-efficient than full gradient sharing. Our approach, called distributed auto-differentiation (dAD), builds off a marriage of rank-based compression and the innate structure of the gradient as an outer-product. We demonstrate that dAD trains more efficiently than other state of the art distributed methods on modern architectures, such as transformers, when applied to large-scale text and imaging datasets. The future of distributed learning, we determine, need not be dominated by gradient-centric algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。