arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.04175cs.LGcs.DCmath.OCstat.ML
收藏

RelaySum用于异构数据上的分散式深度学习

RelaySum for Decentralized Deep Learning on Heterogeneous Data

EPFL(洛桑联邦理工学院(EPFL))

Thijs Vogels, Lie He, Anastasia Koloskova, Tao Lin, Sai Praneeth Karimireddy, Sebastian U. Stich, Martin Jaggi

摘要:

在去中心化机器学习中,工作者在其本地数据上计算模型更新。由于工作进程只与少数邻居通信,而没有中央协调,因此这些更新在网络上逐步传播。这种模式可以在没有所有对所有连接的情况下在网络上进行分布式训练,有助于保护数据隐私并降低数据中心分布式训练的通信成本。一个关键的挑战,主要是在分散的深度学习,仍然是处理工人的本地数据分布之间的差异。为了应对这一挑战,我们引入了RelaySum机制,用于分散学习中的信息传播。RelaySum使用生成树在所有工作者之间精确均匀地分发信息,延迟取决于节点之间的距离。相比之下,典型的gossip平均机制仅在使用与RelaySum相同的每步通信量的情况下渐进地均匀分布数据。我们证明了基于这种机制的RelaySGD不受数据异构性的影响,并且可以扩展到许多工作者,从而能够对异构数据进行高度准确的分散式深度学习。我们的代码可在http://github.com/epfml/relaysgd上获得。

英文摘要:

In decentralized machine learning, workers compute model updates on their local data. Because the workers only communicate with few neighbors without central coordination, these updates propagate progressively over the network. This paradigm enables distributed training on networks without all-to-all connectivity, helping to protect data privacy as well as to reduce the communication cost of distributed training in data centers. A key challenge, primarily in decentralized deep learning, remains the handling of differences between the workers' local data distributions. To tackle this challenge, we introduce the RelaySum mechanism for information propagation in decentralized learning. RelaySum uses spanning trees to distribute information exactly uniformly across all workers with finite delays depending on the distance between nodes. In contrast, the typical gossip averaging mechanism only distributes data uniformly asymptotically while using the same communication volume per step as RelaySum. We prove that RelaySGD, based on this mechanism, is independent of data heterogeneity and scales to many workers, enabling highly accurate decentralized deep learning on heterogeneous data. Our code is available at http://github.com/epfml/relaysgd.

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

↑