arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.01433cs.LG
收藏

分散随机梯度下降中损失景观相关的自调整学习率

Loss Landscape Dependent Self-Adjusting Learning Rates in Decentralized Stochastic Gradient Descent

IBM Research(IBM研究院);George Mason University(乔治梅森大学);Duke Unversity(杜克大学)

Wei Zhang, Mingrui Liu, Yu Feng, Xiaodong Cui, Brian Kingsbury, Yuhai Tu

摘要:

分布式深度学习(Distributed Deep Learning,简称DLS)对于大规模深度学习(Deep Learning,简称DL)训练至关重要。同步随机梯度下降(SSGD)1是事实上的最优化方法。使用足够大的批处理大小对于实现EJB运行时加速至关重要。在大批量设置中,必须提高学习率以补偿参数更新次数的减少。然而,大的学习率可能会损害SSGD中的收敛,并且训练可能容易发散。最近,分布式并行SGD(DPSGD)已被提出来提高分布式训练速度。在本文中,我们发现,DPSGD不仅具有系统明智的运行时的好处,但也有一个显着的收敛优势,在大批量设置SSGD。基于对DPSGD学习动态的详细分析,我们发现DPSGD引入了额外的依赖于噪声的噪声,该噪声自动调整有效的学习率以提高收敛性。此外,我们从理论上表明,这种噪声平滑的损失景观,从而允许更大的学习率。我们进行了广泛的研究超过18个国家的最先进的DL模型/任务,并证明DPSGD往往收敛的情况下,SSGD发散大学习率在大批量设置。我们的研究结果在两个不同的应用领域是一致的:计算机视觉(CIFAR 10和ImageNet-1 K)和自动语音识别(SWB 300和SWB 2000),以及两种不同类型的神经网络模型:卷积神经网络和长短期记忆递归神经网络。

英文摘要:

Distributed Deep Learning (DDL) is essential for large-scale Deep Learning (DL) training. Synchronous Stochastic Gradient Descent (SSGD) 1 is the de facto DDL optimization method. Using a sufficiently large batch size is critical to achieving DDL runtime speedup. In a large batch setting, the learning rate must be increased to compensate for the reduced number of parameter updates. However, a large learning rate may harm convergence in SSGD and training could easily diverge. Recently, Decentralized Parallel SGD (DPSGD) has been proposed to improve distributed training speed. In this paper, we find that DPSGD not only has a system-wise run-time benefit but also a significant convergence benefit over SSGD in the large batch setting. Based on a detailed analysis of the DPSGD learning dynamics, we find that DPSGD introduces additional landscape-dependent noise that automatically adjusts the effective learning rate to improve convergence. In addition, we theoretically show that this noise smoothes the loss landscape, hence allowing a larger learning rate. We conduct extensive studies over 18 state-of-the-art DL models/tasks and demonstrate that DPSGD often converges in cases where SSGD diverges for large learning rates in the large batch setting. Our findings are consistent across two different application domains: Computer Vision (CIFAR10 and ImageNet-1K) and Automatic Speech Recognition (SWB300 and SWB2000), and two different types of neural network models: Convolutional Neural Networks and Long Short-Term Memory Recurrent Neural Networks.

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

↑