Adafactor: 具有次线性内存成本的自适应学习率

Adafactor: Adaptive Learning Rates with Sublinear Memory Cost

诺姆·沙泽尔 Noam Shazeer · Google · 2018-04-11 · arXiv:1804.04235 ↗ · 被引 1308

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

在最近提出的几种随机优化方法(如 RMSProp、Adam、Adadelta)中,参数更新通过缩放过去梯度平方的指数移动平均的平方根倒数来实现。维护这些逐参数二阶矩估计需要与参数数量相等的内存。对于神经网络权重矩阵的情况,我们提出仅维护这些移动平均的行和与列和,并基于这些和估计逐参数二阶矩。我们通过实验证明,该方法产生与基线相似的结果。其次,我们表明当二阶矩累积器的衰减率过慢时,自适应方法可能产生过大的更新。我们提出更新裁剪和逐渐增加衰减率的方案作为补救措施。结合这些方法并去除动量,我们在训练 WMT 2014 英德机器翻译任务的 Transformer 模型时,取得了与已发表的 Adam 方案相当的结果,同时优化器使用的辅助存储非常少。最后,我们提出根据参数本身的尺度来缩放参数更新。

In several recently proposed stochastic optimization methods (e.g. RMSProp, Adam, Adadelta), parameter updates are scaled by the inverse square roots of exponential moving averages of squared past gradients. Maintaining these per-parameter second-moment estimators requires memory equal to the number of parameters. For the case of neural network weight matrices, we propose maintaining only the per-row and per-column sums of these moving averages, and estimating the per-parameter second moments based on these sums. We demonstrate empirically that this method produces similar results to the baseline. Secondly, we show that adaptive methods can produce larger-than-desired updates when the decay rate of the second moment accumulator is too slow. We propose update clipping and a gradually increasing decay rate scheme as remedies. Combining these methods and dropping momentum, we achieve comparable results to the published Adam regime in training the Transformer model on the WMT 2014 English-German machine translation task, while using very little auxiliary storage in the optimizer. Finally, we propose scaling the parameter updates based on the scale of the parameters themselves.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 22)

阅读逐段中英对照全文 →