arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1705.09056math.OCcs.DCcs.LGstat.ML
收藏

去中心化算法能胜过中心化算法吗?分散并行随机梯度下降算法的实例研究

Can Decentralized Algorithms Outperform Centralized Algorithms? A Case Study for Decentralized Parallel Stochastic Gradient Descent

University of Rochester(罗切斯特大学);ETH Zurich(苏黎世联邦理工学院);University of California, Davis(加利福尼亚大学戴维斯分校);IBM T. J. Watson Research Center(IBM托马斯·J·沃森研究中心);Tencent AI lab(腾讯人工智能实验室)

Xiangru Lian, Ce Zhang, Huan Zhang, Cho-Jui Hsieh, Wei Zhang, Ji Liu

摘要:

现在大多数分布式机器学习系统,包括TensorFlow和CNTK,都是以集中式的方式构建的。集中式算法的一个瓶颈在于中心节点的高通信开销。受此启发,我们问,分散式算法是否比集中式算法更快?虽然分散式PSGD(D-PSGD)算法已经被控制界研究,现有的分析和理论没有显示出任何优势集中式PSGD(C-PSGD)算法,简单地假设的应用场景,只有分散式网络是可用的。在本文中,我们研究了D-PSGD算法,并提供了第一个理论分析,表明分散式算法可能优于集中式算法的分布式随机梯度下降的制度。这是因为D-PSGD具有与C-PSGD相当的总计算复杂性,但在最繁忙的节点上需要少得多的通信成本。我们进一步进行了实证研究,以验证我们的理论分析在多个框架(CNTK和火炬),不同的网络配置,和计算平台高达112 GPU。在具有低带宽或高延迟的网络配置上,D-PSGD可以比其良好优化的集中式对应物快一个数量级。

英文摘要:

Most distributed machine learning systems nowadays, including TensorFlow and CNTK, are built in a centralized fashion. One bottleneck of centralized algorithms lies on high communication cost on the central node. Motivated by this, we ask, can decentralized algorithms be faster than its centralized counterpart? Although decentralized PSGD (D-PSGD) algorithms have been studied by the control community, existing analysis and theory do not show any advantage over centralized PSGD (C-PSGD) algorithms, simply assuming the application scenario where only the decentralized network is available. In this paper, we study a D-PSGD algorithm and provide the first theoretical analysis that indicates a regime in which decentralized algorithms might outperform centralized algorithms for distributed stochastic gradient descent. This is because D-PSGD has comparable total computational complexities to C-PSGD but requires much less communication cost on the busiest node. We further conduct an empirical study to validate our theoretical analysis across multiple frameworks (CNTK and Torch), different network configurations, and computation platforms up to 112 GPUs. On network configurations with low bandwidth or high latency, D-PSGD can be up to one order of magnitude faster than its well-optimized centralized counterparts.

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

↑