arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.11203cs.LGcs.DC
收藏

非IID联邦学习中部分工人参与实现线性加速比

Achieving Linear Speedup with Partial Worker Participation in Non-IID Federated Learning

The Ohio State University(俄亥俄州立大学)

Haibo Yang, Minghong Fang, Jia Liu

摘要:

联邦学习(FL)是一种分布式机器学习架构,它利用大量工作者来联合学习具有分散数据的模型。FL由于其数据隐私保护、通信效率和训练收敛的线性加速(即,收敛性能相对于工作器的数量线性增加)。然而,现有的线性加速收敛的研究仅限于假设的独立同分布。工人之间的数据集和/或工人的充分参与,这两种情况在实践中很少成立。到目前为止,它仍然是一个悬而未决的问题,是否线性加速收敛是在非独立同分布下实现的。在本文中,我们表明,答案是肯定的。具体来说,我们表明,联邦平均(FedAvg)算法(双侧学习率)对非独立同分布。非凸设置中的数据集实现了对于全部工作者参与的收敛速率$\mathcal{O}(\frac{1}{\sqrt{mKT}} + \frac{1}{T})$和对于部分工作者参与的收敛速率$\mathcal{O}(\frac{\sqrt{K}}{\sqrt{nT}} + \frac{1}{T})$,其中$K$是局部步骤的数目,$T$是总通信轮的数目,$m$是总工作者数目,以及$n$是如果部分工作者参与的话在一个通信轮中的工作者数目。我们的研究结果还表明,在FL的本地步骤可以帮助收敛,并表明,本地步骤的最大数量可以提高到$T/m$在充分的工人参与。我们在MNIST和CIFAR-10上进行了大量的实验来验证我们的理论结果。

英文摘要:

Federated learning (FL) is a distributed machine learning architecture that leverages a large number of workers to jointly learn a model with decentralized data. FL has received increasing attention in recent years thanks to its data privacy protection, communication efficiency and a linear speedup for convergence in training (i.e., convergence performance increases linearly with respect to the number of workers). However, existing studies on linear speedup for convergence are only limited to the assumptions of i.i.d. datasets across workers and/or full worker participation, both of which rarely hold in practice. So far, it remains an open question whether or not the linear speedup for convergence is achievable under non-i.i.d. datasets with partial worker participation in FL. In this paper, we show that the answer is affirmative. Specifically, we show that the federated averaging (FedAvg) algorithm (with two-sided learning rates) on non-i.i.d. datasets in non-convex settings achieves a convergence rate $\mathcal{O}(\frac{1}{\sqrt{mKT}} + \frac{1}{T})$ for full worker participation and a convergence rate $\mathcal{O}(\frac{\sqrt{K}}{\sqrt{nT}} + \frac{1}{T})$ for partial worker participation, where $K$ is the number of local steps, $T$ is the number of total communication rounds, $m$ is the total worker number and $n$ is the worker number in one communication round if for partial worker participation. Our results also reveal that the local steps in FL could help the convergence and show that the maximum number of local steps can be improved to $T/m$ in full worker participation. We conduct extensive experiments on MNIST and CIFAR-10 to verify our theoretical results.

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

↑