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

异质数据联邦平均法的不合理有效性

On the Unreasonable Effectiveness of Federated Averaging with Heterogeneous Data

Carnegie Mellon University(卡内基梅隆大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);Google Research(谷歌研究院);HKUST(香港科技大学)

Jianyu Wang, Rudrajit Das, Gauri Joshi, Satyen Kale, Zheng Xu, Tong Zhang

摘要:

现有的理论预测,数据的异构性会降低联邦平均(Federated Averaging,FedAvg)算法在联邦学习中的性能。然而,在实践中,简单的FedAvg算法收敛得非常好。本文解释了FedAvg的看似不合理的有效性,与以前的理论预测相矛盾。我们发现,有界梯度相异度的关键假设在以前的理论分析是过于悲观,在实际应用中描述数据的异质性。对于一个简单的二次问题,我们证明了存在制度,大梯度相异性不具有任何负面影响的收敛FedAvg。出于这种观察,我们提出了一个新的数量,平均漂移在最佳状态,来衡量数据异质性的影响,并明确使用它来提出一个新的理论分析FedAvg。我们发现,在许多真实世界的联邦训练任务中,最佳情况下的平均漂移几乎为零,而梯度相异性可能很大。我们的新分析表明,FedAvg在同质和异构数据环境中可以具有相同的收敛速度,因此,可以更好地理解其经验成功。

英文摘要:

Existing theory predicts that data heterogeneity will degrade the performance of the Federated Averaging (FedAvg) algorithm in federated learning. However, in practice, the simple FedAvg algorithm converges very well. This paper explains the seemingly unreasonable effectiveness of FedAvg that contradicts the previous theoretical predictions. We find that the key assumption of bounded gradient dissimilarity in previous theoretical analyses is too pessimistic to characterize data heterogeneity in practical applications. For a simple quadratic problem, we demonstrate there exist regimes where large gradient dissimilarity does not have any negative impact on the convergence of FedAvg. Motivated by this observation, we propose a new quantity, average drift at optimum, to measure the effects of data heterogeneity, and explicitly use it to present a new theoretical analysis of FedAvg. We show that the average drift at optimum is nearly zero across many real-world federated training tasks, whereas the gradient dissimilarity can be large. And our new analysis suggests FedAvg can have identical convergence rates in homogeneous and heterogeneous data settings, and hence, leads to better understanding of its empirical success.

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

↑