arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.11215cs.LGmath.OCstat.ML
收藏

AdAdaGrad:自适应梯度方法的自适应批量大小方案

AdAdaGrad: Adaptive Batch Size Schemes for Adaptive Gradient Methods

University of Pennsylvania(宾夕法尼亚大学);Northwestern University(西北大学);University of Southern California Marshall School of Business(南加州大学马歇尔商学院)

Tim Tsz-Kit Lau, Han Liu, Mladen Kolar

AI总结:

该研究针对自适应梯度优化器提出AdAdaGrad及AdAdaGradNorm两种自适应批量大小方案,理论证明其收敛性,经图像分类实验验证,可提升大规模模型训练的效率与泛化性。

摘要:

在小批量随机梯度优化中,批量大小的选择对于大规模模型训练的优化性能和泛化性能都至关重要。尽管受硬件进步的推动,大批量训练可说是大规模深度学习中的主流范式,但与小批量训练相比,模型泛化能力往往会下降,从而出现所谓的“泛化差距”。为缓解这一问题,我们研究了源自自适应采样方法的自适应批量大小策略,这些策略最初是为随机梯度下降开发的。鉴于学习率与批量大小之间存在强相互作用,且自适应梯度方法在深度学习中十分普遍,我们强调在这些场景下需要自适应批量大小策略。我们引入了AdAdaGrad及其标量变体AdAdaGradNorm,它们分别在训练过程中逐步增大批量大小,同时使用AdaGrad和AdaGradNorm进行参数更新。我们证明,在K次迭代内,AdAdaGradNorm以高概率收敛到光滑非凸函数的一阶驻点,收敛速率为$\tilde{\text{O}}(1/K)$。当将我们的自适应批量大小策略与一种新颖的坐标wise变体结合时,AdAdaGrad也表现出类似的收敛特性。我们通过图像分类实验验证了这些理论结论,实验结果表明,所提出的方案在训练效率和模型泛化性方面均具有优势。我们的工作凸显了自适应批量大小策略在大规模模型训练中应用于自适应梯度优化器的潜力。

英文摘要:

The choice of batch size in minibatch stochastic gradient optimization is critical for both optimization and generalization performance in large-scale model training. Although large-batch training is arguably the dominant paradigm in large-scale deep learning because of hardware advances, model generalization often deteriorates relative to small-batch training, leading to the so-called "generalization gap." To mitigate this issue, we investigate adaptive batch size strategies derived from adaptive sampling methods, which were originally developed for stochastic gradient descent. Given the strong interplay between learning rates and batch sizes, together with the prevalence of adaptive gradient methods in deep learning, we emphasize the need for adaptive batch size strategies in these settings. We introduce AdAdaGrad and its scalar variant AdAdaGradNorm, which progressively increase batch sizes during training while performing updates with AdaGrad and AdaGradNorm, respectively. We prove that AdAdaGradNorm converges with high probability at a rate of $\mathscr{O}(1/K)$ to a first-order stationary point of a smooth nonconvex function within $K$ iterations. AdAdaGrad also exhibits similar convergence properties when combined with a novel coordinate-wise variant of our adaptive batch size strategy. We corroborate our theoretical claims with image-classification experiments that highlight the merits of the proposed schemes in terms of both training efficiency and model generalization. Our work highlights the potential of adaptive batch size strategies for adaptive gradient optimizers in large-scale model training.

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

↑