Skip to main content
QUICK REVIEW

[论文解读] AdAdaGrad: Adaptive Batch Size Schemes for Adaptive Gradient Methods

Tim Tsz-Kit Lau, Han Liu|arXiv (Cornell University)|Feb 17, 2024
Stochastic Gradient Optimization TechniquesComputer Science被引用 3
一句话总结

该论文提出 AdAdaGrad 和 AdAdaGrad-Norm,这两种自适应批量大小策略可在训练过程中动态增大批量大小,同时使用 AdaGrad 和 AdaGrad-Norm 进行模型更新。该方法在平滑非凸函数上实现了高概率的 $\/mathscr{O}(1/K)$ 收敛速率,通过合理且数据驱动的批量大小自适应,显著提升了深度学习中的稳定性和性能。

ABSTRACT

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

研究动机与目标

  • 解决自适应梯度方法(如 AdaGrad)中缺乏原则性自适应批量大小策略的问题。
  • 弥合深度学习中启发式批量大小调度与理论收敛保证之间的差距。
  • 开发一种响应训练动态的动态、数据驱动批量大小自适应机制。
  • 为结合自适应梯度方法的自适应批量大小策略建立理论收敛速率。
  • 通过渐进式批量处理,提升大规模深度学习中的训练稳定性和泛化能力。

提出的方法

  • 自适应批量大小策略源自自适应采样方法(Byrd 等,2012),专为 AdaGrad 和 AdaGrad-Norm 量身定制。
  • 批量大小根据小批量梯度和模型迭代的统计特性,在训练过程中逐步增加。
  • 该方法采用坐标轴形式的自适应批量大小策略,以在非凸性条件下保持收敛性。
  • 提出一种新型缩放规则,基于梯度范数或内积调整批量大小,确保稳定性和自适应性。
  • 理论分析基于平滑性和次高斯噪声假设下的高概率收敛边界。
  • 该框架可无缝集成到现有自适应梯度方法中,除基础学习率外无需额外超参数调优。
Figure 1 : Training loss, validation accuracy and batch size curves (vs. number of training samples) of AdaSGD , AdAdaGrad and AdAdaGrad-Norm for logistic regression on the MNIST dataset.
Figure 1 : Training loss, validation accuracy and batch size curves (vs. number of training samples) of AdaSGD , AdAdaGrad and AdAdaGrad-Norm for logistic regression on the MNIST dataset.

实验结果

研究问题

  • RQ1能否将自适应批量大小策略正式整合到 AdaGrad 等自适应梯度方法中以改善训练收敛性?
  • RQ2在非凸优化中,自适应批量大小策略可建立何种理论收敛保证?
  • RQ3与固定或线性预热的批量大小相比,渐进式批量大小增加在训练稳定性和准确率方面表现如何?
  • RQ4批量大小自适应对深度神经网络中的泛化能力和损失最小化有何影响?
  • RQ5是否能通过自适应批量处理系统性地管理学习率与批量大小之间的相互作用,而无需人工调优?

主要发现

  • AdAdaGrad-Norm 在平滑非凸函数上实现了高概率的 $\\mathscr{O}(1/K)$ 收敛速率,与标准 AdaGrad 的理论性能一致。
  • 当与坐标轴形式的自适应批量大小策略结合时,AdAdaGrad 展现出类似的收敛特性。
  • 在 MNIST 上,AdAdaGrad 在 $\\eta=0.25$ 时,经过 29,480 步后达到 97% 的验证准确率,平均批量大小为 204,优于基线 AdaSGD。
  • 在 CIFAR-10 上,AdAdaGrad-Norm 在 $\\eta=0.50$ 时,经过 4,451 步和平均批量大小 1,123 后达到 57% 的验证准确率,显示出相比固定调度的改进稳定性。
  • 在 MNIST 和 CIFAR-10 的实验中,渐进式批量处理协议比恒定或线性增加的批量大小更有效地降低训练损失。
  • 该方法优于现有方法(如 Big Batch SGD 和 AdaScale SGD),因其提供了严格的收敛保证和原则性的批量大小自适应。
Figure 2 : Training loss, validation accuracy and batch size curves (vs. number of training samples) of AdaSGD , AdAdaGrad and AdAdaGrad-Norm for three-layer CNN on the MNIST dataset.
Figure 2 : Training loss, validation accuracy and batch size curves (vs. number of training samples) of AdaSGD , AdAdaGrad and AdAdaGrad-Norm for three-layer CNN on the MNIST dataset.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。