arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.15344stat.MLcs.LG
收藏

使用恒定与衰减学习率的随机梯度下降的迭代复杂度与随机一阶预言机复杂度

Iteration and Stochastic First-order Oracle Complexities of Stochastic Gradient Descent using Constant and Decaying Learning Rates

Meiji University(明治大学)

Kento Imaizumi, Hideaki Iiduka

AI总结:

本文研究深度学习非凸优化中批量大小对SGD迭代复杂度和随机一阶预言机复杂度的影响,证明使用临界批量大小可最小化SFO复杂度,并通过数值实验验证了理论估计的准确性。

摘要:

随机梯度下降(SGD)是训练深度神经网络最简单的一阶优化器,其性能不仅取决于学习率,还取决于批量大小。二者都会影响训练所需的迭代次数和随机一阶预言机(SFO)复杂度。特别是,先前的数值结果表明,对于使用恒定学习率的SGD,训练所需的迭代次数随批量大小增大而减少,而训练所需的SFO复杂度在某个临界批量大小处达到最小,一旦批量大小超过该临界值,SFO复杂度反而增加。本文研究了在深度学习中使用恒定或衰减学习率的SGD进行非凸优化时,批量大小与所需迭代复杂度和SFO复杂度之间的关系,并证明使用临界批量大小的SGD能够最小化SFO复杂度。我们还提供了SGD与现有的一阶优化器的数值比较,并展示了使用临界批量大小的SGD的实用性。此外,我们表明实验测得的临界批量大小与根据我们的理论结果估计的大小非常接近。

英文摘要:

The performance of stochastic gradient descent (SGD), which is the simplest first-order optimizer for training deep neural networks, depends on not only the learning rate but also the batch size. They both affect the number of iterations and the stochastic first-order oracle (SFO) complexity needed for training. In particular, the previous numerical results indicated that, for SGD using a constant learning rate, the number of iterations needed for training decreases when the batch size increases, and the SFO complexity needed for training is minimized at a critical batch size and that it increases once the batch size exceeds that size. Here, we study the relationship between batch size and the iteration and SFO complexities needed for nonconvex optimization in deep learning with SGD using constant or decaying learning rates and show that SGD using the critical batch size minimizes the SFO complexity. We also provide numerical comparisons of SGD with the existing first-order optimizers and show the usefulness of SGD using a critical batch size. Moreover, we show that measured critical batch sizes are close to the sizes estimated from our theoretical results.

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

↑