arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1612.05086cs.LGcs.CVstat.ML
收藏

自适应批量与学习率的耦合

Coupling Adaptive Batch Sizes with Learning Rates

MPI for Intelligent Systems(马克斯·普朗克智能系统研究所);Body Labs Inc.(Body Labs公司)

Lukas Balles, Javier Romero, Philipp Hennig

摘要:

小批量随机梯度下降及其变体已经成为大规模经验风险最小化的标准,如神经网络的训练。这些方法通常与通过简单的经验检查选择的恒定批量一起使用。但是,批量大小会显著影响随机优化算法的行为,因为它决定了梯度估计的方差。这种差异也会随着优化过程而变化;当使用恒定的批量大小时,稳定性和收敛性通常通过(手动调整的)递减学习率调度来加强。我们提出了一个实用的方法,动态批量大小的适应。它估计随机梯度的方差,并调整批量大小以与目标函数的值成比例地减小方差,从而消除了对上述学习率减小的需要。与最近的相关工作相比,我们的算法将批量大小与学习率相结合,直接反映了两者之间的已知关系。在流行的图像分类基准测试中,我们的批量大小自适应产生更快的优化收敛,同时简化了学习率调整。TensorFlow实现可用。

英文摘要:

Mini-batch stochastic gradient descent and variants thereof have become standard for large-scale empirical risk minimization like the training of neural networks. These methods are usually used with a constant batch size chosen by simple empirical inspection. The batch size significantly influences the behavior of the stochastic optimization algorithm, though, since it determines the variance of the gradient estimates. This variance also changes over the optimization process; when using a constant batch size, stability and convergence is thus often enforced by means of a (manually tuned) decreasing learning rate schedule. We propose a practical method for dynamic batch size adaptation. It estimates the variance of the stochastic gradients and adapts the batch size to decrease the variance proportionally to the value of the objective function, removing the need for the aforementioned learning rate decrease. In contrast to recent related work, our algorithm couples the batch size to the learning rate, directly reflecting the known relationship between the two. On popular image classification benchmarks, our batch size adaptation yields faster optimization convergence, while simultaneously simplifying learning rate tuning. A TensorFlow implementation is available.

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

↑