arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.02189stat.MLcs.LGmath.OC
收藏

关于非IID数据下FedAvg的收敛性

On the Convergence of FedAvg on Non-IID Data

Peking University(北京大学);Stevens Institute of Technology(史蒂文斯理工学院)

Xiang Li, Kaixuan Huang, Wenhao Yang, Shusen Wang, Zhihua Zhang

摘要:

联合学习使大量边缘计算设备能够在没有数据共享的情况下联合学习模型。作为此设置中的领先算法,联合平均(\texttt{FedAvg})在全部设备的一小部分上并行运行随机梯度下降(SGD),并仅偶尔对序列进行平均。尽管它很简单,但在现实环境下缺乏理论保证。本文分析了\texttt{FedAvg}在非iid数据上的收敛性,并建立了$\mathcal{O}(\frac{1}{T})$在强凸光滑问题上的收敛速度,其中$T$是SGD的个数.重要的是,我们的界限证明了通信效率和收敛速度之间的权衡。由于用户设备可能会从服务器断开连接,我们放宽了假设的全部设备参与部分设备参与和研究不同的平均方案,可以实现低设备参与率,而不会严重减慢学习。我们的研究结果表明,异质性的数据减慢收敛,这与经验观察。此外,我们提供了一个必要条件\texttt{FedAvg}对非iid数据:学习率$η$必须衰减,即使使用全梯度;否则,解决方案将是$Ω(η)$远离最优。

英文摘要:

Federated learning enables a large amount of edge computing devices to jointly learn a model without data sharing. As a leading algorithm in this setting, Federated Averaging (\texttt{FedAvg}) runs Stochastic Gradient Descent (SGD) in parallel on a small subset of the total devices and averages the sequences only once in a while. Despite its simplicity, it lacks theoretical guarantees under realistic settings. In this paper, we analyze the convergence of \texttt{FedAvg} on non-iid data and establish a convergence rate of $\mathcal{O}(\frac{1}{T})$ for strongly convex and smooth problems, where $T$ is the number of SGDs. Importantly, our bound demonstrates a trade-off between communication-efficiency and convergence rate. As user devices may be disconnected from the server, we relax the assumption of full device participation to partial device participation and study different averaging schemes; low device participation rate can be achieved without severely slowing down the learning. Our results indicate that heterogeneity of data slows down the convergence, which matches empirical observations. Furthermore, we provide a necessary condition for \texttt{FedAvg} on non-iid data: the learning rate $η$ must decay, even if full-gradient is used; otherwise, the solution will be $Ω(η)$ away from the optimal.

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

↑