LocalNewton:减少分布式学习的通信瓶颈
LocalNewton: Reducing Communication Bottleneck for Distributed Learning
摘要:
为了解决分布式优化中的通信瓶颈问题,在主从框架内,我们提出了LocalNewton,一个分布式的二阶局部平均算法。在LocalNewton中,工作机器通过仅使用存储在其本地内存中的数据和模型来找到合适的二阶下降方向,从而在每次迭代中更新其模型。我们让工作者在本地运行多个这样的迭代,并每隔几次(比如L次)迭代将模型传递给主节点。LocalNewton非常实用,因为它只需要一个超参数,即局部迭代次数L。我们使用新的矩阵浓度为基础的技术,以获得理论保证LocalNewton,我们验证他们与详细的经验评估。为了提高实用性,我们设计了一个自适应方案来选择L,我们表明,随着训练的进行,这减少了两个模型同步之间的工人机器中的局部迭代次数,从而连续改进了主模型的质量。通过使用AWS Lambda worker和AWS EC2 master的几个真实数据集进行的广泛实验,我们表明,与最先进的算法相比,LocalNewton需要不到60%的通信回合(master和worker之间)和不到40%的端到端运行时间,以达到相同的训练损失。
英文摘要:
To address the communication bottleneck problem in distributed optimization within a master-worker framework, we propose LocalNewton, a distributed second-order algorithm with local averaging. In LocalNewton, the worker machines update their model in every iteration by finding a suitable second-order descent direction using only the data and model stored in their own local memory. We let the workers run multiple such iterations locally and communicate the models to the master node only once every few (say L) iterations. LocalNewton is highly practical since it requires only one hyperparameter, the number L of local iterations. We use novel matrix concentration-based techniques to obtain theoretical guarantees for LocalNewton, and we validate them with detailed empirical evaluation. To enhance practicability, we devise an adaptive scheme to choose L, and we show that this reduces the number of local iterations in worker machines between two model synchronizations as the training proceeds, successively refining the model quality at the master. Via extensive experiments using several real-world datasets with AWS Lambda workers and an AWS EC2 master, we show that LocalNewton requires fewer than 60% of the communication rounds (between master and workers) and less than 40% of the end-to-end running time, compared to state-of-the-art algorithms, to reach the same training~loss.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。