arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.06798cs.LGcs.DCmath.OC
收藏

局部步骤在局部SGD中的作用

The Role of Local Steps in Local SGD

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Rice University(莱斯大学)

Tiancheng Qin, S. Rasoul Etesami, César A. Uribe

AI总结:

本文研究了非独立同分布异构设置下Local SGD中任意局部步骤数对收敛速率和通信复杂度的影响,表征了不同凸性下的收敛率,并针对强凸函数提出递增局部步骤策略,对凸和非凸函数证明固定局部步骤最优。

摘要:

我们考虑分布式随机优化问题,其中$n$个智能体希望最小化由各智能体局部函数之和给定的全局函数,并重点关注智能体的局部函数定义在非独立同分布(non-i.i.d.)数据集上的异构设置。我们研究了Local SGD方法,其中智能体执行若干局部随机梯度步骤,并偶尔与中心节点通信以改进其局部优化任务。我们分析了局部步骤对Local SGD收敛速率和通信复杂度的影响。具体而言,我们不假设所有通信轮次中局部步骤的数量固定不变,而是允许第$i$次通信轮次中的局部步骤数量$H_i$为不同且任意的数值。我们的主要贡献是在强凸、凸和非凸局部函数的各种设置下,将Local SGD的收敛速率表征为$\{H_i\}_{i=1}^R$的函数,其中$R$是总通信轮数。基于这一表征,我们给出了序列$\{H_i\}_{i=1}^R$的充分条件,使得Local SGD能够实现相对于工作节点数量的线性加速。此外,我们提出了一种局部步骤递增的新型通信策略,对于强凸局部函数,其优于现有通信策略。另一方面,对于凸和非凸局部函数,我们论证了固定局部步骤是Local SGD的最佳通信策略,并恢复了最先进的收敛速率结果。最后,我们通过广泛的数值实验验证了我们的理论结果。

英文摘要:

We consider the distributed stochastic optimization problem where $n$ agents want to minimize a global function given by the sum of agents' local functions, and focus on the heterogeneous setting when agents' local functions are defined over non-i.i.d. data sets. We study the Local SGD method, where agents perform a number of local stochastic gradient steps and occasionally communicate with a central node to improve their local optimization tasks. We analyze the effect of local steps on the convergence rate and the communication complexity of Local SGD. In particular, instead of assuming a fixed number of local steps across all communication rounds, we allow the number of local steps during the $i$-th communication round, $H_i$, to be different and arbitrary numbers. Our main contribution is to characterize the convergence rate of Local SGD as a function of $\{H_i\}_{i=1}^R$ under various settings of strongly convex, convex, and nonconvex local functions, where $R$ is the total number of communication rounds. Based on this characterization, we provide sufficient conditions on the sequence $\{H_i\}_{i=1}^R$ such that Local SGD can achieve linear speed-up with respect to the number of workers. Furthermore, we propose a new communication strategy with increasing local steps superior to existing communication strategies for strongly convex local functions. On the other hand, for convex and nonconvex local functions, we argue that fixed local steps are the best communication strategy for Local SGD and recover state-of-the-art convergence rate results. Finally, we justify our theoretical results through extensive numerical experiments.

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

↑