arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.12340cs.LGstat.ML
收藏

在稳定的边缘:如何调整超参数以保持神经网络异步训练中的最小值选择?

At Stability's Edge: How to Adjust Hyperparameters to Preserve Minima Selection in Asynchronous Training of Neural Networks?

Technion - Israel Institute of Technology(以色列理工学院);Habana-Labs(哈瓦那实验室)

Niv Giladi, Mor Shpigel Nacson, Elad Hoffer, Daniel Soudry

摘要:

背景资料:最近的发展使得使用大批量和数据并行来显著加速神经网络训练成为可能。以异步方式进行训练,其中会发生延迟,可以使训练更具可扩展性。然而,异步训练有其缺陷,主要是泛化能力下降,即使在算法收敛之后。这一差距仍然没有得到很好的理解,因为理论分析到目前为止主要集中在异步方法的收敛速度。贡献:我们从动态稳定性的角度研究异步训练。我们发现,延迟的程度与学习率的相互作用,改变一组最小的异步随机梯度下降算法访问。我们推导出封闭形式的规则如何学习率可以改变,同时保持可访问集相同。具体来说,对于高延迟值,我们发现学习率应保持与延迟成反比。然后,我们将这种分析扩展到包括动量。我们发现动力应该被关闭,或者被修改以提高训练稳定性。我们提供了实证实验来验证我们的理论研究结果。

英文摘要:

Background: Recent developments have made it possible to accelerate neural networks training significantly using large batch sizes and data parallelism. Training in an asynchronous fashion, where delay occurs, can make training even more scalable. However, asynchronous training has its pitfalls, mainly a degradation in generalization, even after convergence of the algorithm. This gap remains not well understood, as theoretical analysis so far mainly focused on the convergence rate of asynchronous methods. Contributions: We examine asynchronous training from the perspective of dynamical stability. We find that the degree of delay interacts with the learning rate, to change the set of minima accessible by an asynchronous stochastic gradient descent algorithm. We derive closed-form rules on how the learning rate could be changed, while keeping the accessible set the same. Specifically, for high delay values, we find that the learning rate should be kept inversely proportional to the delay. We then extend this analysis to include momentum. We find momentum should be either turned off, or modified to improve training stability. We provide empirical experiments to validate our theoretical findings.

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

↑