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

GRAWA:面向深度学习模型分布式训练的基于梯度的加权平均方法

GRAWA: Gradient-based Weighted Averaging for Distributed Training of Deep Learning Models

New York University(纽约大学)

Tolga Dimlioglu, Anna Choromanska

AI总结:

针对时间受限的深度学习分布式训练场景,提出基于梯度加权平均的GRAWA算法及两种异步变体,理论上证明凸与非凸场景下的收敛性,实验验证其在收敛速度、解质量等方面优于现有基线。

摘要:

我们研究时间受限环境下深度学习模型的分布式训练问题。我们提出了一种新算法,该算法周期性地将各工作节点拉向中心变量,该中心变量由各工作节点的加权平均计算得到,其中权重与工作节点的梯度范数成反比,以此优先探索优化景观中的平坦区域。我们为所提算法开发了两种异步变体,分别称为模型级和层级基于梯度的加权平均(即MGRAWA和LGRAWA),二者的区别在于加权方案要么针对整个模型执行,要么逐层应用。在理论层面,我们证明了所提方法在凸和非凸设置下均具备收敛保证。随后我们通过实验证明,我们的算法优于同类对比方法,收敛速度更快,且能得到质量更优、更平坦的局部最优解。我们还开展了消融实验,分析所提算法在更密集的分布式训练环境中的可扩展性。最后我们指出,与当前最优基线方法相比,我们的方法所需的通信频次更低,分布式更新次数更少。

英文摘要:

We study distributed training of deep learning models in time-constrained environments. We propose a new algorithm that periodically pulls workers towards the center variable computed as a weighted average of workers, where the weights are inversely proportional to the gradient norms of the workers such that recovering the flat regions in the optimization landscape is prioritized. We develop two asynchronous variants of the proposed algorithm that we call Model-level and Layer-level Gradient-based Weighted Averaging (resp. MGRAWA and LGRAWA), which differ in terms of the weighting scheme that is either done with respect to the entire model or is applied layer-wise. On the theoretical front, we prove the convergence guarantee for the proposed approach in both convex and non-convex settings. We then experimentally demonstrate that our algorithms outperform the competitor methods by achieving faster convergence and recovering better quality and flatter local optima. We also carry out an ablation study to analyze the scalability of the proposed algorithms in more crowded distributed training environments. Finally, we report that our approach requires less frequent communication and fewer distributed updates compared to the state-of-the-art baselines.

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

↑