arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.09628cs.LG
收藏

使用衰减本地 SGD 步数的更快联邦学习

Faster Federated Learning with Decaying Number of Local SGD Steps

University of Exeter(埃克塞特大学)

Jed Mills, Jia Hu, Geyong Min

AI总结:

针对联邦学习中数据异构导致多步本地SGD训练收敛慢且性能受损的问题,提出随训练衰减本地SGD步数K的方法,并从理论和四个基准数据集实验上证明其能提升模型性能并降低时间与计算成本。

摘要:

在联邦学习(FL)中,通过互联网连接的客户端设备协同训练机器学习模型,而无需与中央服务器或其他客户端共享其私有数据。开创性的联邦平均(FedAvg)算法通过在客户端上执行多轮本地训练,随后进行模型平均,来训练单一全局模型。FedAvg可以通过在每轮中让客户端执行更多步数的随机梯度下降(SGD)来提高训练的通信效率。然而,现实世界FL中的客户端数据高度异构,已有广泛研究表明,当每轮在客户端上执行K > 1步SGD时,会减缓模型收敛并损害最终性能。在本研究中,我们提出随着训练的进行衰减K,与使用固定K相比,这可以共同提升FL模型的最终性能,同时减少实际运行时间和训练的总计算成本。我们分析了强凸目标下衰减K的FedAvg的收敛性,为收敛特性提供了新见解,并推导了三种基于理论的K衰减调度。随后,我们在四个基准FL数据集(FEMNIST、CIFAR100、Sentiment140、Shakespeare)上进行了详尽的实验,以展示我们的方法在现实世界收敛时间、计算成本和泛化性能方面的实际收益。

英文摘要:

In Federated Learning (FL) client devices connected over the internet collaboratively train a machine learning model without sharing their private data with a central server or with other clients. The seminal Federated Averaging (FedAvg) algorithm trains a single global model by performing rounds of local training on clients followed by model averaging. FedAvg can improve the communication-efficiency of training by performing more steps of Stochastic Gradient Descent (SGD) on clients in each round. However, client data in real-world FL is highly heterogeneous, which has been extensively shown to slow model convergence and harm final performance when $K > 1$ steps of SGD are performed on clients per round. In this work we propose decaying $K$ as training progresses, which can jointly improve the final performance of the FL model whilst reducing the wall-clock time and the total computational cost of training compared to using a fixed $K$. We analyse the convergence of FedAvg with decaying $K$ for strongly-convex objectives, providing novel insights into the convergence properties, and derive three theoretically-motivated decay schedules for $K$. We then perform thorough experiments on four benchmark FL datasets (FEMNIST, CIFAR100, Sentiment140, Shakespeare) to show the real-world benefit of our approaches in terms of real-world convergence time, computational cost, and generalisation performance.

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

↑