EPISODE:用于异构数据联邦学习的具有周期性重采样校正的情节梯度裁剪
EPISODE: Episodic Gradient Clipping with Periodic Resampled Corrections for Federated Learning with Heterogeneous Data
摘要:
梯度裁剪是用于具有爆炸梯度的深度神经网络(例如递归神经网络)的重要技术。最近的研究表明,这些网络的损失函数不满足传统的光滑条件,而是满足放松的光滑条件,即,梯度的Lipschitz常数根据梯度范数线性地缩放。由于这种观察,几个梯度裁剪算法已经开发的非凸和松弛光滑的功能。然而,现有的算法只适用于单机或多机设置与同质的数据在机器上。目前还不清楚如何设计证明有效的梯度裁剪算法在一般的联邦学习(FL)设置与异构数据和有限的通信回合。在本文中,我们设计的EPISODE,第一个算法来解决FL问题的异构数据在非凸和松弛光滑设置。该算法的关键成分是两个新的技术称为\textit{episodic gradient clipping}和\textit{periodic resampled corrections}。在每轮开始时,EPISODE从每个客户端重新采样随机梯度并获得全局平均梯度,其用于(1)确定是否对整个轮应用梯度裁剪以及(2)为每个客户端构造局部梯度校正。值得注意的是,我们的算法和分析提供了一个统一的框架下的任何噪声水平的随机梯度的同质和异质数据,它实现了最先进的复杂性结果。特别是,我们证明了EPISODE可以实现线性加速的机器数量,它需要显着减少通信轮。在几个异构数据集上的实验表明,EPISODE的性能优于FL中的几个强基线。
英文摘要:
Gradient clipping is an important technique for deep neural networks with exploding gradients, such as recurrent neural networks. Recent studies have shown that the loss functions of these networks do not satisfy the conventional smoothness condition, but instead satisfy a relaxed smoothness condition, i.e., the Lipschitz constant of the gradient scales linearly in terms of the gradient norm. Due to this observation, several gradient clipping algorithms have been developed for nonconvex and relaxed-smooth functions. However, the existing algorithms only apply to the single-machine or multiple-machine setting with homogeneous data across machines. It remains unclear how to design provably efficient gradient clipping algorithms in the general Federated Learning (FL) setting with heterogeneous data and limited communication rounds. In this paper, we design EPISODE, the very first algorithm to solve FL problems with heterogeneous data in the nonconvex and relaxed smoothness setting. The key ingredients of the algorithm are two new techniques called \textit{episodic gradient clipping} and \textit{periodic resampled corrections}. At the beginning of each round, EPISODE resamples stochastic gradients from each client and obtains the global averaged gradient, which is used to (1) determine whether to apply gradient clipping for the entire round and (2) construct local gradient corrections for each client. Notably, our algorithm and analysis provide a unified framework for both homogeneous and heterogeneous data under any noise level of the stochastic gradient, and it achieves state-of-the-art complexity results. In particular, we prove that EPISODE can achieve linear speedup in the number of machines, and it requires significantly fewer communication rounds. Experiments on several heterogeneous datasets show the superior performance of EPISODE over several strong baselines in FL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。