并行重启SGD,收敛更快,通信更少:揭秘为什么模型平均适用于深度学习
Parallel Restarted SGD with Faster Convergence and Less Communication: Demystifying Why Model Averaging Works for Deep Learning
摘要:
在深度神经网络的分布式训练中,并行小批量SGD被广泛用于通过使用多个工人来加速训练过程。它使用多个工人并行采样局部随机梯度,在单个服务器中聚合所有梯度以获得平均值,并使用平均梯度的SGD更新来更新每个工人的局部模型。理想情况下,与单个工作者上的SGD相比,并行小批量SGD可以实现训练时间的线性加速(相对于工作者的数量)。然而,这种线性可扩展性在实践中受到越来越多的工人参与的梯度通信需求的限制。模型平均,定期对在并行工作者上训练的单个模型进行平均,是自Zinkevich et al. 2010以来用于深度神经网络分布式训练的另一种常见做法(McDonald,Hall,and Mann 2010)。与并行小批量SGD相比,模型平均的通信开销显著降低。令人印象深刻的是,大量的实验工作已经证明,模型平均仍然可以实现良好的加速的训练时间,只要平均间隔是仔细控制。然而,为什么这样一个简单的启发式如此有效,在理论上仍然是一个谜。本文提供了一个彻底和严格的理论研究,为什么模型平均可以工作,以及并行小批量SGD显着减少通信开销。
英文摘要:
In distributed training of deep neural networks, parallel mini-batch SGD is widely used to speed up the training process by using multiple workers. It uses multiple workers to sample local stochastic gradient in parallel, aggregates all gradients in a single server to obtain the average, and update each worker's local model using a SGD update with the averaged gradient. Ideally, parallel mini-batch SGD can achieve a linear speed-up of the training time (with respect to the number of workers) compared with SGD over a single worker. However, such linear scalability in practice is significantly limited by the growing demand for gradient communication as more workers are involved. Model averaging, which periodically averages individual models trained over parallel workers, is another common practice used for distributed training of deep neural networks since (Zinkevich et al. 2010) (McDonald, Hall, and Mann 2010). Compared with parallel mini-batch SGD, the communication overhead of model averaging is significantly reduced. Impressively, tremendous experimental works have verified that model averaging can still achieve a good speed-up of the training time as long as the averaging interval is carefully controlled. However, it remains a mystery in theory why such a simple heuristic works so well. This paper provides a thorough and rigorous theoretical study on why model averaging can work as well as parallel mini-batch SGD with significantly less communication overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。