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

STL-SGD:使用分段通信周期加速本地SGD

STL-SGD: Speeding Up Local SGD with Stagewise Communication Period

University of Science and Technology of China(中国科学技术大学);Ant Financial Services Group(蚂蚁集团);IFLYTEK Co., Ltd.(科大讯飞股份有限公司);Hong Kong University of Science and Technology(香港科技大学)

Shuheng Shen, Yifei Cheng, Jingchang Liu, Linli Xu

摘要:

分布式并行随机梯度下降算法是大规模机器学习任务的主力。其中,局部随机梯度下降算法(Local SGD)由于其较低的通信复杂度而引起了人们的广泛关注。已有的研究证明,当客户端的数据分布相同(IID)或不相同(Non-IID)时,具有固定通信周期或自适应通信周期的Local SGD的通信复杂度为$O (N^{\frac{3}{2}} T^{\frac{1}{2}})$和$O (N^{\frac{3}{4}} T^{\frac{3}{4}})$,其中$N$为客户端数目,$T$为迭代次数.为了通过降低通信复杂度来加快收敛速度,提出了\textit{ST}逐时\textit{L}局部\textit{SGD}(STL-SGD),它随着学习速率的降低而逐渐增加通信周期.我们证明了STL-SGD可以保持与mini-batch SGD相同的收敛速度和线性加速比。此外,由于增加通信周期的好处,当目标是强凸的或满足Polyak-Chojasiewicz条件时,STL-SGD的通信复杂度对于IID情况和非IID情况分别是$O (N \log{T})$和$O (N^{\frac{1}{2}} T^{\frac{1}{2}})$,相对于Local SGD实现了显著的改进。在凸问题和非凸问题上的实验表明了STL-SGD的优越性能。

英文摘要:

Distributed parallel stochastic gradient descent algorithms are workhorses for large scale machine learning tasks. Among them, local stochastic gradient descent (Local SGD) has attracted significant attention due to its low communication complexity. Previous studies prove that the communication complexity of Local SGD with a fixed or an adaptive communication period is in the order of $O (N^{\frac{3}{2}} T^{\frac{1}{2}})$ and $O (N^{\frac{3}{4}} T^{\frac{3}{4}})$ when the data distributions on clients are identical (IID) or otherwise (Non-IID), where $N$ is the number of clients and $T$ is the number of iterations. In this paper, to accelerate the convergence by reducing the communication complexity, we propose \textit{ST}agewise \textit{L}ocal \textit{SGD} (STL-SGD), which increases the communication period gradually along with decreasing learning rate. We prove that STL-SGD can keep the same convergence rate and linear speedup as mini-batch SGD. In addition, as the benefit of increasing the communication period, when the objective is strongly convex or satisfies the Polyak-Łojasiewicz condition, the communication complexity of STL-SGD is $O (N \log{T})$ and $O (N^{\frac{1}{2}} T^{\frac{1}{2}})$ for the IID case and the Non-IID case respectively, achieving significant improvements over Local SGD. Experiments on both convex and non-convex problems demonstrate the superior performance of STL-SGD.

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

↑