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

增大批大小提升带动量的随机梯度下降的收敛性

Increasing Batch Size Improves Convergence of Stochastic Gradient Descent with Momentum

Meiji University(明治大学)

Keisuke Kamo, Hideaki Iiduka

AI总结:

本文理论证明并实验验证,在训练深度神经网络时,使用递增批大小比恒定批大小能更快收敛到驻点,并降低计算成本。

摘要:

带动量的随机梯度下降(SGDM)在SGD中加入了动量项,已在理论和实践中得到充分研究。理论研究显示,学习率和动量权重的设置影响SGDM的收敛性。同时,实践研究表明,批大小的设置强烈影响SGDM的性能。本文聚焦于使用恒定学习率和恒定动量权重的小批量SGDM,该方法常用于训练深度神经网络。我们从理论上证明,在训练深度神经网络时,使用恒定批大小并不总能最小化经验损失的全梯度范数的期望,而使用递增批大小则一定能最小化该期望;即,递增批大小改善了小批量SGDM的收敛性。我们还提供了支持我们分析的数值结果,具体表明,与恒定批大小相比,使用递增批大小的小批量SGDM收敛到驻点更快,同时降低了计算成本。数值实验中使用的优化器的Python实现可在https://github.com/iiduka-researches/NSHB_increasing_batchsize_acml25/获取。

英文摘要:

Stochastic gradient descent with momentum (SGDM), in which a momentum term is added to SGD, has been well studied in both theory and practice. The theoretical studies show that the settings of the learning rate and momentum weight affect the convergence of SGDM. Meanwhile, the practical studies have shown that the batch-size setting strongly affects the performance of SGDM. In this paper, we focus on mini-batch SGDM with a constant learning rate and constant momentum weight, which is frequently used to train deep neural networks. We show theoretically that using a constant batch size does not always minimize the expectation of the full gradient norm of the empirical loss in training a deep neural network, whereas using an increasing batch size definitely minimizes it; that is, an increasing batch size improves the convergence of mini-batch SGDM. We also provide numerical results supporting our analyses, indicating specifically that mini-batch SGDM with an increasing batch size converges to stationary points faster than with a constant batch size, while also reducing computational cost. Python implementations of the optimizers used in the numerical experiments are available at https://github.com/iiduka-researches/NSHB_increasing_batchsize_acml25/.

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

↑