arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.07971cs.LGcs.DCstat.ML
收藏

分布式梯度下降与局部步骤在过参数化模型中的有效性

Effectiveness of Distributed Gradient Descent with Local Steps for Overparameterized Models

Halicioğlu Data Science Institute(哈利奇奥卢数据科学研究所);University of California, San Diego(加州大学圣地亚哥分校)

Heng Zhu, Harsh Vardhan, Arya Mazumdar

AI总结:

本文分析了局部梯度下降在过参数化模型中收敛到零训练损失的隐含偏置,揭示了其在异构数据中仍能保持性能的原因,并扩展至局部随机梯度下降和非分离数据。

摘要:

在机器学习模型的分布式训练中,基于局部迭代步骤的梯度下降(局部(随机)梯度下降(局部-(S)GD)或联邦平均(FedAvg))是一种常用的减轻通信负担的方法。在此方法中,分布式计算节点基于本地数据集独立执行梯度步骤以更新本地模型,然后间歇性地进行聚合。在插值域中,局部GD可以收敛到零训练损失。然而,由于存在多个可能对应零训练损失的解,不清楚局部GD会收敛到哪一个解。本文通过分析局部GD在具有线性可分数据的分类任务中的隐含偏置,回答了这一问题。对于插值域,我们的分析表明,通过任意数量的局部步骤获得的聚合全局模型在方向上恰好收敛到如果所有数据都在一处(集中化模型)所得到的模型。我们的结果给出了局部步骤数量与收敛到集中化模型的精确收敛率。我们还通过修改的局部GD算法获得了与局部步骤数量无关的学习率的相同隐含偏置。我们的分析提供了一种新的视角,以理解为什么局部GD即使在大量局部步骤下,仍能在异构数据中表现良好。最后,我们还讨论了我们的结果扩展到局部SGD和非分离数据的情况。

英文摘要:

In distributed training of machine learning models, gradient descent with local iterative steps, commonly known as Local (Stochastic) Gradient Descent (Local-(S)GD) or Federated averaging (FedAvg), is a very popular method to mitigate communication burden. In this method, gradient steps based on local datasets are taken independently in distributed compute nodes to update the local models, which are then aggregated intermittently. In the interpolation regime, Local-GD can converge to zero training loss. However, with many potential solutions corresponding to zero training loss, it is not known which solution Local-GD converges to. In this work we answer this question by analyzing implicit bias of Local-GD for classification tasks with linearly separable data. For the interpolation regime, our analysis shows that the aggregated global model obtained from Local-GD, with arbitrary number of local steps, converges exactly to the model that would be obtained if all data were in one place (centralized model) ''in direction''. Our result gives the exact rate of convergence to the centralized model with respect to the number of local steps. We also obtain the same implicit bias with a learning rate independent of number of local steps with a modified version of the Local-GD algorithm. Our analysis provides a new view to understand why Local-GD can still perform well with a very large number of local steps even for heterogeneous data. Lastly, we also discuss the extension of our results to Local-SGD and non-separable data.

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

↑