[论文解读] Sharper Convergence Guarantees for Asynchronous SGD for Distributed and Federated Learning
本文通过引入依赖于平均梯度延迟 $τ_{\text{avg}}$ 和最大梯度延迟 $τ_{\text{max}}$ 的几何平均值的更紧致界,而非最坏情况下的延迟,为分布式和联邦学习中的异步SGD提供了更严格的收敛保证。此外,提出了一种延迟自适应学习率,实现与平均延迟成比例的收敛速度,且无需额外通信或超参数调优,证明异步SGD始终快于小批量SGD。
We study the asynchronous stochastic gradient descent algorithm for distributed training over $n$ workers which have varying computation and communication frequency over time. In this algorithm, workers compute stochastic gradients in parallel at their own pace and return those to the server without any synchronization. Existing convergence rates of this algorithm for non-convex smooth objectives depend on the maximum gradient delay $τ_{\max}$ and show that an $ε$-stationary point is reached after $\mathcal{O}\!\left(σ^2ε^{-2}+ τ_{\max}ε^{-1} ight)$ iterations, where $σ$ denotes the variance of stochastic gradients. In this work (i) we obtain a tighter convergence rate of $\mathcal{O}\!\left(σ^2ε^{-2}+ \sqrt{τ_{\max}τ_{avg}}ε^{-1} ight)$ without any change in the algorithm where $τ_{avg}$ is the average delay, which can be significantly smaller than $τ_{\max}$. We also provide (ii) a simple delay-adaptive learning rate scheme, under which asynchronous SGD achieves a convergence rate of $\mathcal{O}\!\left(σ^2ε^{-2}+ τ_{avg}ε^{-1} ight)$, and does not require any extra hyperparameter tuning nor extra communications. Our result allows to show for the first time that asynchronous SGD is always faster than mini-batch SGD. In addition, (iii) we consider the case of heterogeneous functions motivated by federated learning applications and improve the convergence rate by proving a weaker dependence on the maximum delay compared to prior works. In particular, we show that the heterogeneity term in convergence rate is only affected by the average delay within each worker.
研究动机与目标
- 通过减少对悲观的最大梯度延迟 $τ_{\text{max}}$ 的依赖,改进分布式和联邦学习中异步SGD的收敛保证。
- 设计一种无需额外通信或超参数调优即可适应梯度延迟的学习率方案。
- 将收敛分析扩展到联邦学习中常见的异构目标函数,实现更优的延迟依赖性。
- 从理论上和实证上证明异步SGD始终快于小批量SGD。
提出的方法
- 推导标准异步SGD在常数步长下的更紧致收敛界:$Ω\big{(}\sigma^2\varepsilon^{-2} + \sqrt{\tau_{\text{avg}}\tau_{\text{max}}}\varepsilon^{-1}\big{)}$。
- 提出一种延迟自适应学习率,实现收敛率 $Ω\big{(}\sigma^2\varepsilon^{-2} + \tau_{\text{avg}}\varepsilon^{-1}\big{)}$,且无需额外通信或调优。
- 分析在异构函数下的异步SGD收敛性,表明异构性项仅依赖于每个工作者的平均延迟。
- 基于期望梯度范数衰减和延迟感知方差界,提出一种新颖的分析框架,推导出更紧致的界。
- 通过在二次函数和逻辑回归函数上的实验验证理论发现,确认实践中存在 $√{\tau_{\text{max}}}$ 依赖性。
实验结果
研究问题
- RQ1我们能否推导出一种依赖于平均延迟而非最大延迟的更紧致的异步SGD收敛率?
- RQ2我们能否设计一种无需额外通信或超参数调优即可适应延迟的学习率方案?
- RQ3在联邦学习中,异构目标函数下的异步SGD收敛性如何缩放?
- RQ4异步SGD在收敛速度上是否始终快于小批量SGD?
主要发现
- 本文建立了标准异步SGD的更紧致收敛率:$Ω\big{(}\sigma^2\varepsilon^{-2} + \sqrt{\tau_{\text{avg}}\tau_{\text{max}}}\varepsilon^{-1}\big{)}$,优于先前的 $Ω\big{(}\sigma^2\varepsilon^{-2} + \tau_{\text{max}}\varepsilon^{-1}\big{)}$ 界。
- 提出一种延迟自适应学习率,实现收敛率 $Ω\big{(}\sigma^2\varepsilon^{-2} + \tau_{\text{avg}}\varepsilon^{-1}\big{)}$,且无需额外通信或超参数调优。
- 理论分析证明异步SGD始终快于小批量SGD,因为其收敛率依赖于 $√{\tau_{\text{avg}}\tau_{\text{max}}}$ 而非 $τ_{\text{max}}$。
- 对于异构联邦学习,收敛率仅依赖于每个工作者的平均延迟,而非最大延迟,从而提升了对慢速节点的鲁棒性。
- 在二次函数和逻辑回归函数上的实验确认了实践中存在 $√{\tau_{\text{max}}}$ 依赖性,验证了理论界。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。